Divine Posted June 26, 2013 Share Posted June 26, 2013 Download: http://uppit.com/tfpejnqlq0t1/ScriptBase.java In Text: import java.awt.image.BufferedImage; import javax.imageio.ImageIO; import org.osbot.script.Script; import org.osbot.script.ScriptManifest; @ScriptManifest(name = "Script Name", author = "Author", version = 1.0D, info = "Description goes here.") public class ClassName extends Script { /* * Variables */ private BufferedImage paint; private long startTime; /* * Inherited Methods */ // Called at start public void onStart() { try { startTime = System.currentTimeMillis(); this.paint = ImageIO.read(new URL("IMAGE URL GOES HERE.")); } catch (Exception e) { // Catch } } // Called more than once. public int onLoop() { try { } catch (Exception e) { // Catch } return 1; } // Called at script stop public void onExit() { } // Called more than once, even during pause. public void onPaint(java.awt.Graphics g) { if (paint != null) g.drawImage(paint, 0, 0, null); //0,0 = X,Y } /* * Non-Inherited Methods */ //Non-Inherited methods go here. /* * Useful Methods */ //XP for level public int getXPForLevel(int level) { int points = 0; int output = 0; for (int lvl = 1; lvl <= level; lvl++) { points += Math.floor((double) lvl + 300.0 * Math.pow(2.0, (double) lvl / 7.0)); if (lvl >= level) return output; output = (int) Math.floor(points / 4); } return 0; } } onStart is called at the start of script, onLoop is called over and over. onExit is called on script stop. onPaint is for the drawing. 2 Link to comment Share on other sites More sharing options...
ibotinrs07 Posted June 26, 2013 Share Posted June 26, 2013 this relogs and stuff then picks up skeleton/mask? 1 Link to comment Share on other sites More sharing options...
rCharlie Posted June 26, 2013 Share Posted June 26, 2013 this relogs and stuff then picks up skeleton/mask? No... It's a basic script for script writers to use. Link to comment Share on other sites More sharing options...
Aidden Posted June 26, 2013 Share Posted June 26, 2013 Thanks for this Link to comment Share on other sites More sharing options...
Divine Posted June 26, 2013 Author Share Posted June 26, 2013 Good for starting Scripters. 1 Link to comment Share on other sites More sharing options...
rCharlie Posted June 26, 2013 Share Posted June 26, 2013 Good for starting Scripters. I was looking for one of these forever, thank you! I will begin my epic conquest to bring top notch scripts. Link to comment Share on other sites More sharing options...
Ledo Posted June 26, 2013 Share Posted June 26, 2013 Don't forget the throws clause of the InterruptedException method declaration. 1 Link to comment Share on other sites More sharing options...
Tyluur Posted June 27, 2013 Share Posted June 27, 2013 this relogs and stuff then picks up skeleton/mask? LOL'd 1 Link to comment Share on other sites More sharing options...
n3ss3s Posted July 4, 2013 Share Posted July 4, 2013 (edited) Change Exception to InterruptedException, you don't want to be blindly consuming all exceptions at the top level Edited July 4, 2013 by n3ss3s Link to comment Share on other sites More sharing options...
Traveling Posted July 10, 2013 Share Posted July 10, 2013 Thanks a lot, works great Link to comment Share on other sites More sharing options...