RawrRawr 1 Share Posted February 28, 2017 I have decided to try and learn how to script and have a question. I have started it and want to test it but it does not appear to be linked to my client for some reason. I did do @ScriptManifest as well. Link to comment Share on other sites More sharing options...
Zibele 18 Share Posted February 28, 2017 show us your code please. Link to comment Share on other sites More sharing options...
NovaGTX 106 Share Posted March 3, 2017 If you have added client.jar for the build path correctly take a look at this skeleton which works properly. My guess is that you are missing a field in @ScriptManifest 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 = "YOURSCRIPTNAME", author = "YOURNAME", description = "", version = 1.0, 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...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.