bobby299
New Member
- Joined
- Nov 11, 2009
- Messages
- 20
- Reaction score
- 0
Hi, I have an issue with Avalanche rune not showing any effects. I got it in game and I can use the rune which does ice dmg but just nothing is showing visually.
Maybe someone know where I shall begin to look?
Spells.XML
Avalanche.LUA
Items.XML
I have also looked inside Const.h and the effects are at least in there but I'm a bit on the new side when it comes to C++ still.
Any help is much appreciated!
Maybe someone know where I shall begin to look?
Spells.XML
LUA:
<rune group="attack" name="Avalanche" id="2274" allowfaruse="1" charges="2" lvl="30" maglv="4" exhaustion="2000" blocktype="solid" script="attack/avalanche.lua"/>
Avalanche.LUA
LUA:
local combat = Combat()
combat:setParameter(COMBAT_PARAM_TYPE, COMBAT_ICEDAMAGE)
combat:setParameter(COMBAT_PARAM_EFFECT, CONST_ME_ICEAREA)
combat:setParameter(COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ICE)
combat:setArea(createCombatArea(AREA_CIRCLE3X3))
function onGetFormulaValues(player, level, maglevel)
local min = (level / 5) + (maglevel * 1.2) + 7
local max = (level / 5) + (maglevel * 2.85) + 16
return -min, -max
end
combat:setCallback(CALLBACK_PARAM_LEVELMAGICVALUE, "onGetFormulaValues")
function onCastSpell(creature, variant, isHotkey)
return combat:execute(creature, variant)
end
Items.XML
Code:
<item id="2274" article="an" name="avalanche rune">
<attribute key="runeSpellName" value="adori mas frigo" />
<attribute key="weight" value="52" />
<attribute key="charges" value="4" />
</item>
I have also looked inside Const.h and the effects are at least in there but I'm a bit on the new side when it comes to C++ still.
Any help is much appreciated!