mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-29 07:33:17 +02:00
Finished converting over all scripts.
This commit is contained in:
parent
8b44d90114
commit
3969fff64a
123 changed files with 240 additions and 576 deletions
|
@ -1,19 +1,8 @@
|
|||
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/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_4", nil, nil, nil);
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:EndEvent();
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_4", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,19 +1,8 @@
|
|||
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/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_5", nil, nil, nil);
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:EndEvent();
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_5", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,19 +1,8 @@
|
|||
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/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_6", nil, nil, nil);
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:EndEvent();
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_6", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,19 +1,8 @@
|
|||
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/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_7", nil, nil, nil);
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:EndEvent();
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_7", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,11 +1,7 @@
|
|||
require("/quests/man/man0l0")
|
||||
|
||||
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/man0l0")
|
||||
|
||||
function onSpawn(player, npc)
|
||||
|
||||
man0l0Quest = player:GetQuest("man0l0");
|
||||
|
||||
if (man0l0Quest ~= nil) then
|
||||
|
@ -18,25 +14,18 @@ function onSpawn(player, npc)
|
|||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0l0Quest = player:GetQuest("man0l0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3) == false) then
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processTtrMini003", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrMini003", nil, nil, nil);
|
||||
npc:SetQuestGraphic(player, 0x0);
|
||||
man0l0Quest:SetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3, true);
|
||||
man0l0Quest:SaveData();
|
||||
player:GetDirector():OnTalked(npc);
|
||||
else
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_8", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_8", nil, nil, nil);
|
||||
end
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,19 +1,8 @@
|
|||
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/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_9", nil, nil, nil);
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:EndEvent();
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_9", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,19 +1,8 @@
|
|||
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/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_10", nil, nil, nil);
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:EndEvent();
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_10", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,19 +1,8 @@
|
|||
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/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_11", nil, nil, nil);
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:EndEvent();
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_11", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,19 +1,8 @@
|
|||
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/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_12", nil, nil, nil);
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:EndEvent();
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_12", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,46 +1,32 @@
|
|||
require("/quests/man/man0l0")
|
||||
|
||||
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/man0l0")
|
||||
|
||||
function onSpawn(player, npc)
|
||||
|
||||
man0l0Quest = player:GetQuest("man0l0");
|
||||
|
||||
if (man0l0Quest ~= nil) then
|
||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2) == false) then
|
||||
npc:SetQuestGraphic(player, 0x2);
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0l0Quest = player:GetQuest("man0l0");
|
||||
|
||||
if (man0l0Quest ~= nil) then
|
||||
if (triggerName == "talkDefault") then
|
||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2) == false) then
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processTtrMini002", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrMini002", nil, nil, nil);
|
||||
npc:SetQuestGraphic(player, 0x0);
|
||||
man0l0Quest:SetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2, true);
|
||||
man0l0Quest:SaveData();
|
||||
|
||||
player:GetDirector():OnTalked(npc);
|
||||
else
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_13", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_13", nil, nil, nil);
|
||||
end
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,20 +1,8 @@
|
|||
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/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
--player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_9", nil, nil, nil);
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_14", nil, nil, nil);
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:EndEvent();
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_14", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,19 +1,10 @@
|
|||
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/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_15", nil, nil, nil);
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_15", nil, nil, nil, nil);
|
||||
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,19 +1,10 @@
|
|||
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/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_16", nil, nil, nil);
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_16", nil, nil, nil);
|
||||
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,19 +1,8 @@
|
|||
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/man0l0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_17", nil, nil, nil);
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:EndEvent();
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_17", nil, nil, nil);
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,8 +1,5 @@
|
|||
require("/quests/man/man0l0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceTutorial", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onSpawn(player, npc)
|
||||
|
||||
|
@ -21,18 +18,9 @@ function onSpawn(player, npc)
|
|||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
if (triggerName == "pushDefault") then
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEventNewRectAsk", nil);
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
man0l0Quest = GetStaticActor("Man0l0");
|
||||
choice = callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEventNewRectAsk", nil);
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc, resultId, choice)
|
||||
|
||||
if (resultId == 0x2B9EBC42) then
|
||||
player:EndEvent();
|
||||
player:SetDirector("QuestDirectorMan0l001", true);
|
||||
|
@ -46,10 +34,9 @@ function onEventUpdate(player, npc, resultId, choice)
|
|||
else
|
||||
if (choice == 1) then
|
||||
man0l0Quest = player:GetQuest("Man0l0");
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processEvent000_2", nil, nil, nil, nil);
|
||||
else
|
||||
player:EndEvent();
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processEvent000_2", nil, nil, nil, nil);
|
||||
end
|
||||
end
|
||||
|
||||
player:EndEvent();
|
||||
end
|
|
@ -1,11 +1,7 @@
|
|||
require("/quests/man/man0l0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceTutorial", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
require ("global")
|
||||
require ("quests/man/man0l0")
|
||||
|
||||
function onSpawn(player, npc)
|
||||
|
||||
man0l0Quest = player:GetQuest("Man0l0");
|
||||
|
||||
if (man0l0Quest ~= nil) then
|
||||
|
@ -17,22 +13,20 @@ function onSpawn(player, npc)
|
|||
player:SetEventStatus(npc, "pushDefault", false, 0x2);
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0l0Quest = player:GetQuest("Man0l0");
|
||||
|
||||
if (man0l0Quest ~= nil) then
|
||||
|
||||
if (triggerName == "pushDefault") then
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal002", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrNomal002", nil, nil, nil);
|
||||
elseif (triggerName == "talkDefault") then
|
||||
--Is doing talk tutorial?
|
||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_TUTORIAL3_DONE) == false) then
|
||||
player:SetEventStatus(npc, "pushDefault", false, 0x2);
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processTtrNomal003", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrNomal003", nil, nil, nil);
|
||||
man0l0Quest:SetQuestFlag(MAN0L0_FLAG_TUTORIAL3_DONE, true);
|
||||
npc:SetQuestGraphic(player, 0x2);
|
||||
man0l0Quest:SaveData();
|
||||
|
@ -40,7 +34,7 @@ function onEventStarted(player, npc, triggerName)
|
|||
player:GetDirector():OnTalked(npc);
|
||||
--Was he talked to for the mini tutorial?
|
||||
else
|
||||
player:RunEventFunction("delegateEvent", player, man0l0Quest, "processTtrMini001", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrMini001", nil, nil, nil);
|
||||
|
||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE1) == false) then
|
||||
npc:SetQuestGraphic(player, 0x0);
|
||||
|
@ -49,17 +43,9 @@ function onEventStarted(player, npc, triggerName)
|
|||
|
||||
player:GetDirector():OnTalked(npc);
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
else
|
||||
player:EndEvent(); --Should not be here w.o this quest
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
|
||||
player:EndEvent();
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue