2016-06-19 18:52:34 -04:00
|
|
|
require ("global")
|
2016-06-12 19:06:03 -04:00
|
|
|
|
|
|
|
function init(npc)
|
|
|
|
return false, false, 0, 0;
|
|
|
|
end
|
|
|
|
|
|
|
|
function onEventStarted(player, npc, triggerName)
|
|
|
|
|
2016-06-19 18:52:34 -04:00
|
|
|
choice = callClientFunction(player, "askLogout", player);
|
2016-06-12 19:06:03 -04:00
|
|
|
|
2016-06-19 18:52:34 -04:00
|
|
|
if (choice == 2) then
|
2016-06-16 03:01:10 +01:00
|
|
|
player:QuitGame();
|
2016-06-19 18:52:34 -04:00
|
|
|
elseif (choice == 3) then
|
2016-06-16 03:01:10 +01:00
|
|
|
player:Logout();
|
2016-06-19 18:52:34 -04:00
|
|
|
elseif (choice == 4) then
|
2016-06-15 03:41:23 +01:00
|
|
|
player:SendMessage(33, "", "Heck the bed");
|
2016-06-19 18:52:34 -04:00
|
|
|
end
|
2016-06-12 19:06:03 -04:00
|
|
|
|
2016-06-15 03:41:23 +01:00
|
|
|
player:EndEvent();
|
2016-06-19 18:52:34 -04:00
|
|
|
|
2016-06-12 19:06:03 -04:00
|
|
|
end
|