Heiz Posted June 18, 2021 Share Posted June 18, 2021 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? Quote Link to comment Share on other sites More sharing options...
skillerkidos1 Posted June 19, 2021 Share Posted June 19, 2021 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 Quote Link to comment Share on other sites More sharing options...
Gam Posted June 19, 2021 Share Posted June 19, 2021 I ran a test as well and getBank().contains("Strength potion(4)) seems to be working fine. Quote Link to comment Share on other sites More sharing options...
Khaleesi Posted June 19, 2021 Share Posted June 19, 2021 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 ^^ Quote Link to comment Share on other sites More sharing options...