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.

Inventory Issue?

Featured Replies

Not really sure why this is happening, but after interacting with an item in the inventory, it hovers over the item again or something like that?

FW1smjn.gif

In this example it involves dropping, but even things like ID'ing herbs causes this to happen.

Any ideas how to fix? I am just looping over inventory.getItems(), and it's only iterating once...

Not really sure why this is happening, but after interacting with an item in the inventory, it hovers over the item again or something like that?

FW1smjn.gif

In this example it involves dropping, but even things like ID'ing herbs causes this to happen.

Any ideas how to fix? I am just looping over inventory.getItems(), and it's only iterating once...

Show us the code? And by the way for dropping you just probably just use getInventory().dropAll(itemName);

  • Author

Show us the code? And by the way for dropping you just probably just use getInventory().dropAll(itemName);

 

Like I said I'm literally just iterating inventory.getItems and interacting with the item. And that built in method got me banned so I made my own.

Like I said I'm literally just iterating inventory.getItems and interacting with the item. And that built in method got me banned so I made my own.

How do you know it was the built in drop method that got you banned emote32342.png

 

And just so you know, all the built in method does is:

Filter nameFilter = new NameFilter("Trout");

for (int slot = 0; slot < 28; slot ++) {

   Item itemInSlot = getInventory().getItemInSlot(slot);

   if(itemInSlot != null && nameFilter.match(itemInSlot)) {
       getInventory().interact(slot, "Drop");
       sleep(gRandom(75, 25));
   }    
}

So I fail to see how what you are doing will be any different.

Edited by Explv

How do you know it was the built in drop method that got you banned emote32342.png

 

And just so you know, all the built in method does is:

Filter nameFilter = new NameFilter("Trout");

for (int slot = 0; slot < 28; slot ++) {

   Item itemInSlot = getInventory().getItemInSlot(slot);

   if(itemInSlot != null && nameFilter.match(itemInSlot)) {
       getInventory().interact(slot, "Drop");
       sleep((long)gRandom(75, 25.0D));
   }    
}

So I fail to see how what you are doing will be any different.

 

 

randomized drop patterns are gud?

They are pretty to watch :boge:

Edited by House

randomized drop patterns are gud?

They are pretty to watch boge.png

 

Well he isn't randomizing it, he's just iterating over the inventory and dropping the items in order?

 

And I don't think randomizing it would make any difference, and would probably be slower lol

Edited by Explv

Well he isn't randomizing it, he's just iterating over the inventory and dropping the items in order?

 

And I don't think randomizing it would make any difference, and would probably be slower lol

 

bbbut its pretty and will stop his paranoia about it getting him banned :boge:

  • Author

Well he isn't randomizing it, he's just iterating over the inventory and dropping the items in order?

 

And I don't think randomizing it would make any difference, and would probably be slower lol

 

Not really a problem for it going slower. Thanks for showing me how to use Filters and getItemInSlot kappa. But shouldn't it be < 27 :D

Not really a problem for it going slower. Thanks for showing me how to use Filters and getItemInSlot kappa. But shouldn't it be < 27 biggrin.png

 

What you are experiencing is the fact that the Inventory doesn't update immediately. Either loop all 28 slots in 1 onLoop, or keep an iterator between onLoops to know where to continue from.

 

Also, its < 28 cause indexes 0-27 need to be iterated over :p

Edited by Lemons

Not really a problem for it going slower. Thanks for showing me how to use Filters and getItemInSlot kappa. But shouldn't it be < 27 biggrin.png

 

0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27

 

0                                                                                                                                       < 28

Edited by Explv

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.