March 29, 201510 yr 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
March 27, 20169 yr 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?
September 17, 20169 yr Nice tutorial bro, Might help out some players who is new to coding! Edited September 17, 20169 yr by Mr Pro Pop
March 17, 20196 yr 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.
March 3, 20205 yr Is this still an appropriate skeleton to use? Or does somebody know of something more up-to-date? Just noticing the original post date.
March 3, 20205 yr 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.
April 14, 20205 yr 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; } }
April 15, 20205 yr 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?
April 17, 20205 yr 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 ^^
Create an account or sign in to comment