Jump to content

Twin

Members
  • Posts

    1334
  • Joined

  • Last visited

  • Feedback

    100%

Posts posted by Twin

  1. Hey everyone and anyone that still remembers me,

    I recently gained access again to the email that my OSBot account was linked to and was able to recover the password. I just wanted to make a post saying hi and that i'll be around on here again. I doubt i'll do any paid scripting(or if I'd even be allowed to), but I've been botting on Lights Hope(private vanilla WoW server) and it made me want to come back and make some free open source community scripts. Over the last 2 or so years I've grown so much as a programmer, to the point where looking back at old code I've written is just cringey lol. 

    Back when that whole "Other bot sites are hacking osbot users" fiasco was going on, I changed my password to something stupid long and complex(can't say I was in the most sober state of mind). I ended up forgetting that password, and when I tried to recover my account I found out the email I signed up with was some random throw away email. I recently got that email back and was able to recover the account on here. 

     

    But yeah hi, I'll be posting/lurking on these forums again and just wanted to say what's up. 

    • Like 4
  2. adding the logs made it work some how, even tho its shoulda have oh well thanks for the help

    ok thanks for the notes, about the ifs, i have 1 more question about this bot, when i mine the clay i want it to stay at the most northern clay in varrock west so i dont get attacked by the mugger, how would i make it stay just on that one, because its doing find closest clay and then running the one south, and then running back up cuz it checks that its not in the clay area and runs back north, which will get banned really fast, how do i fix that?

     

    Make an area around only the clay rocks you want it to be at, so lets say its

    final Area CLAY_NORTH = new Area (1 , 10, 2, 20);

    you would do Entity clay = objects.closest(CLAY_NORTH, "Rocks"); so that way it's only checking for that area.

  3. http://osbot.org/forum/topic/58775-a-beginners-guide-to-writing-osbot-scripts-where-to-get-started-by-apaec/

     

    Learn how to do states.

     

    Also, you use nested if statements instead of just having it neater with a single if statement.

    if (!inventory.isFull()) {
    if (CLAY_AREA.contains(myPlayer())) {
    if (!myPlayer().isMoving()) {
    if (!myPlayer().isAnimating()) {
    RS2Object rock = getObjects().closest(clay);
    if (rock != null) {
    rock.interact("mine");
    sleep(random(50, 120));
    }
    }
     
    

    Can go to

    Entity clay = objects.closest(clay)
    if(!inventory.isFull() && CLAY_AREA.contains(myPlayer()) && !myPlayer().isMoving() && !myPlayer().isAnimating() && clay!=null)
    {
    clay.interact("mine");
    sleep(random(1250,1500));
    }
    
  4. alright i must be too retarded to code. How can i even run the if statement while walking? everytime i use webWalk, it stops reading code until it reaches its destination. am i making sense or should i just uninstall my IDE?

     

     

    I still can't run any code/checks while walking. for example

    
            getWalking().webWalk(shop);
            new ConditionalSleep(2500, 100) {
            @Override
            public boolean condition() throws InterruptedException {
                return myPlayer().isMoving();
            }
        }.sleep();
        if(getInventory().contains(DSTAMINA_ID)){
            getInventory().getItem(DSTAMINA_ID).interact("Drop");
            Script.sleep(Script.random(600, 800));
            log("vial dropped");
        }else{log("nothing to drop");} 

    will only read past the webwalking line once the player is already completely finished walking. is this making any sense or am i actually retarded?

     

    I thought they made webwalking check for conditions? I haven't used anything where I would need to do that, so I haven't really tested it. Maybe I misread something when webwalking was released, so sorry about that.

  5. From my understanding of this code, I don't think you're understanding quite what i want to do.

     

    I want to drink potions while walking to the destination. 

     

    My question still remains, how do i check if im moving (or do ANYTHING) while my player is moving towards his destination with webwalk?

     

    Just do an area check.

    if(!DESTINATION_AREA.contains(myPlayer()&&myPlayer().isMoving())
    {
    //whatever you need
    }
    

    So as long as you're not in the destination area, you'll drink potions. Then you need some sort of timer or message listener so you don't spam drink potions.

     

    Hopefully this is what you needed.

  6. Removing bots would cost jagex a lot of money. They are a business first and a game company second. It's the same with counter strike and cheaters. They could implement better anti-cheat, but they would lose out on a ton of copies being bought after cheaters accounts get banned. No one would bot/cheat if they got banned instantly.

×
×
  • Create New...