Jump to content

client.moveMouse & client.pressMouse


mattertatter

Recommended Posts

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!

Link to comment
Share on other sites

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.

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