Jump to content

client.moveMouse & client.pressMouse


Recommended Posts

Posted

So I'm writing my first script and so far everything works great except when it is supposed to walk to the bank it doesn't. I looked back through my code and it says that "the method client.moveMouse(new MiniMapTileDestination, boolean) is undefined for the type Client.
 
 

	private boolean walkTile(Position p) throws InterruptedException {
		client.moveMouse(new MiniMapTileDestination(bot, p), false);
		sleep(random(150, 250));
		client.pressMouse();

any help would be great, thanks!

Posted

So I'm writing my first script and so far everything works great except when it is supposed to walk to the bank it doesn't. I looked back through my code and it says that "the method client.moveMouse(new MiniMapTileDestination, boolean) is undefined for the type Client.

 

 

	private boolean walkTile(Position p) throws InterruptedException {
		client.moveMouse(new MiniMapTileDestination(bot, p), false);
		sleep(random(150, 250));
		client.pressMouse();

any help would be great, thanks!

My advise would be to walk using the method outlined within this tutorial :).

 

To do it, simply add Divine Utility (found under the 'Other' section of the SDN) to your list of scripts and collect the full path you wish you walk. Once you have the path, all you need to is add it to the top of your script and use:

localWalker.walkPath(path);

Best of luck with it! Feel free to message me or reply if you need a hand getting it working. I also believe that earlier this week I saw a post saying that Web Walking should be implemented within about a week so all of these methods will likely become obsolete at that time.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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