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
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~
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
Since this is not a spell i have no clue how to use doCombat on this context
Thnx in advance
Kird~