newby
Active Member
- Joined
- Jun 11, 2016
- Messages
- 183
- Reaction score
- 43
I'm trying to use this function: https://github.com/Fir3element/3777/blob/master/src/luascript.cpp#L7307
Like this:
But the legs is not working
All other stuff is getting the right color, but legs not, legs is always setting WHITE
I'm doing something wrong?
Like this:
Code:
function SetNoobOutfit(cid)
local g = getCreatureOutfit(cid)
local s
if getPlayerSex(cid) == 1 then
s = 128
elseif getPlayerSex(cid) == 0 then
s = 136
end
local setOutfit = {lookType = s, lookHead = g.lookHead, lookAddons = 0, lookLegs = g.looklegs, lookBody = g.lookBody, lookFeet = g.lookFeet}
doCreatureChangeOutfit(cid, setOutfit)
return true
end
But the legs is not working
All other stuff is getting the right color, but legs not, legs is always setting WHITE
I'm doing something wrong?