Guest User

Block level chat

a guest
Oct 8th, 2013
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.53 KB | None | 0 0
  1. '''Prendere il file uichat in root e modificarlo nella seguente maniera '''
  2. #ho usato int(player.LEVEL) perchè non ricordo se viene passato come stringa o intero
  3. #cerca __SendChatPacket e sostituiscilo con questo
  4.  
  5. def __SendChatPacket(self, text, type):
  6.     if int(player.GetStatus(player.LEVEL)) >= 100:
  7.         if net.IsChatInsultIn(text):
  8.             chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
  9.         else:          
  10.             net.SendChatPacket(text, type)
  11.     else:
  12.         chat.AppendChat(chat.CHAT_TYPE_INFO, "Potrai usare la chat da livello 100.")
Advertisement
Add Comment
Please, Sign In to add comment