scott94 Posted June 28, 2017 Posted June 28, 2017 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
Zappster Posted June 28, 2017 Posted June 28, 2017 Hey, welcome I too have a passion for being lazy and choose botting over manual clicking Take a look at the local section here: https://osbot.org/forum/forum/288-downloadablelocal-scripts/ plenty of code for you to look at 2
Apaec Posted June 28, 2017 Posted June 28, 2017 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 4
Eliot Posted June 28, 2017 Posted June 28, 2017 Here are a couple of simple scripts you can take a look at that I wrote. I'm glad to see new scripters and look forward to seeing what you make in the future.
HeyImJamie Posted June 28, 2017 Posted June 28, 2017 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
alldaybye Posted June 28, 2017 Posted June 28, 2017 Just use scripts and decompose them you gotta start somewhere :P
Antonio Kala Posted June 28, 2017 Posted June 28, 2017 Best of luck in your adventure. Ask in the chatbox a lot of people are active and will help you out.
Nate Posted June 28, 2017 Posted June 28, 2017 7 minutes ago, alldaybye said: Just use scripts and decompose them you gotta start somewhere :P
Apaec Posted June 28, 2017 Posted June 28, 2017 41 minutes ago, HeyImJamie said: Yeah the guide is pretty outdated; I should really re-write it, I just haven't found the time recently. Thanks for reminding me!
HeyImJamie Posted June 28, 2017 Posted June 28, 2017 22 minutes ago, Apaec said: Yeah the guide is pretty outdated; I should really re-write it, I just haven't found the time recently. Thanks for reminding me! It does what it needs to do. I used it myself starting out! 1