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?
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
Line 3627
Line 3649
I searched In all files of Otclient, dont have anything about number 3, just common mentions of outfit and addons
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?
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: