Single Core Posted July 3, 2014 Share Posted July 3, 2014 (edited) When I try to interact with an item whilst I am in trade It keeps trying to 'open' my inventory which has been grayed out due to the trade. How do I get the 'x, y' coords for an item ? Solution: public Point getPointForSlot(int slot) { int index = 0; for(int i = 0; i < 7; i++) { for(int j = 0; j < 4; j++) { if(index == slot) { return new Point(577 + j * 45, 228 + i * 36); } index++; } } return null; } Thanks in advance, Single Core Edited July 3, 2014 by Single Core Link to comment Share on other sites More sharing options...
Swizzbeat Posted July 3, 2014 Share Posted July 3, 2014 Find the trade interface which contains the items, and then interact with that interfaces item. 1 Link to comment Share on other sites More sharing options...
Single Core Posted July 3, 2014 Author Share Posted July 3, 2014 Find the trade interface which contains the items, and then interact with that interfaces item. Meh, I was hoping the API had something ... darn it xd Thanks Link to comment Share on other sites More sharing options...
Dreamliner Posted July 3, 2014 Share Posted July 3, 2014 Meh, I was hoping the API had something ... darn it xd Thanks Make your own methods and submit them to an API editor Link to comment Share on other sites More sharing options...
Single Core Posted July 3, 2014 Author Share Posted July 3, 2014 Cause I am a lazy fuck: public Point getPointForSlot(int slot) { int index = 0; for(int i = 0; i < 7; i++) { for(int j = 0; j < 4; j++) { if(index == slot) { return new Point(577 + j * 45, 228 + i * 36); } index++; } } return null; } Link to comment Share on other sites More sharing options...