You earn Hitpoints XP in RuneScape every time you're in combat. Whether you land a hit or take one, you'll gain a small amount of XP—usually no more than 1 or 2 at a time. That slow trickle is exactly why Hitpoints is known as one of the game's most gradual skills to level.