```
// NPC made by tricxta
if (Playerenters){
if (!isweapon)toweapons -hud;
showstats 1024;
playerrupees = 100;
playermp = 10;
setstring this.sheet,skoopadeltgui1.png;
timeout = 0.05;
}
if (timeout && isweapon){
this.drawC = {screenwidth-200,40};//draw coordinates
this.stats = {playerhearts/playerfullhearts,playermp/100,playerap/100};
showimg 300,#s(this.sheet),this.drawC[0],this.drawC[1];//main image
changeimgpart 300,0,0,141,175;
//health
if (this.stats[0] > 0){
showimg 301,#s(this.sheet),this.drawC[0]+4,this.drawC[1]+11;
changeimgpart 301,2,186,97*this.stats[0],19;
}
else hideimg 301;
//mana
if (this.stats[1] > 0){
showimg 302,#s(this.sheet),this.drawC[0]+4,this.drawC[1]+41;
changeimgpart 302,2,214,97*this.stats[1],19;
}
else hideimg 302;
//ap
if (this.stats[2] > 0){
showimg 303,#s(this.sheet),this.drawC[0]+105,this.drawC[1]+11;
changeimgpart 303,112,195,15,49*this.stats[2];
}
else hideimg 303;
//glove
showimg 304,sprites.png,this.drawC[0]+64,this.drawC[1]+108;
changeimgpart 304,28-(playerglovepower == 3)*28,212,28,32;
showimg 307,#s(this.sheet),this.drawC[0]+79,this.drawC[1]+122;
changeimgpart 307,playerglovepower*14,263,14,16;
//sword
showimg 305,#1,this.drawC[0]+104,this.drawC[1]+108;
changeimgpart 305,14,48,24,28;
showimg 308,#s(this.sheet),this.drawC[0]+119,this.drawC[1]+122;
changeimgpart 308,playerswordpower*14,263,14,16;
//weapon
showimg 306,#W,this.drawC[0]+4,this.drawC[1]+71;
//bombs
showimg 309,#s(this.sheet),this.drawC[0]+71,this.drawC[1]+83;
changeimgpart 309,int(playerbombs/10)*14,263,14,16;
showimg 310,#s(this.sheet),this.drawC[0]+83,this.drawC[1]+83;
changeimgpart 310,(playerbombs%10)*14,263,14,16;
//arrows
showimg 311,#s(this.sheet),this.drawC[0]+101,this.drawC[1]+83;
changeimgpart 311,int(playerdarts/10)*14,263,14,16;
showimg 312,#s(this.sheet),this.drawC[0]+113,this.drawC[1]+83;
changeimgpart 312,(playerdarts%10)*14,263,14,16;
//rupees
hideimgs 313,320;//assume the player will get no more then 1000000 graalats
for (this.r = 0; this.r < int(log(10,playerrupees))+1; this.r++){
showimg 313+this.r,#s(this.sheet),this.drawC[0]+29+this.r*14,this.drawC[1]+146;
changeimgpart 313+this.r,(strtofloat( #e(this.r,1,#v(playerrupees)) )%10)*14,263,14,16;
}
for (this.i = 0; this.i < 20; this.i++)
changeimgvis 300+this.i,(this.i < 6)?4:5;
timeout = 0.05;
}
```