Jump to content

Bank contains bug?


Heiz

Recommended Posts

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?

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

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