Este é items.xml
<item id="2273" name="spell rune">
<attribute key="runeSpellName" value="adura vita"/>
<attribute key="weight" value="120"/>
<attribute key="charges" value="1"/>
</item>
Este aqui esta em Spell.xml
<rune name="Ultimate Healing" id="2273" aggressive="0" charges="0" needtarget="1" maglv="4" exhaustion="1" enabled="1" allowfaruse="1" script="uh.lua"></rune>
Este esta na pasta e uh.lua
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
--setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 1.3, -30, 1.7, 0)
function onGetFormulaValues(cid, level, maglevel)
min = (level * 4 + maglevel * 3) * 4.6 - 25
max = (level * 4 + maglevel * 3) * 5.2
if min < 700 then
min = 700
end
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
se poder ver se tem algo errado eu agradeço +rep