EVENT_HP issues ( any help greatly appreciated)
This is a learning experience for me, and so far I have been pretty successful with writing some quests, but for some reason I cannot figure out what is wrong with this one.
I thought a trained eye might be able to help :D. Code:
#Script for Mob I read in the wiki that quest::castspell(id,spell) could cause bugs, but even the shouts and emote do not go off. Thanks for any suggestions in advance :). |
I am not in a situation at the moment to test this, but give this a shot.
Code:
#Script for Mob |
making progress
Thanks for the excellent suggestion. :)
The events are actually taking place now, which is a lot further than I've got previously. Like the wiki mentioned quest::castspell(id,spellid); doesn't seem to be going off. So should it look something like this instead? Code:
sub EVENT_HP At any rate, this has helped out a ton. I feel as if a door has swung open :). I can put this information to use a thousand times over. Thanks a billion! |
More progress
Okay the event is working, I think I was just killing him too quickly for it too activate.
My only remaining problem is the spells aren't being cast. |
Finished
Oops it's $npc->CastSpell(7477,#userid).
All worked out now. :) |
I remember >= being an issue in the logic, the event needs == which will recognize going under the value you did == too. Hope makes sense. I had same problem
|
All times are GMT -4. The time now is 03:11 AM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.