Added all the new scripts for the actor instancing system.

This commit is contained in:
Filip Maj 2016-06-12 19:06:03 -04:00
parent a4ea5f024b
commit 5723f77b1f
82 changed files with 566 additions and 0 deletions

View 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

View 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

View 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

View 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

View 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

View file

@ -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