ozeki6 32 Share Posted September 14, 2017 getTrade().contains(true,id) seems to have issues . It gives very often exception for no reason and if I restart the script sometimes it works sometimes it doesn't . Edit: trying to get an item by Id in Trade class will oftenly give exceptions . Link to comment Share on other sites More sharing options...
Polymorphism 48 Share Posted September 14, 2017 Make sure you're checking the validity of the trade screen prior to running that method. Also, it may be wise to use item name instead of ids Link to comment Share on other sites More sharing options...
ozeki6 32 Author Share Posted September 15, 2017 Make sure you're checking the validity of the trade screen prior to running that method. Also, it may be wise to use item name instead of id Hmm. I thought the method is deprecated but I'll try what you said . Link to comment Share on other sites More sharing options...
Polymorphism 48 Share Posted September 15, 2017 Hmm. I thought the method is deprecated but I'll try what you said . https://dreambot.org/javadocs/org/dreambot/api/methods/trade/Trade.html#isOpen-- It's not deprecated. But there are many ways to check if trade is open Link to comment Share on other sites More sharing options...
ozeki6 32 Author Share Posted September 15, 2017 https://dreambot.org/javadocs/org/dreambot/api/methods/trade/Trade.html#isOpen-- It's not deprecated. But there are many ways to check if trade is open It's about the content of the trade not if it's open . Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.