mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-23 21:27:46 +00:00
Fixed a bunch of bugged scripts and cleaned up the quest flags.
This commit is contained in:
parent
4f339709d5
commit
1bf25b2a2b
7 changed files with 16 additions and 15 deletions
|
@ -31,6 +31,7 @@ function onTalkEvent(player, npc)
|
||||||
;
|
;
|
||||||
if (player:HasQuest(110001) == true) then
|
if (player:HasQuest(110001) == true) then
|
||||||
man0l0Quest = player:GetQuest("man0l0");
|
man0l0Quest = player:GetQuest("man0l0");
|
||||||
|
|
||||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE1) == true and man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2) == true and man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3) == true) then
|
if (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():GetActorInWorldByUniqueId("exit_door");
|
doorNpc = GetWorldManager():GetActorInWorldByUniqueId("exit_door");
|
||||||
player:SetEventStatus(doorNpc, "pushDefault", true, 0x2);
|
player:SetEventStatus(doorNpc, "pushDefault", true, 0x2);
|
||||||
|
@ -50,7 +51,7 @@ function onTalkEvent(player, npc)
|
||||||
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE1) == true and man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2) == true and man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE3) == true) then
|
if (man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE1) == true and man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE2) == true and man0u0Quest:GetQuestFlag(MAN0U0_FLAG_MINITUT_DONE3) == true) then
|
||||||
exitTriggerNpc = GetWorldManager():GetActorInWorldByUniqueId("exit_trigger");
|
exitTriggerNpc = GetWorldManager():GetActorInWorldByUniqueId("exit_trigger");
|
||||||
player:SetEventStatus(exitTriggerNpc, "pushDefault", true, 0x2);
|
player:SetEventStatus(exitTriggerNpc, "pushDefault", true, 0x2);
|
||||||
exitTriggerNpc:SetQuestGraphic(player, 0x3);
|
exitTriggerNpc:SetQuestGraphic(player, 0x2);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
|
|
||||||
--Quest Flags
|
--Quest Flags
|
||||||
MAN0L0_FLAG_TUTORIAL1_DONE = 0;
|
MAN0L0_FLAG_STARTED_TALK_TUT = 0;
|
||||||
MAN0L0_FLAG_TUTORIAL2_DONE = 1;
|
|
||||||
MAN0L0_FLAG_TUTORIAL3_DONE = 2;
|
|
||||||
|
|
||||||
MAN0L0_FLAG_MINITUT_DONE1 = 4;
|
MAN0L0_FLAG_MINITUT_DONE1 = 4;
|
||||||
MAN0L0_FLAG_MINITUT_DONE2 = 8;
|
MAN0L0_FLAG_MINITUT_DONE2 = 8;
|
||||||
|
|
|
@ -5,10 +5,10 @@ function onSpawn(player, npc)
|
||||||
man0l0Quest = player:GetQuest("man0l0");
|
man0l0Quest = player:GetQuest("man0l0");
|
||||||
|
|
||||||
if (man0l0Quest ~= nil) then
|
if (man0l0Quest ~= nil) then
|
||||||
if (man0l0Quest ~= nil) then
|
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3) == false) then
|
||||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE3) == false) then
|
npc:SetQuestGraphic(player, 0x2);
|
||||||
npc:SetQuestGraphic(player, 0x2);
|
else
|
||||||
end
|
npc:SetQuestGraphic(player, 0x0);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -10,8 +10,8 @@ function onSpawn(player, npc)
|
||||||
player:SetEventStatus(npc, "pushDefault", true, 0x2);
|
player:SetEventStatus(npc, "pushDefault", true, 0x2);
|
||||||
npc:SetQuestGraphic(player, 0x3);
|
npc:SetQuestGraphic(player, 0x3);
|
||||||
else
|
else
|
||||||
player:SetEventStatus(npc, "pushDefault", true, 0x2);
|
player:SetEventStatus(npc, "pushDefault", false, 0x2);
|
||||||
npc:SetQuestGraphic(player, 0x3);
|
npc:SetQuestGraphic(player, 0x0);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -9,7 +9,7 @@ function onSpawn(player, npc)
|
||||||
npc:SetQuestGraphic(player, 0x2);
|
npc:SetQuestGraphic(player, 0x2);
|
||||||
end
|
end
|
||||||
|
|
||||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_TUTORIAL3_DONE) == true) then
|
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_STARTED_TALK_TUT) == true) then
|
||||||
player:SetEventStatus(npc, "pushDefault", false, 0x2);
|
player:SetEventStatus(npc, "pushDefault", false, 0x2);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -24,10 +24,10 @@ function onEventStarted(player, npc, triggerName)
|
||||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrNomal002", nil, nil, nil);
|
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrNomal002", nil, nil, nil);
|
||||||
elseif (triggerName == "talkDefault") then
|
elseif (triggerName == "talkDefault") then
|
||||||
--Is doing talk tutorial?
|
--Is doing talk tutorial?
|
||||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_TUTORIAL3_DONE) == false) then
|
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_STARTED_TALK_TUT) == false) then
|
||||||
player:SetEventStatus(npc, "pushDefault", false, 0x2);
|
player:SetEventStatus(npc, "pushDefault", false, 0x2);
|
||||||
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrNomal003", nil, nil, nil);
|
callClientFunction(player, "delegateEvent", player, man0l0Quest, "processTtrNomal003", nil, nil, nil);
|
||||||
man0l0Quest:SetQuestFlag(MAN0L0_FLAG_TUTORIAL3_DONE, true);
|
man0l0Quest:SetQuestFlag(MAN0L0_FLAG_STARTED_TALK_TUT, true);
|
||||||
npc:SetQuestGraphic(player, 0x2);
|
npc:SetQuestGraphic(player, 0x2);
|
||||||
man0l0Quest:SaveData();
|
man0l0Quest:SaveData();
|
||||||
|
|
||||||
|
|
|
@ -7,6 +7,8 @@ function onSpawn(player, npc)
|
||||||
if (man0l0Quest ~= nil) then
|
if (man0l0Quest ~= nil) then
|
||||||
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2) == false) then
|
if (man0l0Quest:GetQuestFlag(MAN0L0_FLAG_MINITUT_DONE2) == false) then
|
||||||
npc:SetQuestGraphic(player, 0x2);
|
npc:SetQuestGraphic(player, 0x2);
|
||||||
|
else
|
||||||
|
npc:SetQuestGraphic(player, 0x0);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -4,7 +4,7 @@ function onSpawn(player, npc)
|
||||||
man0l1Quest = player:GetQuest("Man0l1");
|
man0l1Quest = player:GetQuest("Man0l1");
|
||||||
|
|
||||||
if (man0l1Quest ~= nil) then
|
if (man0l1Quest ~= nil) then
|
||||||
npc:SetQuestGraphic(player, 0x3);
|
npc:SetQuestGraphic(player, 0x2);
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue