mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-10 14:34:32 +02:00
Fixed up some more quests!
This commit is contained in:
parent
a1bb84e80d
commit
f6ff56299f
5 changed files with 40 additions and 40 deletions
|
@ -24,10 +24,11 @@ MRKR_BRISTLETAIL_AREA = 11065901;
|
|||
MRKR_BELI = 11065902;
|
||||
|
||||
-- Counters
|
||||
COUNTER_MARMOTHIDE = 0;
|
||||
COUNTER_QUESTITEM = 0;
|
||||
|
||||
-- Quest Details
|
||||
OBJECTIVE_MARMOTHIDE = 8;
|
||||
OBJECTIVE_ITEMID = 11000144;
|
||||
OBJECTIVE_AMOUNT = 8;
|
||||
|
||||
function onStart(player, quest)
|
||||
quest:StartSequence(SEQ_000);
|
||||
|
@ -53,7 +54,7 @@ function onTalk(player, quest, npc, eventName)
|
|||
|
||||
-- Offer the quest
|
||||
if (npcClassId == ENPC_BELI and seq == SEQ_ACCEPT) then
|
||||
local questAccepted = callClientFunction(player, "delegateEvent", player, quest, "processEventLahonoStart");
|
||||
local questAccepted = callClientFunction(player, "delegateEvent", player, quest, "processEventLahonoStart", 0, OBJECTIVE_AMOUNT);
|
||||
if (questAccepted == 1) then
|
||||
player:AcceptQuest(quest);
|
||||
end
|
||||
|
@ -62,7 +63,7 @@ function onTalk(player, quest, npc, eventName)
|
|||
-- Quest Progress
|
||||
elseif (seq == SEQ_000) then
|
||||
if (npcClassId == ENPC_BELI) then
|
||||
callClientFunction(player, "delegateEvent", player, quest, "processEventFree");
|
||||
callClientFunction(player, "delegateEvent", player, quest, "processEventFree", 0, OBJECTIVE_AMOUNT);
|
||||
end
|
||||
--Quest Complete
|
||||
elseif (seq == SEQ_001) then
|
||||
|
@ -80,9 +81,9 @@ end
|
|||
-- TODO FINISH THIS
|
||||
function onKillBNpc(player, quest, bnpc)
|
||||
if (bnpc == BNPC_BRISTLETAIL_MARMOT) then
|
||||
local counterAmount = quest:GetData():IncCounter(COUNTER_MARMOTHIDE);
|
||||
attentionMessage(player, 51062, 0, counterAmount, 4); -- You obtain <item>
|
||||
if (counterAmount >= OBJECTIVE_MARMOTHIDE) then
|
||||
local counterAmount = quest:GetData():IncCounter(COUNTER_QUESTITEM);
|
||||
attentionMessage(player, 25246, OBJECTIVE_ITEMID, 1); -- You obtain <item>
|
||||
if (counterAmount >= OBJECTIVE_AMOUNT) then
|
||||
attentionMessage(player, 25225, quest:GetQuestId()); -- Objectives complete!
|
||||
quest:StartSequence(SEQ_001);
|
||||
end
|
||||
|
@ -90,7 +91,7 @@ function onKillBNpc(player, quest, bnpc)
|
|||
end
|
||||
|
||||
function getJournalInformation(player, quest)
|
||||
return quest:GetData():GetCounter(COUNTER_MARMOTHIDE);
|
||||
return quest:GetData():GetCounter(COUNTER_QUESTITEM);
|
||||
end
|
||||
|
||||
function getJournalMapMarkerList(player, quest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue