Finished converting over all scripts.

This commit is contained in:
Filip Maj 2016-06-21 17:48:50 -04:00
parent 8b44d90114
commit 3969fff64a
123 changed files with 240 additions and 576 deletions

View file

@ -1,21 +1,8 @@
require("/quests/man/man0u0")
function init(npc)
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
end
require ("global")
require ("quests/man/man0u0")
function onEventStarted(player, npc, triggerName)
man0u0Quest = GetStaticActor("Man0u0");
if (triggerName == "talkDefault") then
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_6", nil, nil, nil);
else
player:EndEvent();
end
end
function onEventUpdate(player, npc)
callClientFunction(player, "delegateEvent", player, man0u0Quest, "defaultTalkWithLady001_001", nil, nil, nil);
player:EndEvent();
end

View file

@ -1,33 +1,18 @@
require("/quests/man/man0u0")
function init(npc)
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
end
function onSpawn(player, npc)
npc:SetQuestGraphic(player, 0x2);
end
require ("global")
require ("quests/man/man0u0")
function onEventStarted(player, npc, triggerName)
man0u0Quest = player:GetQuest("man0u0");
if (triggerName == "talkDefault") then
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2) == false) then
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini002_first", nil, nil, nil);
npc:SetQuestGraphic(player, 0x0);
man0u0Quest:SetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2, true);
man0u0Quest:SaveData();
player:GetDirector():OnTalked(npc);
else
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini002", nil, nil, nil);
end
else
player:EndEvent();
end
man0u0Quest = GetStaticActor("Man0u0");
end
function onEventUpdate(player, npc)
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2) == false) then
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processTtrMini002_first", nil, nil, nil);
npc:SetQuestGraphic(player, 0x0);
man0u0Quest:SetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2, true);
man0u0Quest:SaveData();
player:GetDirector():OnTalked(npc);
else
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processTtrMini002", nil, nil, nil);
end
player:EndEvent();
end

View file

@ -1,21 +1,8 @@
require("/quests/man/man0u0")
function init(npc)
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
end
require ("global")
require ("quests/man/man0u0")
function onEventStarted(player, npc, triggerName)
man0u0Quest = GetStaticActor("Man0u0");
if (triggerName == "talkDefault") then
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_8", nil, nil, nil);
else
player:EndEvent();
end
end
function onEventUpdate(player, npc)
man0u0Quest = GetStaticActor("Man0u0");
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEvent000_8", nil, nil, nil);
player:EndEvent();
end
end

View file

@ -1,21 +1,8 @@
require("/quests/man/man0u0")
function init(npc)
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
end
require ("global")
require ("quests/man/man0u0")
function onEventStarted(player, npc, triggerName)
man0u0Quest = GetStaticActor("Man0u0");
if (triggerName == "talkDefault") then
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_9", nil, nil, nil);
else
player:EndEvent();
end
end
function onEventUpdate(player, npc)
man0u0Quest = GetStaticActor("Man0u0");
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEvent000_9", nil, nil, nil);
player:EndEvent();
end

View file

@ -1,21 +1,8 @@
require("/quests/man/man0u0")
function init(npc)
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
end
require ("global")
require ("quests/man/man0u0")
function onEventStarted(player, npc, triggerName)
man0u0Quest = GetStaticActor("Man0u0");
if (triggerName == "talkDefault") then
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_10", nil, nil, nil);
else
player:EndEvent();
end
end
function onEventUpdate(player, npc)
man0u0Quest = GetStaticActor("Man0u0");
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEvent000_10", nil, nil, nil);
player:EndEvent();
end

View file

@ -1,33 +1,18 @@
require("/quests/man/man0u0")
function init(npc)
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
end
function onSpawn(player, npc)
npc:SetQuestGraphic(player, 0x2);
end
require ("global")
require ("quests/man/man0u0")
function onEventStarted(player, npc, triggerName)
man0u0Quest = player:GetQuest("man0u0");
if (triggerName == "talkDefault") then
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE3) == false) then
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini003_first", nil, nil, nil);
man0u0Quest = GetStaticActor("Man0u0");
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE3) == false) then
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processTtrMini003_first", nil, nil, nil);
npc:SetQuestGraphic(player, 0x0);
man0u0Quest:SetQuestFlag(MAN0U0_FLAG_MINITUT_DONE3, true);
man0u0Quest:SaveData();
player:GetDirector():OnTalked(npc);
else
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini003", nil, nil, nil);
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processTtrMini003", nil, nil, nil);
end
else
player:EndEvent();
end
end
function onEventUpdate(player, npc)
player:EndEvent();
end

View file

@ -1,21 +1,8 @@
require("/quests/man/man0u0")
function init(npc)
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
end
require ("global")
require ("quests/man/man0u0")
function onEventStarted(player, npc, triggerName)
man0u0Quest = GetStaticActor("Man0u0");
if (triggerName == "talkDefault") then
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_12", nil, nil, nil);
else
player:EndEvent();
end
end
function onEventUpdate(player, npc)
man0u0Quest = GetStaticActor("Man0u0");
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEvent000_12", nil, nil, nil);
player:EndEvent();
end

View file

@ -1,21 +1,8 @@
require("/quests/man/man0u0")
function init(npc)
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
end
require ("global")
require ("quests/man/man0u0")
function onEventStarted(player, npc, triggerName)
man0u0Quest = GetStaticActor("Man0u0");
if (triggerName == "talkDefault") then
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processEvent000_13", nil, nil, nil);
else
player:EndEvent();
end
end
function onEventUpdate(player, npc)
man0u0Quest = GetStaticActor("Man0u0");
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processEvent000_13", nil, nil, nil);
player:EndEvent();
end

View file

@ -1,16 +1,8 @@
require("/quests/man/man0u0")
function init(npc)
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
end
require ("global")
require ("quests/man/man0u0")
function onEventStarted(player, npc, triggerName)
man0u0Quest = GetStaticActor("Man0u0");
end
function onEventUpdate(player, npc)
player:EndEvent();
end

View file

@ -1,29 +1,25 @@
require("/quests/man/man0u0")
function init(npc)
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
end
require ("global")
require ("quests/man/man0u0")
function onSpawn(player, npc)
npc:SetQuestGraphic(player, 0x2);
end
function onEventStarted(player, npc, triggerName)
man0u0Quest = player:GetQuest("Man0u0");
if (man0u0Quest ~= nil) then
man0u0Quest = GetStaticActor("Man0u0");
if (man0u0Quest ~= nil) then
if (triggerName == "pushDefault") then
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrNomal002", nil, nil, nil);
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processTtrNomal002", nil, nil, nil);
elseif (triggerName == "talkDefault") then
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_TUTORIAL1_DONE) == false) then
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrNomal003", nil, nil, nil);
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processTtrNomal003", nil, nil, nil);
player:SetEventStatus(npc, "pushDefault", false, 0x2);
player:GetDirector():OnTalked(npc);
man0u0Quest:SetQuestFlag(MAN0U0_FLAG_TUTORIAL1_DONE, true);
man0u0Quest:SaveData();
else
player:RunEventFunction("delegateEvent", player, man0u0Quest, "processTtrMini001", nil, nil, nil);
callClientFunction(player, "delegateEvent", player, man0u0Quest, "processTtrMini001", nil, nil, nil);
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE1) == false) then
npc:SetQuestGraphic(player, 0x0);
@ -35,14 +31,7 @@ function onEventStarted(player, npc, triggerName)
else
player:EndEvent();
end
else
player:EndEvent(); --Should not be here w.o this quest
end
end
function onEventUpdate(player, npc)
player:EndEvent();
end
player:EndEvent();
end

View file

@ -1,16 +1,6 @@
require("/quests/man/man0u0")
function init(npc)
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
end
require ("global")
require ("quests/man/man0u0")
function onEventStarted(player, npc, triggerName)
end
function onEventUpdate(player, npc)
player:EndEvent();
end