Guest User

Command AJuda Batman

a guest
Nov 24th, 2013
231
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 3.85 KB | None | 0 0
  1.                elif event == "ajuda":
  2.                                                 if self.privilegeLevel != 1:
  3.                                                         name = ""
  4.                                                         for room in self.server.rooms.values():
  5.                                                             for playerCode, client in room.clients.items():
  6.                                                                 if not client.username.startswith("Bot"):
  7.                                                                         if client.privilegeLevel in [10]:
  8.                                                                                 if client.username == "Batman":
  9.                                                                                         if name == "Ajuda":
  10.                                                                                             name = "<CH>"
  11.                                                                                         else:
  12.                                                                                             name = name+"<ROSE><CH>"
  13.                                                                                 else:
  14.                                                                                         if name == "":
  15.                                                                                             name = "<BV>"
  16.                                                                                         else:
  17.                                                                                             name = name+"<ROSE>, <R>"
  18.                                                                         elif client.privilegeLevel in [6,5]:
  19.                                                                                 if name == "":
  20.                                                                                     name = "<VP>"
  21.                                                                                 else:
  22.                                                                                     name = name+"<ROSE>, <VP>"
  23.                                                                         msg = name
  24.                                                         Message = "<ROSE><b><a href='event:kapat'>X</a></b></p></R> <R>"+self.username+" Lista de ajuda: \n<V>-> <ROSE>1 <G>- <T>Salas - Comandos para você ir para salas aleatórias ou definidas\n<V>-> <ROSE>2 <G>- <N>Jogadores - Comunicação e interação com outros jogadores.\n<V>-> <ROSE>3 <G>- <T>Funções - Definições de configurações e outros recursos.\n<V>-> <ROSE>4 <G>- <N>Tribo - Relacionado a comunicação com membros da tribo.\n<V>-> <ROSE>5 <G>- <T>Emoticons - Emoticons variados.\n<V>-> <ROSE>6 <G>- <N>Cafofo - Comandos que funcionam somente no cafofo de sua tribo. É necessária a permissão do dono da tribo para utilizar os comandos.\n<ROSE><b><a href='event:kapat'>X</a></b></p></R> <R>"+self.username+" Lista de ajuda Servidor EN: \n<V>-> <ROSE>1 <G>- <T>Rooms - List of special rooms.\n<V>-> <ROSE>2 <G>- <N>Players - List of users commands.\n<V>-> <ROSE>3 <G>- <T>Functions - List of public commands.\n<V>-> <ROSE>4 <G>- <N>Tribe - List of Tribe Menu commands.\n<V>-> <ROSE>5 <G>- <T>Emotes - List of emoticons commands.\n<V>-> <ROSE>6 <G>- <N>Tribehouse - List of tribe house commands."+msg
  25.                                                         id = int(2);x = int(5);y = int(100)
  26.                                                         data = struct.pack("!l", id)
  27.                                                         data = data + struct.pack("!h", len(Message))
  28.                                                         data = data + Message + struct.pack("!hhhhhhhhb", int(x), int(y), 790, 0, 0, 1, 0, 0, 80)
  29.                                                         self.sendData("\x1d\x14", data, True)
Advertisement
Add Comment
Please, Sign In to add comment