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.

getInventory().drop does not work

Featured Replies

So im trying to write my first fishing script, but dropping methods (any of them ) i can think of does not work, also tried to run unoffical script, dropping also does not work on that.

I put log code to see if the "if" statement works. The logger prints "Dropping Inventory" but dropping does not happen.

my drop code is :

if (getInventory().isFull()){
            getInventory().dropAll("Raw salmon" , "Raw trout")
            log("Dropping Inventory");
        }


the unoffical script i tried : 

https://osbot.org/forum/topic/141906-simplefisherman-effortless-1-99-fishing-open-source/

Any kind of help appreciated.

 

Pretty sure you're using it wrong.

Do get inventory.drop("Raw salmon","Raw trout");    \\Not on my IDEA so not sure if this one works

or inventory.dropAllExcept("Fishing rod","Feather);    \\This one will drop everything except the rod and feather. I use this for fishing scripts 

 

Edited by Juggles

  • Author
12 minutes ago, Juggles said:

Pretty sure you're using it wrong.

Do get inventory.drop("Raw salmon","Raw trout");    \\Not on my IDEA so not sure if this one works

or inventory.dropAllExcept("Fishing rod","Feather);    \\This one will drop everything except the rod and feather. I use this for fishing scripts 

 

you mean this?

if (getInventory().isFull()){
            getInventory().dropAllExcept("Fly fishing rod" , "Feather");
            log("Dropping Inventory");
        }

does not work.

This one also does not work:

if (getInventory().isFull()){
            getInventory().drop("Raw salmon" , "Raw trout");
            log("Dropping Inventory");
        }

 

Today is Thursday which means there has been a game update. This update schedule has remained the same way for over 5 years. Sometimes our auto-updater works, sometimes it doesn't. From now on whenever you have problems with the client on a Thursday, just be patient and try every few hours or so. Sometimes the update is automatic, sometimes it takes us a little bit of work, sometimes it takes us a lot of work.

  • Alek locked this topic
Guest
This topic is now closed to further replies.

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.