Vlad 216 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); } }
Dogerina 330 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)
Vlad 216 Author 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.
Dogerina 330 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
Vlad 216 Author Posted November 21, 2014 And according to the docs, Arial is not a font. You must use comic sans
Vlad 216 Author 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.