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
  • Try asking for help in the chatbox
  • why doesn't this very basic template script run?


    Recommended Posts

    package name;
    import org.dreambot.api.methods.Calculations;
    import org.dreambot.api.methods.container.impl.Inventory;
    import org.dreambot.api.methods.map.Area;
    import org.dreambot.api.script.AbstractScript;
    import org.dreambot.api.script.Category;
    import org.dreambot.api.script.ScriptManifest;
    import org.dreambot.api.wrappers.interactive.Entity;
    import org.dreambot.api.wrappers.interactive.GameObject;
    @ScriptManifest(category = Category.MISC, name = "Name", author = "Bmc", version = 1.0)
    public class Name extends AbstractScript {
        public void onStart(){
            log("hello world");
        public int onLoop(){
            return 400;

    the above code is the basic template (plus some extraneous imports)


    I can't get even those console messages to log to the debugger. What's going on? I made another (fully fledged) script the other day which worked fine with this same starting format.

    Edited by bmc
    Link to comment
    Share on other sites


    • 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.