Log In
Sign Up
Go Gold
Home
Forum
Mail
Downloads
Game Search
Macro Editor
Notes
Membership
phase_one_water.lua - Quest File
General Info
Quest File
-- NPCID 223172 local event_counter = 0; function event_spawn(e) -- create a proximty to set the spawn timer local xloc = e.self:GetX(); local yloc = e.self:GetY(); eq.set_proximity(xloc - 80, xloc + 80, yloc - 60, yloc + 60); end function event_enter(e) -- tell zone_status phase 1 was started eq.signal(223097,1); -- NPC: zone_status -- wait 45 seconds before spawning the mobs. eq.clear_proximity(); eq.set_timer("Phase1Water",45000); end function event_timer(e) if(e.timer == "Phase1Water") then -- spawn first wave of 2 a_triloun_gatherer and Anar_of_Water eq.spawn2(223104,0,0,68,867,495,371); -- NPC: Anar_of_Water eq.spawn2(eq.ChooseRandom(223092,223093),0,0,68,877,495,371); -- NPC(s): a_triloun_gatherer (223092), a_triloun_gatherer (223093) eq.spawn2(eq.ChooseRandom(223092,223093),0,0,68,857,495,371); -- NPC(s): a_triloun_gatherer (223092), a_triloun_gatherer (223093) eq.stop_timer("Phase1Water"); end end function event_signal(e) -- signal 1 comes from the phase 1 mobs and is used to increment a -- counter so we know when to signal the win if (e.signal == 1) then event_counter = event_counter + 1; -- win on a 7 count if (event_counter == 7) then -- tell zone_status eq.signal(223097,2); -- NPC: zone_status -- depop as my job is done. eq.depop(); end end end
Source: 17 Jan 2022
Quest Source: 28 May 2022