
10-02-2001, 03:44 AM
|
|
bryan986
|
 |
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
|
|
Quote:
Originally posted by SSRobgeta
OK thx , but now it won't show the MP picture change when you use the magic?
NPC Code:
// NPC made by Rob Getashu
timereverywhere;
timeout=.05;
if (playerchats&&strequals(#c,human)) {
toweapons -MP Bar-;
}
if (timeout)
if (isweapon) {
showstats 1+2+4+8+16+256+512+1024;
this.pos = {screenwidth-180,30};
this.mpdisplay = ((playermp/100)*100);
if (good) {
showimg 1,picture1.gif,this.pos[2],this.pos[1];
}
else if (evil) {
showimg 1,picture1.gif,this.pos[2],this.pos[1];
}
else {
showimg 1,picture1.gif,this.pos[2],this.pos[1];
}
changeimgvis 1, 4;
}
stuff below this line should be in the timeout loop and you need a timeout command at the bottom of the timeout loop
if (this.mpdisplay>0) {
showimg 2,picture2.gif,this.pos[2],this.pos[1];
changeimgpart 5,0,0,this.mpdisplay,2;
changeimgvis 2,4;
}
else {
hideimg=0.5;
}
if (playerdies) {playermp=playermp}
|
|
|
|
|