• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Healing Weapon Request

Xeikh

詠春 ☯
Joined
Oct 23, 2009
Messages
724
Reaction score
17
Hello, im using this for weapons.xml

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?
 
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)
	local percent = 1
	local addHealth = getCreatureMaxHealth(cid) / 100 * percent
	doCreatureAddHealth(cid, addHealth)
	doSendMagicEffect(getCreaturePosition(cid), 12)
	return doCombat(cid, combat, var)
end
 
Back
Top