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

TFS 0.X Get colors is not working

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:
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?
 
Back
Top