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.

grounditem off screen?

Featured Replies

Lets say my player is killing npcs, it kills one but attacks another one adn the loot from the first one drops on the ground, but the loot is off screen because my player has moved because its attacking another npc.

 

My player will only attack other npcs if loot !=null so my player wont do anything unless i turn the screen to see the loot. I have tried to turn the camera to the loot, walk to the loot and nothing, its like it doesnt know it exists but it does know because my player wont attack another npc unless its picked up. Ive tried with and without interaction event, same issue.

 

Thanks in advance if anyone can guide me in the right direction, peace :)

3 hours ago, saintpaul1 said:

Lets say my player is killing npcs, it kills one but attacks another one adn the loot from the first one drops on the ground, but the loot is off screen because my player has moved because its attacking another npc.

 

My player will only attack other npcs if loot !=null so my player wont do anything unless i turn the screen to see the loot. I have tried to turn the camera to the loot, walk to the loot and nothing, its like it doesnt know it exists but it does know because my player wont attack another npc unless its picked up. Ive tried with and without interaction event, same issue.

 

Thanks in advance if anyone can guide me in the right direction, peace :)

getMap().distance(loot) < 18 is what I use to stop it trying to go for things too far away 

Edited by FuryShark

  • Author
2 hours ago, FuryShark said:

getMap().distance(loot) < 18 is what I use to stop it trying to go for things too far away 

Mine is set to 12.

 

GroundItem itemToPickUp = main.getGroundItems().closest(groundItem -> dt.itemsToPickUp.contains(groundItem.getName()) && groundItem.getPosition().distance(main.myPosition()) <= 12);

This is what im using currently to loot items :

 

                            InteractionEvent lootingEvent = new InteractionEvent(itemToPickUp, "Take");
                            lootingEvent.setWalkTo(true);
                            lootingEvent.setOperateCamera(false);
                            lootingEvent.setMaximumAttempts(1);
                            if (main.execute(lootingEvent).hasFinished()) {
                                Util.Sleep.sleepUntil(() -> !itemToPickUp.exists(), 1000);//Interact "Take" on item
                            }

Tried lots of different variations though.

EDIT: i fixed it i tested the script in a new project and it was somehting else in my code causing the issue , as always :L

 

Thanks for reply.

Edited by saintpaul1

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.