pass elif eventToken1 == "\x05": if eventToken2 == "\x07": #Anchor thing #jointType, object1, o1x, o1y, o1r, object2, o2x, o2y, o2r = values #self.room.stateRecorder.addAnchor(values) self.room.sendAllOthersAndSelf(self, eventTokens, values) #self.room.sendAll(eventTokens, values) elif eventToken2 == "\x08": #object begin #objectCode, x, y, rotation = values self.room.sendAllOthersAndSelf(self, eventTokens, [self.playerCode] + values) if self.isAfk==True: self.isAfk=False elif eventToken2 == "\x09": self.room.sendAllOthersAndSelf(self, eventTokens, [self.playerCode]) elif eventToken2 == "\x0E": # "Demande_Creation_Clou" #pass self.room.sendAll(eventTokens, values) elif eventToken2 == "\x0F": # "Demande_Creation_Sol" #pass self.room.sendAll(eventTokens, values) elif eventToken2 == "\x10": # "Demande_Deplacement_Fromage" #x, y = values self.room.sendAll(eventTokens, values) elif eventToken2 == "\x11": # "Demande_Explosion" #pass self.room.sendAll(eventTokens, values) elif eventToken2 == "\x12": cantgoin = 0 #Mouse got cheese into hole objectID, someothervalue = values if self.room.isEditeur: if self.room.ISCMVdata[7]==0 and self.room.ISCMV!=0: self.room.ISCMVdata[7]=1 self.sendMapValidated() if self.isShaman: checkISCGI = self.room.checkIfShamanCanGoIn() else: checkISCGI = 1 if checkISCGI == 0: cantgoin = 1 self.saveRemainingMiceMessage() if cantgoin != 1: self.isDead = True if self.gotGift == 1: self.giftCount += 1 self.gotGift = 0 if self.giftCount == 5: playerCode = self.playerCode self.sendUnlockedTitle(playerCode, "127") elif self.giftCount == 10: playerCode = self.playerCode self.sendUnlockedTitle(playerCode, "128") elif self.giftCount == 15: playerCode = self.playerCode self.sendUnlockedTitle(playerCode, "129") elif self.giftCount == 20: playerCode = self.playerCode self.sendUnlockedTitle(playerCode, "130") else: pass self.room.numCompleted += 1 place = self.room.numCompleted timeTaken = int( (time.time() - self.room.gameStartTime)*10 ) #Score stuff playerscorep = self.score if place==1: playerscorep = playerscorep+16 if self.room.getPlayerCount() >= 3: #Change this number for how many have to be in the room for firsts to count if self.isShaman: self.firstcount = self.firstcount else: self.firstcount += 1 elif place==2: playerscorep = playerscorep+14 elif place==3: playerscorep = playerscorep+12 else: playerscorep = playerscorep+10 if self.isShaman==True: playerscorep = self.score self.score = playerscorep #end if int(self.room.getPlayerCount()) >= 2: if self.playerCode == self.room.currentShamanCode: self.shamancheese += 1 else: self.cheesecount += 1 self.shopcheese += 1 self.room.informAll(TransformiceClientHandler.sendPlayerGotCheese, [self.playerCode, self.score, place, timeTaken]) print (self.playerCode, self.score, place, timeTaken) if self.room.isTesting: self.sendData("\x0E" + "\x11",[]) self.room.checkShouldChangeWorld() elif eventToken2 == "\x13": #client thinks he has cheese self.room.sendAll(eventTokens, [self.playerCode]) #self.room.stateRecorder.log(eventTokens, [self.playerCode]) self.room.numGotCheese += 1 if self.room.currentWorld == 108: if self.room.numGotCheese>=10: self.room.killShaman() if self.room.currentWorld == 109: if self.room.numGotCheese>=10: self.room.killShaman() if self.room.currentWorld == 110: if self.room.numGotCheese>=10: self.room.killShaman() if self.room.currentWorld == 111: if self.room.numGotCheese>=10: self.room.killShaman() if self.room.currentWorld == 112: if self.room.numGotCheese>=10: self.room.killShaman() if self.room.currentWorld == 113: if self.room.numGotCheese>=10: self.room.killShaman() if self.room.currentWorld == 114: if self.room.numGotCheese>=10: self.room.killShaman() elif eventToken2 == "\x14": #object finalise conjouring #objectCode, x, y, rotation, unkn1, unkn2, isSolid = values hackcheck = 0 #if self.room.currentWorld == 108 or self.room.currentWorld == 109 or self.room.currentWorld == 888 or self.room.currentWorld == 801: #if self.room.isSandbox == False and self.room.isPlay == False: #self.room.informAll(TransformiceClientHandler.sendPlayerDisconnect, [self.playerCode]) #self.room.removeClient(self) #hmessage = "["+self.address[0]+" - "+self.username+"] Spawned object on map with no objects or shaman." #self.sendAdminMessageChannel("Hack Detect", hmessage) #self.close() #hackcheck = 1 #if self.playerCode != self.room.currentShamanCode: #if self.room.isSandbox == False and self.room.isPlay == False: #self.room.informAll(TransformiceClientHandler.sendPlayerDisconnect, [self.playerCode]) #self.room.removeClient(self) #hmessage = "["+self.address[0]+" - "+self.username+"] Spawned object when not shaman." #self.sendAdminMessageChannel("Hack Detect", hmessage) #self.close() #hackcheck = 1 if values[0]=="5" or values[0]=="8" or values[0]=="9" or values[0]=="17" or values[0]=="21" or values[0]=="23" or values[0]=="25": #Heavy Ball=5; Little Rough Board=8; Long Reough Board=9; Up Cannon=17; Sticky Ball=21; Bomb=23; Bait=25 self.room.informAll(TransformiceClientHandler.sendPlayerDisconnect, [self.playerCode]) self.room.removeClient(self) hmessage = "["+self.address[0]+" - "+self.username+"] Spawned object code "+values[0]+"." self.sendAdminMessageChannel("Hack Detect", hmessage) self.close() hackcheck = 1 if hackcheck