Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Immediate bans after 1st script


    SuperDirk250

    Recommended Posts

    Posted

    I made my first basic woodcutter script. I completed tutorial island by myself on 2 accounts.

    The 1st account i used to actually learn and make the script. When i was done with the basics i immediatly tried to make it more complex to not get picked up as a bot as fast. After i went to bed and woke up, the account was banned.

    The 2nd Account i used the more advenced script and tried to improve on it with more randomised timers and random clicks. i programmed and used it in total for about 2 hours, i logged out and checked the account status. It was already banned.

    Is this the fault of my script? Or the fact that i am using free services to hide my ip?
    I used a free VPN windscribe for the 1st account.
    A free soc5 proxy for the 2nd account that worked and was pretty fast.

     

    I know the code is a bit messy but i am still experementing

    import org.dreambot.api.methods.Calculations;
    import org.dreambot.api.methods.map.Area;
    import org.dreambot.api.script.AbstractScript;
    import org.dreambot.api.script.Category;
    import org.dreambot.api.script.ScriptManifest;
    import org.dreambot.api.wrappers.interactive.GameObject;
    
    import java.util.Arrays;
    import java.util.List;
    
    @ScriptManifest( author = "Dirk", description = "1st bot", category = Category.WOODCUTTING, name = "1st bot", version = 3)
    
    
    public class Main extends AbstractScript {
    
        private List<String> boomLijst = Arrays.asList("Tree", "Dead tree", "Oak");
    
        @Override
        public void onStart() {
            log("Starting....");
        }
    
        @Override
        public void onExit(){
    
        }
    
        @Override
        public int onLoop() {
    
            int wandelRandmom = Calculations.random(0,6);
            GameObject tree = getGameObjects().closest(gameObject -> gameObject != null && gameObject.hasAction(("Chop down")) && gameObject.getID() != 1278 && boomLijst.contains(gameObject.getName()));
    
            if(!getInventory().isFull() && wandelRandmom != 5)
            {
                    if(tree.interact("Chop down"))
                    {
                        log("Geklikt op een boom");
    
                        do
                        {
                            sleep(2000);
                        }while(getLocalPlayer().isMoving() && !getLocalPlayer().isAnimating());
                        sleepUntil(() -> !getLocalPlayer().isAnimating() , 50000);
    
                        randomRest();
    
                    }
    
            }
            else if (getInventory().isFull())
            {
                getInventory().dropAll();
            }
            else
            {
                log("WALKING");
                Area nearMe = tree.getSurroundingArea(3);
                getWalking().walk(nearMe.getRandomTile());
                sleep(214, 1200);
            }
    
    
    
            return 0;
        }
    
    
        private void randomRest(){
    
            int timer = Calculations.random(0, 10);
            int wachtWaarde = 0;
            if(timer == 0 || timer == 1 || timer == 2 || timer == 3)
            {
                wachtWaarde = Calculations.random(345, 786);
            }
            else if(timer == 4 || timer == 5 || timer == 6)
            {
                wachtWaarde = Calculations.random(620, 1832);
            }
            else if(timer >= 7 && timer <= 8)
            {
                wachtWaarde = Calculations.random(332, 4278);
            }
            else
            {
                wachtWaarde = Calculations.random(3256, 7842);
            }
            log("" + wachtWaarde);
    
        }
    
    }

     

    Posted

    Don't use free proxys. But keep in mind that you can't bot 10h straight everyday without getting banned.

    Posted

    I don't currently have the time to go over the inefficiencies of your script though I'm sure someone will.

    But the free VPN and free socks5 are most likely your problem. Idk if your script is also easily detectable but right now using these proxies/vpn's aren't giving you the chance to see if your script's antipattern works properly.

    Posted

    When using a paid proxy, how do you figure out a way to make it as undetectable as possible?

    Posted

    There isn't a perfect antiban (not public). Just don't use static sleeps and don't use scripts everyday for long periods without breaks. Just switch skills and scripts.

    Posted

    So that randomRest method is useless? What should i use instead of sleeps then?

    Posted

    I don't know if it's useless. Just change your patterns(sleeps, skill, speed...) all time long.

    Archived

    This topic is now archived and is closed to further replies.

    ×
    ×
    • Create New...

    Important Information

    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.