mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 22:14:39 +02:00
Updated Map Server namespace. Moved all other data folders (www and sql) to data folder. Renamed boot name to Project Meteor.
This commit is contained in:
parent
18ef69f3d1
commit
91549bff7a
1823 changed files with 102704 additions and 901 deletions
61
Data/scripts/quests/etc/etc3g0.lua
Normal file
61
Data/scripts/quests/etc/etc3g0.lua
Normal file
|
@ -0,0 +1,61 @@
|
|||
-- Level requirement is 5 on any class. Set to 1 for testing
|
||||
-- TODO: Reward handling
|
||||
|
||||
--Actor Scripts
|
||||
--unique/fst0Town01a/PopulaceStandard/kinnison
|
||||
--unique/fst0Town01a/PopulaceStandard/mestonnaux
|
||||
--unique/fst0Town01a/PopulaceStandard/sybell
|
||||
--unique/fst0Town01a/PopulaceStandard/khuma_moshroca
|
||||
--unique/fst0Town01a/PopulaceStandard/lefwyne
|
||||
--unique/fst0Town01a/PopulaceStandard/nellaure
|
||||
|
||||
|
||||
--Quest Flags
|
||||
FLAG_TALKED_MESTONNAUX = 0;
|
||||
FLAG_TALKED_SYBELL = 1;
|
||||
FLAG_TALKED_NELLAURE = 2;
|
||||
FLAG_TALKED_KHUMA_MOSHROCA = 4;
|
||||
FLAG_TALKED_LEFWYNE = 8;
|
||||
|
||||
function checkNextPhase(player)
|
||||
ownedQuest = player:GetQuest("Etc3g0");
|
||||
if (
|
||||
ownedQuest:GetQuestFlag(FLAG_TALKED_MESTONNAUX) == true and
|
||||
ownedQuest:GetQuestFlag(FLAG_TALKED_SYBELL) == true and
|
||||
ownedQuest:GetQuestFlag(FLAG_TALKED_NELLAURE) == true and
|
||||
ownedQuest:GetQuestFlag(FLAG_TALKED_KHUMA_MOSHROCA) == true and
|
||||
ownedQuest:GetQuestFlag(FLAG_TALKED_LEFWYNE) == true
|
||||
) then
|
||||
ownedQuest:NextPhase(243);
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
function canAcceptQuest(player)
|
||||
return (player:HasQuest("Etc3g0") == false and player:IsQuestCompleted("Etc3g0") == false and player:GetHighestLevel() >= 1);
|
||||
end
|
||||
|
||||
function isObjectivesComplete(player, quest)
|
||||
return (quest:GetPhase() == 243);
|
||||
end
|
||||
|
||||
|
||||
function onAbandonQuest(player, quest)
|
||||
kinnison = GetWorldManager():GetActorInWorldByUniqueId("kinnison");
|
||||
mestonnaux = GetWorldManager():GetActorInWorldByUniqueId("mestonnaux");
|
||||
sybell = GetWorldManager():GetActorInWorldByUniqueId("sybell");
|
||||
khuma_moshroca = GetWorldManager():GetActorInWorldByUniqueId("khuma_moshroca");
|
||||
lefwyne = GetWorldManager():GetActorInWorldByUniqueId("lefwyne");
|
||||
nellaure = GetWorldManager():GetActorInWorldByUniqueId("nellaure");
|
||||
|
||||
if (kinnison ~= nil and canAcceptQuest(player)) then
|
||||
kinnison:SetQuestGraphic(player, 0x2);
|
||||
end
|
||||
|
||||
if (mestonnaux ~= nil) then mestonnaux:SetQuestGraphic(player, 0x0); end
|
||||
if (sybell ~= nil) then sybell:SetQuestGraphic(player, 0x0); end
|
||||
if (khuma_moshroca ~= nil) then khuma_moshroca:SetQuestGraphic(player, 0x0); end
|
||||
if (lefwyne ~= nil) then lefwyne:SetQuestGraphic(player, 0x0); end
|
||||
if (nellaure ~= nil) then nellaure:SetQuestGraphic(player, 0x0); end
|
||||
|
||||
end
|
21
Data/scripts/quests/etc/etc5g0.lua
Normal file
21
Data/scripts/quests/etc/etc5g0.lua
Normal file
|
@ -0,0 +1,21 @@
|
|||
--Quest Flags
|
||||
TALKED_PFARAHR = 0;
|
||||
|
||||
function canAcceptQuest(player)
|
||||
return (player:HasQuest("etc5g0") == false and player:IsQuestCompleted("Etc5g0") == false and player:GetHighestLevel() >= 1);
|
||||
end
|
||||
|
||||
function isObjectivesComplete(player, quest)
|
||||
return (quest:GetPhase() == 2);
|
||||
end
|
||||
|
||||
function onAbandonQuest(player, quest)
|
||||
vkorolon = GetWorldManager():GetActorInWorldByUniqueId("vkorolon");
|
||||
pfarahr = GetWorldManager():GetActorInWorldByUniqueId("pfarahr");
|
||||
if (vkorolon ~= nil and canAcceptQuest(player)) then
|
||||
vkorolon:SetQuestGraphic(player, 0x2);
|
||||
end
|
||||
if (pfarahr ~= nil) then
|
||||
pfarahr:SetQuestGraphic(player, 0x0);
|
||||
end
|
||||
end
|
3
Data/scripts/quests/man/man0g0.lua
Normal file
3
Data/scripts/quests/man/man0g0.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
--Quest Flags
|
||||
MAN0L0_FLAG_STARTED_TALK_TUT = 0;
|
||||
MAN0G0_FLAG_MINITUT_DONE1 = 1;
|
7
Data/scripts/quests/man/man0l0.lua
Normal file
7
Data/scripts/quests/man/man0l0.lua
Normal file
|
@ -0,0 +1,7 @@
|
|||
|
||||
--Quest Flags
|
||||
MAN0L0_FLAG_STARTED_TALK_TUT = 0;
|
||||
|
||||
MAN0L0_FLAG_MINITUT_DONE1 = 4;
|
||||
MAN0L0_FLAG_MINITUT_DONE2 = 8;
|
||||
MAN0L0_FLAG_MINITUT_DONE3 = 16;
|
8
Data/scripts/quests/man/man0u0.lua
Normal file
8
Data/scripts/quests/man/man0u0.lua
Normal file
|
@ -0,0 +1,8 @@
|
|||
--Quest Flags
|
||||
MAN0U0_FLAG_TUTORIAL1_DONE = 0;
|
||||
MAN0U0_FLAG_TUTORIAL2_DONE = 1;
|
||||
MAN0U0_FLAG_TUTORIAL3_DONE = 2;
|
||||
|
||||
MAN0U0_FLAG_MINITUT_DONE1 = 4;
|
||||
MAN0U0_FLAG_MINITUT_DONE2 = 8;
|
||||
MAN0U0_FLAG_MINITUT_DONE3 = 16;
|
Loading…
Add table
Add a link
Reference in a new issue