spells.xml change thisaggressive="1"
aggressive="0"
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, true)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
Inspells.xmlchange this
to thisXML:aggressive="1"
or just remove it.XML:aggressive="0"
sometimes its added inside the Lua script file like this one.
change toLUA:combat:setParameter(COMBAT_PARAM_AGGRESSIVE, true)
Also 1.4 not released yet so I guess you should write 1.3 till the official release.LUA:combat:setParameter(COMBAT_PARAM_AGGRESSIVE, false)
![]()
When will TFS 1.4 be released?
The answer is: when contributors help us close issues marked for 1.4 milestone.otland.net
Post the script of the spell you are testing and the XML line.
Also do you have any flags in your player group?
What error do you get when you try to use the spell?
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_HEALING)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
combat:setParameter(COMBAT_PARAM_AGGRESSIVE, 0)
combat:setParameter(COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function onGetFormulaValues(player, level, maglevel)
local min = (level / 5) + (maglevel * 6.8) + 42
local max = (level / 5) + (maglevel * 12.9) + 90
return min, max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, var)
return combat:execute(creature, var)
end
<instant group="healing" spellid="3" name="Ultimate Healing" words="exura vita" lvl="30" mana="160" aggressive="0" selftarget="1" exhaustion="1000" groupcooldown="1000" needlearn="0" script="healing/ultimate healing.lua">
<vocation name="Sorcerer" />
<vocation name="Druid" />
<vocation name="Master Sorcerer" />
<vocation name="Elder Druid" />
<vocation name="Arch Druid" />
<vocation name="Elderwood Druid" />
<vocation name="Arch Sorcerer" />
data\scripts\spells if you have it there too.