• 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!

C++ attribute for sword etc.

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:
What you mean with absorb? You mean items.xml attribute key? Because your above script has nothing about absorb.
and about why it does only hit mana, I think this line is the reason.
Lua:
setCombatParam(combat, COMBAT_PARAM_TYPE, COMBAT_MANADRAIN)
 
so I wanted the famous leech mana in my source 0.4.0.0
here all you want
 
Back
Top