How you know, the limit of players per account is 15, now you can edit it !
configmanager.cpp
After:
Add:
configmanager.h
After:
Add:
player.cpp
Replace:
With:
And replace:
With:
Now compile and add this to config.lua
:]!
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
:]!