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

Help with doCombat

kird

New Member
Joined
Jul 3, 2010
Messages
78
Reaction score
1
Hey there!
I have this condition, but i just cant make the function doCombat to work.
Any idea?

This is what i have till now
Code:
local removeOutfit = createCombatObject()
setCombatParam(removeOutfit, COMBAT_PARAM_AGGRESSIVE, false)
setCombatParam(removeOutfit, COMBAT_PARAM_DISPEL, CONDITION_OUTFIT)
function onUse(cid, item, fromPosition, itemEx, toPosition)

doAddCondition(cid, removeOutfit)

return TRUE
end
Where and how should i put my doCombat function?
Since this is not a spell i have no clue how to use doCombat on this context


Thnx in advance
Kird~
 
Back
Top