function onCastSpell(cid, var)
if getPlayerStorageValue(cid, STORAGEFORVIP) ~= -1 then
doPlayerAddMana(cid, math.random(MIN_MANA, MAX_MANA))
return doCombat(cid, combat, var)
end
doPlayerSendCancel(cid,"Sorry, only people with VIP Status can use this spell.")
doSendMagicEffect(getPlayerPosition(cid), CONST_ME_POFF)
return LUA_ERROR
end