|
|
@@ -5,12 +5,11 @@ namespace Robot.Protos
|
|
|
{
|
|
|
public static class MessageOpcode
|
|
|
{
|
|
|
- public const ushort CMSG_AUTHLOGONPERMIT = 800;
|
|
|
+ public const ushort CMSG_AUTH_LOGON_PERMIT = 800;
|
|
|
public const ushort CMSG_OTP_PASSWORD = 801;
|
|
|
public const ushort CMSG_PPC_PASSWORD = 802;
|
|
|
- public const ushort CMSG_AUTHLOGONCHALLENGE = 803;
|
|
|
- public const ushort CMSG_AUTHLOGONCHALLENGE_2 = 804;
|
|
|
- public const ushort CMSG_AUTHLOGONPROOF = 805;
|
|
|
+ public const ushort CMSG_AUTH_LOGON_CHALLENGE = 803;
|
|
|
+ public const ushort CMSG_AUTH_LOGON_PROOF = 805;
|
|
|
public const ushort SMSG_AUTH_LOGON_CHALLENGE_RESPONSE = 900;
|
|
|
public const ushort SMSG_REALM_LOGON_RESPONSE = 901;
|
|
|
public const ushort SMSG_REALM_LIST = 902;
|
|
|
@@ -18,8 +17,57 @@ namespace Robot.Protos
|
|
|
public const ushort SMSG_PASSWORD_PROTECT_TYPE = 904;
|
|
|
}
|
|
|
|
|
|
+ public static class ErrorCode
|
|
|
+ {
|
|
|
+ public const int REALM_AUTH_SUCCESS = 0;
|
|
|
+ // Unable to connect
|
|
|
+ public const int REALM_AUTH_FAILURE = 1;
|
|
|
+ // Unable to connect
|
|
|
+ public const int REALM_AUTH_UNKNOWN1 = 2;
|
|
|
+ // This game> account has been closed and is no longer available for use.
|
|
|
+ // Please go to site>/banned.html for further information.
|
|
|
+ public const int REALM_AUTH_ACCOUNT_BANNED = 3;
|
|
|
+ // The information you have entered is not valid.
|
|
|
+ // Please check the spelling of the account name and password.
|
|
|
+ // If you need help in retrieving a lost or stolen password,
|
|
|
+ // see site> for more information
|
|
|
+ public const int REALM_AUTH_NO_MATCH = 4;
|
|
|
+ // The information you have entered is not valid.
|
|
|
+ // Please check the spelling of the account name and password.
|
|
|
+ // If you need help in retrieving a lost or stolen password,
|
|
|
+ // see site> for more information
|
|
|
+ public const int REALM_AUTH_UNKNOWN2 = 5;
|
|
|
+ // This account is already logged into game.
|
|
|
+ // Please check the spelling and try again.
|
|
|
+ public const int REALM_AUTH_ACCOUNT_IN_USE = 6;
|
|
|
+ // You have used up your prepaid time for this account.
|
|
|
+ // Please purchase more to continue playing
|
|
|
+ public const int REALM_AUTH_PREPAID_TIME_LIMIT = 7;
|
|
|
+ // Could not log in to game> at this time. Please try again later.
|
|
|
+ public const int REALM_AUTH_SERVER_FULL = 8;
|
|
|
+ // Unable to validate game version.
|
|
|
+ // This may be caused by file corruption or interference of another program.
|
|
|
+ // Please visit site for more information and possible solutions to this
|
|
|
+ // issue.
|
|
|
+ public const int REALM_AUTH_WRONG_BUILD_NUMBER = 9;
|
|
|
+ // Downloading
|
|
|
+ public const int REALM_AUTH_UPDATE_CLIENT = 10;
|
|
|
+ // Unable to connect
|
|
|
+ public const int REALM_AUTH_UNKNOWN3 = 11;
|
|
|
+ // This game account has been temporarily suspended.
|
|
|
+ // Please go to site further information.
|
|
|
+ public const int REALM_AUTH_ACCOUNT_FREEZED = 12;
|
|
|
+ // Unable to connect
|
|
|
+ public const int REALM_AUTH_UNKNOWN4 = 13;
|
|
|
+ // Connected.
|
|
|
+ public const int REALM_AUTH_UNKNOWN5 = 14;
|
|
|
+ // Access to this account has been blocked by parental controls.
|
|
|
+ // Your settings may be changed in your account preferences at site.
|
|
|
+ public const int REALM_AUTH_PARENTAL_CONTROL = 15;
|
|
|
+ }
|
|
|
+
|
|
|
[DataContract]
|
|
|
- public class CMSG_AuthLogonPermit
|
|
|
+ public class CMSG_Auth_Logon_Permit
|
|
|
{
|
|
|
[DataMember(Order = 1, IsRequired = true)]
|
|
|
public string Account { get; set; }
|
|
|
@@ -28,13 +76,6 @@ namespace Robot.Protos
|
|
|
public string PasswordMd5 { get; set; }
|
|
|
}
|
|
|
|
|
|
- [DataContract]
|
|
|
- public class SMSG_Lock_For_Safe_Time
|
|
|
- {
|
|
|
- [DataMember(Order = 1, IsRequired = true)]
|
|
|
- public uint Time { get; set; }
|
|
|
- }
|
|
|
-
|
|
|
[DataContract]
|
|
|
public class SMSG_Password_Protect_Type
|
|
|
{
|
|
|
@@ -47,7 +88,7 @@ namespace Robot.Protos
|
|
|
[DataMember(Order = 3, IsRequired = true)]
|
|
|
public uint PasswordProtectType { get; set; }
|
|
|
|
|
|
- [DataMember(Order = 4, IsRequired = false)]
|
|
|
+ [DataMember(Order = 4, IsRequired = true)]
|
|
|
public byte[] PpcCoordinate { get; set; }
|
|
|
}
|
|
|
|
|
|
@@ -65,42 +106,42 @@ namespace Robot.Protos
|
|
|
}
|
|
|
|
|
|
[DataContract]
|
|
|
- public class CMSG_AuthLogonChallenge
|
|
|
+ public class CMSG_Auth_Logon_Challenge
|
|
|
+ {
|
|
|
+ }
|
|
|
+
|
|
|
+ [DataContract]
|
|
|
+ public class SMSG_Auth_Logon_Challenge_Response
|
|
|
{
|
|
|
[DataMember(Order = 1, IsRequired = true)]
|
|
|
- public string GameName { get; set; }
|
|
|
+ public int ErrorCode { get; set; }
|
|
|
|
|
|
[DataMember(Order = 2, IsRequired = true)]
|
|
|
- public uint Version1 { get; set; }
|
|
|
+ public byte[] B { get; set; }
|
|
|
|
|
|
[DataMember(Order = 3, IsRequired = true)]
|
|
|
- public uint Version2 { get; set; }
|
|
|
+ public byte[] G { get; set; }
|
|
|
|
|
|
[DataMember(Order = 4, IsRequired = true)]
|
|
|
- public uint Version3 { get; set; }
|
|
|
+ public byte[] N { get; set; }
|
|
|
|
|
|
[DataMember(Order = 5, IsRequired = true)]
|
|
|
- public uint Build { get; set; }
|
|
|
+ public byte[] S { get; set; }
|
|
|
|
|
|
[DataMember(Order = 6, IsRequired = true)]
|
|
|
- public uint Platform { get; set; }
|
|
|
+ public byte[] Unk3 { get; set; }
|
|
|
|
|
|
[DataMember(Order = 7, IsRequired = true)]
|
|
|
- public uint OS { get; set; }
|
|
|
-
|
|
|
- [DataMember(Order = 8, IsRequired = true)]
|
|
|
- public uint Country { get; set; }
|
|
|
-
|
|
|
- [DataMember(Order = 9, IsRequired = true)]
|
|
|
- public uint TimeMapBias { get; set; }
|
|
|
-
|
|
|
- [DataMember(Order = 10, IsRequired = true)]
|
|
|
- public uint IP { get; set; }
|
|
|
+ public uint SecurityFlags { get; set; }
|
|
|
+ }
|
|
|
|
|
|
- [DataMember(Order = 11, IsRequired = true)]
|
|
|
- public byte[] Password { get; set; }
|
|
|
+ [DataContract]
|
|
|
+ public class CMSG_Auth_Logon_Proof
|
|
|
+ {
|
|
|
+ [DataMember(Order = 1, IsRequired = true)]
|
|
|
+ public byte[] A { get; set; }
|
|
|
|
|
|
- [DataMember(Order = 12, IsRequired = true)]
|
|
|
- public byte[] I { get; set; }
|
|
|
+ [DataMember(Order = 2, IsRequired = true)]
|
|
|
+ public byte[] M1 { get; set; }
|
|
|
}
|
|
|
}
|