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

Increase Addons default (3)

jededias

Member
Joined
Jan 21, 2019
Messages
66
Solutions
1
Reaction score
12
What happens if i modify all the 3 to 999?
What files i need to edit to increase the max addons ?
the default is 3, I am using object builder
I need edit Otclient, Server and Objectbuilder?
Post automatically merged:

In my source (TFS 1.4 by Nekiro)
I have found in Server source only this mention to number 3 in one file: player.cpp

Line 3703

C++:
bool Player::getOutfitAddons(const Outfit& outfit, uint8_t& addons) const
{
    if (group->access) {
        addons = 3;
        return true;
    }

Line 3627
C++:
    for (const OutfitEntry& outfitEntry : outfits) {
        if (outfitEntry.lookType == lookType) {
            if (outfitEntry.addons == addons || outfitEntry.addons == 3 || addons == 0) {
                return true;
            }
            return false; //have lookType on list and addons don't match
        }
    }
    return false;
}

Line 3649
C++:
    for (const OutfitEntry& outfitEntry : outfits) {
        if (outfitEntry.lookType == lookType) {
            if (outfitEntry.addons == addons || outfitEntry.addons == 3 || addons == 0){
                return true;
            }
            return false; //have lookType on list and addons don't match
        }
    }
    return false;
}
Post automatically merged:

I searched In all files of Otclient, dont have anything about number 3, just common mentions of outfit and addons
Post automatically merged:

I have found in Object builder source:
ObjectBuilder-master/src/otlib/components/LookGenerator.mxml
Line 299 "maximum="3"
But what happens if i modify all the 3 to 500? The server will crash ? have a limit of sprites in each outfit?
 
Last edited:
addon 3 means addon 1 and 2, if you put 999 you will have 999 addons
Does not make sense, u dont read my question
"What happens if i increase the addons"
Have packets and opcodes that de Otclient receives from the Server, I want to know if somewhere it will receive more than the server/client can handle
 
Back
Top