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

Lua when use spell

Haaan

New Member
Joined
Oct 24, 2009
Messages
56
Reaction score
0
Is possible to set looktype to X when using spell(example for 1 sec) i mean how to add this to spell script
 
Of course it is.

In addEvent
doSetCreatureOutfit(cid, outfit[, time = -1])

*I just noticed there's a time parameter in the function, that could be something related, though I'm not sure*
 
Nope ;d


Function:

addOutfitCondition(condition, lookTypeEx, lookType, lookHead, lookBody, lookLegs, lookFeet)

Example (wolf) :D

Lua:
local time = 120 * 1000 -- 120 * 1000 = 2 min
local wolf = {lookType = 52, lookHead = 0, lookBody = 0, lookLegs = 0, lookFeet = 0, lookTypeEx = 0, lookAddons = 0}

local outfit = createConditionObject(CONDITION_OUTFIT)
setConditionParam(outfit, CONDITION_PARAM_TICKS, time)
addOutfitCondition(outfit, wolf.lookTypeEx, wolf.lookType, wolf.lookHead, wolf.lookBody, wolf.lookLegs, wolf.lookFeet)
setCombatCondition(combat, outfit)
 
Last edited:
Back
Top Bottom