mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-22 04:37:47 +00:00
21 lines
380 B
Lua
21 lines
380 B
Lua
![]() |
require ("global")
|
||
|
|
||
|
function init(npc)
|
||
|
return false, false, 0, 0;
|
||
|
end
|
||
|
|
||
|
function onEventStarted(player, npc, triggerName)
|
||
|
|
||
|
choice = callClientFunction(player, "askLogout", player);
|
||
|
|
||
|
if (choice == 2) then
|
||
|
player:QuitGame();
|
||
|
elseif (choice == 3) then
|
||
|
player:Logout();
|
||
|
elseif (choice == 4) then
|
||
|
player:SendMessage(33, "", "Heck the bed");
|
||
|
end
|
||
|
|
||
|
player:EndEvent();
|
||
|
|
||
|
end
|