Thorn
Spriting since 2013
Hello guys, i'm trying to make custom wands but i dont get the attack i want, check
im using otx 2.52
so i want this to attack between 70 and 150, but is attacking way more like 400 D:
plz how can i fix this? Also i get this effects, how can i change them? :/
distance and that plant one
im using otx 2.52
Code:
<wand id="21160" level="8" range="10" mana="15" enabled="1" swing="yes" script="Rare Prestige Magic Staff.lua">
<vocation id="1"/>
<vocation id="5"/>
</wand>
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_EFFECT,50)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, 31)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -1.0, -70, -1.0, -150)
local area = createCombatArea({
{0, 0, 0},
{0, 3, 0},
{0, 0, 0}
})
setCombatArea(combat, area)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
so i want this to attack between 70 and 150, but is attacking way more like 400 D:
plz how can i fix this? Also i get this effects, how can i change them? :/
distance and that plant one