Jump to content

Item interaction [Trade]


Single Core

Recommended Posts

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 by Single Core
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...