Early on in The Hobbit, Thorin's Company narrowly avoids getting eaten by a trio of trolls by allowing them to argue so long that they turn to stone in the sunlight. Then they raid the trolls' treasure. That's when Bilbo Baggins gets Sting, the shortsword that glows when orcs are near.