mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-25 22:27:45 +00:00
Fixed Waste Not Want Not now that the quest system is final.
This commit is contained in:
parent
f84899ff2e
commit
96f9119cca
1 changed files with 15 additions and 19 deletions
|
@ -13,8 +13,8 @@ Notes: Rewards 200 gil
|
||||||
]]
|
]]
|
||||||
|
|
||||||
-- Sequence Numbers
|
-- Sequence Numbers
|
||||||
SEQ_000 = 0; -- Talk to Pfarahr
|
SEQ_000 = 0; -- Talk to Pfarahr.
|
||||||
SEQ_001 = 1; -- Return to V'korolon
|
SEQ_001 = 1; -- Return to V'korolon.
|
||||||
|
|
||||||
-- Actor Class Ids
|
-- Actor Class Ids
|
||||||
VKOROLON = 1000458;
|
VKOROLON = 1000458;
|
||||||
|
@ -54,23 +54,25 @@ function onTalk(player, quest, npc)
|
||||||
local classId = npc:GetActorClassId();
|
local classId = npc:GetActorClassId();
|
||||||
|
|
||||||
if (sequence == SEQ_ACCEPT) then
|
if (sequence == SEQ_ACCEPT) then
|
||||||
callClientFunction(player, "delegateEvent", player, quest, "processEventVKOROLONStart");
|
local questAccepted = callClientFunction(player, "delegateEvent", player, quest, "processEventVKOROLONStart");
|
||||||
end
|
if (questAccepted == 1) then
|
||||||
|
player:AcceptQuest(quest);
|
||||||
if (sequence == SEQ_000) then
|
end
|
||||||
|
player:EndEvent();
|
||||||
|
return;
|
||||||
|
elseif (sequence == SEQ_000) then
|
||||||
if (classId == VKOROLON) then
|
if (classId == VKOROLON) then
|
||||||
callClientFunction(player, "delegateEvent", player, quest, "processEvent_000_1");
|
callClientFunction(player, "delegateEvent", player, quest, "processEvent_000_1");
|
||||||
elseif (classId == PFARAHR) then
|
elseif (classId == PFARAHR) then
|
||||||
callClientFunction(player, "delegateEvent", player, quest, "processEvent_010");
|
callClientFunction(player, "delegateEvent", player, quest, "processEvent_010");
|
||||||
quest:StartSequence(SEQ_001);
|
quest:StartSequence(SEQ_001);
|
||||||
quest:DoComplete(); -- Need ref since it feels out of place. Just placing it here since original script had it.
|
|
||||||
end
|
end
|
||||||
|
|
||||||
elseif (sequence == SEQ_001) then
|
elseif (sequence == SEQ_001) then
|
||||||
if (classId == VKOROLON) then
|
if (classId == VKOROLON) then
|
||||||
callClientFunction(player, "delegateEvent", player, quest, "processEvent_020");
|
callClientFunction(player, "delegateEvent", player, quest, "processEvent_020");
|
||||||
--callClientFunction(player, "delegateEvent", player, quest, "sqrwa", 200, 1); -- Reward window, shouldn't be handled by quest script
|
callClientFunction(player, "delegateEvent", player, quest, "sqrwa", 200, 1)
|
||||||
player:CompleteQuest(quest:GetQuestId());
|
player:CompleteQuest(quest);
|
||||||
elseif (classId == PFARAHR) then
|
elseif (classId == PFARAHR) then
|
||||||
callClientFunction(player, "delegateEvent", player, quest, "processEvent_010_1");
|
callClientFunction(player, "delegateEvent", player, quest, "processEvent_010_1");
|
||||||
end
|
end
|
||||||
|
@ -79,27 +81,21 @@ function onTalk(player, quest, npc)
|
||||||
quest:UpdateENPCs();
|
quest:UpdateENPCs();
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function getJournalInformation(player, quest)
|
function getJournalInformation(player, quest)
|
||||||
local sequence = quest:getSequence();
|
local sequence = quest:getSequence();
|
||||||
|
|
||||||
if (sequence == SEQ_000) then
|
if (sequence == SEQ_000) then
|
||||||
return ITEM_WELL_WORN_BAG;
|
return ITEM_WELL_WORN_BAG;
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
function getJournalMapMarkerList(player, quest)
|
function getJournalMapMarkerList(player, quest)
|
||||||
local sequence = quest:getSequence();
|
local sequence = quest:getSequence();
|
||||||
local possibleMarkers = {};
|
|
||||||
|
|
||||||
if (sequence == SEQ_000) then
|
if (sequence == SEQ_000) then
|
||||||
table.insert(possibleMarkers, MRKR_PFARAHR);
|
return MRKR_PFARAHR;
|
||||||
elseif (sequence == SEQ_001) then
|
elseif (sequence == SEQ_001) then
|
||||||
table.insert(possibleMarkers, MRKR_VKOROLON);
|
return MRKR_VKOROLON;
|
||||||
end
|
end
|
||||||
|
|
||||||
return unpack(possibleMarkers)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue