Jump to content

Beginner Scripter


Recommended Posts

Posted

Hi osbot,

I have always had a passion for botting and the community but I haven't always had the time to participate as much as I would have liked.

I'm setting myself a project to learn to make basic scripts for learning purposes and to develop my skills.

Would any scripters be graceful enough to give me a few sample scripts for me to tweak and understand whilst learning?

 

Thanks guys!

 

Scott

Posted

Also it is worth noting that you can download local scripts and 'decompile' them.

A jar file is essentially compiled java code (java byte-code), and 'decompiling' a jar file will attempt to revert this byte-code to the initial source code. Since compiling is not a perfectly reversible process, some decompilers do provide minor inaccuracies to the initial source code, such as wrapping objects in one-item object arrays and such, but the jist of the code should be evident.

Java decompilers can be found online, you should be able to find a free online one with no problems. Decompilers running JDCore or similar are a good bet.

Things to note:

  • A lot of the local scripts are poorly written. Careful what you learn from!
  • As I mentioned above, the source code might not match the original, but it will be close.
  • Don't use that 'task/node' framework that people say you should use unless you have a good reason to..! I only say this because the local script section is full of these kinds of structures and they bring nothing new to the table above  simple if/else statements in your onLoop.

Let me know if you have any questions!

-Apa

 

  • Like 4
Posted
1 hour ago, Apaec said:

Also it is worth noting that you can download local scripts and 'decompile' them.

A jar file is essentially compiled java code (java byte-code), and 'decompiling' a jar file will attempt to revert this byte-code to the initial source code. Since compiling is not a perfectly reversible process, some decompilers do provide minor inaccuracies to the initial source code, such as wrapping objects in one-item object arrays and such, but the jist of the code should be evident.

Java decompilers can be found online, you should be able to find a free online one with no problems. Decompilers running JDCore or similar are a good bet.

Things to note:

  • A lot of the local scripts are poorly written. Careful what you learn from!
  • As I mentioned above, the source code might not match the original, but it will be close.
  • Don't use that 'task/node' framework that people say you should use unless you have a good reason to..! I only say this because the local script section is full of these kinds of structures and they bring nothing new to the table above  simple if/else statements in your onLoop.

Let me know if you have any questions!

-Apa

 

:feels: 

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