Well, im trying to make a script that after useing an item, the player will get an outfit for 20 sec.
But i just cant make it work
All the other code apprt from the doCombat function inside onUse works, but it doesnt change the outfit
Help please, what am i doing wrong
But i just cant make it work
All the other code apprt from the doCombat function inside onUse works, but it doesnt change the outfit
Help please, what am i doing wrong
Code:
local combat = createCombatObject()
setCombatParam(combat, COMBAT_PARAM_EFFECT, CONST_ME_MAGIC_BLUE)
local outfit = createConditionObject(CONDITION_OUTFIT)
setConditionParam(outfit, CONDITION_PARAM_TICKS, 20000)
addOutfitCondition(outfit, {lookTypeEx = 0, lookType = 128, lookHead = 94, lookBody = 94, lookLegs = 94, lookFeet = 94,lookAddons = 0})
setCombatCondition(combat, outfit)
function onUse(cid, var)
doCombat(cid, combat, var)
return true
end