Xeikh
詠春 ☯
- Joined
- Oct 23, 2009
- Messages
- 724
- Reaction score
- 17
Hello, im using this for weapons.xml
Im using 0.4, i found a "Wand of Life" but dont works, can please someone help me to make a healing weapon?
LUA:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_HEALING)
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, true)
setCombatParam(combat, COMBAT_PARAM_DISTANCEEFFECT, CONST_ANI_ENERGY)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, 5, 5, 1.5, 2)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
Im using 0.4, i found a "Wand of Life" but dont works, can please someone help me to make a healing weapon?