roriscrave
Advanced OT User
- Joined
- Dec 7, 2011
- Messages
- 1,188
- Solutions
- 34
- Reaction score
- 200
Hi! I'm using tfs 1.2....
I use this spell in tfs 0.4 and when it goes to 1.2 I realized that the spell does not show the damage.
I realized that the error is in this line, because if I put the value 3, it shows the energy damage, if I put 5, it shows the death damage.
in source 0.4 there are 254 different colors for damage, and in 1.2 there are no 254 colors?
I use this spell in tfs 0.4 and when it goes to 1.2 I realized that the spell does not show the damage.
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.25, 1, -1.25, 1)
setCombatParam(combat, COMBAT_PARAM_HITCOLOR, 15)
function onCastSpell(cid, var)
local position1 = {x=getThingPos(getCreatureTarget(cid)).x, y=getThingPos(getCreatureTarget(cid)).y, z=getThingPos(getCreatureTarget(cid)).z}
doSendMagicEffect(position1, 26)
return doCombat(cid, combat, var)
end
I realized that the error is in this line, because if I put the value 3, it shows the energy damage, if I put 5, it shows the death damage.
Code:
setCombatParam(combat, COMBAT_PARAM_HITCOLOR, 15)