Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • ASDss: where do u download source and clients now
      August 18, 2017, 10:39:31 PM
    • ASDss: yo
      August 18, 2017, 10:39:20 PM
    • dan v jad: click me 4 da fun ;)[link]
      August 18, 2017, 04:39:58 PM
    • stCky: Palidinho is your OpenGL (was it OpenGL?) stuff open source anywhere?
      August 16, 2017, 09:07:22 PM
    • Travas:BUILD THE WALL
      August 15, 2017, 09:28:49 PM
    • Travas: i have ass cancer
      August 15, 2017, 09:23:29 PM
    • stCky: what are the fudge are you tryna ask?
      August 15, 2017, 08:21:35 PM
    • bader: what are the rsps community alive ?
      August 15, 2017, 05:46:16 PM
    • bader: yo guys
      August 15, 2017, 05:46:08 PM
    • Spacehost:[link] Updated our thread :)
      August 15, 2017, 09:40:34 AM
    • Adaro: The client is in Download section at Homepage
      August 15, 2017, 01:09:20 AM
    • FaTe_Of_GoDs: where do i get the client?????????????
      August 14, 2017, 05:23:14 PM
    • stCky: can anyone help me? I cant login to the shoutbox
      August 13, 2017, 05:45:15 PM
    • drubrkletern: appeal denied
      August 13, 2017, 02:35:27 PM
    • King_Trout:[link]
      August 13, 2017, 11:17:12 AM
    • Cole1497: no sorry
      August 13, 2017, 10:27:14 AM
    • ayz: yo can anyone explain something to me
      August 13, 2017, 08:08:51 AM
    • coolking12: Hi
      August 13, 2017, 04:16:06 AM
    • stCky: n+1
      August 11, 2017, 06:09:24 PM
    • PalidinoDH: How many more pages are going to show errors before this dude gets on and fixes shit
      August 11, 2017, 04:57:00 PM

    Author Topic: [PI] Anti auto clicker, made this thinking of stalls..  (Read 3437 times)

    0 Members and 1 Guest are viewing this topic.

    OfflineStrucker

    • Member
    • ****
    • Posts: 2,969
    • Thanks: +0/-0
      • View Profile
    [PI] Anti auto clicker, made this thinking of stalls..
    « on: March 22, 2014, 08:25:17 PM »
    Add this in Player.java
    Code: Java
    1.         /**
    2.          * How many the player has clicked the second option of an object
    3.          */
    4.         publicint sOCPacketClicks;
    5.        
    6.         /**
    7.          * A flag to see if the process of reset the packet 132 clicks has started
    8.          */
    9.         publicboolean isRefreshingClicks =false;
    10.        
    11.        
    12.        
    13.        
    14.        
    15.        
    16.        
    Then this in second click object packet
    Code: Java
    1. AntiAutoClicker.addClicks(c);

    and add this class:
    Code: Java
    1. packageserver.util;
    2.  
    3. importserver.event.Event;
    4. importserver.event.EventContainer;
    5. importserver.event.EventManager;
    6. importserver.model.players.Client;
    7.  
    8. /**
    9.  *
    10.  * @author Strucker
    11.  *
    12.  */
    13. publicclass AntiAutoClicker {
    14.  
    15.         /**
    16.          * The maximum click per minute a player should do, because stalls are
    17.          * re-stashed every 3 seconds, so 60/3 = 20, and that is not likely to happen
    18.          * because i doubt any player is that good.
    19.          */
    20.         publicstaticfinalint MAXIMUM_CLICKS_PER_MINUTE =20;
    21.        
    22.         /**
    23.          * The wait time until the clicks are refreshed are 60k milliseconds
    24.          */
    25.         publicstaticfinalint RESET_TIME =60000;
    26.        
    27.         /**
    28.          *
    29.          * @param player
    30.          *              the player that will have its clicks added
    31.          */
    32.         publicstaticvoid addClicks(Client player){
    33.                
    34.                 /**
    35.                  * Every time the player clicks the second option of an object
    36.                  * that variable is increased
    37.                  */
    38.                 player.sOCPacketClicks++;
    39.                
    40.                 player.sendMessage(""+player.sOCPacketClicks+"");
    41.                 /**
    42.                  * If the player has the same amount or more than the maximum amount of clicks
    43.                  * per minute continue
    44.                  */
    45.                 if(player.sOCPacketClicks> MAXIMUM_CLICKS_PER_MINUTE){
    46.                        
    47.                         /*
    48.                          * The player is walked away from where he is to stop his power skilling
    49.                          * or whatever he is spamming.
    50.                          */
    51.                         movePlayer(player);
    52.                 }
    53.                
    54.                 /**
    55.                  * If the process of refreshin the player clicks hasnt started continue
    56.                  */
    57.                 if(!player.isRefreshingClicks){
    58.                        
    59.                         /**
    60.                          * Sets the flag that tells wether the clicks are being refreshed or not to true
    61.                          */
    62.                         player.isRefreshingClicks=true;
    63.                        
    64.                         /**
    65.                          * Starts the process of refreshing the clicks
    66.                          */
    67.                         refreshClicks(player);
    68.                 }
    69.         }
    70.        
    71.         /**
    72.          * if the player has gotten to the maximum number of clicks avaible
    73.          * the player will walk back three steps
    74.          *
    75.          * @param player
    76.          *              the player that will be automatically walked three steps back
    77.          */
    78.         publicstaticvoid movePlayer(final Client player){
    79.                
    80.                 /**
    81.                  * Moves the player back
    82.                  */
    83.                 player.getPA().walkTo(-3, 0);
    84.         }
    85.        
    86.         /**
    87.          * After one of the first click the clicks will be reseted
    88.          *
    89.          * @param player
    90.          *              the player that will have his clicks reseted
    91.          */
    92.         publicstaticvoid refreshClicks(final Client player){
    93.                 EventManager.getSingleton().addEvent(newEvent(){
    94.                         publicvoid execute(EventContainer c){
    95.                                 player.sOCPacketClicks=0;//Resets the clicks
    96.                                 c.stop();
    97.                         }
    98.                         }, RESET_TIME);
    99.         }
    100. }
    101.  


    So how a normal stall works is that when you steal from it the items disappear from it and the stall is restashed in 3 seconds, so it would mean 20 clicks in 1 minute to get all the items from the stall.

    What this does is that if you click it more than 20 times in one minute it will walk you back.
    So it combats AutoClicker and massclicking

    *Note
    sOCPacketClicks stands for secondObjectClickPacket
    « Last Edit: March 22, 2014, 08:55:43 PM by Strucker »
    Times flies and im wasting it

    OfflineJoeBenton2014

    • Member
    • **
    • Posts: 85
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #1 on: March 23, 2014, 07:18:43 AM »
    Sweeet ! Probably will use this
    Quote
    Originally Posted by Jack Daniels  View Post
    Why wouldn't it work for PI? Do PI programmers use a different kind of Java or something?

    www.runepwn.net


    Offlinesk8rdude461

    • MOPARSCAPE WAS HACKED
    • Member
    • ****
    • *
    • Posts: 12,471
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #2 on: March 23, 2014, 07:36:30 AM »
    Why not just add in a random event? Adding some "cheat prevention" or "anti-auto-clicker" ain't much. And you could just set the clicker to 4-5 seconds and not get caught.

    1 line comments should look like:
    Code: Java
    1. // This
    2. /* Or this */
    3. /**
    4.  * But not this!
    5.  */


    OfflineVain_

    • Member
    • ****
    • Posts: 3,054
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #3 on: March 23, 2014, 07:43:35 AM »
    most "auto clickers" do it in timed intervals of the stall itself. the only way to combat afk clicking is to block the player (interface), move the player (walk or teleport), or some type of random (I'd suggest dealing a bit of damage; afkers die, makes legit thieving longer etc )

    OfflineStrucker

    • Member
    • ****
    • Posts: 2,969
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #4 on: March 23, 2014, 10:25:06 AM »
    Sweeet ! Probably will use this
    Thanks

    Why not just add in a random event? Adding some "cheat prevention" or "anti-auto-clicker" ain't much. And you could just set the clicker to 4-5 seconds and not get caught.

    1 line comments should look like:
    Code: Java
    1. // This
    2. /* Or this */
    3. /**
    4.  * But not this!
    5.  */
    You are right it all depends on how everybody is using everything..

    most "auto clickers" do it in timed intervals of the stall itself. the only way to combat afk clicking is to block the player (interface), move the player (walk or teleport), or some type of random (I'd suggest dealing a bit of damage; afkers die, makes legit thieving longer etc )
    Yea, you're right... and i make it move back, however im going to add dealing damage too.. thanks.
    Times flies and im wasting it

    OfflinePure_

    • Member
    • ****
    • *
    • Posts: 4,687
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #5 on: March 23, 2014, 10:38:24 AM »
    I think this is pretty useless, if they click at the right angle it will not accomplish nothing, then they can also set their macro to click on their food every once in a while too, to prevent dying to the damage you're planning on adding.
    i won the forum

    Offlinesertan8

    • Member
    • ****
    • Posts: 444
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #6 on: March 23, 2014, 12:58:12 PM »
    I think this is pretty useless, if they click at the right angle it will not accomplish nothing, then they can also set their macro to click on their food every once in a while too, to prevent dying to the damage you're planning on adding.

    i think you should stop bashing on people's topics. but that's just what i think :D
    iScape revisited looking for a client-dev!
    https://www.moparscape.org/smf/index.php/topic,665194.0.html

    OfflinePure_

    • Member
    • ****
    • *
    • Posts: 4,687
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #7 on: March 23, 2014, 01:41:27 PM »
    I think this is pretty useless, if they click at the right angle it will not accomplish nothing, then they can also set their macro to click on their food every once in a while too, to prevent dying to the damage you're planning on adding.

    i think you should stop bashing on people's topics. but that's just what i think :D
    I gave what I consider two valid points as to why OP is useless. You contributed nothing.

    Thank you!
    i won the forum

    Offlinesertan8

    • Member
    • ****
    • Posts: 444
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #8 on: March 23, 2014, 02:33:36 PM »
    that's not my point really... but we
    iScape revisited looking for a client-dev!
    https://www.moparscape.org/smf/index.php/topic,665194.0.html

    OfflineDavidi2

    • Member
    • ****
    • *
    • Posts: 23,275
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #9 on: March 23, 2014, 02:50:55 PM »
    This is a really bad method. Some people click a lot when they train just out of habit. Like stated you need to have some sort of random event. You could check to see if they click in the exact same spot multiple times, but that's so easy to counter it's not really worth it. Just add a random event.

    OfflinePure_

    • Member
    • ****
    • *
    • Posts: 4,687
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #10 on: March 23, 2014, 03:54:22 PM »
    This is a really bad method. Some people click a lot when they train just out of habit. Like stated you need to have some sort of random event. You could check to see if they click in the exact same spot multiple times, but that's so easy to counter it's not really worth it. Just add a random event.
    or interval between clicks.
    i won the forum

    Offlinerunescape sucks

    • Member
    • ****
    • Posts: 2,798
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #11 on: March 23, 2014, 03:57:37 PM »
    You could check to see if they click in the exact same spot multiple times, but that's so easy to counter it's not really worth it. Just add a random event.

    This would be bad if I got more random events for being on a laptop, the mouse probably won't move too much if I'm only thieving.
    (click to show/hide)

    OfflineDavidi2

    • Member
    • ****
    • *
    • Posts: 23,275
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #12 on: March 23, 2014, 04:01:44 PM »
    You could check to see if they click in the exact same spot multiple times, but that's so easy to counter it's not really worth it. Just add a random event.

    This would be bad if I got more random events for being on a laptop, the mouse probably won't move too much if I'm only thieving.
    Didn't say add a random event if their mouse doesn't move, I just meant use a random event instead.

    OfflineStrucker

    • Member
    • ****
    • Posts: 2,969
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #13 on: March 23, 2014, 04:33:24 PM »
    is it possible in the client to start a new thread and make it listen for when autoclicker program is opened?
    Times flies and im wasting it

    OfflineHcoJustin

    • Member
    • ****
    • Posts: 2,400
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #14 on: March 23, 2014, 04:53:01 PM »
    is it possible in the client to start a new thread and make it listen for when autoclicker program is opened?
    It is, but it is extremely easy to get around or prevent it from working at all. Not to mention I don't want some skid having access to any more than the cache.

    Offlinelare69

    • Member
    • ****
    • *
    • Posts: 5,321
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #15 on: March 23, 2014, 07:53:25 PM »
    I gave what I consider two valid points as to why OP is useless. You contributed nothing.

    Thank you!
    loooooooooooooooooool

    @op: I tend to mass click a lot so this really isn't a good idea. Like others said before me, having some sort of random event system would be a lot nicer.

    You should take into account a lot more factors when writing it though.
    hi. check out luna:)

    Offlineohokay

    • Member
    • ****
    • Posts: 1,214
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #16 on: March 24, 2014, 04:51:16 AM »
    What on earth

    This won't necessarily work, especially with more advanced clickers.
    I don't think sk8r could be wrong because he is a god, But what do i need to do then?

    Offlinewildskiller

    • Member
    • ****
    • Posts: 1,434
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #17 on: March 25, 2014, 09:15:13 PM »
    Shouldn't you record the amount of clicks within a certain interval? Maybe a mass amount of clicks inside of a certain area.

    OfflineLimits

    • Member
    • ****
    • Posts: 2,190
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #18 on: March 25, 2014, 11:32:41 PM »
    Shouldn't you record the amount of clicks within a certain interval? Maybe a mass amount of clicks inside of a certain area.

    Then the person will slow down the auto clicker and if he keeps editing the anti auto clicker script then normal people will get affected because you click a lot of you havent noticed.

    Offlineohokay

    • Member
    • ****
    • Posts: 1,214
    • Thanks: +0/-0
      • View Profile
    Re: [PI] Anti auto clicker, made this thinking of stalls..
    « Reply #19 on: March 26, 2014, 07:01:27 AM »
    Could make a new packet which sends the mouse position on the game screen. This along with recording the clicks to find patterns could flag cheaters.

    Some autos support random mouse clicks in a certain area. If they're random, this means that altering their camera position will cause their clicking to move from original object, so alter their camera state
    I don't think sk8r could be wrong because he is a god, But what do i need to do then?

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal