Jump to content

Bank contains bug?


Recommended Posts

Posted

My script that got super strengh potions from the bank is no longer working. I went to check the reason, and when I log contains("Super strength(4)") it it returns false, but when using the potion id, it returns true.

log(getBank().contains(2440)); //TRUE
log(getBank().contains("Super strength(4)")); //FALSE

It's a bug in the api?

Posted
if(getBank().contains("Super strength(4)")){
    log("true");
}else{
    log("false");
}

it showing true for me in mirror mode

maybe try reloading osbot and rs client

[INFO][Bot #1][06/18 08:31:02 PM]: Started script : TEST SCRIPT
[INFO][Bot #1][06/18 08:31:02 PM]: true
[INFO][Bot #1][06/18 08:31:03 PM]: true
[INFO][Bot #1][06/18 08:31:04 PM]: true

log("Try: " + getBank().contains("Super strength(4)"));

[INFO][Bot #1][06/18 08:34:37 PM]: true
[INFO][Bot #1][06/18 08:34:37 PM]: Try: true
[INFO][Bot #1][06/18 08:34:38 PM]: true
[INFO][Bot #1][06/18 08:34:38 PM]: Try: true

Posted
6 hours ago, Heiz said:

My script that got super strengh potions from the bank is no longer working. I went to check the reason, and when I log contains("Super strength(4)") it it returns false, but when using the potion id, it returns true.

log(getBank().contains(2440)); //TRUE
log(getBank().contains("Super strength(4)")); //FALSE

It's a bug in the api?

If you are using mirror this can happen on items names somehow.
If you restart mirror it should be fixed ^^

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...