mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-22 12:47:46 +00:00
24 lines
No EOL
610 B
Lua
24 lines
No EOL
610 B
Lua
function onInstantiate(npc)
|
|
return "/Chara/Npc/Object/ObjectBed", false, false, false, false, false, 0x1250FB, false, false, 0, 1, "TEST";
|
|
end
|
|
|
|
function onEventStarted(player, npc)
|
|
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 |