This: [Only registered and activated users can see links. ]
Find
Code:
npcScreenPos(((Entity) (obj)), ((Entity) (obj)).height + 15);
and replace the whole block of code that it was in with this.
Code:
try {
npcScreenPos(((Entity) (obj)), ((Entity) (obj)).height + 15);
if (spriteDrawX > -1) {
int i1 = (((Entity) (obj)).currentHealth * 30) / ((Entity) (obj)).maxHealth;
if (i1 > 30) {
i1 = 30;
}
int HpPercent = (((Entity) (obj)).currentHealth * 54) / ((Entity) (obj)).maxHealth;
if (HpPercent > 54) {
HpPercent = 54;
}
if (!hitbarToggle) {
DrawingArea.method336(5, spriteDrawY - 3, spriteDrawX - 15, 65280, i1);
DrawingArea.method336(5, spriteDrawY - 3, (spriteDrawX - 15) + i1, 0xff0000, 30 - i1);
} else {
HPBarEmpty.drawAdvancedSprite(spriteDrawX - 28, spriteDrawY - 5);//3
int type = ((double)HpPercent/56 > 0.25) ? ((double)HpPercent/56 > 0.5) ? 0 : 2 : 3;
HPBarFull = new Sprite(sign.signlink.findcachedir() + "Sprites/Player/HP " + type + ".PNG", HpPercent, 7);
HPBarFull.drawAdvancedSprite(spriteDrawX - 27, spriteDrawY - 4);
}
}
} catch (Exception e) {
}
And add these sprites: [Only registered and activated users can see links. ]