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.

Script gets stuck

Featured Replies

NPC Tanner = sI.npcs.closest("Ellis");
		
		Area TANNING_SHOP = new Area(3277,3189,3270,3194);
		
		if(TANNING_SHOP.contains(sI.myPosition())) {
			if(!sI.getWidgets().isVisible(324)) {
				if(Tanner !=null) {
					Tanner.interact("Trade");
					new ConditionalSleep(2000) {
						
						@Override
						public boolean condition() throws InterruptedException {
							return sI.getWidgets().isVisible(324);
						}
					}.sleep();
				}
			} else {
				sI.getWidgets().interact(324, 13, "Tan ALL");
				new ConditionalSleep(2000) {
					
					@Override
					public boolean condition() throws InterruptedException {
						return !sI.getWidgets().isVisible(324);
					}
				}.sleep();
			}
			
		} else {
			sI.getWalking().webWalk(TANNING_SHOP);
		}

Im trying to make a simple tanning script. But sometimes it gets stuck in the widget of tanning the hides. I've tried a lot to fix it but i can't seem to get it to work. Can someone pls help me fix it? Thank you!

 

I think the problem is with your if and else statements when you check for visibility of the widget. Remove the else and keep the code outside that the widget is now visible and the code could be performed, otherwise, it will just open the widget as the if the statement was true and it won't do the negation of it which is tanning in the else statement...

Also, it would be better if you check that the inventory has the items to be tanned as kind of failsafe and so that it doesn't glitch if you have breaks enabled.

Edited by renoweno

Create an account or sign in to comment

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.