Procure em sua source: (essa vai ser a mensagem de mort)
# Mort
Depois acima do código: if self.score < 0: adicione o seguinte;
Código:
if self.room.isSpgame: self.room.sendAll("\x1A" + "\x04", ["<J>"+self.username+" <R>Morreu!"])
Código:
if self.room.isSpgame: self.room.sendAll("\x1A" + "\x04", ["<J>"+self.username+" <VP> Entrou Na Toca"])
Código:
if self.room.isSpgame: self.room.sendAll("\x1A" + "\x04", ["<J>"+self.username+" <V>Pegou o Queijo!"])
Código:
if self.room.isSpgame: if keyid == 9: self.sendMessage("<VP>Aperte a Seta Para Baixo Para Soltar Um Spirit!")
acima cole:
Código:
if crouching: if self.room.isSpgame: if self.room.checkIfOneFewRemaining(): x = int(self.posX)/3-10 y = int(self.posY)/3-10 direction = self.mDirection if not self.sendMsgDuck: for room in self.server.rooms.values(): if room.name == self.room.name: for playerCode, client in room.clients.items(): client.sendData("\x1A" + "\x04", ["<J>"+self.username+"<font color='#BDBED6'> Recebeu Mais Uma Chance De Completar o Mapa!"]) self.sendMsgDuck = True if not self.libCn: if direction == "1": y = int(self.posY)/3-23 self.sendBoulneige(24, int(y), int(x), int(1), int(1)) self.libCn = True self.libCnTimer = reactor.callLater(0.4, self.defineNotLibCn) if direction == "0": x = int(self.posX)/3-23 self.sendBoulneige(24, int(y), int(x), int(1), int(1)) self.libCn = True self.libCnTimer = reactor.callLater(0.4, self.defineNotLibCn) else: #x, y, direction = values x = int(self.posX)/3-11 y = int(self.posY)/3-11 direction = self.mDirection if not self.libCn: if direction == "1": self.sendBoulneige(24, int(y), int(x), int(1), int(1)) self.libCn = True self.libCnTimer = reactor.callLater(0.4, self.defineNotLibCn) if direction == "0": x = int(self.posX)/3-20 self.sendBoulneige(24, int(y), int(x), int(1), int(1)) self.libCn = True self.libCnTimer = reactor.callLater(0.4, self.defineNotLibCn) self.room.sendAll(eventTokens, [self.playerCode] + [values[0]]) else: self.room.sendAll(eventTokens, [self.playerCode])
e acima adicione:
Código:
if self.room.isSpgame: self.enableKey(9) or self.enableKey(32) self.sendMsgDuck = True self.libCn = True if self.isSyncroniser: x = random.randrange(1, 800) y = random.randrange(1, 400) npcid = random.randrange(1, 1000000000) npcid = 0-npcid self.rebootTimer = reactor.callLater(3, self.spgame3) self.rebootTimer = reactor.callLater(4, self.spgame2) self.rebootTimer = reactor.callLater(5, self.spgame1) self.rebootTimer = reactor.callLater(6, self.spgamego)
Código:
def spgamego(self): self.sendData("\x1A" + "\x04",["<font color='#DE4747'>Comecem!"]) self.libCn = False self.sendMsgDuck = False def spgame1(self): self.sendData("\x1A" + "\x04",["<font color='#EBDE28'>1..."]) def spgame2(self): self.sendData("\x1A" + "\x04",["<font color='#EBDE28'>2..."]) def spgame3(self): self.sendData("\x1A" + "\x04",["<font color='#EBDE28'>3..."])
e adicione:
Código:
self.isSpgame = False
e adicione:
Código:
elif re.search("spgame", name.lower()): self.countStats = True self.currentWorld = "-1" #self.specificMap = True self.nobodyIsShaman = True self.isSpgame = True #self.roundTime = 120 self.roundTime = 60
0 comentários:
Postar um comentário