elseif msgcontains(msg, 'amulet') then
if getPlayerItemCount(cid,8262) >= 1 and getPlayerItemCount(cid,8263) >= 1 and getPlayerItemCount(cid,2152) >= 50 and getPlayerItemCount(cid,8264) >= 1 and getPlayerItemCount(cid,8265) >= 1 then
npcHandler:say("Um Humm! Welcume lil. Me can do unbroken but Big Ben want gold 5000 and Big Ben need a lil time to make it unbroken. Yes or no?", cid)
talk_state = 12
else
npcHandler:say("You don't have these items!", cid)
talk_state = 0
end
elseif msgcontains(msg, 'yes') and talk_state == 12 then
talk_state = 0
if getPlayerItemCount(cid,8262) >= 1 and getPlayerItemCount(cid,8263) >= 1 and getPlayerItemCount(cid,2152) >= 50 and getPlayerItemCount(cid,8264) >= 1 and getPlayerItemCount(cid,8265) >= 1 then
if doPlayerRemoveItem(cid,8262,1) and doPlayerRemoveItem(cid,8263,1) and doPlayerRemoveItem(cid,8264,1) and doPlayerRemoveItem(cid,8265,1) and doPlayerRemoveItem(cid,2152,50) then
npcHandler:say("Here you are!", cid)
doPlayerAddItem(cid, 8266, 1)
talk_state = 0
end
else
npcHandler:say("You don't have these items!", cid)
talk_state = 0
end
elseif msgcontains(msg, 'no') and talk_state >= 1 and talk_state <= 5 then
npcHandler:say('Well, then leave.')
talk_state = 0
end