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,9 @@
function init(npc)
return false, false, 0, 0;
end
function onEventStarted(player, npc, triggerName)
end
function onEventUpdate(player, npc)
end

View file

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

View file

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

View file

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

View file

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

View file

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