mirror of
https://github.com/ProjectEQ/projecteqquests
synced 2026-08-12 00:26:10 -04:00
21 lines
509 B
Lua
21 lines
509 B
Lua
function event_spawn(e)
|
|
eq.set_timer("roll",4*1000);
|
|
end
|
|
|
|
function event_timer(e)
|
|
if (e.timer == "roll") then
|
|
local rand = math.random(1,100);
|
|
if (rand <= 33) then
|
|
eq.get_entity_list():MessageClose(e.self, false, 100, MT.White, "The storm clouds pass harmlessly.");
|
|
eq.depop();
|
|
elseif (rand > 33 and rand <= 66) then
|
|
e.self:CastSpell(1032, e.self:GetTarget():GetID()); --hailstorm
|
|
elseif (rand > 66 and rand <= 100) then
|
|
eq.depop();
|
|
end
|
|
end
|
|
end
|
|
|
|
function event_cast(e)
|
|
eq.depop();
|
|
end
|