Hi, i have some problem but i don't know what exactly is wrong i want to make my wand hits between those ranges -1000 ~2000
here's my script file for ya using tfs 0.3.7
the problem is when i'm using it it hit between this ranges -30 ~ -40 and i want to make it -1000 ~ -2000
thanks
here's my script file for ya using tfs 0.3.7
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_DEATH)
setCombatParam(combat, COMBAT_PARAM_EFFECT, 17)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 0, -1000, 0, -2000)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
XML:
<wand id="2184" level="1" mana="15" min="100" max="200" type="holy" event="script" value="crystal.lua"> <!-- New Wand -->
<vocation id="1"/>
<vocation id="2"/>
<vocation id="5"/>
<vocation id="6"/>
</wand>
thanks