Heres the code for items and chest sprites. Brown chest for normal, red chest for rare or quest items.