zxzxzx
New Member
- Joined
- Mar 12, 2011
- Messages
- 334
- Reaction score
- 3
Hello!
Im looking for sudden death rune script for tfs 1.2+ that would be working in actions.xml because I have problem with exhausted in my ot and I can't use standard sd in spells.xml
my sd script from spells
help for rep++
Im looking for sudden death rune script for tfs 1.2+ that would be working in actions.xml because I have problem with exhausted in my ot and I can't use standard sd in spells.xml
my sd script from spells
Code:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_DEATHDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MORTAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_SUDDENDEATH)
function onGetFormulaValues(player, level, maglevel)
local min = (level * 7.8) + (maglevel * 10) + 0
local max = (level * 9) + (maglevel * 10) + 0
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, var, isHotkey)
return combat:execute(creature, var)
end
help for rep++
Last edited: