Jump to content

getInventory().drop does not work


Lesser Fanatic

Recommended Posts

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.

 

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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");
        }

 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

  • Alek locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...