Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

[OSRS] Drawing on inventory items

Joined
Jan 8, 2015
Messages
1,427
I did not get very much further than the following, any tips?

10515d5d11.png
 
Joined
Dec 10, 2014
Messages
3,255
I did not get very much further than the following, any tips?

10515d5d11.png
LegacyTab is RS3 only, it's for the Legacy mode.
Code:
g.setColor(Color.WHITE);
if(InterfaceWindows.getInventory().isOpen()){
    SpriteItemQueryResults results = Inventory.getItems(new Filter<SpriteItem>() {
        @Override
        public boolean accepts(SpriteItem spriteItem) {
            return spriteItem.getDefinition().getUnnotedId() == 199;
        }
    });
    for(SpriteItem item:results){
        Rectangle bounds = item.getBounds();
        g.drawString("Guam", bounds.x + (bounds.width/2), bounds.y + (bounds.height/2));
    }
}
 
Last edited:
Top