Jump to content

Banned using my own custom script


mrfuzzball

Recommended Posts

I got banned for using a very simple bucket filling script I made. I ran it for 6 hours and was banned sometime last night during the update. How can I make my bot less detectable?? Would adding random sleeps and random clicks change anything? How are more complex bots made that go undetected for long periods?

 

Here's the code I used:

import org.osbot.rs07.api.filter.Filter;
import org.osbot.rs07.api.map.Position;
import org.osbot.rs07.api.model.Item;
import org.osbot.rs07.api.model.NPC;
import org.osbot.rs07.api.model.RS2Object;
import org.osbot.rs07.api.ui.Skill;
import org.osbot.rs07.input.keyboard.TypeStringEvent;
import org.osbot.rs07.script.Script;
import org.osbot.rs07.script.ScriptManifest;
import org.osbot.rs07.utility.ConditionalSleep;

@ScriptManifest(author = "Teet", info = "V1", logo = "", name = "Bucket filler", version = 1.0)
public class Main extends Script {

    @Override
    public void onStart() throws InterruptedException {
        super.onStart();
    }
    private double getHpPercent() {
        double hpPercentage = getSkills().getDynamic(Skill.HITPOINTS) * 100 / getSkills().getStatic(Skill.HITPOINTS);
        return hpPercentage;
    }

    private void bank() throws InterruptedException {
        RS2Object bank1 = getObjects().closest(obj -> obj != null && obj.getName().equals("Bank chest")
                && getMap().canReach(obj));

        if (!myPlayer().isAnimating()) {
            if (bank1 != null) {
                if (bank1.interact("Use")) {
                    sleep(2000);

                    log("reacting with bank");
                    bank.depositAll("Bucket of water");
                    sleep(1000);
                    bank.withdrawAll("Bucket");

                }

            }


        }
    }
    @Override
    public int onLoop() throws InterruptedException {

    RS2Object pond = getObjects().closest(obj -> obj != null && obj.getName().equals("Fountain")
     && getMap().canReach(obj));

    if(!myPlayer().isAnimating()){
    if(pond != null){

        getWalking().walk(new Position(3221, 3212,0));
        log("walking.... ");
        sleep(2500);
        getCamera().toEntity(pond);
        if(inventory.contains("Bucket") ){
            if(!myPlayer().isAnimating()) {
                inventory.getItem("Bucket").interact("Use");
            }
            mouse.moveOutsideScreen();
if(pond.interact()){
    Item[] contents = inventory.getItems();
    sleep(1000);
    boolean correctClick = inventory.contains("Bucket of water");
    if(correctClick) {
        new ConditionalSleep(25000) {
            @Override
            public boolean condition() throws InterruptedException {

                return (!inventory.contains("Bucket"));
            }
        }.sleep();
    }else{log("Player was not animating, retrying..");
    }
    log("reacting with pond");


                    }

                        }
                                }

                                    }

        Item[] contents = inventory.getItems();

    if( inventory.isEmpty() ) {
           bank();
    }
    else if(contents[contents.length-1].getName().equals("Bucket of water")){

        bank();
    }

        return 0;
    }


    @Override
    public void onExit() throws InterruptedException {
        super.onExit();
    }

}

 

Link to comment
Share on other sites

20 minutes ago, Charlotte said:

You bot for 6hrs and you do the same repeated tasks over and over. 

And you want to make it less detectable :???: 

Oh i'm not denying what I did was detectable lol. I'm just wondering if there is any way around it. I was thinking of maybe combining scripts in a randomized manner that would call on one script and begin a new task, and then after a randomized amount of time call on another script so that there is really no repetition. But from reading the ban avoidance thread it seems like there is no way to avoid ban. The weird thing to me is I've used many scripts on RSbot to level my accounts to max and I was never banned. These were free scripts I left running for 10 hours  a day sometimes. That tells me there are ways of remaining undetected. That's what i'm asking about here.

31 minutes ago, Mordred said:

You should implement the ultimate ANTI-Ban technique. Pm @Chris or @Malcolm for free access :)

I'm guessing you're trolling. Thanks

Edited by mrfuzzball
Link to comment
Share on other sites

56 minutes ago, mrfuzzball said:

Lol literally first time coding a script. 

Maybe practice before asking people to invest time in giving you the answers. 

You learn how to make scripts last longer by writing alot of scripts and exsperimenting with what works and what doesn't you can't expect to last super long if your new no matter how many small tips people give (people won't say their real tricks anyways) all tips you wil get here are either trolls or common bullshit that everyone already knows. No offence man just the truth 

Link to comment
Share on other sites

24 minutes ago, TheMcPker said:

Maybe practice before asking people to invest time in giving you the answers. 

You learn how to make scripts last longer by writing alot of scripts and exsperimenting with what works and what doesn't you can't expect to last super long if your new no matter how many small tips people give (people won't say their real tricks anyways) all tips you wil get here are either trolls or common bullshit that everyone already knows. No offence man just the truth 

k

 

20 minutes ago, Dockerexe said:

Start with random sleep times and go from there... 6 hours of botting with the exact same sleeping down to the ms is pretty damn obvious.

I def agree. Ill try random sleeps and some other stuff

Edited by mrfuzzball
Link to comment
Share on other sites

2 minutes ago, Naynay said:

Something that might also help is not botting for 6 hours straight collecting & or filling buckets. I dont even know if any venezuelans would be able to do that for 6 hours straight if they were getting $0.3 usd p/h

LOL its ridiculous how venezuelans are gold farming hard core now. And I know bro. I'm literally in a testing phase rn trying to figure out how to make bots that can stay unbanned for some decent period. I'm testing it on very arbitrary tasks so that I can just get a feel of how fast/why we get banned. I'm now going to update the above script and will re-run the bot for another 6-10 hours tonight. results will be posted here. Stay tuned

Link to comment
Share on other sites

  • 4 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...