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

Dont allow accounts that has less than 4 letters on?

LoLaye

Active Member
Joined
Dec 23, 2008
Messages
3,774
Solutions
1
Reaction score
44
Location
Sweden
Hello,

I need to know if theres something i can do to not let people make accounts that contains 4 or less characters(letters) in my server. I'm using gesior aac, rep++ will be ofcourse given, thanks in return ;)

EDIT:

By characters i mean letters, like '3401', 'tro', '21', '4'
 
Last edited:
So you want people to not be able to use their account if they do not have 4 characters?
 
[CPP]
if(account.charList.size() < 4)
{
disconnectClient(0x0A, std::string("This account does not contain 4 characters yet.\nCreate a new character on the "
+ g_config.getString(ConfigManager::SERVER_NAME) + " website at " + g_config.getString(ConfigManager::URL) + ".").c_str());
return false;
}
[/CPP]

protocollogin.cpp

Idk if this is what u asked for, else you will have to explain it a bit better ;P
 
Last edited:
[CPP]
if(account.charList.size() < 4)
{
disconnectClient(0x0A, std::string("This account does not contain 4 characters yet.\nCreate a new character on the "
+ g_config.getString(ConfigManager::SERVER_NAME) + " website at " + g_config.getString(ConfigManager::URL) + ".").c_str());
return false;
}
[/CPP]

protocollogin.cpp

Idk if this is what u asked for, else you will have to explain it a bit better ;P

Do i have to compile a new client? I just need to make that people wont be able to make an account which contains less that 4 characters, like '1010' '3564' etc.. Im using gesior aac
 
C Code:

if(account.charList.size() < 4)
{
disconnectClient(0x0A, std::string("This account does not contain 4 characters yet.\nCreate a new character on the "
+ g_config.getString(ConfigManager::SERVER_NAME) + " website at " + g_config.getString(ConfigManager::URL) + ".").c_str());
return false;
}



protocollogin.cpp

Idk if this is what u asked for, else you will have to explain it a bit better ;P

Are you Crazy?
@LoLaye
goto folder config in yomur web and open config.php
now use search for search.. max
and change
Line 49~
change:
LUA:
$config['site']['max_players_per_account'] = 10; // max. number of characters on account
for
LUA:
$config['site']['max_players_per_account'] = 4; // max. number of characters on account
 
Are you Crazy?
@LoLaye
goto folder config in yomur web and open config.php
now use search for search.. max
and change
Line 49~
change:
LUA:
$config['site']['max_players_per_account'] = 10; // max. number of characters on account
for
LUA:
$config['site']['max_players_per_account'] = 4; // max. number of characters on account

Do you know what less means?
 
Are you Crazy?
@LoLaye
goto folder config in yomur web and open config.php
now use search for search.. max
and change
Line 49~
change:
LUA:
$config['site']['max_players_per_account'] = 10; // max. number of characters on account
for
LUA:
$config['site']['max_players_per_account'] = 4; // max. number of characters on account

Thats the amount of characters in the acc, i meant that the acc number should not contain less than 4 characters, thats like '0101' '2' '34' '67' etc
 
Yep, cause i heard that theres a way to buy donated items for 1 SEK if you have an account that has less than 4 letters in it :/
 
Back
Top