Alek Posted September 20, 2014 Share Posted September 20, 2014 import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import java.awt.*; @ScriptManifest(name = "Skeleton", author = "Alek", version = 1.0, info = "", logo = "") public class Skeleton extends Script { @Override public void onStart() { //Code here will execute before the loop is started } @Override public void onExit() { //Code here will execute after the script ends } @Override public int onLoop() { return 100; //The amount of time in milliseconds before the loop starts over } @Override public void onPaint(Graphics2D g) { //This is where you will put your code for paint(s) } } 11 Quote Link to comment Share on other sites More sharing options...
Apaec Posted September 20, 2014 Share Posted September 20, 2014 I read somewhere the optimum loop frequency is return gRandom(215.80) for the onLoop delay Can't remember who posted that though... one of the devs? Ty for the backbone too, alek Quote Link to comment Share on other sites More sharing options...
Joseph Posted September 20, 2014 Share Posted September 20, 2014 I read somewhere the optimum loop frequency is return gRandom(215.80) for the onLoop delay Can't remember who posted that though... one of the devs? Ty for the backbone too, alek It was laz he said to make it return more then 700 Quote Link to comment Share on other sites More sharing options...
Botre Posted September 20, 2014 Share Posted September 20, 2014 great! Quote Link to comment Share on other sites More sharing options...
BotRS123 Posted September 20, 2014 Share Posted September 20, 2014 You should include onMessage. Quote Link to comment Share on other sites More sharing options...
Soldtodie Posted September 20, 2014 Share Posted September 20, 2014 You should include onMessage. Title: The minimum code to make a script I don't think he will add onMessage, because it's not needed. Quote Link to comment Share on other sites More sharing options...
BotRS123 Posted September 20, 2014 Share Posted September 20, 2014 Title:The minimum code to make a script I don't think he will add onMessage, because it's not needed. You could say the same thing about onPaint. If he doesn't add it, oh well. Quote Link to comment Share on other sites More sharing options...
Soldtodie Posted September 20, 2014 Share Posted September 20, 2014 You could say the same thing about onPaint. If he doesn't add it, oh well. I could ^^. Quote Link to comment Share on other sites More sharing options...
Dog_ Posted September 20, 2014 Share Posted September 20, 2014 It was laz he said to make it return more then 700 lmao 1 Quote Link to comment Share on other sites More sharing options...
Prozen Posted February 25, 2015 Share Posted February 25, 2015 Did I do something completely wrong. new to eclipse :p http://prntscr.com/69pl97 Quote Link to comment Share on other sites More sharing options...
Precise Posted February 25, 2015 Share Posted February 25, 2015 Did I do something completely wrong. new to eclipse http://prntscr.com/69pl97 you need to add OSBot client to the project, then the imports at the top which you missed out will work ^_^ To do this please do the following: - Right click on the Java Project and select Properties (at the bottom of the list). - Now a window will appear, select "Java Build Path" on the left hand side. - Now select the "Libraries" tab in the top middle of the window. - Then you will see on your left there is a button saying "Add External JARS..." - Navigate to the latest version of OSBot client is downloaded. - Press Open. - Press Ok. Then the imports should work and so will all the other errors ^_^ Precise 1 Quote Link to comment Share on other sites More sharing options...
Prozen Posted February 25, 2015 Share Posted February 25, 2015 Got it Thank you very much. You answered fast lol. Best community ever. 1 Quote Link to comment Share on other sites More sharing options...
Precise Posted February 25, 2015 Share Posted February 25, 2015 Got it Thank you very much. You answered fast lol. Best community ever. Glad i could help ^_^ Quote Link to comment Share on other sites More sharing options...
Prozen Posted February 25, 2015 Share Posted February 25, 2015 How do I go about getting model id so I can tell the script what to click on? I don't see anything for it inside the osbot client. Quote Link to comment Share on other sites More sharing options...
organicjello Posted February 27, 2015 Share Posted February 27, 2015 (edited) How do I go about getting model id so I can tell the script what to click on? I don't see anything for it inside the osbot client. Settings > Debug tab > Entity Hover Debug (left column) Additionally, there are plenty of methods in the API that take a string argument so you don't need the ID just the name. Edited February 27, 2015 by organicjello Quote Link to comment Share on other sites More sharing options...