PDA

View Full Version : summon mobs to npc


nilbog
11-19-2008, 01:51 PM
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.



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);
}

}

joligario
11-19-2008, 02:32 PM
Kind of time consuming, but you could always use a signal...

So_1337
11-19-2008, 03:01 PM
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.

nilbog
11-19-2008, 03:08 PM
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.