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 skill.")
doPlayerAddSkill(cid, 4, 10)
return true
end
edite aqui. aonde ta 4 tu bota o id da skill, no caso eu botei a DISTANCE, 4 = DISTANCE.
doPlayerAddSkill(cid, 4, 10)