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

oufitCondition for action?

Ecstacy

Mothafuckaaa
Joined
Dec 26, 2008
Messages
3,836
Reaction score
108
Location
The Netherlands
Hey,

How would I make an outfitCondition for an action?
I tried this but it tells me this
Code:
 attempt to index a number value

LUA:
local mew =  {lookType = 354, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}
local condition = createConditionObject(CONDITION_ATTRIBUTES)
setConditionParam(condition, CONDITION_PARAM_TICKS, -1)
addOutfitCondition(condition, mew.lookTypeEx, mew.lookType, mew.lookHead, mew.lookBody, mew.lookLegs, mew.lookFeet)
setConditionParam(combat, condition)

return doAddCondition(cid, outfit)
 
Code:
local thisCondition = createConditionObject(CONDITION_OUTFIT)
setConditionParam(thisCondition, CONDITION_PARAM_TICKS, 1800 * 1000)
addOutfitCondition(thisCondition, {lookType = 354, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0})
	return doAddCondition(cid, thisCondition)
 
Back
Top