def __init__(self, client, player, msg):
        super().__init__(client)
        self.id = 20103
        self.player = player
        self.msg = msg
        self.fingerprint = Fingerprint.loadFinger_full("GameAssets/fingerprint.json")

        """
        << Error Code List >>
        # 1  = Custom Message
        # 7  = Patch
        # 8  = Update Available
        # 9  = Redirect
        # 10 = Maintenance
        # 11 = Banned
        # 13 = Acc Locked PopUp
        # 16 = Updating Cr/Maintenance/Too high version
        # 18 = Chinese Text?

        """

        if self.player.err_code == 7 or self.player.err_code == 8:
            self.isPatching = True
        else:
            self.isPatching = False
Esempio n. 2
0
 def __init__(self, client, player, msg):
     super().__init__(client)
     self.id = 20103
     self.player = player
     self.msg = msg
     self.fingerprint = Fingerprint.loadFinger_full(
         "GameAssets/fingerprint.json")
     """
    def encode(self):
        self.writeInt(self.player.err_code)  # error code
        self.writeString(
            Fingerprint.loadFinger_full(
                "GameAssets/fingerprint.json"))  # fingerprint

        self.writeString()  # null

        self.writeString(self.player.patch_url)  # patch url
        self.writeString(self.player.update_url)  # update url
        self.writeString(self.msg)  # message

        self.writeHexa('''00 00 00 00 00 FF FF FF FF 00 00 00 02''')  # unknown

        self.writeString(self.player.patch_url)  # patch url
        self.writeString()  # rackcdn url

        self.writeInt(0)
        self.writeInt(0)  # time left ?

        self.writeString()  # null
        self.writeString()  # null

        self.writeHexa('''02 00 00 00 00 00 00 00 00 00''')  # unknown