infallible 28 Share Posted December 3, 2016 Hey everyone, it's been a while since I've wrote any code and I had to redownload intellij, java, client etc. Well, I opened my script, added the client.jar and java dependencies and none of the API is showing up when I'm typing. Additionally, when I delete all the imported API, none of the code has the red underline showing something needs to be imported for it to work. What am I doing wrong here? Link to comment Share on other sites More sharing options...
Dezval 44 Share Posted December 3, 2016 File > Project Structure > Modules > Dependencies > Click on the green "+" sign on the right and add client.jar from dreambotFile > Project Structure > Modules > Artifacts > Click on the green "+" sign on the upper left and create a new JAR for your script. In Artifacts go to the Output Layout tab and click on the green "+" sign to add a module output, add your module for your script. Also, in Artifacts change your Output Directory to your scripts folder, should look something like this -> C:\Users\YOURUSER\DreamBot\Scripts\ Then finally, before your main class, and after your imports, in the main java file add the script manifest -> @ScriptManifest(category = Category.MONEYMAKING, name = "Making Billions!", author = "Dezval", version = 3.6.2 )If you need a more visual guide, I'll try and get some pics later today. Link to comment Share on other sites More sharing options...
infallible 28 Author Share Posted December 3, 2016 File > Project Structure > Modules > Dependencies > Click on the green "+" sign on the right and add client.jar from dreambot DONE File > Project Structure > Modules > Artifacts > Click on the green "+" sign on the upper left and create a new JAR for your script. DONE In Artifacts go to the Output Layout tab and click on the green "+" sign to add a module output, add your module for your script. Also, in Artifacts change your Output Directory to your scripts folder, should look something like this -> C:\Users\YOURUSER\DreamBot\Scripts\ Then finally, before your main class, and after your imports, in the main java file add the script manifest -> @ScriptManifest(category = Category.MONEYMAKING, name = "Making Billions!", author = "Dezval", version = 3.6.2 ) If you need a more visual guide, I'll try and get some pics later today. no option to add the module and I've already got the ouput to the script folder as well as the manifest already being created since this script is not new. Link to comment Share on other sites More sharing options...
slasso 27 Share Posted December 3, 2016 I don't use Intellij but I made a test project and imported the jar like this. http://imgur.com/a/EAQMU Link to comment Share on other sites More sharing options...
infallible 28 Author Share Posted December 3, 2016 I don't use Intellij but I made a test project and imported the jar like this. http://imgur.com/a/EAQMU yup that's exactly how it looks on mine O.o Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.