mirror of
https://github.com/proxeeus/quests
synced 2026-08-22 10:29:07 -04:00
36 lines
1.2 KiB
Lua
36 lines
1.2 KiB
Lua
--Spawns an iksar broodling on the death of the golems 75% of the time.
|
|
|
|
function event_signal(e)
|
|
entity_list = eq.get_entity_list();
|
|
|
|
if(e.signal == 1) then
|
|
e.self:Say("Such is the will of Cazic-Thule!");
|
|
elseif(e.signal == 2) then
|
|
local mobtypeID = entity_list:GetMobByNpcTypeID(72003);
|
|
local follow_mob = mobtypeID:GetID();
|
|
eq.follow(follow_mob);
|
|
elseif(e.signal == 3) then
|
|
eq.stop_follow();
|
|
end
|
|
end
|
|
|
|
function event_death_complete(e)
|
|
local a = eq.ChooseRandom(72105,72105,72105,0);
|
|
-- local x = e.self:GetX();
|
|
-- local y = e.self:GetY();
|
|
-- local z = e.self:GetZ();
|
|
-- local h = e.self:GetHeading();
|
|
eq.spawn2(a,0,0,e.self:GetX(),e.self:GetY(),e.self:GetZ(),e.self:GetHeading());
|
|
end
|
|
|
|
function event_cast_begin(e)
|
|
if(e.spell:ID() == 982) then
|
|
e.self:Shout(e.self:GetTarget():GetName() .. "!");
|
|
end
|
|
end
|
|
|
|
--Submitted by: Jim Mills (Gilmore Girls`Is`Awesome`XOXO)
|
|
-------------------------------------------------------------------------------------------------
|
|
-- Converted to .lua using MATLAB converter written by Stryd
|
|
-- Find/replace data for .pl --> .lua conversions provided by Speedz, Stryd, Sorvani and Robregen
|
|
-------------------------------------------------------------------------------------------------
|