View Single Post
  #3  
Old 02-20-2009, 12:05 PM
ChaosSlayer
Demi-God
 
Join Date: May 2007
Posts: 1,032
Default

Code:
# Call Dread, Fright & Terror to aid Cazic Thule if they're still alive

# code by mystic414




sub EVENT_AGGRO {

  quest::shout("Denizens of Fear, your master commands you to come forth to his aid!!");

  quest::signalwith(72000,1,0);

  quest::signalwith(72004,1,0);

  quest::signalwith(72002,1,0);

  my $dread_mob = $entity_list->GetMobByNpcTypeID(72000);

  my $fright_mob = $entity_list->GetMobByNpcTypeID(72004);

  my $terror_mob = $entity_list->GetMobByNpcTypeID(72002);

  if ($dread_mob) {

    my $dread_mobnpc = $dread_mob->CastToNPC();

    $dread_mobnpc->AddToHateList($client, 1);

  }

  if ($fright_mob) {

    my $fright_mobnpc = $fright_mob->CastToNPC();

    $fright_mobnpc->AddToHateList($client, 1);

  }

  if ($terror_mob) {

    my $terror_mobnpc = $terror_mob->CastToNPC();

    $terror_mobnpc->AddToHateList($client, 1);

  }

}
Reply With Quote