This is my code:
Growth is using CombatCallback from fire ring.lua, because it's loaded after growth.lua. How to baypass it?
Code:
spells.xml
<!-- Custom Spells -->
<instant name="Growth" words="growth" lvl="1" manapercent="0" cooldown="0" needlearn="0" script="custom/growth.lua" />
<instant name="Fire Ring" words="fire ring" lvl="1" manapercent="0" cooldown="0" needlearn="0" script="custom/fire ring.lua" />
Code:
fire ring.lua
function onTargetTile(cid, pos)
...
code
...
end
setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTile")
Code:
growth.lua
function onTargetTileGrowth(cid, pos)
...
code
...
end
setCombatCallback(combat, CALLBACK_PARAM_TARGETTILE, "onTargetTileGrowth")
Growth is using CombatCallback from fire ring.lua, because it's loaded after growth.lua. How to baypass it?