void HandleUniverseSelection(NetworkPacket m) { Account.LoginToken = AccountUtility.GenerateTransferToken(); ServiceContainer.GetService <IDatabase>().Accounts.Save(Account); /*var selectedID = */ m.ReadInt32(); var worldServer = ServiceContainer.GetService <IWorldServer>(); var outMessage = LoginHeader.L2C_UNIVERSE_SELECTED_ACK.CreatePacket(); outMessage.WriteInt32((int)PacketStatusCode.NO_ERROR); outMessage.WriteInt32(0); //selectedID outMessage.WriteString("Complete_Universe"); outMessage.WriteInt32(Account.LoginToken); outMessage.WriteByteArrayWithoutLength(IPAddress.Parse(worldServer.PublicIP).GetAddressBytes()); outMessage.WriteUint16((ushort)worldServer.Port); Connection.SendMessage(outMessage); }