Added more quest functions and completed the scripts for Gridania and most of Ul'dah. Up to the battle part that is.

This commit is contained in:
Filip Maj 2016-04-17 19:09:01 -04:00
parent 95849e1c1c
commit 79eaf5d79e
36 changed files with 733 additions and 28 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

View file

@ -0,0 +1,26 @@
require("/quests/man/man0u0")
function onEventStarted(player, actor, triggerName)
man0u0Quest = getStaticActor("Man0u0");
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrNomal001withHQ", nil, nil, nil, nil);
end
function onEventUpdate(player, npc, resultId)
player:endEvent();
end
function onTalked(player, npc)
man0u0Quest = player:getQuest("Man0u0");
if (man0u0Quest ~= nil) then
end
end

View file

@ -0,0 +1,21 @@
function onEventStarted(player, actor, triggerName)
man0g0Quest = getStaticActor("Man0g0");
--player:runEventFunction("delegateEvent", player, man0g0Quest, "processTtrBtl001");
player:runEventFunction("delegateEvent", player, man0g0Quest, "processTtrBtl002");
end
function onEventUpdate(player, npc, resultId)
--man0g0Quest = getStaticActor("Man0g0");
--player:runEventFunction("delegateEvent", player, man0g0Quest, "processTtrBtl002");
player:endEvent();
end
function onCommand(player, command)
--Check command if ActivateCommand
player:endCommand();
player:endEvent();
player:kickEvent(player:getDirector(), "noticeEvent", true);
end

View file

@ -2,8 +2,8 @@
function onEventStarted(player, actor, triggerName)
man0l0Quest = getStaticActor("Man0l0");
player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl004");
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl002");
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl001");
player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl002");
end
@ -15,5 +15,7 @@ end
function onCommand(player, command)
--Check command if ActivateCommand
player:endCommand();
player:endEvent();
player:kickEvent(player:getDirector(), "noticeEvent", true);
end