PeachTea 1 Share Posted October 14, 2020 Hi, Currently have a local script I've made, it's worked prior to the DB update, but now it's not reading the worn equipment to check for a Ring of Wealth with charges. I have a DB open that has been open all day, ran the same script on that and it works, but on the updated client it does not. I've tried the usual clearing of data, fresh starts etc but to no avail. It could be something my end, but for it to work on an older client and not the updated one, it seems like it might not be. Link to comment Share on other sites More sharing options...
Pandemic 2712 Share Posted October 14, 2020 Are you on resizable or fixed mode? Can we see the exact code you're calling to check? Thanks! Link to comment Share on other sites More sharing options...
PeachTea 1 Author Share Posted October 14, 2020 Static Filter as follows: public static final Filter<Item> RING_OF_WEALTH = Item -> Item != null && Item.getName().contains("Ring of wealth ("); Code that checks the Equipment contains a ring with charges, if not, withdraw one from the bank and equip it: if(!Equipment.contains(Leveller.RING_OF_WEALTH)) { Bank.withdraw(Leveller.RING_OF_WEALTH, 1); sleepUntil(() -> Inventory.count(Leveller.RING_OF_WEALTH) > 0, 2000); sleep(Calculations.random(25, 155)); if(Inventory.count(Leveller.RING_OF_WEALTH) > 0) { Inventory.get(Leveller.RING_OF_WEALTH).interact("Wear"); sleepUntil(() -> Equipment.contains(Leveller.RING_OF_WEALTH), 2000); sleep(Calculations.random(25, 155)); if(!Inventory.isEmpty()) { Bank.depositAllItems(); sleepUntil(() -> Inventory.isEmpty(), 2000); sleep(Calculations.random(25, 155)); } } } Link to comment Share on other sites More sharing options...
Pandemic 2712 Share Posted October 14, 2020 I've heard of similar issues when the client updates and you have 2 versions running at once, could you try closing the older ones and replacing them with the updated client? Link to comment Share on other sites More sharing options...
PeachTea 1 Author Share Posted October 14, 2020 Apologies for the late reply, I had finished for the day not long after I comment. The 2 versions were running on different devices, 1 device had the old version, the other device had the new version. I'll give it another go today, both devices have the updated client so I'll see it works, it could just be a restart of the device could have solved it, will post back soon! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.