Últimos assuntos
Os membros mais ativos da semana
Nenhum usuário |
Procurar
Entrar
[Tuto]Colocando Baffbot Com Portal
:: Games :: Área - Transformice
Página 1 de 1
[Tuto]Colocando Baffbot Com Portal
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
![[Tuto]Colocando Baffbot Com Portal KbDBx](https://i.imgur.com/KbDBx.png)
Após isso na antiga conf de snowball coloque
Código HTML:
if self.room.isRoomBigo:
if self.room.checkIfOneFewRemaining():
x, y, direction = values
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)
![[Tuto]Colocando Baffbot Com Portal FeHSc](https://i.imgur.com/FeHSc.png)
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
![[Tuto]Colocando Baffbot Com Portal KbDBx](https://i.imgur.com/KbDBx.png)
Após isso na antiga conf de snowball coloque
Código HTML:
if self.room.isRoomBigo:
if self.room.checkIfOneFewRemaining():
x, y, direction = values
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)
![[Tuto]Colocando Baffbot Com Portal FeHSc](https://i.imgur.com/FeHSc.png)
AdmistradorMensagens : 25
Idade : 25
Inscrito Desde : 25/01/2013
![-](https://2img.net/i/empty.gif)
» [Tuto]Solução para problemas com LAG.
» [Tuto] Tabela de Fortalecimento - DDTANK BR
» [Tuto] Evitando de seu Hotel ser Ownado #
» [Tuto] Criando seu Policia e Ladrão.
» [Tuto] Pagina no Catalogo só para VIP's
» [Tuto] Tabela de Fortalecimento - DDTANK BR
» [Tuto] Evitando de seu Hotel ser Ownado #
» [Tuto] Criando seu Policia e Ladrão.
» [Tuto] Pagina no Catalogo só para VIP's
:: Games :: Área - Transformice
Página 1 de 1
Permissões neste sub-fórum
Não podes responder a tópicos
|
|
» TransforWate
» hollymice o melhor
» oque vc faria se alguem usar hacker ?
» ñ sei oque falar
» nada mais nada menos
» sem discriçao
» nadah de pedir titles
» sem link de mandar hacker