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 Today, 12:09 PM
t0neg0d
Fire Beetle
 
Join Date: Oct 2014
Posts: 26
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 Today, 01:36 PM
fryguy
Sarnak
 
Join Date: May 2007
Posts: 48
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
Reply


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 02:28 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