Jump to content

Beginner Scripter


scott94

Recommended Posts

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

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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: 

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