local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 8, 8, 13, 15)
function onCastSpell(cid, var)
if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then
doPlayerSendCancel(cid, "Desculpe,Só jogadores vips usam está magia.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
else
return doCombat(cid, combat, var)
end
return TRUE
end
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_BLOCKARMOR, true)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ETHEREALSPEAR)
function onGetFormulaValues(cid, level, skill, attack, factor)
return -(((skill + 50) / 6) + (level / 10)), -((skill + 50) + (level / 10))
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
if getPlayerStorageValue(cid, 13540) - os.time() <= 0 then
doPlayerSendCancel(cid, "Desculpe,Só jogadores vips usam está magia.")
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
else
return doCombat(cid, combat, var)
end
return TRUE
end