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.

Loot item before Starting another attack.

Featured Replies

So LOOT and KILL cases (not working) :

 

                case LOOT:
			GroundItem cowhide = groundItems.closest("Cowhide");
			if(cowhide != null && !myPlayer().isAnimating() && !myPlayer().isUnderAttack()
					) {
				log("Picking up hides!...");
				cowhide.interact("Take");
				return random(100, 200);
			} else {
				camera.toEntity(cowhide);
			}
		case KILL:
			NPC cow = npcs.closest("Cow","Cow calf");
			if ((cow != null) && (cow.isAttackable())) {
				log("Attacking the Cow!...");
				cow.interact("Attack");
				break;
			} else {
				camera.toEntity(cow);
			}

Would it be possible to combine these two, result being, after it attacks the cow it waits for the drop to show up on the ground, LOOT the cowhide and only then move on to the next cow.
Being trying to get things to work for 2days non stop, seriously low gains. ;D

The logic here is overall very flawed

 

If cow/cowhide is not null (aka. it exists), you do stuff with it, and if not, you move the camera to it.

Please explain to me how one moves the camera to something that does not exist :L

 

For your actual question; you could either modify your getState method to not pick another fight while there is cowhide on the ground; or you could add a cowhide check to the KILL case.

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.