local item = 5785
local HP = 10000
local MP = 10000
function onSay(cid, words)
if getPlayerItemCount(cid, item) > 0 and getPlayerStorageValue(cid, 91811) <= 0 then
setCreatureMaxHealth(cid, getCreatureMaxHealth(cid)+HP)
setCreatureMaxMana(cid, getCreatureMaxMana(cid)+MP)
doPlayerSendTextMessage(cid, 27, string.format("Parabéns, você ganhou %d de hp e %d de mp.", HP, MP))
doPlayerRemoveItem(cid, item, 1)
setPlayerStorageValue(cid, 91811, 1)
return true
else
return doPlayerSendCancel(cid, "Você já usou este comando, ou não possui o item.")
end
return true
end