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

interacting with shop

Featured Replies

So just noticed, that sometimes it fails to interact with shop.

 

post-117632-0-18810100-1405251993_thumb.gif

 

Happens like every 5 minutes, sometimes few times in a minute.

 

Although, it's not the missclick itself, becouse sometimes he does missclick on item, or missclicks to buy, but re-tries instantly.

 

I'm quite sure its not code

	if (sA.store.isOpen()) {
		if (sA.store.getAmount("Feather pack") == 100) {
			if (sA.store.interact("Buy 10", "Feather pack")) {
				return new ConditionalSleep(1250) {
					@Override
					public boolean condition() throws InterruptedException {
						return sA.inventory.contains("Feather pack");
					}
				}.sleep();						
			}		
		}			
	}

Edited by tirana

 

So just noticed, that sometimes it fails to interact with shop.

 

attachicon.gifbloggif_53c271721e9a6.gif

 

Happens like every 5 minutes, sometimes few times in a minute.

 

Although, it's not the missclick itself, becouse sometimes he does missclick on item, or missclicks to buy, but re-tries instantly.

 

I'm quite sure its not code

	if (sA.store.isOpen()) {
		if (sA.store.getAmount("Feather pack") == 100) {
			if (sA.store.interact("Buy 10", "Feather pack")) {
				return new ConditionalSleep(1250) {
					@Override
					public boolean condition() throws InterruptedException {
						return sA.inventory.contains("Feather pack");
					}
				}.sleep();						
			}		
		}			
	}

 

your condition in your conditional sleep should be changed as it will always return true if your inventory contains  a feather pack, meaning no sleep.

 

change it to this:

if (sA.store.isOpen()) {
		if (sA.store.getAmount("Feather pack") == 100) {
                     int amount = sA.inventory.getAmount("Feather pack");
			if (sA.store.interact("Buy 10", "Feather pack")) {
				return new ConditionalSleep(1250) {
					@Override
					public boolean condition() throws InterruptedException {
						return  amount < sA.inventory.getAmount("Feather pack");
					}
				}.sleep();						
			}		
		}			
	}
  • Author

 

your condition in your conditional sleep should be changed as it will always return true if your inventory contains  a feather pack, meaning no sleep.

 

change it to this:

if (sA.store.isOpen()) {
		if (sA.store.getAmount("Feather pack") == 100) {
                     int amount = sA.inventory.getAmount("Feather pack");
			if (sA.store.interact("Buy 10", "Feather pack")) {
				return new ConditionalSleep(1250) {
					@Override
					public boolean condition() throws InterruptedException {
						return  amount < sA.inventory.getAmount("Feather pack");
					}
				}.sleep();						
			}		
		}			
	}

It will sleep enough. Bot will open shop with no feather packs, then buy 10. After packs appears in inventory condition breaks, it will close shop and open them. Repeat.

 

Btw, sleep prevents script to run buy task again(if small lag spike appears, and items appears in inventory after 500ms or so).

Edited by tirana

Guest
This topic is now closed to further replies.

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.