shannonmaddy Posted March 29, 2015 Share Posted March 29, 2015 So for some reason when I got to add the imports I get an error saying that the import with "ScriptManifest" doesn't exists. So I went and checked my imports that osbot 2.3.56 had and there were no script manifest Quote Link to comment Share on other sites More sharing options...
Shmeekz Posted April 21, 2015 Share Posted April 21, 2015 takes so much to script lol Quote Link to comment Share on other sites More sharing options...
Chris Posted May 31, 2015 Share Posted May 31, 2015 Thank you for this Quote Link to comment Share on other sites More sharing options...
trunksrozwell Posted March 27, 2016 Share Posted March 27, 2016 Do you know of any indepth, basic tutorials on how to create unique projects, how to include antibans and walkpaths and that sort of stuff? Quote Link to comment Share on other sites More sharing options...
CowsRKewl Posted June 21, 2016 Share Posted June 21, 2016 I have no idea what code to put after the skeleton lol Quote Link to comment Share on other sites More sharing options...
Mr Pro Pop Posted September 17, 2016 Share Posted September 17, 2016 (edited) Nice tutorial bro, Might help out some players who is new to coding! Edited September 17, 2016 by Mr Pro Pop Quote Link to comment Share on other sites More sharing options...
combat_acc Posted November 13, 2016 Share Posted November 13, 2016 thank you Quote Link to comment Share on other sites More sharing options...
redeems Posted March 17, 2019 Share Posted March 17, 2019 On 3/26/2016 at 10:58 PM, trunksrozwell said: Do you know of any indepth, basic tutorials on how to create unique projects, how to include antibans and walkpaths and that sort of stuff? The best way, if you have some know how about java, is to look over the API, learn it, and try to achieve something that there is no public resource for, this way you are forced to research specific concepts, instead of just looking at a source and not understanding. The way to include antibans is to not include them, they are pointless. Walkpaths you can look at the API in the classes "Walking, walking event, webwalking". There can never be a tutorial on making something "unique". There is also a scripting help section, which i've found users to be very willing to help answer questions. Furthermore, the snippets section has a lot of good resources as well. Quote Link to comment Share on other sites More sharing options...
brookpc Posted March 3, 2020 Share Posted March 3, 2020 Is this still an appropriate skeleton to use? Or does somebody know of something more up-to-date? Just noticing the original post date. Quote Link to comment Share on other sites More sharing options...
Gunman Posted March 3, 2020 Share Posted March 3, 2020 51 minutes ago, brookpc said: Is this still an appropriate skeleton to use? Or does somebody know of something more up-to-date? Just noticing the original post date. Yes. Technically you can remove onStart, onPaint, and onExit for the actual bare minimum. Quote Link to comment Share on other sites More sharing options...
splatbug Posted March 4, 2020 Share Posted March 4, 2020 Thank you for this! Quote Link to comment Share on other sites More sharing options...
dpdmi2 Posted April 14, 2020 Share Posted April 14, 2020 Hi, I'm compiling a simplified version of this skeleton a .jar file, but when I add it into my Scripts folder, it won't appear in my list of scripts inside the client. I've also made sure to include OSBot 2.5.77.jar as a library/dependency when compiling the final .jar file. I've tried adding other people's scripts into the Scripts folder, and they appear normally, so that is not the issue. Could someone please help me out? code: package com.dpdmi2; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "dpdmi2", name = "test", info = "bot_test", version = 0, logo = "") public final class Test extends Script { @Override public final int onLoop() throws InterruptedException { return 0; } } Quote Link to comment Share on other sites More sharing options...
dpdmi2 Posted April 15, 2020 Share Posted April 15, 2020 On 4/14/2020 at 7:12 AM, dpdmi2 said: Hi, I'm compiling a simplified version of this skeleton a .jar file, but when I add it into my Scripts folder, it won't appear in my list of scripts inside the client. I've also made sure to include OSBot 2.5.77.jar as a library/dependency when compiling the final .jar file. I've tried adding other people's scripts into the Scripts folder, and they appear normally, so that is not the issue. Could someone please help me out? code: package com.dpdmi2; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; @ScriptManifest(author = "dpdmi2", name = "test", info = "bot_test", version = 0, logo = "") public final class Test extends Script { @Override public final int onLoop() throws InterruptedException { return 0; } } Additionally, when I download .class files from public github scripts and convert them into .jar files, they also work just fine. However, when I copy the source code for the .class file and try to compile it myself (first to .class, then convert .class to .jar), then it doesn't work. So the problem has to lie in the compilation I assume? Quote Link to comment Share on other sites More sharing options...
dpdmi2 Posted April 17, 2020 Share Posted April 17, 2020 Fixed. The issue was that I compiled it as part of a package (com.dpdmi2). Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted April 17, 2020 Share Posted April 17, 2020 If you start a new class and you typ by hand, "Extends Script" You can let it auto generate the onLoop method. Same for the Manifest, just typ "@Manifest" and it will auto generate it.. Atleast in IntelliJ ^^ Quote Link to comment Share on other sites More sharing options...