Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Bot wont stop clicking!

Featured Replies

	case SPIN:
    		if (!player.isAnimating()){
    			if (SPIN_AREA.contains(player) && (inventory.contains("Flax"))){
    				objects.closest("Spinning wheel").interact("Spin");
    					sleep(random(200,600));
    					Inter.interactWithChild(459, 91, "Make X");
    					sleep(random(1000, 1500));
    					RS2Interface Inter = interfaces.get(118);
    					if (Inter.getMessage(118) != null){
    						keyboard.typeString("99");
    						sleep(random(2000,4000));
    					}else{
    						sleep(random(60000, 62000));
    					}
    			}
    		}
    	break;

Why does my bot keep clicking on the spinning wheel even when it starts to spin flax? I tried making it sleep(random(60000, 62000)) but that didn't work...huh.png

	case SPIN:
    		if (!player.isAnimating()){
    			if (SPIN_AREA.contains(player) && (inventory.contains("Flax"))){
    				objects.closest("Spinning wheel").interact("Spin");
    					sleep(random(200,600));
    					Inter.interactWithChild(459, 91, "Make X");
    					sleep(random(1000, 1500));
    					RS2Interface Inter = interfaces.get(118);
    					if (Inter.getMessage(118) != null){
    						keyboard.typeString("99");
    						sleep(random(2000,4000));
    					}else{
    						sleep(random(60000, 62000));
    					}
    			}
    		}
    	break;

Jesus i cant read OP

 

 

Holy crap your sleeping for a minute l0l

Edited by Mysteryy

  • Author

Lmao, I'm still learning! cut me some slack! How else could I make the bot stop clicking?

Lmao, I'm still learning! cut me some slack! How else could I make the bot stop clicking?

i know your pain. You should use some logic and a timer to help yo determine when you should spin.

Not getting any exceptions ?

 

Inter.interactWithChild(459, 91, "Make X");

^ Are you certain that 'Inter' is not null at this point?

 

Furthermore, when you call getMessage(118) on the interface, you're basically saying that both the parent and child interfaces have the same ID of 118. Are you certain that this is the case?

Edited by FrostBug


// You should be checking you have flax to help redirect the programme to this case

case SPIN: {

// Check area first, and if true, assert objects valid

if (SPIN_AREA.contains(player) && !player.isAnimating()) {

// Declare the vars you want to discover

RS2Object spinningWheel = objects.closest("Spinning wheel");

RS2InterfaceChild interfaceChild = interfaces.get(459, 91);

RS2Interface xAmount = interfaces.get(118);

// Check each of them and act accordingly

if (xAmount != null) {

// Last result first

keyboard.typeString("99");

} else if (interfaceChild != null) {

interfaceChild.interact("Make X");

} else if (spinningWheel != null && spinningWheel.exists()) {

spinningWheel.interact("Spin");

} else {

//niqqua youu dun fuked up!

}

}

}

What you guys don't understand is that spinning flax is like cooking food. You animate for a sec then stop for two seconds. I'm not sure why it doesn't sleep for a whole minute. like I said use a timer it will help

What you guys don't understand is that spinning flax is like cooking food. You animate for a sec then stop for two seconds. I'm not sure why it doesn't sleep for a whole minute. like I said use a timer it will help

 

 

Yea in my scripts I have a multithreaded animation listener. At any time I can get the time since the player last animated. 

Yea in my scripts I have a multithreaded animation listener. At any time I can get the time since the player last animated. 

i would make a listener but im to lazy and i happ with my timer lol

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.