mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +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
19
data/scripts/base/chara/npc/object/ObjectInnDoor.lua
Normal file
19
data/scripts/base/chara/npc/object/ObjectInnDoor.lua
Normal file
|
@ -0,0 +1,19 @@
|
|||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
defaultFst = getStaticActor("DftFst");
|
||||
player:runEventFunction("delegateEvent", player, defaultFst, "defaultTalkWithInn_ExitDoor", nil, nil, nil);
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, resultId, isExitYes)
|
||||
|
||||
if (isExitYes ~= nil and isExitYes == 1) then
|
||||
getWorldManager():DoZoneChange(player, 1);
|
||||
else
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue