Hi, i want to know how to get "min" and "max" from the monster xml
I dont want to make onCombat, only TargetCombatHealth.
Something like this:
<attack name="test" interval="1000" min="-1" max="-10"/>
Then
function onCastSpell(cid, var)
doTargetCombatHealth(cid, target, COMBAT_PHYSICALDAMAGE, HERE I GET THE -1, HERE I GET THE -10, 14)
return true
end
I dont want to put the number inside the spell, because im going to use this script more times. Different numbers(make different spells only changing the number is not an option).
var = uid of people inside the spell area(and target)? or maybe the min and max are the variants too?
I dont want to make onCombat, only TargetCombatHealth.
Something like this:
<attack name="test" interval="1000" min="-1" max="-10"/>
Then
function onCastSpell(cid, var)
doTargetCombatHealth(cid, target, COMBAT_PHYSICALDAMAGE, HERE I GET THE -1, HERE I GET THE -10, 14)
return true
end
I dont want to put the number inside the spell, because im going to use this script more times. Different numbers(make different spells only changing the number is not an option).
var = uid of people inside the spell area(and target)? or maybe the min and max are the variants too?