BAFFFFFFFF
:: FLASH ZONE :: Tutoriais
Página 1 de 1
BAFFFFFFFF
1- Procure pelo seguinte termo:
Código HTML:
def checkIfTooFewRemaining(self):
e embaixo coloque
Código HTML:
def checkIfOneFewRemaining(self):
counts=[0,0] #Dead, Alive
for playerCode, client in self.clients.items():
if client.isDead:
counts[0]=counts[0]+1
else:
counts[1]=counts[1]+1
if self.getPlayerCount>=1:
if counts[1]<=1:
return True
return False
Após isso na antiga conf de snowball coloque
Código HTML:
if self.room.isRoomBigo:
if self.room.checkIfOneFewRemaining():
x, y, direction = values
self.sendParabens
if direction == "1":
self.sendBoulneige(26, int(y), int(x), int(1))
self.sendBoulneige(27, 200, 400, int(1))
if direction == "0":
self.sendBoulneige(26, int(y), int(x), int(1))
self.sendBoulneige(27, 200, 400, int(1))
print "Unimplemented Error: Bin-"+repr(eventTokens)+"-DATA:"+repr(data)
else:
x, y, direction = values
if direction == "1":
self.sendBoulneige(19, int(y), int(x), int(1))
if direction == "0":
self.sendBoulneige(20, int(y), int(x), int(1))
print "Unimplemented Error: Bin-"+repr(eventTokens)+"-DATA:"+repr(data)
else:
x, y, direction = values
if direction == "1":
self.sendBoulneige(34, int(y), int(x), int(1))
if direction == "0":
self.sendBoulneige(34, int(y), int(x), int(1))
print "Unimplemented Error: Bin-"+repr(eventTokens)+"-DATA:"+repr(data)
Código HTML:
def checkIfTooFewRemaining(self):
e embaixo coloque
Código HTML:
def checkIfOneFewRemaining(self):
counts=[0,0] #Dead, Alive
for playerCode, client in self.clients.items():
if client.isDead:
counts[0]=counts[0]+1
else:
counts[1]=counts[1]+1
if self.getPlayerCount>=1:
if counts[1]<=1:
return True
return False
Após isso na antiga conf de snowball coloque
Código HTML:
if self.room.isRoomBigo:
if self.room.checkIfOneFewRemaining():
x, y, direction = values
self.sendParabens
if direction == "1":
self.sendBoulneige(26, int(y), int(x), int(1))
self.sendBoulneige(27, 200, 400, int(1))
if direction == "0":
self.sendBoulneige(26, int(y), int(x), int(1))
self.sendBoulneige(27, 200, 400, int(1))
print "Unimplemented Error: Bin-"+repr(eventTokens)+"-DATA:"+repr(data)
else:
x, y, direction = values
if direction == "1":
self.sendBoulneige(19, int(y), int(x), int(1))
if direction == "0":
self.sendBoulneige(20, int(y), int(x), int(1))
print "Unimplemented Error: Bin-"+repr(eventTokens)+"-DATA:"+repr(data)
else:
x, y, direction = values
if direction == "1":
self.sendBoulneige(34, int(y), int(x), int(1))
if direction == "0":
self.sendBoulneige(34, int(y), int(x), int(1))
print "Unimplemented Error: Bin-"+repr(eventTokens)+"-DATA:"+repr(data)
:: FLASH ZONE :: Tutoriais
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos