Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #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
  #2  
Old 07-28-2005, 06:31 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Looks like the Osrs script guild. Anyway, what isn't working?
Does the image show on Graal?
__________________
Reply With Quote
  #3  
Old 07-28-2005, 06:34 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
Quote:
Originally Posted by xAndrewx
Does the image show on Graal?
No it does not and this is for graal editer
__________________
Reply With Quote
  #4  
Old 07-28-2005, 06:35 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
You need someone to 'indexed' it. I'd do it, but I don't have any graphic program to do it. Sorry
__________________
Reply With Quote
  #5  
Old 07-28-2005, 06:46 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
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??
__________________
Reply With Quote
  #6  
Old 07-28-2005, 06:48 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Paint can't change RGB to Indexed.
__________________
Reply With Quote
  #7  
Old 07-28-2005, 07:02 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
Quote:
Originally Posted by xAndrewx
Paint can't change RGB to Indexed.
So what program will?
__________________
Reply With Quote
  #8  
Old 07-28-2005, 07:07 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Paint Shop Pro.
Adobe Photoshop.
These are the only 2 I know, it needs to be 8.png
__________________
Reply With Quote
  #9  
Old 07-28-2005, 07:11 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
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?
__________________
Reply With Quote
  #10  
Old 07-28-2005, 07:13 PM
xAndrewx xAndrewx is offline
Registered User
xAndrewx's Avatar
Join Date: Sep 2004
Posts: 5,260
xAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud ofxAndrewx has much to be proud of
Photoshop:
Open the image
goto Mode>Indexed.
File>save.
No clue with PSP.
__________________
Reply With Quote
  #11  
Old 07-28-2005, 08:00 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
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?
__________________
Reply With Quote
  #12  
Old 07-28-2005, 08:47 PM
Longdon Longdon is offline
Registered User
Join Date: Jun 2005
Location: Edmonton, Alberta
Posts: 1
Longdon is on a distinguished road
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.
Reply With Quote
  #13  
Old 07-29-2005, 11:32 AM
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
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
__________________
Reply With Quote
  #14  
Old 08-01-2005, 11:34 AM
hotrian hotrian is offline
Who?
Join Date: May 2003
Location: Eatonville, Washington, 98328
Posts: 56
hotrian is on a distinguished road
Send a message via AIM to hotrian Send a message via MSN to hotrian
: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
Reply With Quote
Reply


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:06 PM.


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