mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-12 23:44:34 +02:00
Fixed more quests
This commit is contained in:
parent
f6ff56299f
commit
e53e54b4bf
5 changed files with 35 additions and 32 deletions
|
@ -16,18 +16,19 @@ SEQ_000 = 0; -- Kill Oilbugs.
|
|||
SEQ_001 = 1; -- Talk to Eugenaire.
|
||||
|
||||
-- Actor Class Ids
|
||||
ENPC_EUGENAIRE = 1001190;
|
||||
BNPC_OILBUG = 2103910;
|
||||
ENPC_EUGENAIRE = 1001190;
|
||||
BNPC_OILBUG = 2103910;
|
||||
|
||||
-- Quest Markers
|
||||
MRKR_EUGENAIRE = 11120201;
|
||||
MRKR_OILBUG_AREA = 11120202;
|
||||
MRKR_EUGENAIRE = 11120201;
|
||||
MRKR_OILBUG_AREA = 11120202;
|
||||
|
||||
-- Counters
|
||||
COUNTER_OIL = 0;
|
||||
COUNTER_QUESTITEM = 0;
|
||||
|
||||
-- Quest Details
|
||||
OBJECTIVE_OIL = 8;
|
||||
OBJECTIVE_ITEMID = 11000302;
|
||||
OBJECTIVE_AMOUNT = 8;
|
||||
|
||||
function onStart(player, quest)
|
||||
quest:StartSequence(SEQ_000);
|
||||
|
@ -77,12 +78,11 @@ function onTalk(player, quest, npc, eventName)
|
|||
player:EndEvent();
|
||||
end
|
||||
|
||||
-- TODO FINISH THIS
|
||||
function onKillBNpc(player, quest, bnpc)
|
||||
if (bnpc == BNPC_OILBUG) then
|
||||
local counterAmount = quest:GetData():IncCounter(COUNTER_OIL);
|
||||
attentionMessage(player, 51062, 0, counterAmount, 4); -- You obtain <item>
|
||||
if (counterAmount >= OBJECTIVE_OIL) 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 +90,7 @@ function onKillBNpc(player, quest, bnpc)
|
|||
end
|
||||
|
||||
function getJournalInformation(player, quest)
|
||||
return quest:GetData():GetCounter(COUNTER_OIL);
|
||||
return quest:GetData():GetCounter(COUNTER_QUESTITEM);
|
||||
end
|
||||
|
||||
function getJournalMapMarkerList(player, quest)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue