mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-21 20:27:47 +00:00
Fixed more quests
This commit is contained in:
parent
f6ff56299f
commit
e53e54b4bf
5 changed files with 35 additions and 32 deletions
|
@ -24,7 +24,11 @@ MRKR_MARCETTE = 11120001;
|
||||||
MRKR_SPRIGGAN_AREA = 11120002;
|
MRKR_SPRIGGAN_AREA = 11120002;
|
||||||
|
|
||||||
-- Counters
|
-- Counters
|
||||||
COUNTER_TEETH = 0;
|
COUNTER_QUESTITEM = 0;
|
||||||
|
|
||||||
|
-- Quest Details
|
||||||
|
OBJECTIVE_ITEMID = 11000164;
|
||||||
|
OBJECTIVE_AMOUNT = 4;
|
||||||
|
|
||||||
function onStart(player, quest)
|
function onStart(player, quest)
|
||||||
quest:StartSequence(SEQ_000);
|
quest:StartSequence(SEQ_000);
|
||||||
|
@ -74,12 +78,11 @@ function onTalk(player, quest, npc, eventName)
|
||||||
player:EndEvent();
|
player:EndEvent();
|
||||||
end
|
end
|
||||||
|
|
||||||
-- TODO FINISH THIS
|
|
||||||
function onKillBNpc(player, quest, bnpc)
|
function onKillBNpc(player, quest, bnpc)
|
||||||
if (bnpc == BNPC_SABLETOOTH_SPRIGGAN) then
|
if (bnpc == BNPC_SABLETOOTH_SPRIGGAN) then
|
||||||
local counterAmount = quest:GetData():IncCounter(COUNTER_TEETH);
|
local counterAmount = quest:GetData():IncCounter(COUNTER_QUESTITEM);
|
||||||
attentionMessage(player, 51062, 0, counterAmount, 4); -- You have passed on word of the rite. (... of 5)
|
attentionMessage(player, 25246, OBJECTIVE_ITEMID, 1); -- You obtain <item>
|
||||||
if (counterAmount >= 4) then
|
if (counterAmount >= OBJECTIVE_AMOUNT) then
|
||||||
attentionMessage(player, 25225, quest:GetQuestId()); -- Objectives complete!
|
attentionMessage(player, 25225, quest:GetQuestId()); -- Objectives complete!
|
||||||
quest:StartSequence(SEQ_001);
|
quest:StartSequence(SEQ_001);
|
||||||
end
|
end
|
||||||
|
@ -87,7 +90,7 @@ function onKillBNpc(player, quest, bnpc)
|
||||||
end
|
end
|
||||||
|
|
||||||
function getJournalInformation(player, quest)
|
function getJournalInformation(player, quest)
|
||||||
return quest:GetData():GetCounter(COUNTER_TEETH);
|
return quest:GetData():GetCounter(COUNTER_QUESTITEM);
|
||||||
end
|
end
|
||||||
|
|
||||||
function getJournalMapMarkerList(player, quest)
|
function getJournalMapMarkerList(player, quest)
|
||||||
|
|
|
@ -24,10 +24,11 @@ MRKR_EUGENAIRE = 11120201;
|
||||||
MRKR_OILBUG_AREA = 11120202;
|
MRKR_OILBUG_AREA = 11120202;
|
||||||
|
|
||||||
-- Counters
|
-- Counters
|
||||||
COUNTER_OIL = 0;
|
COUNTER_QUESTITEM = 0;
|
||||||
|
|
||||||
-- Quest Details
|
-- Quest Details
|
||||||
OBJECTIVE_OIL = 8;
|
OBJECTIVE_ITEMID = 11000302;
|
||||||
|
OBJECTIVE_AMOUNT = 8;
|
||||||
|
|
||||||
function onStart(player, quest)
|
function onStart(player, quest)
|
||||||
quest:StartSequence(SEQ_000);
|
quest:StartSequence(SEQ_000);
|
||||||
|
@ -77,12 +78,11 @@ function onTalk(player, quest, npc, eventName)
|
||||||
player:EndEvent();
|
player:EndEvent();
|
||||||
end
|
end
|
||||||
|
|
||||||
-- TODO FINISH THIS
|
|
||||||
function onKillBNpc(player, quest, bnpc)
|
function onKillBNpc(player, quest, bnpc)
|
||||||
if (bnpc == BNPC_OILBUG) then
|
if (bnpc == BNPC_OILBUG) then
|
||||||
local counterAmount = quest:GetData():IncCounter(COUNTER_OIL);
|
local counterAmount = quest:GetData():IncCounter(COUNTER_QUESTITEM);
|
||||||
attentionMessage(player, 51062, 0, counterAmount, 4); -- You obtain <item>
|
attentionMessage(player, 25246, OBJECTIVE_ITEMID, 1); -- You obtain <item>
|
||||||
if (counterAmount >= OBJECTIVE_OIL) then
|
if (counterAmount >= OBJECTIVE_AMOUNT) then
|
||||||
attentionMessage(player, 25225, quest:GetQuestId()); -- Objectives complete!
|
attentionMessage(player, 25225, quest:GetQuestId()); -- Objectives complete!
|
||||||
quest:StartSequence(SEQ_001);
|
quest:StartSequence(SEQ_001);
|
||||||
end
|
end
|
||||||
|
@ -90,7 +90,7 @@ function onKillBNpc(player, quest, bnpc)
|
||||||
end
|
end
|
||||||
|
|
||||||
function getJournalInformation(player, quest)
|
function getJournalInformation(player, quest)
|
||||||
return quest:GetData():GetCounter(COUNTER_OIL);
|
return quest:GetData():GetCounter(COUNTER_QUESTITEM);
|
||||||
end
|
end
|
||||||
|
|
||||||
function getJournalMapMarkerList(player, quest)
|
function getJournalMapMarkerList(player, quest)
|
||||||
|
|
|
@ -24,10 +24,11 @@ MRKR_MARCETTE = 11120302;
|
||||||
MRKR_FUNGUAR_AREA = 11120301;
|
MRKR_FUNGUAR_AREA = 11120301;
|
||||||
|
|
||||||
-- Counters
|
-- Counters
|
||||||
COUNTER_SPORESAC = 0;
|
COUNTER_QUESTITEM = 0;
|
||||||
|
|
||||||
-- Quest Details
|
-- Quest Details
|
||||||
OBJECTIVE_SPORESAC = 8;
|
OBJECTIVE_ITEMID = 11000301;
|
||||||
|
OBJECTIVE_AMOUNT = 8;
|
||||||
|
|
||||||
function onStart(player, quest)
|
function onStart(player, quest)
|
||||||
quest:StartSequence(SEQ_000);
|
quest:StartSequence(SEQ_000);
|
||||||
|
@ -77,12 +78,11 @@ function onTalk(player, quest, npc, eventName)
|
||||||
player:EndEvent();
|
player:EndEvent();
|
||||||
end
|
end
|
||||||
|
|
||||||
-- TODO FINISH THIS
|
|
||||||
function onKillBNpc(player, quest, bnpc)
|
function onKillBNpc(player, quest, bnpc)
|
||||||
if (bnpc == BNPC_MATURE_FUNGUAR) then
|
if (bnpc == BNPC_MATURE_FUNGUAR) then
|
||||||
local counterAmount = quest:GetData():IncCounter(COUNTER_SPORESAC);
|
local counterAmount = quest:GetData():IncCounter(COUNTER_QUESTITEM);
|
||||||
attentionMessage(player, 51062, 0, counterAmount, 4); -- You obtain <item>
|
attentionMessage(player, 25246, OBJECTIVE_ITEMID, 1); -- You obtain <item>
|
||||||
if (counterAmount >= OBJECTIVE_SPORESAC) then
|
if (counterAmount >= OBJECTIVE_AMOUNT) then
|
||||||
attentionMessage(player, 25225, quest:GetQuestId()); -- Objectives complete!
|
attentionMessage(player, 25225, quest:GetQuestId()); -- Objectives complete!
|
||||||
quest:StartSequence(SEQ_001);
|
quest:StartSequence(SEQ_001);
|
||||||
end
|
end
|
||||||
|
@ -90,7 +90,7 @@ function onKillBNpc(player, quest, bnpc)
|
||||||
end
|
end
|
||||||
|
|
||||||
function getJournalInformation(player, quest)
|
function getJournalInformation(player, quest)
|
||||||
return quest:GetData():GetCounter(COUNTER_SPORESAC);
|
return quest:GetData():GetCounter(COUNTER_QUESTITEM);
|
||||||
end
|
end
|
||||||
|
|
||||||
function getJournalMapMarkerList(player, quest)
|
function getJournalMapMarkerList(player, quest)
|
||||||
|
|
|
@ -27,7 +27,8 @@ MRKR_AMALJAA_GRUNTS = 11130102;
|
||||||
COUNTER_QUESTITEM = 0;
|
COUNTER_QUESTITEM = 0;
|
||||||
|
|
||||||
-- Quest Details
|
-- Quest Details
|
||||||
OBJECTIVE_AMOUNT = 8;
|
OBJECTIVE_ITEMID = 11000173;
|
||||||
|
OBJECTIVE_AMOUNT = 3;
|
||||||
|
|
||||||
function onStart(player, quest)
|
function onStart(player, quest)
|
||||||
quest:StartSequence(SEQ_000);
|
quest:StartSequence(SEQ_000);
|
||||||
|
@ -77,11 +78,10 @@ function onTalk(player, quest, npc, eventName)
|
||||||
player:EndEvent();
|
player:EndEvent();
|
||||||
end
|
end
|
||||||
|
|
||||||
-- TODO FINISH THIS
|
|
||||||
function onKillBNpc(player, quest, bnpc)
|
function onKillBNpc(player, quest, bnpc)
|
||||||
if (bnpc == BNPC_AMALJAA_GRUNTS) then
|
if (bnpc == BNPC_AMALJAA_GRUNTS) then
|
||||||
local counterAmount = quest:GetData():IncCounter(COUNTER_QUESTITEM);
|
local counterAmount = quest:GetData():IncCounter(COUNTER_QUESTITEM);
|
||||||
attentionMessage(player, 51062, 0, counterAmount, 4); -- You obtain <item>
|
attentionMessage(player, 25246, OBJECTIVE_ITEMID, 1); -- You obtain <item>
|
||||||
if (counterAmount >= OBJECTIVE_AMOUNT) then
|
if (counterAmount >= OBJECTIVE_AMOUNT) then
|
||||||
attentionMessage(player, 25225, quest:GetQuestId()); -- Objectives complete!
|
attentionMessage(player, 25225, quest:GetQuestId()); -- Objectives complete!
|
||||||
quest:StartSequence(SEQ_001);
|
quest:StartSequence(SEQ_001);
|
||||||
|
|
|
@ -27,7 +27,8 @@ MRKR_PAPALA = 11130302;
|
||||||
COUNTER_QUESTITEM = 0;
|
COUNTER_QUESTITEM = 0;
|
||||||
|
|
||||||
-- Quest Details
|
-- Quest Details
|
||||||
OBJECTIVE_AMOUNT = 8;
|
OBJECTIVE_ITEMID = 11000303;
|
||||||
|
OBJECTIVE_AMOUNT = 6;
|
||||||
|
|
||||||
function onStart(player, quest)
|
function onStart(player, quest)
|
||||||
quest:StartSequence(SEQ_000);
|
quest:StartSequence(SEQ_000);
|
||||||
|
@ -53,7 +54,7 @@ function onTalk(player, quest, npc, eventName)
|
||||||
|
|
||||||
-- Offer the quest
|
-- Offer the quest
|
||||||
if (npcClassId == ENPC_PAPALA and seq == SEQ_ACCEPT) then
|
if (npcClassId == ENPC_PAPALA and seq == SEQ_ACCEPT) then
|
||||||
local questAccepted = callClientFunction(player, "delegateEvent", player, quest, "processEventPAPALAStart");
|
local questAccepted = callClientFunction(player, "delegateEvent", player, quest, "processEventPAPALAStart", OBJECTIVE_AMOUNT);
|
||||||
if (questAccepted == 1) then
|
if (questAccepted == 1) then
|
||||||
player:AcceptQuest(quest);
|
player:AcceptQuest(quest);
|
||||||
end
|
end
|
||||||
|
@ -62,7 +63,7 @@ function onTalk(player, quest, npc, eventName)
|
||||||
-- Quest Progress
|
-- Quest Progress
|
||||||
elseif (seq == SEQ_000) then
|
elseif (seq == SEQ_000) then
|
||||||
if (npcClassId == ENPC_PAPALA) then
|
if (npcClassId == ENPC_PAPALA) then
|
||||||
callClientFunction(player, "delegateEvent", player, quest, "processEvent_000_1");
|
callClientFunction(player, "delegateEvent", player, quest, "processEvent_000_1", OBJECTIVE_AMOUNT);
|
||||||
end
|
end
|
||||||
--Quest Complete
|
--Quest Complete
|
||||||
elseif (seq == SEQ_001) then
|
elseif (seq == SEQ_001) then
|
||||||
|
@ -77,11 +78,10 @@ function onTalk(player, quest, npc, eventName)
|
||||||
player:EndEvent();
|
player:EndEvent();
|
||||||
end
|
end
|
||||||
|
|
||||||
-- TODO FINISH THIS
|
|
||||||
function onKillBNpc(player, quest, bnpc)
|
function onKillBNpc(player, quest, bnpc)
|
||||||
if (bnpc == BNPC_AMALJAA_DRUDGES) then
|
if (bnpc == BNPC_AMALJAA_DRUDGES) then
|
||||||
local counterAmount = quest:GetData():IncCounter(COUNTER_QUESTITEM);
|
local counterAmount = quest:GetData():IncCounter(COUNTER_QUESTITEM);
|
||||||
attentionMessage(player, 51062, 0, counterAmount, 4); -- You obtain <item>
|
attentionMessage(player, 25246, OBJECTIVE_ITEMID, 1); -- You obtain <item>
|
||||||
if (counterAmount >= OBJECTIVE_AMOUNT) then
|
if (counterAmount >= OBJECTIVE_AMOUNT) then
|
||||||
attentionMessage(player, 25225, quest:GetQuestId()); -- Objectives complete!
|
attentionMessage(player, 25225, quest:GetQuestId()); -- Objectives complete!
|
||||||
quest:StartSequence(SEQ_001);
|
quest:StartSequence(SEQ_001);
|
||||||
|
|
Loading…
Add table
Reference in a new issue