Transcendent_Acolyte.lua - Quest File
xxxxxxxxxx
1
-- 294509
2
-- ##Transcendent_Acolyte
3
--Ikkinz Raid #3: Chambers of Transcendence
4
function event_spawn(e)
5
eq.set_next_hp_event(50);
6
end
7
8
function event_combat(e)
9
if (e.joined == true) then
10
eq.set_timer('leash', 3 * 1000);
11
else
12
eq.stop_timer('leash');
13
end
14
end
15
16
function event_hp(e)
17
if (e.hp_event == 50) then
18
e.self:SetSpecialAbility(SpecialAbility.area_rampage, 1);
19
e.self:SetSpecialAbilityParam(SpecialAbility.area_rampage, 0, 70);
20
eq.set_timer('infurate', 5 * 1000);
21
eq.zone_emote(13, e.self:GetCleanName() .. " is infuriated!");
22
elseif (e.hp_event == 10) then
23
e.self:SetSpecialAbility(SpecialAbility.area_rampage, 1);
24
e.self:SetSpecialAbilityParam(SpecialAbility.area_rampage, 0, 70);
25
eq.set_timer('infurate', 5 * 1000);
26
eq.zone_emote(13, e.self:GetCleanName() .. " is infuriated!");
27
end
28
end
29
30
function event_timer(e)
31
if (e.timer == 'infurate') then
32
eq.stop_timer(e.timer);
33
e.self:SetSpecialAbility(SpecialAbility.area_rampage, 0);
34
eq.zone_emote(13, e.self:GetCleanName() .. " is no longer infuriated.");
35
elseif (e.timer == 'leash') then
36
if (e.self:GetX() < -35 or e.self:GetX() > 120 or e.self:GetY() > -100 or e.self:GetY() < -310) then
37
e.self:CastSpell(3791,e.self:GetID()); -- Spell: Ocean's Cleansing
38
e.self:GotoBind();
39
e.self:WipeHateList();
40
e.self:SetHP(e.self:GetMaxHP());
41
end
42
end
43
end
44
45
function event_death_complete(e)
46
-- Tell Trigger_Ikkinz_3 that an Transcendent Acolyte has died
47
eq.signal(294597, 9); -- NPC: #Trigger_Ikkinz_3
48
end
49
50
Quest Source: 28 May 2022