Jump to content

A Beginners Guide to Writing OSBot Scripts (where to get started!) by Apaec


Apaec

Recommended Posts

Question, what ever way i do mining. The bot keeps clicking on different ores. How to stop the clicking after bot has started mining and until he has mined the ore?

 

After interacting with a rock, try adding a sleep. for example, 'sleep(1000)'. You will also have to add to the condition checks in the getState() to factor in a check for animations to see if the player is stick mining. for example:

 

'if (myPlayer().isAnimating()) {

//do stuff

}'

Link to comment
Share on other sites

  • 5 weeks later...
  • 4 weeks later...
  • 2 weeks later...

really good guide but my problem is the coding, the language is too complex for me and i find it hard to do. Is there a way round this? I find it really interesting to see how osrs bots work as i have used them in the past.

 

Follow some Java tutorials until you have a good understanding of the language, then start writing scripts

  • Like 1
Link to comment
Share on other sites

  • 3 weeks later...

Follow some Java tutorials until you have a good understanding of the language, then start writing scripts

 

Thanks, helped me set up eclipse for osbot quickly. Do you really have to update the jar every time there is a osbot update? Or is it only when there is an update to the api, or is it every Thursday when osbot gets a update?

Link to comment
Share on other sites

  • Alek unpinned this topic

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