Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::LUA

Quests::LUA Section regarding LUA scripts, help, questions, answers

Reply
 
Thread Tools Display Modes
  #1  
Old 11-17-2024, 12:09 PM
t0neg0d
Sarnak
 
Join Date: Oct 2014
Posts: 31
Default event_hp seems to do nothing

Like the title says, this example does nothing.

Code:
function event_hp(e)
	-- NPC-event_hp
	-- Exported event variables
	eq.debug("hp_event " .. e.hp_event);
	eq.debug("inc_hp_event " .. e.inc_hp_event);
end
Reply With Quote
  #2  
Old 11-17-2024, 01:36 PM
fryguy
Sarnak
 
Join Date: May 2007
Posts: 50
Default

Quote:
Originally Posted by t0neg0d View Post
Like the title says, this example does nothing.

Code:
function event_hp(e)
	-- NPC-event_hp
	-- Exported event variables
	eq.debug("hp_event " .. e.hp_event);
	eq.debug("inc_hp_event " .. e.inc_hp_event);
end
Works as expected however you need to set a value threshold for a trigger:

Code:
eq.set_next_hp_event(int hp);
eq.set_next_inc_hp_event(int hp);
Reply With Quote
  #3  
Old 11-18-2024, 02:40 AM
t0neg0d
Sarnak
 
Join Date: Oct 2014
Posts: 31
Default

Quote:
Originally Posted by fryguy View Post
Works as expected however you need to set a value threshold for a trigger:

Code:
eq.set_next_hp_event(int hp);
eq.set_next_inc_hp_event(int hp);
Thanks so much. Where did you find this info? (so I can avoid posting if there is already an answer)
Reply With Quote
  #4  
Old 11-18-2024, 08:39 AM
fryguy
Sarnak
 
Join Date: May 2007
Posts: 50
Default

Looking at use cases of it in the PEQ quest repository, not sure its documented anywhere.
Reply With Quote
  #5  
Old 11-18-2024, 02:00 PM
t0neg0d
Sarnak
 
Join Date: Oct 2014
Posts: 31
Default

Quote:
Originally Posted by fryguy View Post
Looking at use cases of it in the PEQ quest repository, not sure its documented anywhere.
ty! most appreciated.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 08:10 PM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3