Kronos Posted July 8, 2013 Share Posted July 8, 2013 (edited) if you used the interface explorer you would find out that trade interface doesn't use inventories.. What does it use then? Ive searched the API and found no dedicated methods to do this. Could you give us a hint @XavierM? Edited July 8, 2013 by Kronos Link to comment Share on other sites More sharing options...
Cory Posted July 9, 2013 Share Posted July 9, 2013 if you used the interface explorer you would find out that trade interface doesn't use inventories.. It does? It's just the way that the interfaces are setup in the api, they don't allow child interfaces for child interfaces, or at least a way to get the id of the child interface, and since the inventory on the trade screen is part of a child, that is on the trade screen, we cannot get the items for it. Example Parent 0 (trade screen) -child 1 (username) -child/parent 2 (Left side container) --child 0 (Items) No way for us to access the (items), since you RS2InterfaceChild doesn't support children. Correct me if im wrong. Link to comment Share on other sites More sharing options...
Kronos Posted July 9, 2013 Author Share Posted July 9, 2013 if you used the interface explorer you would find out that trade interface doesn't use inventories.. It does? It's just the way that the interfaces are setup in the api, they don't allow child interfaces for child interfaces, or at least a way to get the id of the child interface, and since the inventory on the trade screen is part of a child, that is on the trade screen, we cannot get the items for it. Example Parent 0 (trade screen) -child 1 (username) -child/parent 2 (Left side container) --child 0 (Items) No way for us to access the (items), since you RS2InterfaceChild doesn't support children. Correct me if im wrong. According to @Merccy it actually required a new hook. He's working on it now. Link to comment Share on other sites More sharing options...
Sponsor Posted July 9, 2013 Share Posted July 9, 2013 Xavier actually has the hook for it ;) hence his herb bot and his mercher Link to comment Share on other sites More sharing options...
Kronos Posted July 10, 2013 Author Share Posted July 10, 2013 Xavier actually has the hook for it hence his herb bot and his mercher I don't think he has stack amount hooked fully though. Just by looking at his debug it seems it just reads it from the text eg: 145k or 12m ect. Link to comment Share on other sites More sharing options...
Dreamliner Posted July 10, 2013 Share Posted July 10, 2013 I'm looking for this too, if anyone wants to give a hint of where to start Link to comment Share on other sites More sharing options...
mykokkburnz Posted July 11, 2013 Share Posted July 11, 2013 What's that code for? Link to comment Share on other sites More sharing options...