Got aetheryte map and completed quest work values... working.

This commit is contained in:
Filip Maj 2022-02-19 01:17:50 -05:00
parent a2c4d077e9
commit 306f4ef346
11 changed files with 546 additions and 382 deletions

View file

@ -74,7 +74,7 @@ function onTalk(player, quest, npc, eventName)
-- Offer the quest
if (npcClassId == KINNISON and not player:HasQuest(quest)) then
local questAccepted = callClientFunction(player, "delegateEvent", player, quest, "processEventOffersStart");
if (questAccepted) then
if (questAccepted == 1) then
player:AcceptQuest(quest);
end
player:EndEvent();
@ -146,7 +146,7 @@ function onTalk(player, quest, npc, eventName)
if (npcClassId == KINNISON) then
callClientFunction(player, "delegateEvent", player, quest, "processEventClear");
callClientFunction(player, "delegateEvent", player, quest, "sqrwa", 200, 1, 1, 9);
player:CompleteQuest(quest:GetQuestId());
player:CompleteQuest(quest);
end
end
quest:UpdateENPCs();