Be it a standard online roleplaying game or a good, old-fashioned tabletop version of Dungeons & Dragons, this handy decision-making flowchart (found via Neatorama) will instruct you on the most expedient method for resolving any and all in-game encounters. Unless, you know, you want to actually roleplay.
Of course, this is just the abridged pocket version. If you really want to automate your gaming interactions for any and all situations, this mega-expanded RPG flowchart will conquer all lootable scenarios.