mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-09 14:04:41 +02:00
Refactored quest state system seems to work!
This commit is contained in:
parent
1523ae200b
commit
02cb0a3f43
14 changed files with 673 additions and 512 deletions
|
@ -24,7 +24,6 @@ end
|
|||
function onEventStarted(player, npc, eventType, eventName)
|
||||
local defaultTalk = player:GetDefaultTalkQuest(npc);
|
||||
local tutorialTalk = player:GetTutorialQuest(npc);
|
||||
local journalQuests = player:GetJournalQuestsForNpc(npc);
|
||||
local activeQuests = player:GetQuestsForNpc(npc);
|
||||
local possibleQuests = {};
|
||||
|
||||
|
@ -35,9 +34,6 @@ function onEventStarted(player, npc, eventType, eventName)
|
|||
if (tutorialTalk ~= nil and eventType == ETYPE_TALK) then
|
||||
table.insert(possibleQuests, tutorialTalk);
|
||||
end
|
||||
if (journalQuests ~= nil) then
|
||||
table.insert(possibleQuests, unpack(journalQuests));
|
||||
end
|
||||
if (activeQuests ~= nil) then
|
||||
table.insert(possibleQuests, unpack(activeQuests));
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue