i will show heal rune script it's very easy to do it
it's for tfs 0.3+
open data/spells/scripts/healing add uh.lua
open spells.xml
now you have uh rune script gratz
good luck
it's for tfs 0.3+
open data/spells/scripts/healing add uh.lua
Code:
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_TARGETCASTERORTOPMOST, true)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function onGetFormulaValues(cid, level, maglevel)
local min = (level * 2 + maglevel * 1) * 3.5
local max = (level * 2 + maglevel * 1) * 3.8
return math.max(300, min), math.max(300, max)
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
open spells.xml
Code:
<rune name="uh" id="2297" allowfaruse="0" charges="1" lvl="100" maglv="4" exhaustion="1000" aggressive="1" needtarget="0" blocktype="solid" event="script" value="healing/uh.lua"/>
now you have uh rune script gratz
good luck