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.

[Client 2.4.14] Bug with GroundItem maybe?

Featured Replies

1. A description of the issue

Hovers the cursor around (i guess looking for the ground item?) when something is on top (dragon) and bolts are visible.

It works 50/50. Sometimes loots bolts fine.

GIF: http://i.imgur.com/dIt3g6H.gifv (sorry its a bit long)

 

2. Are you receiving any errors in the client canvas or the logger?

To see the logger, click on this button: Applic-Command-icon.png in the upper right hand corner of the bot

None. Just my logs showings its being called..

130b8c5173.png

 

3. How can you replicate the issue?

Register ammo to a string and call it in groundItem. It works fine for looting bones and hides but once I do it to loot arrows/bolts it does what is displayed in the GIF

 

Snippet:

//Main onStart()
if (getEquipment().isWearingItem(EquipmentSlot.ARROWS)) {
	AMMO = api.getEquipment().getItemInSlot(10).getName();
	log("Debug: Main Ammo -> " + AMMO);
}

Prints (ignore main weapon): 

96120ed9f5.png

//Loot arrows
GroundItem arrowLoot = api.getGroundItems().closest(o -> o != null && o.exists() && o.getName().equals(BDKMain.AMMO) && o.getAmount() >= 15 && o.getPosition().distance(api.myPlayer().getPosition()) < 6);


//Interaction
if(arrowLoot != null && BDKconstants.DRAGON_AREA.contains(arrowLoot) && api.getMap().canReach(arrowLoot)) {
	api.log("Debug: Looting Ammo");
   if(arrowLoot.isVisible()) {
	if(api.getInventory().isFull()) {
	    if(api.getInventory().contains("Vial")) {
		api.getInventory().getItem("Vial").interact("Drop");
		API.sleep(API.random(400, 700));
	    } else if(api.getInventory().contains("Steel arrow")) {
		api.getInventory().getItem("Steel arrow").interact("Drop");
	        API.sleep(API.random(400, 700));
	    }
	    if(BDKMain.gotFood()) {
		api.getInventory().getItem(BDKMain.foodName).interact("Eat");
	        API.sleep(API.random(400, 700));
	    }
	} else {
	    if(arrowLoot.interact("Take")) {
		API.sleep(API.random(700, 1900));
	    }
	}
   } else {
    if(arrowLoot.getPosition().distance(api.myPosition()) > 5) {
      WalkingEvent WE = new WalkingEvent(arrowLoot.getPosition());
      WE.setMiniMapDistanceThreshold(50);
      api.execute(WE);
    } else {
	api.getCamera().toEntity(arrowLoot);
    }
  }
}

4. Has this issue persisted through multiple versions? If so, how far back?

Not that I know of. Worked fine all this time

 

 

~#1 Osbot noob scripter

 

Let me know if i'm doing something shitty

 

~T

 

  • Author

Thanks for the report. Fixed and 2.4.15 stable is being uploaded.

 

Working great! Thanks for the update!

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.