Graal Forums  

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

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
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
  #2  
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
  #3  
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
  #4  
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
  #5  
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
  #6  
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
  #7  
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
  #8  
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
  #9  
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
  #10  
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
  #11  
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
  #12  
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
  #13  
Old 11-14-2008, 04:58 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 Tolnaftate2004 View Post
When was the last time you ever heard anyone refer to RC file browser as the Graal/ folder?
I thought it was quite obvious that he was pointing out that you could find state.png on your own computer to edit then upload.
Quote:
Originally Posted by Tolnaftate2004 View Post
So please read carefully, use common sense, and happy posting.
You seem to have missed the sentence before the one you quoted.
Quote:
Originally Posted by alexandralove
If it's your own server then <GOOD THING HERE>

If it's a server like Unholy Nation / Classic then <BAD THING HERE>
It seemed to me if he was suggesting that you have a server that is using the default HUD then you should take the state.png from your own computer, edit it, and then upload it onto the server to replace the default GUI, which you obviously should not be doing.
__________________
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 07:16 PM.


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