Hello, I need some help on this

if(playerLevel[3] <= 10 && playerEquipment[playerRing] == 2570) {
deleteequiment(2570, playerRing);
HP = 10;
hitDiff = -HP;
HP += HP;
updateRequired = true;
hitUpdateRequired = true;
stillgfx(392, absY, absX);
toX = 2827;
toY = 3344;
sM("Your ring of life crumbles to dust!");
}

I think that is alright but it's not working and I already declared the public boolean HP = true;

~Thomas