Jump to content

Banking issue with current osbot version


Neutron

Recommended Posts

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.

Link to comment
Share on other sites

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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