![]() |
My MP Bar
How would I make my own MP bar? Sorta like making your own AP bar. I started to make one but for some reason it won't work?
// NPC made by Rob Getashu timereverywhere; timeout=.05; if (playerchats&&strequals(#c,human)) { toweapons -System Status-; } if (timeout) if (isweapon) { showstats 1+2+4+8+16+32+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; } if (this.mpdisplay>0) { showimg 2,Picture2.gif,this.pos[2],this.pos[1]; changeimgpart 5,0,0,this.mpdisplay,6; changeimgvis 1,4; } if (playerdies) {playermp=playermp} |
Re: My MP Bar
I think this part is the problem
if (this.mpdisplay>0) { showimg 2,Picture2.gif,this.pos[2],this.pos[1]; changeimgpart 5,0,0,this.mpdisplay,6; changeimgvis 1,4; } should the changeimgpart be 2 so it is changing picture2.gif and shouldnt the changeimg vis be 2 so it will change the level of picture2.gif? |
Ok I'll try that
|
Re: Re: My MP Bar
Quote:
|
NM I got it thx!
|
np
|
OK thx , but now it won't show the MP picture change when you use the magic?
// 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; } 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} |
Quote:
|
You mean like this
// 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; timeout = .5; } if (this.mpdisplay>0&&timeout) { showimg 2,picture2.gif,this.pos[2],this.pos[1]; changeimgpart 5,0,0,this.mpdisplay,2; changeimgvis 2,4; } else { hideimg=0.5; } |
you didnt put the stuff below the timeout loop in the timeout loop and the timeout should be .05
|
Can you give me an exsample :D
|
NPC Code: try this |
Ok let me try
|
Ok now it's not working at all! Can you try to figure it out and I'll check it when I get back on later? I would really apreicate it!
|
shouldnt the image indexes be higher than 199 so they are local or is all imgvis 4 images local
|
NPC Code: maybe this? |
and I wanted to say... The MP Bar goes where the AP bar is
|
| All times are GMT +2. The time now is 04:33 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.