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
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
|
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
|
10
data/scripts/base/chara/npc/object/ObjectItemStorage.lua
Normal file
10
data/scripts/base/chara/npc/object/ObjectItemStorage.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
end
|
13
data/scripts/base/chara/npc/object/OpeningStoperF0B1.lua
Normal file
13
data/scripts/base/chara/npc/object/OpeningStoperF0B1.lua
Normal file
|
@ -0,0 +1,13 @@
|
|||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
if (triggerName == "caution") then
|
||||
worldMaster = getWorldMaster();
|
||||
player:sendGameMessage(player, worldMaster, 34109, 0x20);
|
||||
elseif (triggerName == "exit") then
|
||||
getWorldManager():DoPlayerMoveInZone(player, 5);
|
||||
end
|
||||
player:endEvent();
|
||||
end
|
11
data/scripts/base/chara/npc/object/TaskBoard.lua
Normal file
11
data/scripts/base/chara/npc/object/TaskBoard.lua
Normal file
|
@ -0,0 +1,11 @@
|
|||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
player:endEvent();
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, resultId)
|
||||
player:endEvent();
|
||||
end
|
|
@ -0,0 +1,34 @@
|
|||
--[[
|
||||
|
||||
AetheryteParent Script
|
||||
|
||||
Functions:
|
||||
|
||||
eventAetheryteParentSelect(0x0, false, 0x60, 0x138807,0,0,0,0)
|
||||
eventAetheryteParentDesion(
|
||||
showAetheryteTips(
|
||||
eventGLSelect(0)
|
||||
eventSelectGLDetail(0x2a48, a, f4241, 136, 98b1d9, 1, 1, true, false)
|
||||
eventGLDifficulty(0x2a48)
|
||||
eventGLStart(0x2a48, 2, c8, 0, 0, 0, 0)
|
||||
eventGLBoost()
|
||||
eventGLPlay
|
||||
eventGLReward()
|
||||
|
||||
|
||||
Menu Ids:
|
||||
|
||||
--]]
|
||||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
player:runEventFunction("eventAetheryteParentSelect", 0x0, false, 0x61, 0x0,0,0,0,0);
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest)
|
||||
--player:runEventFunction("askOfferQuest", player, 1000);
|
||||
player:endEvent();
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue