Thread: Stats bars
View Single Post
  #1  
Old 07-28-2005, 05:08 PM
Foggy Foggy is offline
Can you dance to my beat
Foggy's Avatar
Join Date: May 2005
Location: N.Ireland, Larne
Posts: 80
Foggy is on a distinguished road
Send a message via AIM to Foggy Send a message via MSN to Foggy
Exclamation Stats bars

OK i need some help with the script to make this work i now some of it but it dont work some how? plz help



NPC Code:
if(created){
showstats 1024;
timeout = 0.05;
}

if(timeout){
sx = 10;
sy = 10;

showimg 200,foggy's.png,sx,sy;
changeimgpart 200,0,0,imgwidth(foggy's.png),40;
changeimgvis 200,4;

if(playerhearts > 0){
showimg 201,foggy's.png,sx+10,sy+3; // HP bar
changeimgpart 201,0,39,(playerhearts/playerfullhearts)*56,6; // 56
changeimgvis 201,5;
}else hideimg 201;

if(playermp > 0){
showimg 202,foggy's.png,sx+12,sy+17; // MP bar
changeimgpart 202,0,46,4+(playermp/100)*30,6; //30
changeimgvis 202,5;
}else hideimg 202;
if(playerap > 0){
showimg 203,foggy's.png,sx+12,sy+30; // AP bar
changeimgpart 203,0,52,4+(playerap/100)*30,6; // 30
changeimgvis 203,5;
}else hideimg 203;
timeout = 0.05;
}

if(playerdies || playerenters) showstats 1024;

__________________
Reply With Quote