function onCastSpell(cid, var)
local Itemid = 12531
local Charge = 1
local PorcentOFWin = 75
if(math.random(1, 100) >= PorcentOFWin) then
doPlayerAddItem(cid, Itemid, Charge)
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_MAGIC_RED)
else
doPlayerSendCancel(cid, "Sorry, you...