• 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!
  • New resources must be posted under Resources tab. A discussion thread will be created automatically, you can't open threads manually anymore.

Feature Account Size (Limit of players per account)

Joined
Apr 17, 2008
Messages
1,922
Solutions
1
Reaction score
188
Location
Venezuela
How you know, the limit of players per account is 15, now you can edit it :D!

configmanager.cpp
After:
Lua:
m_confBool[ADDONS_PREMIUM] = getGlobalBool("addonsOnlyPremium", true);

Add:
Lua:
m_confNumber[ACCOUNT_SIZE] = getGlobalNumber("accountSize", 15);

configmanager.h
After:
Lua:
HOUSE_CLEAN_OLD,

Add:
Lua:
ACCOUNT_SIZE,

player.cpp
Replace:
Lua:
if(account.charList.size() <= 15)

With:
Lua:
if(account.charList.size() <= g_config.getNumber(ConfigManager::ACCOUNT_SIZE))

And replace:
Lua:
msg << "Your account reach the limit of 15 players, you can 'delete' a character if you want to create a new one.";

With:
Lua:
msg << "Your account reach the limit of " << g_config.getNumber(ConfigManager::ACCOUNT_SIZE) << " players, you can 'delete' a character if you want to create a new one.";

Now compile and add this to config.lua
Lua:
accountSize = 15

:]!
 
thnz
i thought the limit was 10 :p
so this is acc manager-sided?
 
Last edited:
Back
Top