I don't think you understand coding tbh. Really, if you are doing a good burn, you dont really have time to checking chests and just popping it wahtever it might be. If you are doing a cleave for EXP then its even easier because you dont really care what is in the red chests.