Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Q&A

Quests::Q&A This is the quest support section

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #5  
Old 03-22-2014, 01:54 AM
Esildor
Hill Giant
 
Join Date: Feb 2010
Posts: 207
Default

Nate,

Currently my script is this:

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:

Code:
sub EVENT_SPAWN {
     quest::setnexthpevent(76);
     quest::modifynpcstat("runspeed", 0);
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?
Reply With Quote
 


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 10:29 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 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3