Thread: [508/525] Anti-spam/Anti Auto-typer

Page 1 of 3 123 LastLast
Results 1 to 10 of 24
  1. #1 [508/525] Anti-spam/Anti Auto-typer 
    Registered Member
    shassan's Avatar
    Join Date
    Oct 2008
    Age
    28
    Posts
    1,218
    Thanks given
    8
    Thanks received
    42
    Rep Power
    201
    Difficulty: 0/10 (COPY/PASTE)

    Purpose: To reduce the ways of being spammed.

    Base: Z508(525 cache) can be used on any version.

    Edited classes: Player.java, PublicChat.java


    Step 1: Go into Player.java and add the following variable.

    Code:
    public String lastMsg;
    Step 2: close Player.java and open PublicChat.java, add this to PublicChat.java

    Code:
    	if (p.chatText.equalsIgnoreCase(p.lastMsg)) {
    	return;
    	}
    Then find the following(still in PublicChat)

    Code:
    p.chatTextUpdateReq = true;
    Under that, add
    Code:
    p.lastMsg = p.chatText;
    What this will do is save the message that you type everytime you do. once done if the person try's to say the same thing again, it will just do nothing. pretty good but it is NOT the only way of spamming, this just lowers the spamming a lil, enjoy
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Apr 2008
    Age
    27
    Posts
    223
    Thanks given
    1
    Thanks received
    0
    Rep Power
    28
    Easy to make and I dont like it because people can just be repeating something over again and it wont let them. GJ anyways.
    Reply With Quote  
     

  3. #3  
    Registered Member King's Avatar
    Join Date
    Nov 2008
    Posts
    335
    Thanks given
    2
    Thanks received
    2
    Rep Power
    34
    Compiled, Tested. Works Nice Job
    Reply With Quote  
     

  4. #4  
    Registered Member

    Join Date
    May 2008
    Posts
    972
    Thanks given
    0
    Thanks received
    9
    Rep Power
    234
    Simple, but clever. Good job

    Code:
    Support Rule-12:http://tinyurl.com/supportsig
    Reply With Quote  
     

  5. #5  
    Community Veteran


    Join Date
    Dec 2008
    Posts
    4,264
    Thanks given
    405
    Thanks received
    432
    Discord
    View profile
    Rep Power
    1684
    Not good imo, what if your trying to sell an item. Or to join a clan for clan wars ect...
    Reply With Quote  
     

  6. #6  
    Registered Member
    shassan's Avatar
    Join Date
    Oct 2008
    Age
    28
    Posts
    1,218
    Thanks given
    8
    Thanks received
    42
    Rep Power
    201
    Quote Originally Posted by Jonny Boy View Post
    Not good imo, what if your trying to sell an item. Or to join a clan for clan wars ect...
    I believe there is a item id and amount in the item command? meaning you wouldnt need to type the same thing over and over again. and if you used some common sense then you would realise there are much more ways of getting one of your players into a clan, eg. npc clicking, option clicking, buttons. etc.

    Easy to make and I dont like it because people can just be repeating something over again and it wont let them. GJ anyways.
    this makes no sense. the whole concept of spamming is typing something over and over again. we dont want this.

    Ty cub
    Reply With Quote  
     

  7. #7  
    ~UnLimited
    Guest
    i think its nice xD
    gj
    Reply With Quote  
     

  8. #8  
    Registered Member
    'Hunter's Avatar
    Join Date
    Sep 2008
    Posts
    738
    Thanks given
    12
    Thanks received
    6
    Rep Power
    160
    Quote Originally Posted by owned by psy View Post
    im using codeusa..
    must i put:
    lastmessage
    instead of lastmsg?
    Why would you?
    ~ Hunter


    Reply With Quote  
     

  9. #9  
    Registered Member
    shassan's Avatar
    Join Date
    Oct 2008
    Age
    28
    Posts
    1,218
    Thanks given
    8
    Thanks received
    42
    Rep Power
    201
    Quote Originally Posted by owned by psy View Post
    im using codeusa..
    must i put:
    lastmessage
    instead of lastmsg?
    Its a string, you can change the public string in player.java to whatever you want.
    Reply With Quote  
     

  10. #10  
    BUUUUUUHHHHHHRGUR

    Maffchew's Avatar
    Join Date
    Aug 2009
    Age
    27
    Posts
    766
    Thanks given
    3
    Thanks received
    6
    Rep Power
    620
    THIS shouldnt be used, it basically mutes people, onyl good if it gets changed around.
    Quote Originally Posted by somebodyy
    hey can you tell me what to look for in NpcCombat for the anti-leech thing cuase i have no idea
    Reply With Quote  
     

Page 1 of 3 123 LastLast

Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •