mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-22 20:57:47 +00:00
25 lines
No EOL
531 B
Lua
25 lines
No EOL
531 B
Lua
|
|
function init(npc)
|
|
return false, false, 0, 0;
|
|
end
|
|
|
|
function onEventStarted(player, npc, triggerName)
|
|
player:RunEventFunction("askLogout", player);
|
|
end
|
|
|
|
function onEventUpdate(player, npc, eventStep, menuOptionSelected)
|
|
|
|
if (menuOptionSelected == 1) then
|
|
player:EndEvent();
|
|
return;
|
|
elseif (menuOptionSelected == 2) then
|
|
player:quitGame();
|
|
elseif (menuOptionSelected == 3) then
|
|
player:logout();
|
|
elseif (menuOptionSelected == 4) then
|
|
player:SendMessage(33, "", "Heck the bed");
|
|
end
|
|
|
|
player:EndEvent();
|
|
|
|
end |