Toma 44 Posted October 16, 2020 Share Posted October 16, 2020 Quick guide for setting up local scripts in IntelliJ. I assume that you have IntelliJ installed already. In case you don't have java 11+ you can download it from https://adoptopenjdk.net/. First, you must download PowBotLoader from https://powbot.org/download. After running PowBotLoader once you should have the required PowBot.jar in "C:\Users\YourName\.powbot\client" ( on Windows). You will use PowBot.jar in the next section NOT PowBotLoader. Open IntelliJ. Click on the File->New->Project. Select Java and make sure that under Project SDK you have java 11 or higher. Click Next and Next again. Now you can name your project whatever you want and select the location. Click Finish. Once you have completed that you should have a new empty project. On the left side right click on your project name and select "Open Module Settings", the window on the right side should be open now. Select Libraries under Project Settings and click on the "+" sign and select Java. Find and select the PowBot.jar . Click OK, then Apply and then again OK to close the window. (The screenshot below shows an old jar file name) Now we need to setup run configuration. Click on Run->Edit Configuration on the top toolbar. The configuration window should be open now. Click on the "+" sign, choose Application. n Now name your configuration however you want. Under Main class put jagexappletviewer. Under VM options put "-Xmx1024m -XX:+UseG1GC" Make sure that jre version is correct. Now click Apply and OK. You should now be ready to start making some scripts. Double click on your project name on the left side to expand the menu. Now right click on src (folder for all of your source files) and select New->Java class and name it Main. Your class will be empty. The code in the picture is the minimum you'll need to run the script. If you have written the necessary code you can now run the app. Select Run->Run "ProjectName" . It will compile and run the client. Hopefully you got something like this. In the client if you select File->Play you should see your script name ( name comes from the manifest) That's it! Good luck with scripting. 2 Quote Link to post Share on other sites
Moderators Dan 48 Posted January 24 Moderators Share Posted January 24 Updated the thread, there were references to the loader jar rather than the exe, and people are downloading the old jar from here. Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.