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

[Request] Condition outfit

Shawak

Intermediate OT User
Joined
Sep 11, 2008
Messages
1,984
Solutions
2
Reaction score
119
Location
Germany
GitHub
Shawak
Hello, can somebody say me, how to fix that, because this don't work and i can't find any example:

Lua:
local look = {
	lookType = 125, 
	lookHead = 0, 
	lookBody = 0, 
	lookLegs = 0, 
	lookFeet = 0, 
	lookTypeEx = 0, 
	lookAddons = 0
}
local outfit = createConditionObject(CONDITION_OUTFIT)
setConditionParam(outfit, CONDITION_PARAM_TICKS, time)
setConditionFormula(condition, look)
setCombatCondition(combat, outfit)

So how i add a CONDITION_OUTFIT condition into an spell? :)

And yes i definited time...
 
Last edited:
Code:
addOutfitCondition(condition, lookTypeEx, lookType, lookHead, lookBody, lookLegs, lookFeet)

Thanks, i had 2 bigs in it:
1. AddOutfitCondition, thanks Chojrak + rep :wub:
2.
addOutfitCondition(outfit, wolf.lookTypeEx, wolf.lookType, wolf.lookHead, wolf.lookBody, wolf.lookLegs, wolf.lookFeet)
I had to change condition to outfit. ^_^
 
Back
Top