Vlad 216 Share Posted November 21, 2014 (edited) Feel free to suggest anything I could add on to this and I'll add it. import org.dreambot.api.methods.Calculations; import org.dreambot.api.script.AbstractScript; import org.dreambot.api.script.Category; import org.dreambot.api.script.ScriptManifest; import org.dreambot.api.utilities.Timer; import java.awt.*; @ScriptManifest(name = "", author = "", description = "", version = 1, category = Category.MISC) public class Skeleton extends AbstractScript { private Timer t = new Timer(); @Override public void onStart() { } @Override public int onLoop() { if (!getClient().isLoggedIn()) { return 600; } return Calculations.random(300, 600); } @Override public void onExit() { } public void onPaint(Graphics2D g) { g.setColor(Color.WHITE); g.setFont(new Font("Arial", 1, 11)); g.drawString("Time Running: " + t.formatTime(), 25, 50); } } Edited February 25, 2015 by Vlad Nosferatu, GoldenGates and Thepecher 3 Link to comment Share on other sites More sharing options...
Chris 154 Share Posted November 21, 2014 Seems right Link to comment Share on other sites More sharing options...
Thepecher 21 Share Posted November 21, 2014 Thanks Link to comment Share on other sites More sharing options...
Dogerina 330 Share Posted November 21, 2014 Feel free to suggest anything I could add on to this and I'll add it. t.formatTime(t.elapsed()) According to the docs formatTime is static.public static java.lang.String formatTime(long timeMilliseconds) Wizard 1 Link to comment Share on other sites More sharing options...
Vlad 216 Author Share Posted November 21, 2014 According to the docs formatTime is static. public static java.lang.String formatTime(long timeMilliseconds) You are right, it's fixed now. I made this before I had access to the docs. Link to comment Share on other sites More sharing options...
Dogerina 330 Share Posted November 21, 2014 You are right, it's fixed now. I made this before I had access to the docs. And according to the docs, Arial is not a font. You must use comic sans Link to comment Share on other sites More sharing options...
Vlad 216 Author Share Posted November 21, 2014 And according to the docs, Arial is not a font. You must use comic sans Link to comment Share on other sites More sharing options...
Jack 12 Share Posted November 21, 2014 How do I get the jar? Link to comment Share on other sites More sharing options...
Vlad 216 Author Share Posted November 21, 2014 How do I get the jar? It's not released yet. I made this from all the snippets they've been posting around. Link to comment Share on other sites More sharing options...
GoldenGates 72 Share Posted November 22, 2014 pls add more cmments. whats onstart{} ()? QQ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now