Does EVENT_HP work in 0.6.0-dr3?
I've looked through the code and the functionality seems to be in place, but the event isn't triggering. Here's some sample PERL code that should (I think) work:
Code:
sub EVENT_SPAWN quest::me is also not working (it acts as quest::say instead of a narrative emote). Are these known issues with dr3, or am I going to have to start pulling apart the code peice by peice to track it down? Thanks in advance. |
I'm not sure..but functions might be case sensitive (I don't think so anyways), so try quest::setnexthpevent(50);. Also, never worked with the HP event, but give it a try.
|
Yeah, I've tried every case imagineable and nothing would trigger it.
|
quotes
Try using quotes around the variable like this
Code:
|
here dude, a event Hp i made to have 5 spawns when a mob reaches a certain % of hp, it works, so this may give you some idea's
sub EVENT_ATTACK { quest::shout("WHO DARES CHALLENGE ME? I AM THE LESSER OVERKING!!, YOUR QUEST ENDS HERE, MORTALS!"); quest::spawn(189142,0,0,($x-10),$y,$z); quest::spawn(189142,0,0,($x+10),$y,$z); quest::spawn(189142,0,0,($x-20),$y,$z); quest::spawn(189142,0,0,($x+20),$y,$z); quest::spawn(189142,0,0,$x,($y+10),$z); } sub EVENT_HP { if($hpevent == 70) { firstevent(); } if($hpevent == 30) { secondevent(); } } |
No good, tried with and without quotes ... the PERL syntax is all correct, the events just won't trigger. EVENT_TIMER isn't working either ... Not sure what else to try.
|
Heh, I moved sub EVENT_DEATH up to the top of the file, and now everything works .... go figure (all it contains is a quest::shout()).
Owell, thanks for the help guys. |
All times are GMT -4. The time now is 02:07 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.