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

Groups with Forced Outift.

GOD Jose

New Member
Joined
Jul 10, 2008
Messages
21
Reaction score
1
Location
Mexico
Hello OtLand.

I have a big question, anyone remember when the groups had forced outfits?

What i mean?
When you usually log-in on old servers with a Gamemaster, Comunity Manager or God player, the system force you to use a outfit designed by groups.xml


Use to be a code like this...
Code:
<group id="4" name="gamemaster" flags="66567897594" access="1" maxdepotitems="0" maxvipentries="200" outfit="302" />

I tried to use it in TFS 1.3 but it doesn't work for me and maybe i think this was disabled.
If someone knows something that i don't, please let me know.
e9pjmii.png


Thx :)
 
Solution
you could just use an onlogin script and change outfit with group ids
this will use group ids 1, 2, 3
Code:
local outfits = {
    [1] = xxx,
    [2] = yyy,
    [3] = zzz,
}

function onLogin(player)
    local outfit = outfits[player:getGroup():getId()]
    if outfit then
        player:setOutfit(outfit)
    end
    return true
end
you could just use an onlogin script and change outfit with group ids
this will use group ids 1, 2, 3
Code:
local outfits = {
    [1] = xxx,
    [2] = yyy,
    [3] = zzz,
}

function onLogin(player)
    local outfit = outfits[player:getGroup():getId()]
    if outfit then
        player:setOutfit(outfit)
    end
    return true
end
 
Solution
Well that might be a solution, i'll test it later. Thx

Do u have idea why i have this GM Outfit? There's nothing on outfits.xml that could help me to add others.
2YnpZvX.png
 
It's definied in sources

protocolgame.cpp
Code:
    if (player->isAccessPlayer()) {
        static const std::string gamemasterOutfitName = "Gamemaster";
        protocolOutfits.emplace_back(
            &gamemasterOutfitName,
            75,
            0
        );
    }
 
Back
Top