• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Custom spell animation?

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 :
"000-Constant.lua"
where i add that:
CONST_ME_BEARCLAWS = 70
CONST_ME_NONE = 255
CONST_ME_LAST = CONST_ME_BEARCLAWS
Then i edited the
"const.h"
where i add that :
MAGIC_EFFECT_DRAGONHEAD = 0x45, //69
MAGIC_EFFECT_BEARCLAWS = 0x46, //70
MAGIC_EFFECT_LAST = MAGIC_EFFECT_BEARCLAWS,
Im using ObjectBuilder to pase animation in the client
xYqHho0.png
this is the animation(1sprite of 16)
then its not work in game :
WtW16zY.gif


Spell .lua
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
xml.
<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>
 
Can you show what id is using in the objectbuilder? I guess its 70, but i dont see anything wrong regarding the code
 
@samco

still nothing happend .... hmm


BUT! if i add to existing MAGIC_EFFECT , then its work .... but i cant add new magic effect ?;s
 
Last edited:
Back
Top