Added scripts for the inn keepers. Added default event conditions to almost all actors. Updated sql for actorClass, spawnLocations, and new zoneEntrances.

This commit is contained in:
Filip Maj 2016-06-12 21:30:47 -04:00
parent 5723f77b1f
commit 65389e3362
106 changed files with 776 additions and 750 deletions

View File

@ -3,7 +3,9 @@ function init(npc)
end end
function onEventStarted(player, npc) function onEventStarted(player, npc)
player:runEventFunction("welcomeTalk"); player:sendMessage(0x20, "", "This PopulaceShopSalesman actor has no event set.")
player:endEvent();
--player:runEventFunction("welcomeTalk");
end end
function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest) function onEventUpdate(player, npc, step, menuOptionSelected, lsName, lsCrest)

View File

@ -0,0 +1,19 @@
--[[
PartyInviteCommand Script
Handles what happens when you invite
--]]
function onEventStarted(player, actor, triggerName, name, arg1, arg2, arg3, actorId)
if (name ~= nil) then
getWorldManager():CreateInvitePartyGroup(player, name);
elseif (actorId ~= nil) then
getWorldManager():CreateInvitePartyGroup(player, actorId);
end
player:endCommand();
end

View File

@ -3,12 +3,12 @@ function onEventStarted(player, actor, triggerName)
man0u0Quest = getStaticActor("Man0u0"); man0u0Quest = getStaticActor("Man0u0");
man0l0Quest = getStaticActor("Man0l0"); man0l0Quest = getStaticActor("Man0l0");
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl001"); player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl001");
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtlMagic001"); --player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtlMagic001");
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl002"); --player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl002");
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl003"); --player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl003");
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrBtl004"); --player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrBtl004");
end end

View File

@ -18,11 +18,11 @@ function onBeginLogin(player)
--For Opening. Set Director and reset position incase d/c --For Opening. Set Director and reset position incase d/c
if (player:hasQuest(110001) == true) then if (player:hasQuest(110001) == true) then
player:setDirector("openingDirector", false); --player:setDirector("openingDirector", false);
player.positionX = 0.016; player.positionX = 0.016;
player.positionY = 10.35; player.positionY = 10.35;
player.positionZ = -36.91; --player.positionZ = -36.91;
--player.positionZ = -20.91; player.positionZ = -20.91;
player.rotation = 0.025; player.rotation = 0.025;
player:getQuest(110001):ClearQuestData(); player:getQuest(110001):ClearQuestData();
player:getQuest(110001):ClearQuestFlags(); player:getQuest(110001):ClearQuestFlags();

View File

@ -0,0 +1,15 @@
function onEventStarted(player, npc)
defaultFst = getStaticActor("DftFst");
player:runEventFunction("delegateEvent", player, defaultFst, "defaultTalkWithInn_Desk", nil, nil, nil);
end
function onEventUpdate(player, npc, blah, menuSelect)
if (menuSelect == 1) then
getWorldManager():DoZoneChange(player, 13);
end
player:endEvent();
end

View File

@ -0,0 +1,3 @@
function init(npc)
return false, false, 0, 0, 0x141, 0xB85;
end

View File

@ -0,0 +1,15 @@
function onEventStarted(player, npc)
defaultSea = getStaticActor("DftSea");
player:runEventFunction("delegateEvent", player, defaultSea, "defaultTalkWithInn_Desk", nil, nil, nil);
end
function onEventUpdate(player, npc, blah, menuSelect)
if (menuSelect == 1) then
getWorldManager():DoZoneChange(player, 12);
end
player:endEvent();
end

View File

@ -0,0 +1,15 @@
function onEventStarted(player, npc)
defaultWil = getStaticActor("DftWil");
player:runEventFunction("delegateEvent", player, defaultWil, "defaultTalkWithInn_Desk_2", nil, nil, nil); --BTN
end
function onEventUpdate(player, npc, blah, menuSelect)
if (menuSelect == 1) then
getWorldManager():DoZoneChange(player, 11);
end
player:endEvent();
end

View File

@ -1,9 +0,0 @@
function init(npc)
return "/Chara/Npc/Object/ObjectInnDoor", false, false, false, false, false, 0x1250F8, false, false, 0, 1, "TEST";
end
function onEventStarted(player, npc, triggerName)
end
function onEventUpdate(player, npc)
end

View File

@ -0,0 +1,18 @@
function init(npc)
return "/Chara/Npc/Object/ObjectInnDoor", false, false, false, false, false, npc.getActorClassId(), false, false, 0, 1, "TEST";
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

Some files were not shown because too many files have changed in this diff Show More