nickobom
New Member
- Joined
- Oct 13, 2008
- Messages
- 5
- Reaction score
- 0
I'm doing a team balance with the codes of gesior sources...
but i can't make it run..
At Protocol Login.cpp
I think this code doesn't run in the new TFS because when i try to login 1/1 i only get "Account number or password is not correct sux."
Can Anyone help me with this code? :S
but i can't make it run..
At Protocol Login.cpp
Code:
if(g_config.getNumber(ConfigManager::TEAM_SELECTION) == 1){
if(accnumber == 1){
unsigned char loadteam = 1;
if(g_game.getFirstTeam() > g_game.getSecondTeam()){
loadteam = 2;
accnumber = 2;
password = '2';
}
else if(g_game.getSecondTeam() >= g_game.getFirstTeam()){
loadteam = 1;
accnumber = 1;
password = '1';
}
Account account = IOLoginData::getInstance()->loadAccount((int)loadteam);
}
else{
if(accnumber > 9){
Account account = IOLoginData::getInstance()->loadAccount(accnumber);
}
if(accnumber >= 2 && accnumber <= 9){
disconnectClient(0x0A, "Please login using 1/1. You'll be automatically assigned to one of the teams.");
return false;
}
}
}
Account account = IOLoginData::getInstance()->loadAccount(accnumber);
if(!(accnumber != 0 && account.accnumber == accnumber &&
passwordTest(password, account.password)))
{
ConnectionManager::getInstance()->addLoginAttempt(clientip, false);
disconnectClient(0x0A, "Account number or password is not correct sux.");
return false;
}
I think this code doesn't run in the new TFS because when i try to login 1/1 i only get "Account number or password is not correct sux."
Can Anyone help me with this code? :S