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
  • Random click


    span4o

    Recommended Posts

    Noob question - I made my first script with empty classes, nothing should happen, but when I run the script It makes a random click. Ideas?

    Link to comment
    Share on other sites

    Are you sure it's clicking something? Is your onLoop/onStart completely empty? Where does it click?

    Definitely going to need some more info on this one :)

    Link to comment
    Share on other sites

    Thanks for your reply, Yes It Is clicking on the bottom of the screen. The loop is empty

    package tutIsland;
    
    import org.dreambot.api.methods.Calculations;
    import org.dreambot.api.script.AbstractScript;
    import org.dreambot.api.script.ScriptManifest;
    import org.dreambot.api.script.Category;
    
    
    @ScriptManifest(author = "Janill", name = "My First Script", version = 1.0, description = "Tutorial Island", category = Category.QUEST)
    public class main extends AbstractScript {
    
    	public void onStart() {
    
    	}
    
    	
    	public void onExit() {
    
    	}
    
    
    	public int onLoop() {
    
    		return 0;
    
    	}
    }

    The full code.

    I tried deleting and exporting from the start - still the same.

    Link to comment
    Share on other sites

    On 9/4/2020 at 12:08 PM, span4o said:

    Thanks for your reply, Yes It Is clicking on the bottom of the screen. The loop is empty

    
    package tutIsland;
    
    import org.dreambot.api.methods.Calculations;
    import org.dreambot.api.script.AbstractScript;
    import org.dreambot.api.script.ScriptManifest;
    import org.dreambot.api.script.Category;
    
    
    @ScriptManifest(author = "Janill", name = "My First Script", version = 1.0, description = "Tutorial Island", category = Category.QUEST)
    public class main extends AbstractScript {
    
    	public void onStart() {
    
    	}
    
    	
    	public void onExit() {
    
    	}
    
    
    	public int onLoop() {
    
    		return 0;
    
    	}
    }

    The full code.

    I tried deleting and exporting from the start - still the same.

     

    When you start a script DreamBot will run some "RandomEvent" solvers. This includes disabling roofs, changing the zoom level, changing the client to fixed mode from resizable ect... It could be one of those random event solvers running. Does the screen flash red when logging in with the script/when it first starts?

    Link to comment
    Share on other sites

    On 9/10/2020 at 3:38 PM, span4o said:

    Thanks for reply, I don't think It's the case I tried to disable those random events on the settings still the same.

    umm. I don't think you should call your class "main". Try changing that. Also make sure you're on Dreambot 3. And put some actual code in there to see if it's not just doing that to troll you. 💫

    Link to comment
    Share on other sites

    Archived

    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.