Has graal just decided to piss me off? I think so. This script used to ALWAYS work! No matter what, it would do what i wanted!
But now, it doesnt.
Script: Status Bar (Blah Blah Blah, saying i cant script a status bar is a waste of our time).
can someone debug this script for me? I can't seem to figure out what is wrong! When you get hurt, it doesnt work!
NPC Code:
// NPC made by War Lord Mpg2
if (playerenters) {
}
if (playertouchsme) {toweapons *Status; hidelocal; setstring client.bar1,warbar1.gif;
setstring client.bar2,warbar2.gif; set client.statson; timeout = .05;
}
//#CLIENTSIDE
if (timeout) {
if (client.statson) {
showimg 1111,#s(client.bar1),screenwidth-242,0; changeimgvis 1111,4;
changeimgvis 2222,4; changeimgvis 1111,4;
changeimgpart 2222,0,0,7*32*playerhearts/playerfullhearts,48;
if (playerhearts=playerfullhearts) {
showimg 2222,#s(client.bar2),screenwidth-242,0; changeimgvis 2222,4;
}
timeout = .05;
}
}
if (weaponfired) {set client.statson; setplayerprop #c,say "statsoff" to turn off;
timeout = .05; showstats 95+128+256+512+1024;
showimg 1111,#s(client.bar1),screenwidth-242,0; changeimgvis 1111,4;
showimg 2222,#s(client.bar2),screenwidth-242,0; changeimgvis 2222,4;
}
if (strequals(#c,statsoff)) {unset client.statson; sleep .2; hideimg 1111; hideimg 2222;
unset client.statson; showstats 95+128+256+512+1024+32;
}
if (playerdies) { showstats 95+128+256+512+1024;
}
Well?