mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 22:14:39 +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,6 +1,5 @@
|
|||
function init(npc)
|
||||
return "/Chara/Npc/Object/OpeningStoperF0B1", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
require ("global")
|
||||
require ("quests/man/man0g0")
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
if (triggerName == "caution") then
|
||||
|
|
|
@ -1,24 +1,20 @@
|
|||
require("/quests/man/man0g0")
|
||||
|
||||
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/man0g0")
|
||||
|
||||
function onSpawn(player, npc)
|
||||
npc:SetQuestGraphic(player, 0x2);
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
man0g0Quest = player:GetQuest("Man0g0");
|
||||
|
||||
if (man0g0Quest ~= nil) then
|
||||
|
||||
if (triggerName == "pushDefault") then
|
||||
player:RunEventFunction("delegateEvent", player, man0g0Quest, "processTtrNomal002", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, man0g0Quest, "processTtrNomal002", nil, nil, nil);
|
||||
elseif (triggerName == "talkDefault") then
|
||||
if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_TUTORIAL1_DONE) == false) then
|
||||
player:RunEventFunction("delegateEvent", player, man0g0Quest, "processTtrNomal003", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, man0g0Quest, "processTtrNomal003", nil, nil, nil);
|
||||
player:SetEventStatus(npc, "pushDefault", false, 0x2);
|
||||
player:GetDirector():OnTalked(npc);
|
||||
man0g0Quest:SetQuestFlag(MAN0G0_FLAG_TUTORIAL1_DONE, true);
|
||||
|
@ -26,18 +22,15 @@ function onEventStarted(player, npc, triggerName)
|
|||
else
|
||||
if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_MINITUT_DONE1) == true) then
|
||||
man0g0Quest:SetQuestFlag(MAN0G0_FLAG_TUTORIAL2_DONE, true);
|
||||
player:RunEventFunction("delegateEvent", player, man0g0Quest, "processEvent010_1", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, man0g0Quest, "processEvent010_1", nil, nil, nil);
|
||||
else
|
||||
player:RunEventFunction("delegateEvent", player, man0g0Quest, "processEvent000_1", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, man0g0Quest, "processEvent000_1", nil, nil, nil);
|
||||
end
|
||||
end
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
else
|
||||
player:EndEvent(); --Should not be here w.o this quest
|
||||
end
|
||||
end
|
||||
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
|
|
|
@ -1,28 +1,18 @@
|
|||
require("/quests/man/man0g0")
|
||||
require ("global")
|
||||
require ("quests/man/man0g0")
|
||||
|
||||
function init(npc)
|
||||
return "/Chara/Npc/Populace/PopulaceStandard", false, false, false, false, false, npc:GetActorClassId(), false, false, 0, 1, "TEST";
|
||||
end
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
|
||||
function onEventStarted(player, npc, triggerName)
|
||||
man0g0Quest = player:GetQuest("Man0g0");
|
||||
|
||||
if (triggerName == "talkDefault") then
|
||||
if (man0g0Quest:GetQuestFlag(MAN0G0_FLAG_MINITUT_DONE1) == false) then
|
||||
player:RunEventFunction("delegateEvent", player, man0g0Quest, "processEvent000_2", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, man0g0Quest, "processEvent000_2", nil, nil, nil);
|
||||
man0g0Quest:SetQuestFlag(MAN0G0_FLAG_MINITUT_DONE1, true);
|
||||
man0g0Quest:SaveData();
|
||||
player:GetDirector():OnTalked(npc);
|
||||
else
|
||||
player:RunEventFunction("delegateEvent", player, man0g0Quest, "processEvent000_2", nil, nil, nil);
|
||||
callClientFunction(player, "delegateEvent", player, man0g0Quest, "processEvent000_2", nil, nil, nil);
|
||||
end
|
||||
else
|
||||
player:EndEvent();
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
function onEventUpdate(player, npc)
|
||||
player:EndEvent();
|
||||
end
|
||||
player:EndEvent();
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue