DiegoRulez
Member
I want to modify a detail in my source (TFS 1.2).
I want to leave it as it was before: When using a rune (example: SD - Sudden Death Rune) on someone, this rune must hit everyone who is in the same MQ and not just the target.
Does anyone know where and what to change in source to get this effect?
I appreciate who can help.
If it is not in the source but in the script ..
Example script
Do you have this correction? @Peonso
I want to leave it as it was before: When using a rune (example: SD - Sudden Death Rune) on someone, this rune must hit everyone who is in the same MQ and not just the target.
Does anyone know where and what to change in source to get this effect?
I appreciate who can help.
If it is not in the source but in the script ..
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 / 5) + (maglevel * 4.3) + 32
local max = (level / 5) + (maglevel * 7.4) + 48
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, variant, isHotkey)
return combat:execute(creature, variant)
end
Example script
Do you have this correction? @Peonso
Last edited: