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

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

Reply
 
Thread Tools Display Modes
  #1  
Old 02-14-2012, 02:24 AM
Jeknos
Fire Beetle
 
Join Date: Oct 2010
Posts: 10
Default Linking mob spawns/pulls

I have been trying to come up with a way to implement linked mob pulls (a set of mobs will always aggro when one does) and respawns (when one of the mobs respawns, they all do). My first thoughts were to do this in a quest script (as I'm not familiar enough with the server source to code it there) but I'm not sure how to go about implementing this. If anyone has done this before or knows what quest functions or source code locations this stuff would use I'd appreciate the assistance.
Reply With Quote
  #2  
Old 02-14-2012, 01:35 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,490
Default

There are quite a few examples in the quest repository. Check out the emperor in SSRA for a more involved version. I think NTOV had a few scripts as well.
Reply With Quote
  #3  
Old 02-14-2012, 07:02 PM
chrsschb's Avatar
chrsschb
Dragon
 
Join Date: Nov 2008
Location: GA
Posts: 905
Default

Linking mobs:

Code:
sub EVENT_AGGRO {

   my $enraged_corflunk = $entity_list->GetMobByNpcTypeID(999270);
   my $enraged_zarchoomi = $entity_list->GetMobByNpcTypeID(999269);
 
   if ($enraged_corflunk) {
      my $enraged_corflunknpc = $enraged_corflunk->CastToNPC();
      $enraged_corflunknpc->AddToHateList($client, 1);
      }
   
   if ($enraged_zarchoomi) {
      my $enraged_zarchoominpc = $enraged_zarchoomi->CastToNPC();
      $enraged_zarchoominpc->AddToHateList($client, 1);
      }
   }
Spawning mobs at the same time (only the one npc has a respawn timer):

Code:
sub EVENT_SPAWN
   {
   my $x = $npc->GetX();
    my $y = $npc->GetY();
    my $z = $npc->GetZ();
    my $h = $npc->GetHeading();
   quest::spawn2(1241,0,0,$x + 15,$y,$z,$h);
   quest::spawn2(1242,0,0,$x - 15,$y,$z,$h);
   }
Reply With Quote
  #4  
Old 02-14-2012, 08:02 PM
Jeknos
Fire Beetle
 
Join Date: Oct 2010
Posts: 10
Default

Thanks for the replies. They helped a bunch.
Reply With Quote
Reply


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 02:13 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 - 2024, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3