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 11-12-2008, 09:27 PM
Ngoc999 Ngoc999 is offline
Registered User
Ngoc999's Avatar
Join Date: Oct 2008
Posts: 20
Ngoc999 is an unknown quantity at this point
Unhappy Health Bar

how i get another health bar than that round things x_X i maked an health bar but i dunno how to upload it in game
Reply With Quote
  #2  
Old 11-12-2008, 09:30 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
What server are you playing ?
It actually depends of the server you want to change the health to.
If it's your own server then try to script a complete health system / hire a scripter

If it's a server like Unholy Nation / Classic then just go in Graal/levels/images then just edit the image called state.png (should always be in the bottom of your files)

Hope this helped
Reply With Quote
  #3  
Old 11-12-2008, 09:55 PM
napo_p2p napo_p2p is offline
oh snaps
napo_p2p's Avatar
Join Date: Sep 2003
Location: Pismo Beach, California
Posts: 2,118
napo_p2p has a spectacular aura aboutnapo_p2p has a spectacular aura about
Send a message via AIM to napo_p2p Send a message via MSN to napo_p2p
Quote:
Originally Posted by alexandralove View Post
If it's your own server then try to script a complete health system / hire a scripter

If it's a server like Unholy Nation / Classic then just go in Graal/levels/images then just edit the image called state.png (should always be in the bottom of your files)
If it's just replacing states.png, then you could use setstatusimage().
Example:
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
setstatusimage("newstate.png");

However, if you want an actual health bar, then that requires a more complex script. Sadly, this isn't a place where you could request full scripts. This is the code gallery, and only meant for showcasing complete scripts of your own.
__________________
Scito hoc super omnia.
Haec vita est tua una sola.
Dum vita superest, utere maxime quoque puncto, momento, et hora quae habes.
Tempus neminem non manet.
Noli manere tempus.
Carpe Diem

Seize the Day.
Reply With Quote
  #4  
Old 11-12-2008, 09:56 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
Quote:
Originally Posted by napo_p2p View Post
If it's just replacing states.png, then you could use setstatusimage().
Example:
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
setstatusimage("newstate.png");

I'm not a scripter
Reply With Quote
  #5  
Old 11-12-2008, 10:25 PM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by alexandralove View Post
If it's a server like Unholy Nation / Classic then just go in Graal/levels/images then just edit the image called state.png (should always be in the bottom of your files)
No, no and NO!

We don't want yet another server replacing default images so you have to reinstall Graal to get back the default, there's a command to change state for a reason.

Quote:
Originally Posted by alexandralove View Post
I'm not a scripter
Then stop giving bad advice in our forum.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #6  
Old 11-12-2008, 10:49 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
This post might help.
__________________
Reply With Quote
  #7  
Old 11-13-2008, 01:28 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
Quote:
Originally Posted by xXziroXx View Post
No, no and NO!

We don't want yet another server replacing default images so you have to reinstall Graal to get back the default, there's a command to change state for a reason.



Then stop giving bad advice in our forum.
I just thought he wanted to edit his state.png img himself, this thread is so details-less
Reply With Quote
  #8  
Old 11-13-2008, 06:23 PM
Crow Crow is offline
ǝɔɐɹq ʎןɹnɔ
Crow's Avatar
Join Date: Dec 2006
Location: Germany
Posts: 5,153
Crow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond reputeCrow has a reputation beyond repute
Quote:
Originally Posted by alexandralove View Post
I just thought he wanted to edit his state.png img himself, this thread is so details-less
If you have no idea what the OP wants, don't post.
Reply With Quote
  #9  
Old 11-13-2008, 08:59 PM
Inverness Inverness is offline
Incubator
Inverness's Avatar
Join Date: Aug 2004
Location: Houston, Texas
Posts: 3,613
Inverness is a jewel in the roughInverness is a jewel in the rough
Quote:
Originally Posted by alexandralove View Post
If it's a server like Unholy Nation / Classic then just go in Graal/levels/images then just edit the image called state.png (should always be in the bottom of your files)
Absolutely not.
__________________
Reply With Quote
  #10  
Old 11-13-2008, 09:08 PM
Soala Soala is offline
Ideas on Fire
Soala's Avatar
Join Date: Jun 2007
Location: In my head
Posts: 3,208
Soala is a jewel in the roughSoala is a jewel in the rough
Quote:
Originally Posted by Inverness View Post
Absolutely not.
Reply With Quote
  #11  
Old 11-14-2008, 01:57 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by xXziroXx View Post
No, no and NO!
Quote:
Originally Posted by Inverness View Post
Absolutely not.
client != server

So calm down.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #12  
Old 11-14-2008, 06:09 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Tolnaftate2004 View Post
client != server

So calm down.
Quote:
Originally Posted by Ngoc999 View Post
how i get another health bar than that round things x_X i maked an health bar but i dunno how to upload it in game
And judging from the thread in the playerworld section, it's for his newly acquired playerworld.


So no, we were merely helping.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #13  
Old 11-14-2008, 09:02 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by xXziroXx View Post
And judging from the thread in the playerworld section, it's for his newly acquired playerworld.


So no, we were merely helping.
Yet you both quoted:
Quote:
Originally Posted by alexandralove View Post
If it's a server like Unholy Nation / Classic then just go in Graal/levels/images then just edit the image called state.png (should always be in the bottom of your files)
When was the last time you ever heard anyone refer to RC file browser as the Graal/ folder? On the other hand, for that to cause ANY sort of damage, some folder "Graal" would have to be listed in the folder options; if someone were asking for help uploading a file to a server, I'm thinking they wouldn't know how to set up a new folder either. Otherwise, a useful solution has been posted already.

So please read carefully, use common sense, and happy posting.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #14  
Old 11-14-2008, 09:20 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
There are two ways to do this, depending on what you're trying to do exactly.

> Replace it for only yourself. If you want to change the way your hearts and such look on classic servers like UN, it's simply a matter of replacing state.png. Go into the directory...
Graal/levels/images/
and you'll find a state.png. Rename it to like state2.png and then move your replacement file into the same folder. Rename your custom file to state.png(if it is indeed a PNG file, if not make it one... it can't be GIF or JPG or any other file format).

> Replace the state for your server. If you want to make the state look different for everyone playing on your server then it's a different matter. Save the file as yourservername_state.png, NOT state.png. Then upload it to your server images folder. Then in one of your weapons(like a system weapon)...
PHP Code:
//#CLIENTSIDE
function onCreated() {
  
setstatusimage("yourservername_state.png"); 

Reply With Quote
  #15  
Old 11-14-2008, 09:55 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by Tolnaftate2004 View Post
Yet you both quoted:


When was the last time you ever heard anyone refer to RC file browser as the Graal/ folder? On the other hand, for that to cause ANY sort of damage, some folder "Graal" would have to be listed in the folder options; if someone were asking for help uploading a file to a server, I'm thinking they wouldn't know how to set up a new folder either. Otherwise, a useful solution has been posted already.

So please read carefully, use common sense, and happy posting.
Come to think about it, I only meant to quote "just edit the image called state.png".
__________________
Follow my work on social media post-Graal:Updated august 2025.
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 01:07 PM.


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