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

@@ -0,0 +1,37 @@
require("/quests/man/man0g0")
function onEventStarted(player, actor, triggerName)
man0g0Quest = getStaticActor("Man0g0");
player:runEventFunction("delegateEvent", player, man0g0Quest, "processTtrNomal001withHQ", nil, nil, nil, nil);
end
function onEventUpdate(player, npc, resultId)
player:endEvent();
end
function onTalked(player, npc)
man0g0Quest = player:getQuest("Man0g0");
if (man0g0Quest ~= nil) then
yda = getWorldManager():GetActorInWorld(1000009);
papalymo = getWorldManager():GetActorInWorld(1000010);
if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_TUTORIAL1_DONE) == false) then
yda:setQuestGraphic(player, 0x0);
papalymo:setQuestGraphic(player, 0x2);
else
if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_MINITUT_DONE1) == true) then
yda:setQuestGraphic(player, 0x2);
papalymo:setQuestGraphic(player, 0x0);
end
end
end
end