If you are playing DragonFable, earning an Undead Slayer badge starts with a chat to Artix in DoomWood. Click on Quests, then select the quest to save Moonridge, which you may need to unlock by completing another quest first.
From there, choose to fight the waves of the undead and clear them out. Once you have defeated a wave, you will receive an Undead Slayer badge, which lets you train as a Paladin, Necromancer, or Death Knight, with the Death Knight path being the strongest of the three.