Apaec Posted June 19, 2021 Author Posted June 19, 2021 On 6/18/2021 at 12:01 AM, rawgreaze said: nice guide, up and running and shitting scripts out left and right for trivial things now how can i link scripts together? i really avoided java, it wants me to create a static method to use it in my onLoop in my osbot plugin however if i do that then it wants me to make your methods static and it just cascades, what's the proper way to make things like, a shared bank module so I can have my own logic? trying to do like osbotplugin.util.Bank.bank(items) for example which would in turn call a bunch of your api methods? I'm not aware of a nice way to share code between scripts. Though not ideal, i'd recommend copying over important logic between scripts. To make it easier, you can abstract your logic into a class, and copy that class file between scripts. If you do this, you can version the files to keep track of which versions you have where. Glad you're seeing some success with your scripts! -Apa
rawgreaze Posted June 25, 2021 Posted June 25, 2021 (edited) On 6/19/2021 at 6:28 AM, Apaec said: I'm not aware of a nice way to share code between scripts. Though not ideal, i'd recommend copying over important logic between scripts. To make it easier, you can abstract your logic into a class, and copy that class file between scripts. If you do this, you can version the files to keep track of which versions you have where. Glad you're seeing some success with your scripts! -Apa i want to have shared modules between scripts.. right now i have a wood cutter, fisher, etc, and they all go to the bank for example. i'd like to have a Bank.class that has the webwalk to bank function as well as deposit so I can reference these custom functions without code duplication. this must be a thing also i botted for like 10 hours straight with no bans, i enabled breaks and got banned a few hours later so could be coincidence but make that what you will Edited June 25, 2021 by rawgreaze
dragonslayer243 Posted December 22, 2021 Posted December 22, 2021 On 8/15/2014 at 9:51 AM, Apaec said: Hi, when I try to run the project, I am getting this error: Provider class org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer not in module. In the folder META-INF\services there is a file that has 1 line 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' when they should be on two lines. Does anyone know how to fix this? Hi, when I try to run the project, I am getting this error: Provider class org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer not in module. In the folder META-INF\services there is a file that has 1 line 'org.xmlpull.mxp1.MXParser,org.xmlpull.mxp1_serializer.MXSerializer' when they should be on two lines. Does anyone know how to fix this?
Sir Farms A Lot Posted December 31, 2021 Posted December 31, 2021 Hi, I am looking at your guide to perhaps start to understand java development for OSRS bots. I followed your guide step by step and It is saying the imports are not accessible. What am I missing?
Apaec Posted December 31, 2021 Author Posted December 31, 2021 9 hours ago, Sir Farms A Lot said: Hi, I am looking at your guide to perhaps start to understand java development for OSRS bots. I followed your guide step by step and It is saying the imports are not accessible. What am I missing? Did you add OSBot as an External JAR?
Sir Farms A Lot Posted January 2, 2022 Posted January 2, 2022 On 12/31/2021 at 6:01 AM, Apaec said: Did you add OSBot as an External JAR? I did. You can see it added in the image I attached.
Apaec Posted January 3, 2022 Author Posted January 3, 2022 12 hours ago, Sir Farms A Lot said: I did. You can see it added in the image I attached. Not sure why it would be complaining. From the looks of things, it seems you have everything set up correctly. When you hover over a red line, e.g. when you hover over "Script", what does it say? Are there any suggested auto-fixes?
sleepyskiller Posted January 29, 2022 Posted January 29, 2022 (edited) On 12/30/2021 at 7:34 PM, Sir Farms A Lot said: Hi, I am looking at your guide to perhaps start to understand java development for OSRS bots. I followed your guide step by step and It is saying the imports are not accessible. What am I missing? Your fix is go to: Project -> Properties -> Libraries -> Add library -> execution environment. Then drop down list and select “javaSE-1.7” Edited January 29, 2022 by sleepyskiller
Stando Posted April 4, 2022 Posted April 4, 2022 I just wanted to say I completely mimicked every step for the GUI, but when I hit start the program automatically logs out. Can anyone explain why this would happen after hitting start?
Gunman Posted April 4, 2022 Posted April 4, 2022 1 hour ago, Stando said: I just wanted to say I completely mimicked every step for the GUI, but when I hit start the program automatically logs out. Can anyone explain why this would happen after hitting start? What GUI? I don't see anything for GUI's here
cmorri Posted June 3, 2022 Posted June 3, 2022 nothing is working so far. i just stand there. it will disconnect by the end of this sentence,lol
mostafakhalil Posted January 21, 2023 Posted January 21, 2023 hi , thanks for the amazing guide , i finished everything, but the question is , how i can run the script . i mean i did this ==> rune as java application ( it work fine ) and opened a osbot client but then the bot didnt work , i mean nothing happened
codeavail Posted March 17, 2023 Posted March 17, 2023 Our HND assignment help service is made to meet the needs of students in many different fields of study. Our professional writers have a lot of experience helping HND students with their schoolwork. HND Assignment Help
con m Posted April 2, 2023 Posted April 2, 2023 Great guide - as a noob I'm almost there I think... after exporting it as a JAR file within the OSBOT / script dir ... Nothing happens when I open the JAR file? See attached script looks ok to me, feel like I'm missing something simple. Could this be the reason why? : Description Resource Path Location Type The compiler compliance specified is 1.5 but a JRE 17 is used osbot Compiler Compliance JRE Compiler Compliance Problem Thanks man appreciate any help.