Code:
#Ghaud
sub EVENT_SPAWN {
quest::setnexthpevent(76);
sub EVENT_HP {
if($hpevent == 76) {
quest::settimer(1,120);
quest::spawn2(9980002,0,0,580,-784.5,-35.6,190);
quest::spawn2(9980002,0,0,580,-844.5,-27.3,190);
quest::spawn2(9980002,0,0,520,-784.5,-35.4,190);
quest::spawn2(9980002,0,0,520,-844.5,-39.7,190);
quest::modifynpcstat("special_attacks","ABHGZ");
quest::emote("ports away and releases his minions!");
quest::shout("Ha, lets see how you do against my minions!");
$npc->GMMove(472.4,-684.9,-28.5,130.5);
$npc->TempName("Ghaud (Invulnerable)");
}
if($hpevent == 51) {
quest::settimer(2,120);
quest::spawn2(9980002,0,0,580,-784.5,-35.6,190);
quest::spawn2(9980002,0,0,580,-844.5,-27.3,190);
quest::spawn2(9980002,0,0,520,-784.5,-35.4,190);
quest::spawn2(9980002,0,0,520,-844.5,-39.7,190);
quest::modifynpcstat("special_attacks","ABHG");
quest::emote("ports away and releases his minions!");
quest::shout("Argh, help me my minions!");
$npc->GMMove(472.4,-684.9,-28.5,130.5);
$npc->TempName("Ghaud (Invulnerable)");
}
if($hpevent == 26) {
quest::settimer(3,120);
quest::spawn2(9980002,0,0,580,-784.5,-35.6,190);
quest::spawn2(9980002,0,0,580,-844.5,-27.3,190);
quest::spawn2(9980002,0,0,520,-784.5,-35.4,190);
quest::spawn2(9980002,0,0,520,-844.5,-39.7,190);
quest::modifynpcstat("special_attacks","ABHG");
quest::emote("ports away and releases his minions!");
quest::shout("Minions, this is our last stand!");
$npc->GMMove(472.4,-684.9,-28.5,130.5);
$npc->TempName("Ghaud (Invulnerable)");
}
}
sub EVENT_TIMER {
if($timer == 1) {
quest::stoptimer(1);
$npc->GMMove(540,-814.4,-39.5,192);
quest::modifynpcstat("special_attacks","ST");
quest::setnexthpevent(51);
quest::emote("returns to battle.");
$npc->TempName("Ghaud");
}
if($timer == 2) {
quest::stoptimer(2);
$npc->GMMove(540,-814.4,-39.5,192);
quest::modifynpcstat("special_attacks","ST");
quest::setnexthpevent(26);
quest::emote("returns to battle.");
$npc->TempName("Ghaud");
}
if($timer == 3) {
quest::stoptimer(3);
$npc->GMMove(540,-814.4,-39.5,192);
quest::modifynpcstat("special_attacks","ST");
quest::emote("returns to battle.");
$npc->TempName("Ghaud");
}
}
sub EVENT_DEATH {
quest::depopall(9980002);
quest::emote("minions disappear.");
}
}
Would you just change the NPCs run speed to 1 in the DB, and then in the very beginning make:
Then I will just add a runspeed modify line to every portion of him moving throughout the script to make sure he's either moving or not moving when I want him to be?