Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Stats bars (https://forums.graalonline.com/forums/showthread.php?t=60226)

Foggy 07-28-2005 05:08 PM

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

http://img265.imageshack.us/img265/8213/foggys0no.png

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;


xAndrewx 07-28-2005 06:31 PM

Looks like the Osrs script guild. Anyway, what isn't working?
Does the image show on Graal?

Foggy 07-28-2005 06:34 PM

Quote:

Originally Posted by xAndrewx
Does the image show on Graal?

No it does not :frown: and this is for graal editer

xAndrewx 07-28-2005 06:35 PM

You need someone to 'indexed' it. I'd do it, but I don't have any graphic program to do it. Sorry

Foggy 07-28-2005 06:46 PM

Quote:

Originally Posted by xAndrewx
You need someone to 'indexed' it. I'd do it, but I don't have any graphic program to do it. Sorry

ooo right and have u not even got paint??

xAndrewx 07-28-2005 06:48 PM

Paint can't change RGB to Indexed.

Foggy 07-28-2005 07:02 PM

Quote:

Originally Posted by xAndrewx
Paint can't change RGB to Indexed.

So what program will?

xAndrewx 07-28-2005 07:07 PM

Paint Shop Pro.
Adobe Photoshop.
These are the only 2 I know, it needs to be 8.png

Foggy 07-28-2005 07:11 PM

Quote:

Originally Posted by xAndrewx
Paint Shop Pro.
Adobe Photoshop.
These are the only 2 I know, it needs to be 8.png

ok i have those programs so wat do i do i them 2 make it work? :\

xAndrewx 07-28-2005 07:13 PM

Photoshop:
Open the image
goto Mode>Indexed.
File>save.
No clue with PSP.

Foggy 07-28-2005 08:00 PM

Quote:

Originally Posted by xAndrewx
Photoshop:
Open the image
goto Mode>Indexed.
File>save.
No clue with PSP.

ok i have no idea how 2 do that shall i send u the program?

Longdon 07-28-2005 08:47 PM

that gui is an old Maloria prototype, if this is for educational purposes, please continue, but if this is for a playerworld I will kindly have to ask that you develop your own gui.

Foggy 07-29-2005 11:32 AM

Quote:

Originally Posted by Longdon
that gui is an old Maloria prototype, if this is for educational purposes, please continue, but if this is for a playerworld I will kindly have to ask that you develop your own gui.

Yes its for a educational purposes i just want 2 now to make it work

hotrian 08-01-2005 11:34 AM

:O Make sure you use the right image name

Also i dont think the image name should have the ' in it
But thats just how my computer works o.o


All times are GMT +2. The time now is 12:39 AM.

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