NPC Code:
if (created || timeout) {
if (strtofloat(#s(client.curhp))>strtofloat(#s(client .maxhp))) setstring client.curhp,#v(strtofloat(#s(client.maxhp)));
showimg 4,houses_main3.png,60,screenheight-20;
changeimgpart 4,60,20,int((200/strtofloat(#s(client.maxhp)))*strtofloat(#s(client .curhp))),20;
changeimgvis 4,4;
timeout = 2;
}
I'm not sure what you mean by all screwed up, but I copied your and just changed the image name and it worked perfectly. I read about it getting screwed up when it's above, so look up ^.