rawgreaze Posted June 17, 2021 Share Posted June 17, 2021 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? Quote Link to comment Share on other sites More sharing options...
Apaec Posted June 19, 2021 Author Share 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 Quote Link to comment Share on other sites More sharing options...
rawgreaze Posted June 25, 2021 Share 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 Quote Link to comment Share on other sites More sharing options...
dragonslayer243 Posted December 22, 2021 Share 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? Quote Link to comment Share on other sites More sharing options...
Sir Farms A Lot Posted December 31, 2021 Share 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? Quote Link to comment Share on other sites More sharing options...
Apaec Posted December 31, 2021 Author Share 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? Quote Link to comment Share on other sites More sharing options...
Sir Farms A Lot Posted January 2, 2022 Share 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. Quote Link to comment Share on other sites More sharing options...
Apaec Posted January 3, 2022 Author Share 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? Quote Link to comment Share on other sites More sharing options...
sleepyskiller Posted January 29, 2022 Share 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 Quote Link to comment Share on other sites More sharing options...
Stando Posted April 4, 2022 Share 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? Quote Link to comment Share on other sites More sharing options...
Gunman Posted April 4, 2022 Share 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 Quote Link to comment Share on other sites More sharing options...
cmorri Posted June 3, 2022 Share Posted June 3, 2022 nothing is working so far. i just stand there. it will disconnect by the end of this sentence,lol Quote Link to comment Share on other sites More sharing options...
mostafakhalil Posted January 21, 2023 Share 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 Quote Link to comment Share on other sites More sharing options...
SlimGirl Posted February 26, 2023 Share Posted February 26, 2023 Thanks for the guide Apaec! 1 Quote Link to comment Share on other sites More sharing options...
codeavail Posted March 17, 2023 Share 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 Quote Link to comment Share on other sites More sharing options...