Não sei se existe função para isso,mais tente
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_ICETORNADO)
setAttackFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 6, 12)
local area = createCombatArea(AREA_CROSS5X5)
setCombatArea(combat, area)
function onCastSpell(cid, var)
local outfit = {
[0] = 138, --female
[1] = 130 -- male
}
if canPlayerWearOutfitId(cid, outfit[getPlayerSex(cid)], 3) then
return doCombat(cid, combat, var)
else
doPlayerSendCancel(cid, 'você precisa usar a outfit full mage para usar a spells!')
end
return FALSE
end