Here we are ;)
local magicneeded = 10 -- magic level to use the item
function onUse(cid, item, frompos, item2, topos)
if getPlayerMagLevel(cid) => 10 then
doSendMagicEffect(topos,1)
mini = (getPlayerLevel(cid) * 2.5 + getPlayerMagLevel(cid) * 3) * 4.6 - 25
maxi = (getPlayerLevel(cid) * 2.5 +...