Jump to content

Sistema Anti-Spam [Chat]


Dynamic Things
 Share

Recommended Posts

antispamscreentjvn0fypku.png

Como fazer?

Descompactar ROOT abrir o uichat.py nas primeiras linhas adicionar

import AntiSp

Agora procuram por __SendChatPacket(self, text, type) e abaixo adicionam

Spam = AntiSp.AntiSpam()Spam.SendChatPacket(text, type) 

Vai ficar assim:

def __SendChatPacket(self, text, type):Spam = AntiSp.AntiSpam()Spam.SendChatPacket(text, type) 

Agora extraem o AntiSp.py e metem no directório raiz.. (como assim directório raiz? Pegar o ficheiro AntiSp.py e passar para a pasta do root)

Scan:

MD5 4d8d578e6a69957b0862004a67133ba6

SHA1 07a06a96ab3b546feed5825a5c0afc0ef522fa6e

SHA256 be667d75a22a1c16188924ad10dd3f85589884392a5889e4c90aa7526d0c9b2c

Cumprimentos Dynamic Things

AntiSpam.zip

AntiSpam.zip

Link to comment
Share on other sites

  • 5 months later...

Esse ficheiro (AntiSp.py) encontra-se com um bug do género (escreve-se uma vez no chat e ele assome 2x, pelo menos para mim)...

 

Correção (com este código resolvi o meu bug):

import app, chat, net, localeInfo

class AntiSpam:
Time = {"LAST": 0}

def SendChatPacket(self, text, type):
	if net.IsChatInsultIn(text):
		chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_INSULT_STRING)
	elif app.GetGlobalTimeStamp() >= self.Time["LAST"]:
		self.Time["LAST"] = app.GetGlobalTimeStamp() + 1
	else:
		chat.AppendChat(chat.CHAT_TYPE_INFO, "[Anti Spawn] Só podes escrever uma vez por segundo!")

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...