All the script changes done to get the openings working.

This commit is contained in:
Filip Maj 2016-04-18 13:33:31 -04:00
parent 3d5fa45730
commit 53064a7345
50 changed files with 764 additions and 87 deletions

View file

@ -1,13 +0,0 @@
function onEventStarted(player, actor, triggerName)
man0l0Quest = getStaticActor("Man0l0");
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal001withHQ", nil, nil, nil, nil);
player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_1", nil, nil, nil, nil);
end
function onEventUpdate(player, npc ,triggerName)
player:endEvent();
end

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,31 @@
require("/quests/man/man0l0")
function onEventStarted(player, actor, triggerName)
man0l0Quest = getStaticActor("Man0l0");
player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal001withHQ", nil, nil, nil, nil);
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_1", nil, nil, nil, nil);
end
function onEventUpdate(player, npc, resultId)
player:endEvent();
end
function onTalked(player, npc)
man0l0Quest = player:getQuest("Man0l0");
if (man0l0Quest ~= nil) then
if (man0l0Quest ~= nil and man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE1) == true and man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2) == true and man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3) == true) then
doorNpc = getWorldManager():GetActorInWorld(1090025);
player:setEventStatus(doorNpc, "pushDefault", true, 0x2);
doorNpc:setQuestGraphic(player, 0x3);
end
end
end

View file

@ -1,13 +0,0 @@
function onEventStarted(player, actor, triggerName)
man0l0Quest = getStaticActor("Man0l0");
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_1", nil, nil, nil, nil);
end
function onEventUpdate(player, npc)
--man0l0Quest = getStaticActor("Man0l0");
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_3", nil, nil, nil, nil);
--player:endEvent();
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

@ -0,0 +1,25 @@
function onEventStarted(player, actor, triggerName)
man0u0Quest = getStaticActor("Man0u0");
man0l0Quest = getStaticActor("Man0l0");
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl001");
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtlMagic001");
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl002");
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl003");
player:runEventFunction("delegateEvent", player, man0u0Quest, "processTtrBtl004");
end
function onEventUpdate(player, npc, resultId)
--man0l0Quest = getStaticActor("Man0l0");
--player:runEventFunction("delegateEvent", player, man0l0Quest, "processTtrBtl002");
player:endEvent();
end
function onCommand(player, command)
--Check command if ActivateCommand
--player:kickEvent(player:getDirector(), "noticeEvent");
--player:endCommand();
end