Jump to content

Banking issue with current osbot version


Recommended Posts

Posted

It seems that with the recent update 

Bank.getItems();

is returning Placeholders and/or 

item.getAmount();

is returning a value of " 1 " rather than  " 0 " for placeholders, resulting in any script using banking to potentially break. I had searched to see if there were similar issues within the community recently and I stumbled across a thread dated in " September of 2019 ". The thread contained the same issues as myself but the issue was within mirror mode and I'm using injection.

Posted

The current osbot version featured an update to check if the item is a placeholder via RSItemDefinition.isPlaceholder, so you must make use of that currently. Personally on my bots I check if the amount > 0 just to make sure placeholders aren't included, let us know if that solves the issue ^^ :D 

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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