• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua Damage text in monster spell

Zapdos

New Member
Joined
Sep 19, 2019
Messages
21
Reaction score
0
Hi, I want to know how to add animated text when a monster use "intense healing" example +500 but being based on min/max from <defense name="Intense Healing" interval="4000" chance="100" min="150" max="250">

0.3.6
My intense healing

local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 132)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
setHealingFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 10, 10, 10, 12)

function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end



Thank you
 
Last edited:

Similar threads

Back
Top