falls13
New Member
- Joined
- Nov 3, 2015
- Messages
- 29
- Reaction score
- 1
I would like to fill the mana of the player who is using the weapon that is with this script.
but it is filling that of the target.
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 10, 10, 10, 10)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
but it is filling that of the target.
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_PHYSICALDAMAGE)
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, false)
setCombatFormula(combat, COMBAT_FORMULA_SKILL, 10, 10, 10, 10)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end