-- thunder hammer
elseif msgcontains(msg, 'thunder hammer') then
if getPlayerItemCount(cid,6500) >= 100 and getPlayerItemCount(cid,2452) >= 1 and getPlayerItemCount(cid,2444) >= 1 then
npcHandler:say('Did you bring me the 100 demonic essences, heavy mace and hammer of wrath to craft {thunder hammer}?', cid)
npcHandler.topic[cid] = 1
else
npcHandler:say('I need {100 demonic essences, heavy mace and hammer of wrath}, to give you one Thunder Hammer. Please come back when you have them.', cid)
npcHandler.topic[cid] = 0
end
elseif msgcontains(msg, 'yes') and npcHandler.topic[cid] == 1 then
npcHandler.topic[cid] = 0
if getPlayerItemCount(cid,6500) >= 100 and getPlayerItemCount(cid,2452) >= 1 and getPlayerItemCount(cid,2444) >= 1 then
if doPlayerRemoveItem(cid,6500, 100) and doPlayerRemoveItem(cid,2452,1) and doPlayerRemoveItem(cid,2444,1) == TRUE then
npcHandler:say(done, cid)
doPlayerAddItem(cid, 2421,1)
end
else
npcHandler:say(item, cid)
end
-- upgrade crystal
elseif msgcontains(msg, 'upgrade crystal') then
if getPlayerItemCount(cid,21399) >= 5 then
npcHandler:say('Did you bring me the 5 golden task tokens to craft {upgrade crystal}?', cid)
npcHandler.topic[cid] = 2
else
npcHandler:say('I need {5 golden task tokens}, to give you one Upgrade Crystal. Please come back when you have them.', cid)
npcHandler.topic[cid] = 0
end
elseif msgcontains(msg, 'yes') and npcHandler.topic[cid] == 2 then
npcHandler.topic[cid] = 0
if getPlayerItemCount(cid,21399) >= 5 then
if doPlayerRemoveItem(cid,21399,5) == TRUE then
npcHandler:say(done, cid)
doPlayerAddItem(cid, 8300,1)
end
else
npcHandler:say(item, cid)
end