flakerzokejao
Member
- Joined
- Aug 18, 2020
- Messages
- 38
- Reaction score
- 7
hello, I put this script on my sword, but this is just hitting the mana and is not giving absorption to the player who holds this sword
Lua:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
setCombatParam(combat, COMBAT_PARAM_TARGETCASTERORTOPMOST, 1)
setCombatParam(combat, COMBAT_PARAM_AGGRESSIVE, 0)
setCombatFormula(combat, COMBAT_FORMULA_LEVELMAGIC, -7.1, 1, -7.2, 1)
function onUseWeapon(cid, var)
return doCombat(cid, combat, var)
end
Last edited: