I'm having a little bit of a problem with this boss script and I was hoping one of you more experienced people could help me out.. I used the search function and found a similar thread to this one, but it didn't seem to tell me anything I haven't already tried or produce any solutions for me.
The point of this script is to have the boss cast his stun, and then run over to the location I have set.. I've pasted a snippet of the script below.
With this he casts his stun, but continues to attack you and doesn't move to where he's supposed to.. I also wasn't sure if the timing for pause was in milliseconds or not so if it's not I'll just fix that, but that's not really the issue right now!
I've tried to wipe his hate list, which just makes him go back to his spawn point.. I've also tried setting his attack flags to be unattackable/wont attack back and that doesn't work either.
I'm aware that it could be done if i set a combat state and wipe his hate list, but this is going to a happen a few times during the fight.
Code:
sub EVENT_HP
{
if($hpevent == 90)
{
quest::castspell(9406, $userid); #10 second aggro list stun for phase change
quest::moveto(-2104,181,251.9,187,1);
quest::emote("runs to the weapon rack to select a new weapon.");
quest::pause(10000);
quest::wearchange(7,4);
quest::modifynpcstat(min_hit,3000);
quest::modifynpcstat(max_hit,5100);
quest::setnexthpevent(75);
}