clario
OTS based on Heroes III Might and Magic
- Joined
- Feb 4, 2018
- Messages
- 98
- Reaction score
- 5
Hello there! I just ADD a new spell , and new animation i just edited the :
this is the animation(1sprite of 16)
then its not work in game :
Spell .lua
where i add that:"000-Constant.lua"
Then i edited theCONST_ME_BEARCLAWS = 70
CONST_ME_NONE = 255
CONST_ME_LAST = CONST_ME_BEARCLAWS
where i add that :"const.h"
Im using ObjectBuilder to pase animation in the clientMAGIC_EFFECT_DRAGONHEAD = 0x45, //69
MAGIC_EFFECT_BEARCLAWS = 0x46, //70
MAGIC_EFFECT_LAST = MAGIC_EFFECT_BEARCLAWS,
then its not work in game :
Spell .lua
xml.local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_BEARCLAWS)
function onGetFormulaValues(cid, level, skill, magic, factor)
local skillTotal, levelTotal = skill + magic, level / 15
return -(skillTotal * 0.8 + levelTotal), -(skillTotal * 1.5 + levelTotal)
end
setCombatCallback(combat, CALLBACK_PARAM_SKILLVALUE, "onGetFormulaValues")
function onCastSpell(cid, var)
return doCombat(cid, combat, var)
end
<instant name="Bearclaw" words="exori rend" lvl="100" mana="10" prem="1" range="1" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" event="script" value="custom/Bearclaw.lua">
<vocation id="13"/>
</instant>