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
  • Antiban - Randomising the slot clicked


    katastrophi

    Recommended Posts

    Posted

    I'm looking to add some anti ban to a script I have. It's a item combiner script but I want it to click different slots. In the api I can see how to do that. Is there not a way of clicking slot x? Or am I going to have to do it a different way?

    Posted
    4 minutes ago, borisbruneel said:

    I think you are looking for getInventory().getRandom(int id)?

    I'm looking to randomise between a number of slots close to the item. As opposed to any random. E.g. if the item i'm using it with is in slot 3 i want to randomise clicking between slot 2, 5 or 6.

    But this can be used to iterate over until I get one of the slot numbers I want I guess. Let me know if there's a better solution otherwise that'll probably do it.

    Posted

    ended up with something like this

    //	get random number between 0-100
    //	if its above 39
    	//	get random slots until its in a slot close to our item
    	//	use our items together
    // else
    	// click our prefered item slot (the one a player would usually click) e.g. immediately next to it

     

    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.