Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 03:02 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.