Fixed more quests

This commit is contained in:
Filip Maj 2022-03-30 00:17:59 -04:00
parent f6ff56299f
commit e53e54b4bf
5 changed files with 35 additions and 32 deletions

View file

@ -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)