EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Quests::Q&A (https://www.eqemulator.org/forums/forumdisplay.php?f=599)
-   -   Derakor the Vindicator (https://www.eqemulator.org/forums/showthread.php?t=29126)

Dibalamin 08-03-2009 08:57 PM

Derakor the Vindicator
 
On live when Derakor was aggro'd the 2 near guardians of Zek would join his hate list, and once he was non-aggro, they would follow him. The two guardians I made are 649, for you they will be different.

Derakor_the_Vindicator
Code:

#Derakor the Vindicator
my $Guardian_of_Zek;
my $Guardian_of_Zeknpc;


sub EVENT_AGGRO {
  quest::shout("Your kind will not defile the temple of Rallos Zek!");

  my $Guardian_of_Zek = $entity_list->GetMobByNpcTypeID(649);
 
  if ($Guardian_of_Zek) {
    my $Guardian_of_Zeknpc = $Guardian_of_Zek->CastToNPC();
    $Guardian_of_Zeknpc->AddToHateList($client, 1);
 
}
}

sub EVENT_COMBAT {
  if ($combat_state == 0){
  quest::signalwith(649,1,1);
}
}
# Quest by mystic414, Edited by Aeolwind

#a_guardian_of_zek
Code:

#Guardian of Zek

sub EVENT_SIGNAL {
if ($signal == 1) {
#Set this to the NPCID you want the NPC to follow
my $OpponentID = 113118;

#Get Target NPC
my $getmobbynpctype = $entity_list->GetMobByNpcTypeID($OpponentID);
#Get the NPC's Entity ID
my $follow_target = $getmobbynpctype->GetID();

quest::follow($follow_target);

}
}

#Derakor's Tagalongs  Quest by Aeolwind

The problem I'm having...Only one of the guardians aggro, but both will follow without fail! Since they both have the same ID, I didn't figure it would be a big deal since it works fine for my Cazic-Thule Script, but only one is getting the aggro pass. Any reason why? And how might I rectify it?


All times are GMT -4. The time now is 02:35 PM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.