Vlad 216 Share Posted November 21, 2014 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); } } 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) 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
Archived
This topic is now archived and is closed to further replies.