Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case PACKET_ADMIN: // Player logging in through Control Panel
- {
- if (this->state != EOClient::Initialized) return false;
- std::string username = reader.GetBreakString();
- std::string password = reader.GetBreakString();
- username = util::lowercase(username);
- reply.SetID(PACKET_LOGIN, PACKET_REPLY);
- LoginReply login_reply = this->server->world->AdminLoginCheck(username, password);
- if (login_reply != LOGIN_OK)
- {
- reply.AddShort(login_reply);
- CLIENT_SEND(reply);
- return true;
- }
- reply.AddShort(LOGIN_OK);
- /*reply.AddChar(this->player->characters.size());
- reply.AddByte(2);
- reply.AddByte(255);
- UTIL_PTR_VECTOR_FOREACH(this->player->characters, Character, character)
- {
- reply.AddBreakString(character->name);
- reply.AddInt(character->id);
- reply.AddChar(character->level);
- reply.AddChar(character->gender);
- reply.AddChar(character->hairstyle);
- reply.AddChar(character->haircolor);
- reply.AddChar(character->race);
- reply.AddChar(character->admin);
- reply.AddShort(this->server->world->eif->Get(character->paperdoll[Character::Boots])->dollgraphic);
- reply.AddShort(this->server->world->eif->Get(character->paperdoll[Character::Armor])->dollgraphic);
- reply.AddShort(this->server->world->eif->Get(character->paperdoll[Character::Hat])->dollgraphic);
- reply.AddShort(this->server->world->eif->Get(character->paperdoll[Character::Shield])->dollgraphic);
- reply.AddShort(this->server->world->eif->Get(character->paperdoll[Character::Weapon])->dollgraphic);
- reply.AddByte(255);
- }*/
- CLIENT_SEND(reply);
- }
- break;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement