Jump to content

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


Recommended Posts

Posted
13 minutes ago, BloodyNoah said:

I think it should be like this: https://prnt.sc/10ya4je ?

I'm no expert with Eclipse but I don't think that looks right - OSBot should be under 'referenced libraries'.

If you right click on your project, then go to `build path > configure build path` and add OSBot as an external JAR there (`Add External JARs... > Select OSBot`), it should be happy.

-Apa

Posted
9 hours ago, chubbychaser said:

hey there

what does this mean and how do i resolve the error?

RS2Object cannot be resolved to a type    

 

thanks

Did you hover over RS2Object and import it? That message means it doesn't recognize RS2Object which is due to either you missing the OSBot library or missing an import.

  • Like 1
Posted (edited)

Hey guys.

Im fairly new to learning how to code with osbot here and stumbled upon this guide.

I understand the basics of java and im doing this mainly just to continue learning for myself... I am having an issue with eclipse though where even after importing my reference library with the latest build of osbot - it's spitting out errors with the code backbone?

Is this a known issue or have i just messed something up somewhere? thanks a bunch.

 

Edit: 

I moved over to intellj IDEA which I prefer personally anyways ..and it imported the library just fine and didn't throw any errors. So maybe eclipse is just being weird these days?

 

Edited by Smicxtague
Posted
1 hour ago, Smicxtague said:

Hey guys.

Im fairly new to learning how to code with osbot here and stumbled upon this guide.

I understand the basics of java and im doing this mainly just to continue learning for myself... I am having an issue with eclipse though where even after importing my reference library with the latest build of osbot - it's spitting out errors with the code backbone?

Is this a known issue or have i just messed something up somewhere? thanks a bunch.

 

Edit: 

I moved over to intellj IDEA which I prefer personally anyways ..and it imported the library just fine and didn't throw any errors. So maybe eclipse is just being weird these days?

 

I'm not sure - it's working for me, and AFAIK both IntelliJ and Eclipse are backed by maven, so i'd hazard a guess that you might have missed a step in the setup, or that my setup guide is a little outdated :/ 

I'd recommend IntelliJ either way, it's a great IDE.

-Apa

Posted
8 hours ago, Apaec said:

I'm not sure - it's working for me, and AFAIK both IntelliJ and Eclipse are backed by maven, so i'd hazard a guess that you might have missed a step in the setup, or that my setup guide is a little outdated :/ 

I'd recommend IntelliJ either way, it's a great IDE.

-Apa

perfect :D im gonna use intellij and give it shot. This is all just a fun learning experience for me anyways. The runescape botting part just happens to be a fun thing for me lmao.

I built a very primitive color bot and just wanting to learn something more advanced :) thanks for everything! If you have any updated guides or other content you suggest - hit me up with it 

Going to work through yours today though!

Posted
On 4/5/2021 at 7:10 PM, Smicxtague said:

perfect :D im gonna use intellij and give it shot. This is all just a fun learning experience for me anyways. The runescape botting part just happens to be a fun thing for me lmao.

I built a very primitive color bot and just wanting to learn something more advanced :) thanks for everything! If you have any updated guides or other content you suggest - hit me up with it 

Going to work through yours today though!

Best of luck - do let me know if you run into any problems or have any further questions. I'm always happy to help. Have fun!

Posted
On 4/6/2021 at 3:40 PM, Apaec said:

Best of luck - do let me know if you run into any problems or have any further questions. I'm always happy to help. Have fun!

I'm not sure what I did wrong that night (admittedly i had been drinking a little bit) but i went back into eclipse and did it exactly how you had it and it's working no problem. I'm going to continue on with your guide. 
Made a few fun modifications just to test for like woodcutting and it works just fine. so should be a fun little learning project!!

  • Like 1
Posted
18 hours ago, Smicxtague said:

I'm not sure what I did wrong that night (admittedly i had been drinking a little bit) but i went back into eclipse and did it exactly how you had it and it's working no problem. I'm going to continue on with your guide. 
Made a few fun modifications just to test for like woodcutting and it works just fine. so should be a fun little learning project!!

Awesome! Let me know how it goes :) 

  • 2 months later...
Posted

nice guide, up and running and shitting scripts out left and right for trivial things now :)

how can i link scripts together? i really avoided java, it wants me to create a static method to use it in my onLoop in my osbot plugin however if i do that then it wants me to make your methods static and it just cascades, what's the proper way to make things like, a shared bank module so I can have my own logic? trying to do like osbotplugin.util.Bank.bank(items) for example which would in turn call a bunch of your api methods?

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