/// <summary> /// Adiciona os dados recebido do login server. /// </summary> /// <param name="data"></param> public static void AddHexID(NetIncomingMessage data) { var hexID = new HexaID(); hexID.HexID = data.ReadString(); hexID.Account = data.ReadString(); hexID.AccountID = data.ReadInt32(); hexID.LanguageID = data.ReadByte(); hexID.AccessLevel = data.ReadInt16(); hexID.Cash = data.ReadInt32(); hexID.Pin = data.ReadString(); hexID.Time = Environment.TickCount; var service = data.ReadInt32(); for (var n = 0; n < service; n++) { hexID.Service.Add(data.ReadString()); } HexID.Add(hexID); FileLog.WriteLog($"Data From Login Server ID: {hexID.AccountID} Account: {hexID.Account} {hexID.HexID}", Color.Black); }
/// <summary> /// Adiciona os dados recebido do login server. /// </summary> /// <param name="data"></param> public static void AddHexID(NetIncomingMessage data) { HexaID hexID = new HexaID(); hexID.HexID = data.ReadString(); hexID.Account = data.ReadString(); hexID.AccountID = data.ReadInt32(); hexID.LanguageID = data.ReadByte(); hexID.AccessLevel = data.ReadInt16(); hexID.CharacterID = data.ReadInt32(); hexID.CharSlot = data.ReadInt32(); var service = data.ReadInt32(); for (var n = 0; n < service; n++) { hexID.Service.Add(data.ReadString()); } hexID.Time = Environment.TickCount; HexID.Add(hexID); FileLog.WriteLog($"Data From World Server ID: {hexID.AccountID} Account: {hexID.Account} Char ID: {hexID.CharacterID} Slot: {hexID.CharSlot} {hexID.HexID}", System.Drawing.Color.Black); }