Go Back   EQEmulator Home > EQEmulator Forums > Quests > Quests::Custom

Quests::Custom Custom Quests here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 10-11-2018, 08:21 PM
greyfox8888
Fire Beetle
 
Join Date: Feb 2009
Location: eq
Posts: 5
Default

Thanks so much! That did the trick. I completely missed the plugins:

plugin::CheckDist(entity, distance);
plugin::CheckDistBetween2Ents(entity1, entity2, distance);

The code for the spawned adds now works as intended:

Code:
sub EVENT_AGGRO {
   quest::shout("$name!!!");    #Shouts the name of the player that better start running
   quest::settimer("distance", 1);
}

sub EVENT_TIMER {

   if ($timer eq "distance") {

     my $target = $npc->GetTarget();

     if(plugin::CheckDist($target, 21)) {
          $npc->SpellFinished(732, $target,0); #cast Ice Comet on target if it is within 21 units of distance
          quest::depop();
     } 
   }
}
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 06:06 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