Search the Community
Showing results for tags 'development'.
-
1. Follow this tutorial! Script Development Setup 2. Create your base class script inside of src directory @ScriptManifest(name = "Example", author = "Example", version = 1.0, info = "Example", logo = "") class OsbotScriptTemplate : Script() { override fun onLoop(): Int { TODO("Not yet implemented") } } 3. Build your project. (Build > Build Project) 4. You should see a lib folder with a bunch of kotlin library in it 5. Go back to File > Project Structure > Artifacts, assuming you followed step one correctly, you should already have an artifact. If not, go back to step 1! 6. On the right side under Available Elements you should see KotlinJavaRuntime , right click on this, and select extract into Output Root 7. Rebuild your project, and you should now be able to run your Kotlin based script!
-
Are there any templates available somewhere? If there are none, what would be suggestions... like: windows or linux based? Any good Idea what else could be included other than the client ( I know depends on the application, but maybe there is something standard that could be included I did not think of... like standalone sql container.... etc). I am just starting and I was wondering if it is possible to find anything regarding the topic.
-
Hello Osbot community, I am currently working on a script where you enter a mob name in an J-input dialog window, and select an item to eat from a dropdown(JComboBox) menu and the bot will kill the any nearby mobs with the name you entered and when your character drops below a certain hp mark your character will eat the food. At the current moment I have the script set up such that each of these 2 actions is accomplished in separate jframes/windows. Can anyone point me in the right direction on combining the windows into one? Any help would be much appreciated! i've included pictures of part of my code in these imgur links below (how the 2 windows are displayed when program is run) the createGUI method call creates the jcombobox in this image while Joptionpane is the input box