To beat a piraka you have to go into hero mode 3 times or more then watch the health bar. Once the hearts turn red, attack it. Once you beat it, creats a bridge using the mask of stone/brown one and get the mask. Then you have to beat a dragon thing. Aim at the head. Once that's finished, you're done.