ozeki6 32 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 .
Polymorphism 48 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
ozeki6 32 Author 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 .
Polymorphism 48 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
ozeki6 32 Author 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 .
Recommended Posts
Archived
This topic is now archived and is closed to further replies.