Single Core Posted July 3, 2014 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
Swizzbeat Posted July 3, 2014 Posted July 3, 2014 Find the trade interface which contains the items, and then interact with that interfaces item. 1
Single Core Posted July 3, 2014 Author 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
Dreamliner Posted July 3, 2014 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
Single Core Posted July 3, 2014 Author 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; }