TheScrub Posted December 25, 2013 Posted December 25, 2013 Painting the inventory done easy denoted already sorry my internet is capped i can't do much more you may play with the font metrics http://pastebin.com/sNwSkn4a can't paste in code due to internet capped
Celeos Posted December 25, 2013 Posted December 25, 2013 (edited) public static void drawInventoryItem(final Graphics2D g, final int id) { final Item[] items = client.getInventory().getItems(); for (int i = 0; i < items.length; i++) { if (items[i] != null && items[i].getId() == id) { final Rectangle r = client.getInventory().getDestinationForSlot(i); g.drawRect(r.x, r.y, r.width, r.height); } } } Looks good. This is what I like to use. Of course, you can always change it to fit your needs/preferences. Edited December 25, 2013 by Celestial
TheScrub Posted December 25, 2013 Author Posted December 25, 2013 public static void drawInventoryItem(final Graphics2D g, final int id) { final Item[] items = client.getInventory().getItems(); for (int i = 0; i < items.length; i++) { if (items[i] != null && items[i].getId() == id) { final Rectangle r = client.getInventory().getDestinationForSlot(i); g.drawRect(r.x, r.y, r.width, r.height); } } } Looks good. This is what I like to use. Of course, you can always change it to fit your needs/preferences. not really what people are after your's draws a single item and requires an ID mines not even done correctly due to osbot's inventory api i should write my own inventory api what i wrote is more for drawing inventory so people can get id's for scripts such as my trader
Celeos Posted December 25, 2013 Posted December 25, 2013 not really what people are after your's draws a single item and requires an ID mines not even done correctly due to osbot's inventory api i should write my own inventory api what i wrote is more for drawing inventory so people can get id's for scripts such as my trader Like I mentioned previously, you can easily change my code to fit your needs...
Pandemic Posted December 25, 2013 Posted December 25, 2013 This also looks good! Nice releases! I plan on releasing my interacting and walking methods soon.