Jump to content

Frozen

Inactive Member
  • Posts

    199
  • Joined

  • Last visited

  • Days Won

    7
  • Feedback

    0%

Posts posted by Frozen

  1.  

     
    missing things because I'm sure because look here:

    if constInfo.a == 1:

    I hope you see the same error what you've forgotten here

    but I do not get out there

     

    oh yes sry, is that i was traducing this system to english and forgot that thx i will edit.

     

    Try now.

  2. M2 Download Center

    This is the hidden content, please
    ( Internal )

    Hello guys im here to release my spam-system, that i made a long time ago, is not the best spam system but is what i can make :D.
     
    So i hope you guys enjoy and here is a video that i made to show the system:
     
     
     http://www.youtube.com/watch?v=Ko8qpfS5yTI
     
     
    Tutorial:
     
    Go to uichat.py
     
    Search ChatModeButton class, and in the __init__ function add:
     

    constInfo.counterspam = 6

    then you go to ChatLine class, and in the __init__ function add:
     

    constInfo.spama = 1
    constInfo.spamb = 2
    constInfo.textone = ''
    constInfo.texttwo = ''

    then you search __SendTalkingChatPacket function and replace:
     

    if constInfo.spama == 1:
    			constInfo.textone = text
    			constInfo.spama = 2
    		elif constInfo.spama == 2:
    			constInfo.texttwo = text
    			constInfo.spama = 1
    		if constInfo.counterspam >= 1:
    			if constInfo.textone == constInfo.textotwo:
    				constInfo.counterspam = constInfo.counterspam - 1
    				if constInfo.counterspam == 5:
    					chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_SPAM_UM)
    				elif constInfo.counterspam == 4:
    					chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_SPAM_DOIS)
    				elif constInfo.counterspam == 3:
    					chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_SPAM_TRES)
    				elif constInfo.counterspam == 2:
    					chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_SPAM_QUATRO)
    				elif constInfo.counterspam == 1:
    					chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_SPAM_CINCO)
    			else:
    				constInfo.counterspam = 6
    			self.__SendChatPacket(text, chat.CHAT_TYPE_TALKING)
    		elif constInfo.counterspam == 0:
    			if app.GetTime() < self.lastShoutTime + 60:
    				chat.AppendChat(chat.CHAT_TYPE_INFO, locale.CHAT_SPAM_LIMIT)
    				return
    			else:
    				constInfo.counterspam = 6
    		
    			
    		self.__ResetChat()
    		self.lastShoutTime = app.GetTime()

    Save the files.
     
    Open locale_game in your locale folder and add:
     

    CHAT_SPAM_LIMIT	Your chat has been blocked! Reason:SPAM.
    CHAT_SPAM_UM	[WARNING]SPAM is not permited [1/5]
    CHAT_SPAM_DOIS	[WARNING]SPAM is not permited [2/5]
    CHAT_SPAM_TRES	[WARNING]SPAM is not permited [3/5]
    CHAT_SPAM_QUATRO	[WARNING]SPAM is not permited [4/5]
    CHAT_SPAM_CINCO	[WARNING]SPAM is not permited [5/5]

    Save. Done
     
    Thx,
    and if you like please tell me and i will try to bring more releases.

    • Metin2 Dev 5
    • Think 1
    • Good 3
    • Love 3
×
×
  • Create New...

Important Information

Terms of Use / Privacy Policy / Guidelines / We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.