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
3
data/scripts/base/chara/npc/mapobj/DoorStandard.lua
Normal file
3
data/scripts/base/chara/npc/mapobj/DoorStandard.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
function init(npc)
|
||||
return false, false, 0, 0, 0, 0;
|
||||
end
|
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
|
|
@ -0,0 +1,9 @@
|
|||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
end
|
|
@ -0,0 +1,38 @@
|
|||
--[[
|
||||
|
||||
PopulaceGuildlevePublisher Script
|
||||
|
||||
Functions:
|
||||
|
||||
eventTalkType(level (changes factionLeves), sayIntro, brokenBladePoints, shieldsPoints, hornhandPoints, showTutorialLeves, doOmen (!=0), menuId (to Jump), leveAllowances, ?, ?, ?)
|
||||
eventTalkPack(startGuildlevePack, endGuildlevePack)
|
||||
eventTalkCard(card1,card2,card3,card4,card5,card6,card7,card8)
|
||||
eventTalkDetail(guildLeveId, factionEvaluating, rewardType1, rewardQuantity1, rewardType2, rewardQuantity2, boostPoint, previouslyCompleted, completionBonus)
|
||||
eventTalkAfterOffer()
|
||||
eventHistoryleveExist(guildLeveId)
|
||||
eventHistoryleveCannot()
|
||||
eventGLChangeDetail(?, guildLeveId, boostPoint, rewardType1, rewardQuantity1, rewardType2, rewardQuantity2, factionEvaluating, previouslyCompleted)
|
||||
eventTalkChangeOne(skipQuestion)
|
||||
talkOfferMaxOver()
|
||||
askRetryRegionalleve(guildLeveId, leveAllowances);
|
||||
|
||||
Menu Ids:
|
||||
|
||||
--]]
|
||||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
player:runEventFunction("eventTalkType", 0x30, true, 0x02CE, 0x356, 0x367, true, 0, nil, 0x29, 0,0,0);
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, step, menuOptionSelected)
|
||||
--player:runEventFunction("eventTalkType", 0x32, true, 0x02CE, 0x356, 0x367, false, 2, nil, 0x29, 0,0,0);
|
||||
player:runEventFunction("eventTalkPack", 201, 207);
|
||||
--player:runEventFunction("eventTalkCard", 0x30C3, 0x30C4, 0x30C1, 0x30C5, 0x30C6, 0x30C7, 0x30C8, 0x30C9);
|
||||
--player:runEventFunction("eventTalkDetail", 0x30C4, 2, 0xF4242, 0xD, 0xF4242, 0, 0xFF, true, 11);
|
||||
--player:runEventFunction("eventGLChangeDetail", 0xDEAD, 0x30C4, 0xFF, 0xF4242, 0xD, 0xF4242, 0, 2, true);
|
||||
player:endEvent();
|
||||
end
|
|
@ -0,0 +1,28 @@
|
|||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
isNew = false;
|
||||
player:runEventFunction("eventTalkStep1", isNew);
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest)
|
||||
|
||||
if (menuOptionSelected == nil) then
|
||||
player:endEvent();
|
||||
return;
|
||||
end
|
||||
|
||||
isNew = false;
|
||||
if (menuOptionSelected == 1) then
|
||||
player:runEventFunction("eventTalkStep2", isNew);
|
||||
elseif (menuOptionSelected == 10) then
|
||||
player:endEvent();
|
||||
return;
|
||||
elseif (menuOptionSelected == 3) then
|
||||
--createLinkshell
|
||||
player:runEventFunction("eventTalkStepMakeupDone", isNew);
|
||||
end
|
||||
|
||||
end
|
|
@ -0,0 +1,37 @@
|
|||
--[[
|
||||
|
||||
PopulacePassiveGLPublisher Script
|
||||
|
||||
Functions:
|
||||
|
||||
askOfferPack() - Show Classes
|
||||
askOfferRank() - Show Ranks
|
||||
askOfferQuest(player)
|
||||
confirmOffer(nil, questId)
|
||||
confirmMaxOffer()
|
||||
talkOfferWelcome(actor, leveAllowances)
|
||||
talkOfferDecide()
|
||||
talkOfferMaxOver()
|
||||
selectDiscardGuildleve(player)
|
||||
confirmJournal()
|
||||
askDiscardGuildleve()
|
||||
confirmDiscardGuildleve(nil, questId)
|
||||
askRetryRegionalleve(questId, leveAllowances)
|
||||
finishTalkTurn()
|
||||
|
||||
Menu Ids:
|
||||
|
||||
--]]
|
||||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
player:runEventFunction("talkOfferWelcome", player, 1);
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest)
|
||||
--player:runEventFunction("askOfferQuest", player, 1000);
|
||||
player:endEvent();
|
||||
end
|
|
@ -0,0 +1,9 @@
|
|||
|
||||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
player:sendMessage(0x20, "", "This PopulaceStandard actor has no event set.")
|
||||
player:endEvent();
|
||||
end
|
|
@ -0,0 +1,13 @@
|
|||
function init(npc)
|
||||
return false, false, 0, 0;
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc)
|
||||
player:runEventFunction("welcomeTalk");
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest)
|
||||
|
||||
player:endEvent();
|
||||
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue