if msgcontains(msg, "mission") and player:getStorageValue(Storage.Kilmaresh.Twelve.Boss) == 3 then
if player:getStorageValue(Storage.Kilmaresh.Twelve.Boss) == 3 then
npcHandler:say({"Could you help me with some more work?"}, cid)-- needs review, this is not the speech of the global
npcHandler.topic[cid] = 5
npcHandler.topic[cid] = 5
end
elseif msgcontains(msg, "yes") and npcHandler.topic[cid] == 5 and player:getStorageValue(Storage.Kilmaresh.Twelve.Boss) == 3 then
if player:getStorageValue(Storage.Kilmaresh.Twelve.Boss) == 3 then
npcHandler:say({"Kill 300 members of the Fafnar cult, help me find Ivory Lyre and help me find an animal to stone."}, cid)-- needs review, this is not the speech of the global
player:setStorageValue(Storage.Kilmaresh.Twelve.Boss, 4)
player:setStorageValue(Storage.Kilmaresh.Thirteen.Fafnar, 1)
player:setStorageValue(Storage.Kilmaresh.Thirteen.Lyre, 1)
player:setStorageValue(Storage.Kilmaresh.Thirteen.Presente, 1)
npcHandler.topic[cid] = 6
else
npcHandler:say({"Sorry."}, cid)
npcHandler.topic[cid] = 0
end
end
if msgcontains(msg, "report") and player:getStorageValue(Storage.Kilmaresh.Thirteen.Fafnar) == 300 then
if player:getStorageValue(Storage.Kilmaresh.Thirteen.Fafnar) == 300 then
npcHandler:say({"Have you finished killing the 300 members of Fafnar's cult?"}, cid)-- needs review, this is not the speech of the global
npcHandler.topic[cid] = 7
end
elseif msgcontains(msg, "yes") and npcHandler.topic[cid] == 7 and player:getStorageValue(Storage.Kilmaresh.Thirteen.Fafnar) == 300 then
if player:getStorageValue(Storage.Kilmaresh.Thirteen.Fafnar) == 300 then
npcHandler:say({"Thanks. You killed the 300 members of the Fafnar cult."}, cid)-- needs review, this is not the speech of the global
player:setStorageValue(Storage.Kilmaresh.Thirteen.Fafnar, 301)
npcHandler.topic[cid] = 8
else
npcHandler:say({"Sorry."}, cid)
npcHandler.topic[cid] = 0
end
end
if msgcontains(msg, "report") and player:getStorageValue(Storage.Kilmaresh.Thirteen.Lyre) == 3 then
if player:getStorageValue(Storage.Kilmaresh.Thirteen.Lyre) == 3 then
npcHandler:say({"Did you manage to find Lyre?"}, cid)-- needs review, this is not the speech of the global
npcHandler.topic[cid] = 9
end
elseif msgcontains(msg, "yes") and npcHandler.topic[cid] == 9 and player:getStorageValue(Storage.Kilmaresh.Thirteen.Lyre) == 3 then
if player:getStorageValue(Storage.Kilmaresh.Thirteen.Lyre) == 3 and player:getItemById(36282, 1) then
player:removeItem(36282, 1)
npcHandler:say({"Thanks. I was looking for Lyre for a long time."}, cid)-- needs review, this is not the speech of the global
player:setStorageValue(Storage.Kilmaresh.Thirteen.Lyre, 4)
else
npcHandler:say({"Sorry."}, cid)
npcHandler.topic[cid] = 0
end
end