hey i need help making a hotkey/action

dont loot gold coin if cap under 'x' amount