2016-06-12 19:06:03 -04:00
|
|
|
|
|
|
|
function init(npc)
|
|
|
|
return false, false, 0, 0;
|
|
|
|
end
|
|
|
|
|
|
|
|
function onEventStarted(player, npc, triggerName)
|
2016-06-15 03:41:23 +01:00
|
|
|
player:RunEventFunction("askLogout", player);
|
2016-06-12 19:06:03 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
function onEventUpdate(player, npc, eventStep, menuOptionSelected)
|
|
|
|
|
|
|
|
if (menuOptionSelected == 1) then
|
2016-06-15 03:41:23 +01:00
|
|
|
player:EndEvent();
|
2016-06-12 19:06:03 -04:00
|
|
|
return;
|
|
|
|
elseif (menuOptionSelected == 2) then
|
|
|
|
player:quitGame();
|
|
|
|
elseif (menuOptionSelected == 3) then
|
|
|
|
player:logout();
|
|
|
|
elseif (menuOptionSelected == 4) then
|
2016-06-15 03:41:23 +01:00
|
|
|
player:SendMessage(33, "", "Heck the bed");
|
2016-06-12 19:06:03 -04:00
|
|
|
end
|
|
|
|
|
2016-06-15 03:41:23 +01:00
|
|
|
player:EndEvent();
|
2016-06-12 19:06:03 -04:00
|
|
|
|
|
|
|
end
|