Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Updating this code

Featured Replies

Hey i wanna replace the client.movemouse and client.click()

As its currently showing errors any1 help?

 

private boolean walkTile(Position p) throws InterruptedException {
     client.movemouse(new MiniMapTileDestination(bot, p), false);
     sleep(random(150, 250));
     client.click();
     int failsafe = 0;
     while (failsafe < 10 && myPlayer().getPosition().distance(p) > 2) {
      sleep(200);
      failsafe++;
      if (myPlayer().isMoving())
       failsafe = 0;
     }
     if (failsafe == 10)
      return false;
     return true;
    }

 

 

 

Hope some1 will help me.

 

Thanks,

-Progamerz

Edited by progamerz

  • Author

Use mouse.click() and mouse.move() instead, these are the new methods.

 

Thanks but now showing error here

 

private boolean walkTile(Position p) throws InterruptedException {

     mouse.move(new MiniMapTileDestination(bot, p), false);

     //(new MiniMapTileDestination(bot, p), false);

     sleep(random(150, 250));

     mouse.click();

     int failsafe = 0;

     while (failsafe < 10 && myPlayer().getPosition().distance(p) > 2) {

      sleep(200);

      failsafe++;

      if (myPlayer().isMoving())

       failsafe = 0;

     }

     if (failsafe == 10)

      return false;

     return true;

    }

Thanks but now showing error here

 

private boolean walkTile(Position p) throws InterruptedException {

     mouse.move(new MiniMapTileDestination(bot, p), false);

     //(new MiniMapTileDestination(bot, p), false);

     sleep(random(150, 250));

     mouse.click();

     int failsafe = 0;

     while (failsafe < 10 && myPlayer().getPosition().distance(p) > 2) {

      sleep(200);

      failsafe++;

      if (myPlayer().isMoving())

       failsafe = 0;

     }

     if (failsafe == 10)

      return false;

     return true;

    }

mouse.click(false)  or just mouse.click(new MiniMapTileDestination(bot, p))

Step 1. Learn some basics

Step 2. Don't copy paste

Step 3. Don't copy paste

  • Author

Step 1. Learn some basics

Step 2. Don't copy paste

Step 3. Don't copy paste

 

I know the basics of java but not the API.

mouse.click(false)  or just mouse.click(new MiniMapTileDestination(bot, p))

 

Worked Ty :)

Step 1. Learn some basics

Step 2. Don't copy paste

Step 3. Don't copy paste

Now Now there is no need for this attitude in this section. Fuck boy kappa

I know the basics of java but not the API.

 

Worked Ty smile.png

 

If you're looking for specific methods, you can do a quick search in the API index

Locate the method you want by its name, and it'll tell you what class(es) it belongs to :)

  • Author

If you're looking for specific methods, you can do a quick search in the API index

Locate the method you want by its name, and it'll tell you what class(es) it belongs to smile.png

 

Oh ty for saying me about that didn't know that there is something like that :)

Now Now there is no need for this attitude in this section. Fuck boy kappa

I'm not a rude boi, it was simply a meme.

Because no dream team equals the meme team

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.