mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-20 11:47:48 +00:00
23 lines
No EOL
428 B
Lua
23 lines
No EOL
428 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:SetSleeping();
|
|
player:QuitGame();
|
|
elseif (choice == 3) then
|
|
player:SetSleeping();
|
|
player:Logout();
|
|
elseif (choice == 4) then
|
|
player:SendMessage(33, "", "Heck the bed");
|
|
end
|
|
|
|
player:EndEvent();
|
|
|
|
end |