Exemplo n.º 1
0
 def process(self):
     if (self.player.isReady == 0):
         self.player.isReady = 0
     else:
         self.player.isReady = 0
     TeamGameroomDataMessage(self.client, self.player).send()
     TeamGameStartingMessage(self.client, self.player).send()
Exemplo n.º 2
0
    def process(self):
        if self.major != 26:
            LoginFailedMessage(
                self.client, self.player,
                "The server does not support your version").send()

        elif self.player.LowID != 0:

            if self.player.maintenance:
                LoginFailedMessage(self.client, self.player, "").send()

            if self.player.patch:
                if self.fingerprint_sha != self.player.patch_sha:
                    LoginFailedMessage(self.client, self.player, "").send()

            LoginOkMessage(self.client, self.player).send()
            DataBase.loadAccount(self)  # load account
            OwnHomeDataMessage(self.client, self.player).send()
            MyAllianceMessage(self.client, self.player).send()
            if self.player.DoNotDistrub == 1:
                DoNotDistrubOkMessage(self.client, self.player).send()
            if self.player.roomID > 0:
                TeamGameroomDataMessage(self.client, self.player).send()

        else:
            self.player.LowID = Helpers.randomID(self)
            self.player.HighID = 0
            self.player.Token = Helpers.randomStringDigits(self)
            LoginOkMessage(self.client, self.player).send()
            OwnHomeDataMessage(self.client, self.player).send()
            MyAllianceMessage(self.client, self.player).send()
Exemplo n.º 3
0
    def process(self):
        if self.csv_id == 29:
            self.player.brawler_id = Characters.get_brawler_by_skin_id(
                self, self.BrawlerSkinId)
            self.player.starpower = Cards.get_spg_by_brawler_id(
                self, self.player.brawler_id, 4)
            self.player.gadget = Cards.get_spg_by_brawler_id(
                self, self.player.brawler_id, 5)
        else:
            self.player.starpower = self.StarpowerID
            self.player.gadget = Cards.get_spg_by_brawler_id(
                self, self.player.brawler_id, 5)

        DataBase.replaceValue(self, 'starpower', self.player.starpower)
        DataBase.replaceValue(self, 'gadget', self.player.gadget)

        DataBase.UpdateGameroomPlayerInfo(self, self.player.low_id)

        TeamGameroomDataMessage(self.client, self.player).send()
Exemplo n.º 4
0
    def process(self):
        if self.major != 26:
            self.player.err_code = 8
            LoginFailedMessage(
                self.client, self.player,
                "Your client is outdated, click below to download the new version!"
            ).send()

        if self.player.maintenance:
            LoginFailedMessage(self.client, self.player, "").send()

        if self.fingerprint_sha != self.player.patch_sha and self.player.patch:
            LoginFailedMessage(self.client, self.player, "").send()

        elif self.player.low_id != 0:
            LoginOkMessage(self.client, self.player).send()
            DataBase.loadAccount(self)  # load account
            OwnHomeDataMessage(self.client, self.player).send()
            try:
                MyAllianceMessage(self.client, self.player,
                                  self.player.club_low_id).send()
                AllianceStreamMessage(self.client, self.player,
                                      self.player.club_low_id, 0).send()
                DataBase.GetmsgCount(self, self.player.club_low_id)
            except:
                MyAllianceMessage(self.client, self.player, 0).send()
                AllianceStreamMessage(self.client, self.player, 0, 0).send()
            FriendListMessage(self.client, self.player).send()

            if self.player.do_not_distrub == 1:
                DoNotDistrubOkMessage(self.client, self.player).send()
            if self.player.room_id > 0:
                TeamGameroomDataMessage(self.client, self.player).send()

        else:
            self.player.low_id = Helpers.randomID(self)
            self.player.high_id = 0
            self.player.token = Helpers.randomStringDigits(self)

            LoginOkMessage(self.client, self.player).send()
            OwnHomeDataMessage(self.client, self.player).send()
            MyAllianceMessage(self.client, self.player,
                              self.player.club_low_id).send()
Exemplo n.º 5
0
 def process(self):
     if self.mapID == 1:
         self.player.mapID = 7 # gem grab
     elif self.mapID == 2:
         self.player.mapID = 32 # solo sd
     elif self.mapID == 3:
         self.player.mapID = 17 # heist
     elif self.mapID == 4:
         self.player.mapID = 0 # bounty
     elif self.mapID == 5:
         self.player.mapID = 24 # brawl ball
     elif self.mapID == 6:
         self.player.mapID = 202 # present plunder
     elif self.mapID == 7:
         self.player.mapID = 97 # siege
     elif self.mapID == 8:
         self.player.mapID = 167 # takedown
     elif self.mapID == 9:
         self.player.mapID = 174 # lone star
     TeamGameroomDataMessage(self.client, self.player).send()
 def process(self):
     DataBase.replaceValue(self, 'starpower', self.player.starpower)
     if self.player.room_id > 0:
         TeamGameroomDataMessage(self.client, self.player).send()
Exemplo n.º 7
0
 def process(self):
     TeamGameroomDataMessage(self.client, self.player).send()
Exemplo n.º 8
0
 def process(self):
     DataBase.replaceGameroomValue(self, 'mapID', self.player.map_id,
                                   "room")
     TeamGameroomDataMessage(self.client, self.player).send()
Exemplo n.º 9
0
 def process(self):
     DataBase.replaceGameroomValue(self, 'useGadget', self.use_gadget,
                                   "room")
     TeamGameroomDataMessage(self.client, self.player).send()
    def process(self):
        if self.Unk != 23:
            if self.BrawlerSkinId == 0:
                self.player.brawlerID = 0

            elif self.BrawlerSkinId == 29:
                self.player.brawlerID = 0

            elif self.BrawlerSkinId == 52:
                self.player.brawlerID = 0

            elif self.BrawlerSkinId == 122:
                self.player.brawlerID = 0

            elif self.BrawlerSkinId == 159:
                self.player.brawlerID = 0

            elif self.BrawlerSkinId == 14:
                self.player.brawlerID = 8

            elif self.BrawlerSkinId == 15:
                self.player.brawlerID = 8

            elif self.BrawlerSkinId == 60:
                self.player.brawlerID = 8

            elif self.BrawlerSkinId == 79:
                self.player.brawlerID = 8

            elif self.BrawlerSkinId == 148:
                self.player.brawlerID = 8

            elif self.BrawlerSkinId == 1:
                self.player.brawlerID = 1

            elif self.BrawlerSkinId == 2:
                self.player.brawlerID = 1

            elif self.BrawlerSkinId == 69:
                self.player.brawlerID = 1

            elif self.BrawlerSkinId == 103:
                self.player.brawlerID = 1

            elif self.BrawlerSkinId == 135:
                self.player.brawlerID = 1

            elif self.BrawlerSkinId == 3:
                self.player.brawlerID = 2

            elif self.BrawlerSkinId == 25:
                self.player.brawlerID = 2

            elif self.BrawlerSkinId == 64:
                self.player.brawlerID = 2

            elif self.BrawlerSkinId == 102:
                self.player.brawlerID = 2

            elif self.BrawlerSkinId == 178:
                self.player.brawlerID = 2

            elif self.BrawlerSkinId == 13:
                self.player.brawlerID = 7

            elif self.BrawlerSkinId == 44:
                self.player.brawlerID = 7

            elif self.BrawlerSkinId == 47:
                self.player.brawlerID = 7

            elif self.BrawlerSkinId == 123:
                self.player.brawlerID = 7

            elif self.BrawlerSkinId == 162:
                self.player.brawlerID = 7

            elif self.BrawlerSkinId == 174:
                self.player.brawlerID = 7

            elif self.BrawlerSkinId == 4:
                self.player.brawlerID = 3

            elif self.BrawlerSkinId == 5:
                self.player.brawlerID = 3

            elif self.BrawlerSkinId == 58:
                self.player.brawlerID = 3

            elif self.BrawlerSkinId == 72:
                self.player.brawlerID = 3

            elif self.BrawlerSkinId == 91:
                self.player.brawlerID = 3

            elif self.BrawlerSkinId == 6:
                self.player.brawlerID = 9

            elif self.BrawlerSkinId == 56:
                self.player.brawlerID = 9

            elif self.BrawlerSkinId == 57:
                self.player.brawlerID = 9

            elif self.BrawlerSkinId == 97:
                self.player.brawlerID = 9

            elif self.BrawlerSkinId == 160:
                self.player.brawlerID = 9

            elif self.BrawlerSkinId == 22:
                self.player.brawlerID = 14

            elif self.BrawlerSkinId == 94:
                self.player.brawlerID = 14

            elif self.BrawlerSkinId == 98:
                self.player.brawlerID = 14

            elif self.BrawlerSkinId == 99:
                self.player.brawlerID = 14

            elif self.BrawlerSkinId == 163:
                self.player.brawlerID = 14

            elif self.BrawlerSkinId == 86:
                self.player.brawlerID = 22

            elif self.BrawlerSkinId == 106:
                self.player.brawlerID = 27

            elif self.BrawlerSkinId == 109:
                self.player.brawlerID = 27

            elif self.BrawlerSkinId == 143:
                self.player.brawlerID = 27

            elif self.BrawlerSkinId == 119:
                self.player.brawlerID = 30

            elif self.BrawlerSkinId == 167:
                self.player.brawlerID = 30

            elif self.BrawlerSkinId == 7:
                self.player.brawlerID = 10

            elif self.BrawlerSkinId == 28:
                self.player.brawlerID = 10

            elif self.BrawlerSkinId == 30:
                self.player.brawlerID = 10

            elif self.BrawlerSkinId == 128:
                self.player.brawlerID = 10

            elif self.BrawlerSkinId == 12:
                self.player.brawlerID = 6

            elif self.BrawlerSkinId == 27:
                self.player.brawlerID = 6

            elif self.BrawlerSkinId == 59:
                self.player.brawlerID = 6

            elif self.BrawlerSkinId == 90:
                self.player.brawlerID = 6

            elif self.BrawlerSkinId == 92:
                self.player.brawlerID = 6

            elif self.BrawlerSkinId == 116:
                self.player.brawlerID = 6

            elif self.BrawlerSkinId == 21:
                self.player.brawlerID = 13

            elif self.BrawlerSkinId == 71:
                self.player.brawlerID = 13

            elif self.BrawlerSkinId == 140:
                self.player.brawlerID = 13

            elif self.BrawlerSkinId == 77:
                self.player.brawlerID = 24

            elif self.BrawlerSkinId == 9:
                self.player.brawlerID = 4

            elif self.BrawlerSkinId == 26:
                self.player.brawlerID = 4

            elif self.BrawlerSkinId == 68:
                self.player.brawlerID = 4

            elif self.BrawlerSkinId == 130:
                self.player.brawlerID = 4

            elif self.BrawlerSkinId == 171:
                self.player.brawlerID = 4

            elif self.BrawlerSkinId == 34:
                self.player.brawlerID = 18

            elif self.BrawlerSkinId == 70:
                self.player.brawlerID = 18

            elif self.BrawlerSkinId == 158:
                self.player.brawlerID = 18

            elif self.BrawlerSkinId == 41:
                self.player.brawlerID = 19

            elif self.BrawlerSkinId == 61:
                self.player.brawlerID = 19

            elif self.BrawlerSkinId == 88:
                self.player.brawlerID = 19

            elif self.BrawlerSkinId == 165:
                self.player.brawlerID = 19

            elif self.BrawlerSkinId == 73:
                self.player.brawlerID = 25

            elif self.BrawlerSkinId == 93:
                self.player.brawlerID = 25

            elif self.BrawlerSkinId == 104:
                self.player.brawlerID = 25

            elif self.BrawlerSkinId == 132:
                self.player.brawlerID = 25

            elif self.BrawlerSkinId == 134:
                self.player.brawlerID = 25

            elif self.BrawlerSkinId == 142:
                self.player.brawlerID = 34

            elif self.BrawlerSkinId == 176:
                self.player.brawlerID = 34

            elif self.BrawlerSkinId == 23:
                self.player.brawlerID = 15

            elif self.BrawlerSkinId == 108:
                self.player.brawlerID = 15

            elif self.BrawlerSkinId == 120:
                self.player.brawlerID = 15

            elif self.BrawlerSkinId == 147:
                self.player.brawlerID = 15

            elif self.BrawlerSkinId == 24:
                self.player.brawlerID = 16

            elif self.BrawlerSkinId == 179:
                self.player.brawlerID = 16

            elif self.BrawlerSkinId == 42:
                self.player.brawlerID = 20

            elif self.BrawlerSkinId == 45:
                self.player.brawlerID = 20

            elif self.BrawlerSkinId == 125:
                self.player.brawlerID = 20

            elif self.BrawlerSkinId == 81:
                self.player.brawlerID = 26

            elif self.BrawlerSkinId == 146:
                self.player.brawlerID = 26

            elif self.BrawlerSkinId == 114:
                self.player.brawlerID = 29

            elif self.BrawlerSkinId == 139:
                self.player.brawlerID = 29

            elif self.BrawlerSkinId == 156:
                self.player.brawlerID = 36

            elif self.BrawlerSkinId == 18:
                self.player.brawlerID = 11

            elif self.BrawlerSkinId == 50:
                self.player.brawlerID = 11

            elif self.BrawlerSkinId == 63:
                self.player.brawlerID = 11

            elif self.BrawlerSkinId == 75:
                self.player.brawlerID = 11

            elif self.BrawlerSkinId == 173:
                self.player.brawlerID = 11

            elif self.BrawlerSkinId == 32:
                self.player.brawlerID = 17

            elif self.BrawlerSkinId == 111:
                self.player.brawlerID = 17

            elif self.BrawlerSkinId == 145:
                self.player.brawlerID = 17

            elif self.BrawlerSkinId == 67:
                self.player.brawlerID = 21

            elif self.BrawlerSkinId == 117:
                self.player.brawlerID = 21

            elif self.BrawlerSkinId == 172:
                self.player.brawlerID = 21

            elif self.BrawlerSkinId == 127:
                self.player.brawlerID = 32

            elif self.BrawlerSkinId == 137:
                self.player.brawlerID = 32

            elif self.BrawlerSkinId == 121:
                self.player.brawlerID = 31

            elif self.BrawlerSkinId == 152:
                self.player.brawlerID = 31

            elif self.BrawlerSkinId == 157:
                self.player.brawlerID = 37

            elif self.BrawlerSkinId == 177:
                self.player.brawlerID = 37

            elif self.BrawlerSkinId == 10:
                self.player.brawlerID = 5

            elif self.BrawlerSkinId == 11:
                self.player.brawlerID = 5

            elif self.BrawlerSkinId == 96:
                self.player.brawlerID = 5

            elif self.BrawlerSkinId == 19:
                self.player.brawlerID = 12

            elif self.BrawlerSkinId == 20:
                self.player.brawlerID = 12

            elif self.BrawlerSkinId == 49:
                self.player.brawlerID = 12

            elif self.BrawlerSkinId == 95:
                self.player.brawlerID = 12

            elif self.BrawlerSkinId == 100:
                self.player.brawlerID = 12

            elif self.BrawlerSkinId == 101:
                self.player.brawlerID = 12

            elif self.BrawlerSkinId == 62:
                self.player.brawlerID = 23

            elif self.BrawlerSkinId == 110:
                self.player.brawlerID = 23

            elif self.BrawlerSkinId == 126:
                self.player.brawlerID = 23

            elif self.BrawlerSkinId == 131:
                self.player.brawlerID = 23

            elif self.BrawlerSkinId == 113:
                self.player.brawlerID = 28

            elif self.BrawlerSkinId == 118:
                self.player.brawlerID = 28

            elif self.BrawlerSkinId == 155:
                self.player.brawlerID = 35

            elif self.BrawlerSkinId == 180:
                self.player.brawlerID = 35


            if self.player.brawlerID == 0: #Shelly
                self.player.starpower = 76
                self.player.gadget = 255

            elif self.player.brawlerID == 1: #Colt
                self.player.starpower = 77
                self.player.gadget = 273

            elif self.player.brawlerID == 2: #Bull
                self.player.starpower = 78
                self.player.gadget = 272

            elif self.player.brawlerID == 3: #Brock
                self.player.starpower = 79
                self.player.gadget = 245

            elif self.player.brawlerID == 4: #Rico
                self.player.starpower = 80
                self.player.gadget = 246

            elif self.player.brawlerID == 5: #Spike
                self.player.starpower = 81
                self.player.gadget = 247

            elif self.player.brawlerID == 6: #Barley
                self.player.starpower = 82
                self.player.gadget = 273

            elif self.player.brawlerID == 7: #Jessie
                self.player.starpower = 83
                self.player.gadget = 251

            elif self.player.brawlerID == 8: #Nita
                self.player.starpower = 84
                self.player.gadget = 249

            elif self.player.brawlerID == 9: #Dynamike
                self.player.starpower = 85
                self.player.gadget = 258

            elif self.player.brawlerID == 10: #El Primo
                self.player.starpower = 86
                self.player.gadget = 264

            elif self.player.brawlerID == 11: #Mortis
                self.player.starpower = 87
                self.player.gadget = 265

            elif self.player.brawlerID == 12: #Crow
                self.player.starpower = 88
                self.player.gadget = 243

            elif self.player.brawlerID == 13: #Poco
                self.player.starpower = 89
                self.player.gadget = 267

            elif self.player.brawlerID == 14: #Bo
                self.player.starpower = 90
                self.player.gadget = 263

            elif self.player.brawlerID == 15: #Piper
                self.player.starpower = 91
                self.player.gadget = 268

            elif self.player.brawlerID == 16: #PAM
                self.player.starpower = 92
                self.player.gadget = 257

            elif self.player.brawlerID == 17: #Tara
                self.player.starpower = 93
                self.player.gadget = 266

            elif self.player.brawlerID == 18: #Darryl
                self.player.starpower = 94
                self.player.gadget = 260

            elif self.player.brawlerID == 19: #Penny
                self.player.starpower = 99
                self.player.gadget = 248

            elif self.player.brawlerID == 20: #Frank
                self.player.starpower = 104
                self.player.gadget = 261

            elif self.player.brawlerID == 21: #Gene
                self.player.starpower = 109
                self.player.gadget = 252

            elif self.player.brawlerID == 22: #Tick
                self.player.starpower = 114
                self.player.gadget = 253

            elif self.player.brawlerID == 23: #Leon
                self.player.starpower = 119
                self.player.gadget = 276

            elif self.player.brawlerID == 24: #Rosa
                self.player.starpower = 124
                self.player.gadget = 242

            elif self.player.brawlerID == 25: #Carl
                self.player.starpower = 129
                self.player.gadget = 262

            elif self.player.brawlerID == 26: #Bibi
                self.player.starpower = 134
                self.player.gadget = 275

            elif self.player.brawlerID == 27: #8-Bit
                self.player.starpower = 168
                self.player.gadget = 259

            elif self.player.brawlerID == 28: #Sandy
                self.player.starpower = 186
                self.player.gadget = 270

            elif self.player.brawlerID == 29: #Bea
                self.player.starpower = 192
                self.player.gadget = 271

            elif self.player.brawlerID == 30: #EMZ
                self.player.starpower = 198
                self.player.gadget = 274

            elif self.player.brawlerID == 31: #Mr. P
                self.player.starpower = 204
                self.player.gadget = 269

            elif self.player.brawlerID == 32: #Max
                self.player.starpower = 210
                self.player.gadget = 254

            elif self.player.brawlerID == 34: #Jacky
                self.player.starpower = 222
                self.player.gadget = 256

            elif self.player.brawlerID == 35: #Gale
                self.player.starpower = 228
                self.player.gadget = 277

            elif self.player.brawlerID == 36: #Nani
                self.player.starpower = 234
                self.player.gadget = 278

            elif self.player.brawlerID == 37: #Sprout
                self.player.starpower = 240
                self.player.gadget = 244

            DataBase.replaceValue(self, 'starpower', self.player.starpower)
            DataBase.replaceValue(self, 'gadget', self.player.gadget)

            TeamGameroomDataMessage(self.client, self.player).send()
Exemplo n.º 11
0
    def process(self):
        self.player.room_id = random.randint(0, 2147483647)
        DataBase.replaceValue(self, 'roomID', self.player.room_id)

        DataBase.createGameroomDB(self)
        TeamGameroomDataMessage(self.client, self.player).send()
Exemplo n.º 12
0
    def process(self):

        if self.commandID == 500 or self.commandID == 517 or self.commandID == 535:
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.player.boxID = self.read_Vint()
            print(self.player.boxID)
            print("Command ID", self.commandID, "has been handled")
            ServerBox(self.client, self.player).send()

        elif self.commandID == 505:
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.player.profileIcon = self.read_Vint()
            DataBase.replaceValue(self, 'profileIcon', self.player.profileIcon)
            print("Command ID", self.commandID, "has been handled")

        elif self.commandID == 506:
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.player.skinID = self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.player.brawlerID = self.read_Vint()
            DataBase.replaceValue(self, 'skinID', self.player.skinID)
            if self.player.brawlerID == 0:
                DataBase.replaceValue(self, 'shellySkin', self.player.skinID)

            elif self.player.brawlerID == 1:
                DataBase.replaceValue(self, 'coltSkin', self.player.skinID)

            elif self.player.brawlerID == 2:
                DataBase.replaceValue(self, 'bullSkin', self.player.skinID)

            elif self.player.brawlerID == 3:
                DataBase.replaceValue(self, 'brockSkin', self.player.skinID)

            elif self.player.brawlerID == 4:
                DataBase.replaceValue(self, 'ricoSkin', self.player.skinID)

            elif self.player.brawlerID == 5:
                DataBase.replaceValue(self, 'spikeSkin', self.player.skinID)

            elif self.player.brawlerID == 6:
                DataBase.replaceValue(self, 'barleySkin', self.player.skinID)

            elif self.player.brawlerID == 7:
                DataBase.replaceValue(self, 'jessieSkin', self.player.skinID)

            elif self.player.brawlerID == 8:
                DataBase.replaceValue(self, 'nitaSkin', self.player.skinID)

            elif self.player.brawlerID == 9:
                DataBase.replaceValue(self, 'dynamikeSkin', self.player.skinID)

            elif self.player.brawlerID == 10:
                DataBase.replaceValue(self, 'elprimoSkin', self.player.skinID)

            elif self.player.brawlerID == 11:
                DataBase.replaceValue(self, 'mortisSkin', self.player.skinID)

            elif self.player.brawlerID == 12:
                DataBase.replaceValue(self, 'crowSkin', self.player.skinID)

            elif self.player.brawlerID == 13:
                DataBase.replaceValue(self, 'pocoSkin', self.player.skinID)

            elif self.player.brawlerID == 14:
                DataBase.replaceValue(self, 'boSkin', self.player.skinID)

            elif self.player.brawlerID == 15:
                DataBase.replaceValue(self, 'piperSkin', self.player.skinID)

            elif self.player.brawlerID == 16:
                DataBase.replaceValue(self, 'pamSkin', self.player.skinID)

            elif self.player.brawlerID == 17:
                DataBase.replaceValue(self, 'taraSkin', self.player.skinID)

            elif self.player.brawlerID == 18:
                DataBase.replaceValue(self, 'darrylSkin', self.player.skinID)

            elif self.player.brawlerID == 19:
                DataBase.replaceValue(self, 'pennySkin', self.player.skinID)

            elif self.player.brawlerID == 20:
                DataBase.replaceValue(self, 'frankSkin', self.player.skinID)

            elif self.player.brawlerID == 21:
                DataBase.replaceValue(self, 'geneSkin', self.player.skinID)

            elif self.player.brawlerID == 22:
                DataBase.replaceValue(self, 'tickSkin', self.player.skinID)

            elif self.player.brawlerID == 23:
                DataBase.replaceValue(self, 'leonSkin', self.player.skinID)

            elif self.player.brawlerID == 24:
                DataBase.replaceValue(self, 'rosaSkin', self.player.skinID)

            elif self.player.brawlerID == 25:
                DataBase.replaceValue(self, 'carlSkin', self.player.skinID)

            elif self.player.brawlerID == 26:
                DataBase.replaceValue(self, 'bibiSkin', self.player.skinID)

            elif self.player.brawlerID == 27:
                DataBase.replaceValue(self, '8bitSkin', self.player.skinID)

            elif self.player.brawlerID == 28:
                DataBase.replaceValue(self, 'sandySkin', self.player.skinID)

            elif self.player.brawlerID == 29:
                DataBase.replaceValue(self, 'beaSkin', self.player.skinID)

            elif self.player.brawlerID == 30:
                DataBase.replaceValue(self, 'emzSkin', self.player.skinID)

            elif self.player.brawlerID == 31:
                DataBase.replaceValue(self, 'mrpSkin', self.player.skinID)

            elif self.player.brawlerID == 32:
                DataBase.replaceValue(self, 'maxSkin', self.player.skinID)

            elif self.player.brawlerID == 34:
                DataBase.replaceValue(self, 'jackySkin', self.player.skinID)

            elif self.player.brawlerID == 35:
                DataBase.replaceValue(self, 'galeSkin', self.player.skinID)

            elif self.player.brawlerID == 36:
                DataBase.replaceValue(self, 'naniSkin', self.player.skinID)

            elif self.player.brawlerID == 37:
                DataBase.replaceValue(self, 'sproutSkin', self.player.skinID)

            if self.player.brawlerID == 0:  #Shelly
                self.player.starpower = 76
                self.player.gadget = 255

            elif self.player.brawlerID == 1:  #Colt
                self.player.starpower = 77
                self.player.gadget = 273

            elif self.player.brawlerID == 2:  #Bull
                self.player.starpower = 78
                self.player.gadget = 272

            elif self.player.brawlerID == 3:  #Brock
                self.player.starpower = 79
                self.player.gadget = 245

            elif self.player.brawlerID == 4:  #Rico
                self.player.starpower = 80
                self.player.gadget = 246

            elif self.player.brawlerID == 5:  #Spike
                self.player.starpower = 81
                self.player.gadget = 247

            elif self.player.brawlerID == 6:  #Barley
                self.player.starpower = 82
                self.player.gadget = 273

            elif self.player.brawlerID == 7:  #Jessie
                self.player.starpower = 83
                self.player.gadget = 251

            elif self.player.brawlerID == 8:  #Nita
                self.player.starpower = 84
                self.player.gadget = 249

            elif self.player.brawlerID == 9:  #Dynamike
                self.player.starpower = 85
                self.player.gadget = 258

            elif self.player.brawlerID == 10:  #El Primo
                self.player.starpower = 86
                self.player.gadget = 264

            elif self.player.brawlerID == 11:  #Mortis
                self.player.starpower = 87
                self.player.gadget = 265

            elif self.player.brawlerID == 12:  #Crow
                self.player.starpower = 88
                self.player.gadget = 243

            elif self.player.brawlerID == 13:  #Poco
                self.player.starpower = 89
                self.player.gadget = 267

            elif self.player.brawlerID == 14:  #Bo
                self.player.starpower = 90
                self.player.gadget = 263

            elif self.player.brawlerID == 15:  #Piper
                self.player.starpower = 91
                self.player.gadget = 268

            elif self.player.brawlerID == 16:  #PAM
                self.player.starpower = 92
                self.player.gadget = 257

            elif self.player.brawlerID == 17:  #Tara
                self.player.starpower = 93
                self.player.gadget = 266

            elif self.player.brawlerID == 18:  #Darryl
                self.player.starpower = 94
                self.player.gadget = 260

            elif self.player.brawlerID == 19:  #Penny
                self.player.starpower = 99
                self.player.gadget = 248

            elif self.player.brawlerID == 20:  #Frank
                self.player.starpower = 104
                self.player.gadget = 261

            elif self.player.brawlerID == 21:  #Gene
                self.player.starpower = 109
                self.player.gadget = 252

            elif self.player.brawlerID == 22:  #Tick
                self.player.starpower = 114
                self.player.gadget = 253

            elif self.player.brawlerID == 23:  #Leon
                self.player.starpower = 119
                self.player.gadget = 276

            elif self.player.brawlerID == 24:  #Rosa
                self.player.starpower = 124
                self.player.gadget = 242

            elif self.player.brawlerID == 25:  #Carl
                self.player.starpower = 129
                self.player.gadget = 262

            elif self.player.brawlerID == 26:  #Bibi
                self.player.starpower = 134
                self.player.gadget = 275

            elif self.player.brawlerID == 27:  #8-Bit
                self.player.starpower = 168
                self.player.gadget = 259

            elif self.player.brawlerID == 28:  #Sandy
                self.player.starpower = 186
                self.player.gadget = 270

            elif self.player.brawlerID == 29:  #Bea
                self.player.starpower = 192
                self.player.gadget = 271

            elif self.player.brawlerID == 30:  #EMZ
                self.player.starpower = 198
                self.player.gadget = 274

            elif self.player.brawlerID == 31:  #Mr. P
                self.player.starpower = 204
                self.player.gadget = 269

            elif self.player.brawlerID == 32:  #Max
                self.player.starpower = 210
                self.player.gadget = 254

            elif self.player.brawlerID == 34:  #Jacky
                self.player.starpower = 222
                self.player.gadget = 256

            elif self.player.brawlerID == 35:  #Gale
                self.player.starpower = 228
                self.player.gadget = 277

            elif self.player.brawlerID == 36:  #Nani
                self.player.starpower = 234
                self.player.gadget = 278

            elif self.player.brawlerID == 37:  #Sprout
                self.player.starpower = 240
                self.player.gadget = 244

            DataBase.replaceValue(self, 'starpower', self.player.starpower)
            DataBase.replaceValue(self, 'gadget', self.player.gadget)

            DataBase.replaceValue(self, 'brawlerID', self.player.brawlerID)

            print("Command ID", self.commandID, "has been handled")

        elif self.commandID == 521:
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.gold = self.read_Vint()
            if self.gold == 0:
                newGold = self.player.gold + 150
                newGems = self.player.gems - 20
                DataBase.replaceValue(self, 'gold', newGold)
                DataBase.replaceValue(self, 'gems', newGems)
            elif self.gold == 1:
                newGold = self.player.gold + 400
                newGems = self.player.gems - 50
                DataBase.replaceValue(self, 'gold', newGold)
                DataBase.replaceValue(self, 'gems', newGems)
            elif self.gold == 2:
                newGold = self.player.gold + 1200
                newGems = self.player.gems - 140
                DataBase.replaceValue(self, 'gold', newGold)
                DataBase.replaceValue(self, 'gems', newGems)
            print("Command ID", self.commandID, "has been handled")

        elif self.commandID == 509:
            newGems = self.player.gems - 50
            DataBase.replaceValue(self, 'gems', newGems)
            print("Command ID", self.commandID, "has been handled")

        elif self.commandID == 527:
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.namecolor = self.read_Vint()
            DataBase.replaceValue(self, 'namecolor', self.namecolor)
            print("Command ID", self.commandID, "has been handled")

        elif self.commandID == 529:
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.read_Vint()
            self.player.starpower = self.read_Vint()
            DataBase.replaceValue(self, 'starpower', self.player.starpower)
            if self.player.roomID > 0:
                TeamGameroomDataMessage(self.client, self.player).send()
            print("Command ID", self.commandID, "has been handled")

        elif self.commandID >= 0:
            print("Command ID", self.commandID, "is not handled!")