Log In
Sign Up
Go Gold
Home
Forum
Mail
Downloads
Game Search
Macro Editor
Notes
Membership
kelekdrix.lua - Quest File
General Info
Quest File
--[[ -- Kelekdrix raid event -- NPCs involved: -- #Kelekdrix,_Herald_of_Trushar (296024) -- #Watcher_of_Kelekdrix (296025) -- #Usher_of_Kelekdrix (296026) -- http://everquest.allakhazam.com/db/quest.html?quest=4480 (Herald of Trushar section) --]] local counter = 0 local inst_id = 0 local kele = nil function AddDeath(e) counter = counter - 1 if (counter == 0) then kele:CastToNPC():ModifyNPCStat("special_attacks", "SQUMCNIDf") -- go active end end function AddSpawn(e) counter = counter + 1 if (counter == 1) then -- add spawned, go inactive kele:CastToNPC():ModifyNPCStat("special_attacks", "ABfHG") kele:WipeHateList() eq.stop_timer("banish_top") end end function KeleCombat(e) if (e.joined) then eq.set_timer("banish_top", 35000) else eq.stop_timer("banish_top") end end function KeleTimer(e) -- we only have 1 timer, don't need to check the name local top_hate = kele:GetHateTop() if (top_hate.valid and top_hate:IsClient()) then local top_client = top_hate:CastToClient() if (top_client.valid) then kele:Say("Begone " .. top_client:GetName()) kele:SetHate(top_client, 1, 1) top_client:MovePCInstance(296, inst_id, 210, -500, -26, 490) end end end function KeleSpawn(e) kele = e.self end function event_encounter_load(e) inst_id = eq.get_zone_instance_id() counter = 0 -- register our NPC event hooks eq.register_npc_event("kelekdrix", Event.spawn, 296026, AddSpawn) eq.register_npc_event("kelekdrix", Event.death_complete, 296026, AddDeath) eq.register_npc_event("kelekdrix", Event.spawn, 296025, AddSpawn) eq.register_npc_event("kelekdrix", Event.death_complete, 296025, AddDeath) eq.register_npc_event("kelekdrix", Event.timer, 296024, KeleTimer) eq.register_npc_event("kelekdrix", Event.combat, 296024, KeleCombat) eq.register_npc_event("kelekdrix", Event.spawn, 296024, KeleSpawn) end function event_encounter_unload(e) eq.get_entity_list():FindDoor(41):SetLockPick(0) -- unlock door eq.spawn2(296027, 0, 0, 90, -515, -27, 128) -- #Mimezpo_the_Oracle eq.set_global(inst_id .. "_inktuta_status", "2", 3, "H6") eq.spawn_condition("inktuta", inst_id, 1, 0) -- turn off Usher/Watcher spawns eq.depop_all(296025) eq.depop_all(296026) eq.signal(296070, 296024) -- setting lockout eq.stop_all_timers(); end
Source: 17 Jan 2022
Quest Source: 28 May 2022