How do I kill the trolls?


Hint 1 of 3:
The skeleton outside the caverns has the answer.

Hint 2 of 3:
LUD refers to directions of swings.

Hint 3 of 3:
L = Swing Left, U = Swing Up, D = Swing Down.