Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- #Eashen_of_the_Sky NPCID: 124004
- function event_combat(e)
- if (e.joined) then
- -- grab the entity list
- local entity_list = eq.get_entity_list();
- -- also aggro Belijor_the_Emerald_Eye (124057) and Nelaarn_the_Ebon_Claw (124089)
- -- and Ajorek_the_Crimson_Fang (124088) and Yendilor_the_Cerulean_Wing (124056) if they are up
- local npc_table = {124056,124057,124088,124089};
- for k,v in pairs(npc_table) do
- local npc = entity_list:GetMobByNpcTypeID(v);
- if (npc.valid) then
- npc:AddToHateList(e.other,1);
- end
- end
- end
- end
- --[[ old shit
- # link eashen and its guards to chain aggro when one is pulled
- #
- sub EVENT_AGGRO {
- my $guard1 = $entity_list->GetMobByNpcTypeID(124057); #belijor
- my $guard2 = $entity_list->GetMobByNpcTypeID(124089); #nelaarn
- my $guard3 = $entity_list->GetMobByNpcTypeID(124088); #ajorek
- my $guard4 = $entity_list->GetMobByNpcTypeID(124056); #yendilor
- if ($guard1) {
- my $call_guard1 = $guard1->CastToNPC();
- $call_guard1->AddToHateList($client, 1);
- }
- if ($guard2) {
- my $call_guard2 = $guard2->CastToNPC();
- $call_guard2->AddToHateList($client, 1);
- }
- if ($guard3) {
- my $call_guard3 = $guard3->CastToNPC();
- $call_guard3->AddToHateList($client, 1);
- }
- if ($guard4) {
- my $call_guard4 = $guard4->CastToNPC();
- $call_guard4->AddToHateList($client, 1);
- }
- }
- # EOF zone: templeveeshan ID: 124004 NPC: #Eashen_of_the_Sky
- --]]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement