mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 14:34:32 +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
|
Loading…
Add table
Add a link
Reference in a new issue