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 11-19-2008, 01:51 PM
nilbog
Hill Giant
 
Join Date: Nov 2007
Posts: 198
Default summon mobs to npc

After I started the perl script for this, I realized there has to be a better way of summoning multiple npcs to an npc.

I am trying to make Cazic Thule, once aggroed, summon forth all the spawned mobs in fear to assist him.

Is there a way to choose a range of ID #s to add to hate list? Or some other fabulous way that I have no idea about.

Code:
sub EVENT_AGGRO {
  quest::shout("Denizens of Fear, your master commands you to come forth to his aid!!");
  my $a_scareling_mob = $entity_list->GetMobByNpcTypeID(72005);
  my $a_shiverback_mob = $entity_list->GetMobByNpcTypeID(72006);

if ($a_scareling_mob) {
    my $a_scareling_mobnpc = $a_scareling_mob->CastToNPC();
    $a_scareling_mobnpc->AddToHateList($client, 1);
  }

if ($a_shiverback_mob) {
    my $a_shiverback_mobnpc = $a_shiverback_mob->CastToNPC();
    $a_shiverback_mobnpc->AddToHateList($client, 1);
  }

}
Reply With Quote
  #2  
Old 11-19-2008, 02:32 PM
joligario's Avatar
joligario
Developer
 
Join Date: Mar 2003
Posts: 1,497
Default

Kind of time consuming, but you could always use a signal...
Reply With Quote
  #3  
Old 11-19-2008, 03:01 PM
So_1337
Dragon
 
Join Date: May 2006
Location: Cincinnati, OH
Posts: 689
Default

Check PEQ's quest files for Cazic Thule (who summons the three golems if they're alive) and Tunare (who summons everything in the zone that's alive). They don't summon NPCs to them, but will add the clients to the hatelists and get the NPCs running their way when they are aggro'd.

I mean, I see you're referencing Cazic Thule, but check Tunare.
Reply With Quote
  #4  
Old 11-19-2008, 03:08 PM
nilbog
Hill Giant
 
Join Date: Nov 2007
Posts: 198
Default

thanks guys. looks like i was on the right path. the tunare reference helps a lot, and indeed, i was looking for them to aggro and move towards target, instead of summon.
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 12:10 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