Tricxtas HUD
Yerp, I got bored so I drew some bad graphics and made a hud out of it
Features:
-Mouse over read outs on ap,mp and health
-Drag function which saves, so it will be like that when you log back in
-All the readouts in one small handy area
-yer thats it…
// NPC made by tricxta
if (playerenters || timeout){
showstats 1792;
if (!isweapon)toweapons -hudsystem;
this.placex=strtofloat(#s(client.hudx));
this.placey=strtofloat(#s(client.hudy));
showimg 500,main-hud.png,this.placex,this.placey;
changeimgvis 500,4;
showtext 502,this.placex + 3,this.placey + 55,arial,l,Graalats:#v(playerrupees);
showtext 503,this.placex + 5,this.placey + 35,arial,l,Bombs:#v(playerbombs);
showtext 504,this.placex + 5,this.placey + 45,arial,l,Arrows:#v(playerdarts);
showtext 505,this.placex + 97,this.placey + 9,arial,l,HP;
showtext 506,this.placex + 97,this.placey + 33,arial,l,MP;
showtext 507,this.placex + 97,this.placey + 58,arial,l,AP;
for (this.i=502;this.i<507;this.i++){
changeimgcolors this.i,,,,;
changeimgzoom this.i,.6;
changeimgvis this.i,5;
}
showimg 508,hud-bar.png,this.placex + 114,this.placey + 10;
changeimgpart 508,0,0,playerhearts/playerfullhearts*107,11;
changeimgcolors 508,1,0,0,1;
changeimgvis 508,4;
showimg 509,hud-bar.png,this.placex + 114,this.placey + 34;
changeimgpart 509,0,0,playermp/100*107,11;
changeimgcolors 509,0,0,1,1;
changeimgvis 509,4;
showimg 510,hud-bar.png,this.placex + 114,this.placey + 59;
changeimgpart 510,0,0,(playerap/100)*107,11;
changeimgcolors 510,1,1,0,1;
changeimgvis 510,4;
if (playerhearts==0)hideimg 508;
if (playermp==0)hideimg 509;
if (playerap==0)hideimg 510;
showimg 511,#W,this.placex + 23-(imgwidth(#W)/2),this.placey + 24 -(imgheight(#W)/2);
changeimgzoom 511,.7;
changeimgvis 511,5;
if (issparringzone)showtext 512,this.placex + 64,this.placey + 25,arial,c,Spar;
else if (nopkzone)showtext 512,this.placex + 64,this.placey + 25,arial,c,No PK;
else showtext 512,this.placex + 64,this.placey + 25,arial,c,PK;
changeimgcolors 512,0,0,0,0;
changeimgzoom 512,.6;
changeimgvis 512,5;
if (leftmousebutton && mousescreenx in |this.placex,this.placex+250| && mousescreeny in |this.placey,this.placey+80|){
setstring client.hudx,#v(int(mousescreenx)-125);
setstring client.hudy,#v(int(mousescreeny)-40);
}
if (mousescreenx in |this.placex+114,this.placex+144+107| && mousescreeny in |this.placey+9,this.placey+9+11|){
showtext 513,mousescreenx,mousescreeny,arial,bc,#v(playerhearts)/#v(playerfullhearts);
changeimgzoom 513,.6;
changeimgvis 513,6;
}
else if (mousescreenx in |this.placex+114,this.placex+114+107| && mousescreeny in |this.placey+34,this.placey+34+11|){
showtext 513,mousescreenx,mousescreeny,arial,bc,#v(playermp)/100;
changeimgzoom 513,.6;
changeimgvis 513,6;
}
else if (mousescreenx in |this.placex+114,this.placex+114+107| && mousescreeny in |this.placey+59,this.placey+59+11|){
showtext 513,mousescreenx,mousescreeny,arial,bc,#v(playerap)/100;
changeimgzoom 513,.6;
changeimgvis 513,6;
}
else hideimg 513;
timeout=0.05;
}