Eu tenho que mudar alguma coisa? Eu coloquei só que clico no item e ele apenas abre no caso é um pergaminha.
Se tiver que mudar algo o que eu devo mudar?
Pronto amigo, ta aqui. Testado e funcionando 100%
function doPlayerAddMagicLevel(cid, amount) local amount = amount or 1 for i = 1, amount do doPlayerAddSpentMana(cid, getPlayerRequiredMana(cid, getPlayerMagLevel(cid, true) + 1) - getPlayerSpentMana(cid), false) end return true end function onUse(cid, item, fromPosition, itemEx, toPosition) doRemoveItem(item.uid, 1) doPlayerSendTextMessage(cid, 25, "Voce ganhou 10 de ml.") doPlayerAddMagicLevel(cid, 10) return true end





info
Grupo: Conde
Registrado: 29/04/09
Posts: 904
Reputação: +389
Char no Tibia: Jabuti Selvagem
Pronto amigo, ta aqui. Testado e funcionando 100%
function doPlayerAddMagicLevel(cid, amount) local amount = amount or 1 for i = 1, amount do doPlayerAddSpentMana(cid, getPlayerRequiredMana(cid, getPlayerMagLevel(cid, true) + 1) - getPlayerSpentMana(cid), false) end return true end function onUse(cid, item, fromPosition, itemEx, toPosition) doRemoveItem(item.uid, 1) doPlayerSendTextMessage(cid, 25, "Voce ganhou 10 de ml.") doPlayerAddMagicLevel(cid, 10) return true end