Advertisement
sorvani

#Eashen_of_the_Sky.lua

Feb 28th, 2014
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.43 KB | None | 0 0
  1. -- #Eashen_of_the_Sky NPCID: 124004
  2. function event_combat(e)
  3.     if (e.joined) then
  4.         -- grab the entity list
  5.         local entity_list = eq.get_entity_list();
  6.         -- also aggro Belijor_the_Emerald_Eye (124057) and Nelaarn_the_Ebon_Claw (124089)
  7.         -- and Ajorek_the_Crimson_Fang (124088) and Yendilor_the_Cerulean_Wing (124056) if they are up
  8.         local npc_table = {124056,124057,124088,124089};
  9.         for k,v in pairs(npc_table) do
  10.             local npc = entity_list:GetMobByNpcTypeID(v);
  11.             if (npc.valid) then
  12.                 npc:AddToHateList(e.other,1);
  13.             end
  14.         end
  15.     end
  16. end
  17.  
  18. --[[ old shit
  19. # link eashen and its guards to chain aggro when one is pulled
  20. #
  21.  
  22. sub EVENT_AGGRO {
  23.   my $guard1 = $entity_list->GetMobByNpcTypeID(124057); #belijor
  24.   my $guard2 = $entity_list->GetMobByNpcTypeID(124089); #nelaarn
  25.   my $guard3 = $entity_list->GetMobByNpcTypeID(124088); #ajorek
  26.   my $guard4 = $entity_list->GetMobByNpcTypeID(124056); #yendilor
  27.   if ($guard1) {
  28.     my $call_guard1 = $guard1->CastToNPC();
  29.     $call_guard1->AddToHateList($client, 1);
  30.   }
  31.   if ($guard2) {
  32.     my $call_guard2 = $guard2->CastToNPC();
  33.     $call_guard2->AddToHateList($client, 1);
  34.   }
  35.   if ($guard3) {
  36.     my $call_guard3 = $guard3->CastToNPC();
  37.     $call_guard3->AddToHateList($client, 1);
  38.   }
  39.   if ($guard4) {
  40.     my $call_guard4 = $guard4->CastToNPC();
  41.     $call_guard4->AddToHateList($client, 1);
  42.   }
  43. }
  44.  
  45. # EOF zone: templeveeshan ID: 124004 NPC: #Eashen_of_the_Sky
  46.  
  47.  
  48. --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement