mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-08 21:44:35 +02:00
Added all the new scripts for the actor instancing system.
This commit is contained in:
parent
a4ea5f024b
commit
5723f77b1f
82 changed files with 566 additions and 0 deletions
25
data/scripts/base/chara/npc/object/ObjectBed.lua
Normal file
25
data/scripts/base/chara/npc/object/ObjectBed.lua
Normal file
|
@ -0,0 +1,25 @@
|
|||
|
||||
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
|
Loading…
Add table
Add a link
Reference in a new issue