View Single Post
  #3  
Old 07-28-2008, 10:55 PM
trevius's Avatar
trevius
Developer
 
Join Date: Aug 2006
Location: USA
Posts: 5,946
Default

This is part of a script I made by using the Tunare script as an example and it works perfectly:

Code:
sub EVENT_ATTACK {

  my $guardian_one = $entity_list->GetMobByNpcTypeID(2700500);
  my $guardian_two = $entity_list->GetMobByNpcTypeID(2700501);
  my $guardian_three = $entity_list->GetMobByNpcTypeID(2700502);
  my $guardian_four = $entity_list->GetMobByNpcTypeID(2700503);
  my $guardian_five = $entity_list->GetMobByNpcTypeID(2700504);
  my $guardian_six = $entity_list->GetMobByNpcTypeID(2120410);

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

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

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

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

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

  if ($guardian_six) {
    my $hate_guardian_six = $guardian_six->CastToNPC();
    $hate_guardian_six->AddToHateList($client, 1); }
    
}
__________________
Trevazar/Trevius Owner of: Storm Haven
Everquest Emulator FAQ (Frequently Asked Questions) - Read It!
Reply With Quote