Jump to content

Move mouse one or two blocks then click?


Twin

Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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
Link to comment
Share on other sites

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

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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...