JonatasLucas
New Member
- Joined
- Jun 12, 2013
- Messages
- 116
- Reaction score
- 3

You are with this error does anyone know o'que can be?
use tfs 1.1 version: 10.76
<instant group="healing" name="sangue" words="sangue escuro!" lvl="36" mana="150" prem="0" aggressive="0" exhaustion="1200" groups="2,1000" icon="82" needlearn="0" event="script" value="healing/sangue.lua">
<vocation id="11"/>
<vocation id="12"/>
</instant>
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE)
setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE)
function onGetFormulaValues(cid, level, maglevel)
min = (level * 2 + maglevel * 1) * 1.4
max = (level * 1 + maglevel * 2) * 1.8
return min, max
end
setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
I did not understandI think because of "words="Sangue esxuro!" <---- you can't have a ! maybe idk test to remove it.
<instant group="healing" name="sangue" words="sangue escuro" lvl="36" mana="150" prem="0" aggressive="0" exhaustion="1200" groups="2,1000" icon="82" needlearn="0" event="script" value="healing/sangue.lua">
<vocation id="11"/>
<vocation id="12"/>
</instant>
If you add new spells, do not use xml lines from older/other server versions. In spells.cpp you can see what you can use.Limos, the more I want to use this as already have my spells this error began when I put this new spells
Code:<instant group="healing" name="sangue" words="sangue escuro!" lvl="36" mana="150" prem="0" aggressive="0" exhaustion="1200" groups="2,1000" icon="82" needlearn="0" event="script" value="healing/sangue.lua"> <vocation id="11"/> <vocation id="12"/> </instant>
sangue.lua
Code:local combat = createCombatObject() setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING) setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE) setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, FALSE) setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, TRUE) setCombatParam(combat, COMBAT_PARAM_DISPEL, CONDITION_PARALYZE) function onGetFormulaValues(cid, level, maglevel) min = (level * 2 + maglevel * 1) * 1.4 max = (level * 1 + maglevel * 2) * 1.8 return min, max end setCombatCallback(combat, CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues") function onCastSpell(cid, var) return doCombat(cid, combat, var) end
<instant group="healing" spellid="82" name="Sangue" words="sangue escuro!" lvl="36" mana="150" prem="0" aggressive="0" exhaustion="1200" groupcooldown="2000" needlearn="0" script="healing/sangue.lua">
<vocation name="Add voc name here"/>
<vocation name="Add voc name here"/>
</instant>
Limos, what is the difference between "exhaustion" and "groupcooldown"?If you add new spells, do not use xml lines from older/other server versions. In spells.cpp you can see what you can use.
You can also ofc just use an other spell in spells.xml as example.
Code:<instant group="healing" spellid="82" name="Sangue" words="sangue escuro!" lvl="36" mana="150" prem="0" aggressive="0" exhaustion="1200" groupcooldown="2000" needlearn="0" script="healing/sangue.lua"> <vocation name="Add voc name here"/> <vocation name="Add voc name here"/> </instant>
Okey thx, Goodluck on your exams.Yes.