Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Using eclipse used client.jar from external


    Recommended Posts

    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

    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();
    	public void onStart() {
    	public int onLoop() {
    		if (!getClient().isLoggedIn()) {
    			return 600;
    		return Calculations.random(300, 600);
    	public void onExit() {
    	public void onPaint(Graphics2D g) {
    		g.setFont(new Font("Arial", 1, 11));
    		g.drawString("Time Running: " + t.formatTime(), 25, 50);
    Link to comment
    Share on other sites


    This topic is now archived and is closed to further replies.

    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.