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.

Move mouse one or two blocks then click?

Featured Replies

Can't seem to figure this out, right now I have

mouse.moveSlightly(300);//should move the mouse a little bit from where it is, then sleep for 300miliseconds.
                mouse.click(true);//should left click where current mouse is

I'm not sure if this is right or not, no clue how to do it.

  • Author

Can I ask what you are trying to do here?

 

Basically have the player move 1/2 sqaures from his starting position to lay another trap

would something like:

Position swaaaag = new Position((myPosition().getX() +- 0),(myPosition().getY() +- 0),0);
        if(swaaaag != null){
            if(swaaaag.isVisible(bot)){
                //move camera up high or whatever
               swaaaag.interact(bot, "Walk");
            }else{
                camera.toEntity((org.osbot.rs07.api.model.Entity) swaaaag);
            }
        }

work?

"Herp derp isolate is trying to cast a position as an entity" = for some reason my IDE did it so i didnt bother changing it

Edited by Isolate

  • Author

would something like:

Position swaaaag = new Position((myPosition().getX() +- 0),(myPosition().getY() +- 0),0);
        if(swaaaag != null){
            if(swaaaag.isVisible(bot)){
                //move camera up high or whatever
               swaaaag.interact(bot, "Walk");
            }else{
                camera.toEntity((org.osbot.rs07.api.model.Entity) swaaaag);
            }
        }

work?

"Herp derp isolate is trying to cast a position as an entity" = for some reason my IDE did it so i didnt bother changing it

 

So instead of moving the mouse, It should move the camera and click? That seems like it would be easier, let me mess around with it for a second and i'll tell if you if it works. Thanks for the reply!

 

And also is there any point to that else statement? or is it just a default else statement your IDE said like you said?

Edited by twin 763

So instead of moving the mouse, It should move the camera and click? That seems like it would be easier, let me mess around with it for a second and i'll tell if you if it works. Thanks for the reply!

 

And also is there any point to that else statement? or is it just a default else statement your IDE said like you said?

Which one... non of them there are unused?

+ my interaction is wrong its "Walk here" i think for walking

  • Author

Which one... non of them there are unused?

+ my interaction is wrong its "Walk here" i think for walking

 

else{

camera.toEntity((org.osbot.rs07.api.model.Entity) swaaaag);

}

What exactly does that do? did you just force camera to go into the position swaaaag?

else{

camera.toEntity((org.osbot.rs07.api.model.Entity) swaaaag);

}

What exactly does that do? did you just force camera to go into the position swaaaag?

only if its not on the screen

in this case make swaaaaaaag like yoru starting position or something.

using "Walk here" and this code seems to work find for me and my bird catcher :)

  • Author

only if its not on the screen

in this case make swaaaaaaag like yoru starting position or something.

using "Walk here" and this code seems to work find for me and my bird catcher smile.png

 

My bad man I fell asleep early. I found out it was an issue with my logic and sleep timers on why some stuff was fucking up and not working properly so I need to mess around with that to get it right! Thanks for all your replies though!

  • Author

only if its not on the screen

in this case make swaaaaaaag like yoru starting position or something.

using "Walk here" and this code seems to work find for me and my bird catcher smile.png

 

I lied about it being an issue with my logic i just didnt get your code lol. Thanks a bunch man smile.png

Edited by twin 763

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.