mirror of
https://github.com/ProjectEQ/projecteqquests
synced 2026-08-12 00:26:10 -04:00
26 lines
904 B
Lua
26 lines
904 B
Lua
local warnings = 0;
|
|
function event_spawn(e)
|
|
warnings = 0;
|
|
end
|
|
|
|
function event_tick(e)
|
|
local my_id = eq.get_zone_instance_id();
|
|
local my_list = eq.get_characters_in_instance(my_id);
|
|
|
|
for k,v in pairs(my_list) do
|
|
local client = eq.get_entity_list():GetClientByCharID(v);
|
|
if (client.valid) then
|
|
if (client:GetX() > -64 or client:GetY() < 122 ) then
|
|
client:Message(MT.Red, "A deep voice booms in your head, 'This breach of the rules will not be tolerated. You must face the trials. Return to the arena or be subjected to pain.'");
|
|
if ( warnings >= 10 ) then
|
|
client:Message(MT.Red, "A deep voice booms in your head, 'You have been warned. You did not heed the warnings. Now you Die!'");
|
|
if (client:Admin() < 80) then
|
|
client:Kill();
|
|
end
|
|
else
|
|
warnings = warnings + 1;
|
|
end
|
|
end
|
|
end
|
|
end
|
|
end
|