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
  • Anti-afk script


    miked

    Recommended Posts

    Needing a script to keep accounts logged in.  Any kind of small movements or clicks on random things every 4-8 minutes.  Anyone know of such a thing, or of a way to achieve this? 

    Link to comment
    Share on other sites

    12 minutes ago, miked said:

    Needing a script to keep accounts logged in.  Any kind of small movements or clicks on random things every 4-8 minutes.  Anyone know of such a thing, or of a way to achieve this? 

    splash, 1 click every 10-15 mins so you don't log out.

    Link to comment
    Share on other sites

    smth i threw together :)) its not good but u get the idea

    randomswitch = randomNum(1,100);
    if (randomswitch >= 50) {
    	log("walking to random location");
    	getWalking().walk(new Tile(randomNum(3215, 3220), randomNum(3236, 3241)));
    	sleep(randomNum(150000,300000));
    }else if (randomswitch < 50) {
    	if (randomswitch <= 17) {
    		log("Talking with magic tutor");
    		npc = getNpcs().closest("Magic combat tutor");
    		npc.interact("Talk-to");
    	}else if (randomswitch > 17 && randomswitch <= 32) {
    		log("Talking with melee tutor");
    		npc = getNpcs().closest("Melee combat tutor");
    		npc.interact("Talk-to");
    	}else if (randomswitch > 32 && randomswitch <= 49) {
    		log("Talking with combat tutor");
    		npc = getNpcs().closest("Ranged combat tutor");
    		npc.interact("Talk-to");
    	}
    	sleep(randomNum(150000,300000));
    }

    I also attached a file with a .jar file with this script in it in case u dont know what any of this means. Just download the file and put it in Users>*USERNAME*>Dreambot>Scripts. its real shit so enjoi it, i also fked around a little with the GUI and paint because im still learning and wanted to try it out.

    stayonline.jar

    Link to comment
    Share on other sites

    Is there a specific script I can have splash once every 10 or so minutes? rather than constantly. 

     

    @Lyuda

    I have forced myself to learn enough programming to understand what your script is doing, but I don't know enough to evolve that into a working DB script. Thanks for that though!

    Link to comment
    Share on other sites

    9 hours ago, miked said:

    Is there a specific script I can have splash once every 10 or so minutes? rather than constantly. 

     

    @Lyuda

    I have forced myself to learn enough programming to understand what your script is doing, but I don't know enough to evolve that into a working DB script. Thanks for that though!

    you can't stay 100% idle for 10minutes... you gotta be doing something... what you can do tho is use

    System.nanoTime()
      or
    System.currentTimeMillis()

    to schedule your actions, something like

    if (timeElapsed > TIME_FOR_ACTION) {
    //Do something
    }

    and keep looping this shit

    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.