-
Notifications
You must be signed in to change notification settings - Fork 83
/
Copy path301075.lua
38 lines (35 loc) · 1.35 KB
/
301075.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
function event_death_complete(e)
eq.spawn2(301076,0,0,-252,1324,-721.67,0); -- NPC: #a_reclusive_girplan
eq.zone_emote(MT.Yellow, "Attracted by the recent commotion, a reclusive Girplan emerges from its hiding spot.");
end
-- 4th girplan spawns 5th
function event_spawn(e)
eq.set_timer("despawn", 930 * 1000);
end
function event_timer(e)
if (e.timer == "despawn") then
eq.depop();
eq.zone_emote(MT.NPCQuestSay, "The reclusive girplans slink back into their caves.");
elseif e.timer=="blur" then
hate_list = e.self:CountHateList();
if (hate_list ~= nil and tonumber(hate_list) == 1) then
e.self:CastedSpellFinished(5604, e.self:GetHateRandom())
elseif (hate_list ~= nil and tonumber(hate_list) == 2) then
e.self:CastedSpellFinished(5604, e.self:GetHateRandom())
e.self:CastedSpellFinished(5604, e.self:GetHateRandom())
elseif (hate_list ~= nil and tonumber(hate_list) >= 3) then
e.self:CastedSpellFinished(5604, e.self:GetHateRandom())
e.self:CastedSpellFinished(5604, e.self:GetHateRandom())
e.self:CastedSpellFinished(5604, e.self:GetHateRandom())
end
e.self:Emote("flings its bulky body toward you and sends several opponents flying!");
e.self:WipeHateList();
end
end
function event_combat(e)
if e.joined then
eq.set_timer("blur",15*1000);
else
eq.stop_timer("blur");
end
end