public static void serialize(Utils.Objects.Packet sender, string ticket, string senderIp)
 {
     sender.WriteShort( (short)GlobalConfig.Network.Game.Guid );
     sender.WriteUTF(senderIp == "127.0.0.1" ? "127.0.0.1" : GlobalConfig.Network.IP);
     sender.WriteUShort( (ushort)GlobalConfig.Network.Game.Port );
     sender.WriteBool(true); // can create characters
     sender.WriteUTF(ticket);
 }
Example #2
0
 public static void serialize(Utils.Objects.Packet sender)
 {
     sender.WriteByte((byte)GlobalConfig.Version.Major);
     sender.WriteByte((byte)GlobalConfig.Version.Minor);
     sender.WriteByte((byte)GlobalConfig.Version.Release);
     sender.WriteUShort((ushort)GlobalConfig.Version.Revision);
     sender.WriteByte((byte)GlobalConfig.Version.BuildType);
     sender.WriteByte((byte)GlobalConfig.Version.Patch);
 }
Example #3
0
        public static void serialize(Utils.Objects.Packet sender, Global.Account acc)
        {
            sender.WriteShort(1); // nGameServers

            sender.WriteUShort((ushort)GlobalConfig.Network.Game.Guid);
            sender.WriteByte((byte)ServerState.ONLINE);
            sender.WriteByte(0); // completion
            sender.WriteBool(true); // selectable
            sender.WriteByte( (byte)acc.Characters.Count );
        }
Example #4
0
 public static void serialize(Utils.Objects.Packet sender, int chosenServer)
 {
     sender.WriteUShort( (ushort)chosenServer );
 }