the error msg is: Event onCastSpell not found. /script/custom/russian.lua
function onUse(cid, item, frompos, item2, topos, event)
if item.type >= 6 then
doRemoveItem(item.uid, 100)
return -1
end
n = math.random(1,6)
name = getPlayerName(cid)
rem = getCreatureHealth(cid) + getPlayerMana(cid)
if n <= item.type then
doCreatureSay(cid, "This guy got OwN3D!", TALKTYPE_ORANGE_1)
doCreatureAddHealth(cid, - rem)
else
doCreatureSay(cid, "You got lucky! ", TALKTYPE_ORANGE_1)
end
doRemoveItem(item.uid, 100)
return 1
end