Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Health Bar (https://forums.graalonline.com/forums/showthread.php?t=82762)

Soala 11-14-2008 04:19 PM

Quote:

Originally Posted by xXziroXx (Post 1442125)
Come to think about it, I only meant to quote "just edit the image called state.png".

I actually did it on UN :whatever:

Inverness 11-14-2008 04:58 PM

Quote:

Originally Posted by Tolnaftate2004 (Post 1442122)
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 (Post 1442122)
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.

Soala 11-14-2008 07:29 PM

Quote:

Originally Posted by Inverness (Post 1442163)
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.
You seem to have missed the sentence before the one you quoted.
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

You don't need to upload it on the server, jus replace it in your own folders then reconnect.
I did it xxxx times.

Chompy 11-14-2008 08:52 PM

Quote:

Originally Posted by alexandralove (Post 1442180)
You don't need to upload it on the server, jus replace it in your own folders then reconnect.
I did it xxxx times.

Hmm?
Quote:

Originally Posted by alexandralove (Post 1442151)
I actually did it on UN :whatever:

You didn't do it on UN, you did it locally on your computer for your own client.

Ngoc999 11-21-2008 03:22 PM

i need help??? -_-

super_matt89 10-27-2009 10:18 AM

Hmm
 
hey mate, if you just want to change your hearts and etc for your own client not for people that go on a whole server then just locate state.png in your graal folder then name the image you made state.png and drag your image into the same directory as state.png then overwrite it. :)

TSAdmin 10-27-2009 11:55 AM

Quote:

Originally Posted by super_matt89 (Post 1534438)
hey mate, if you just want to change your hearts and etc for your own client not for people that go on a whole server then just locate state.png in your graal folder then name the image you made state.png and drag your image into the same directory as state.png then overwrite it. :)

This thread is nearly a year old... :whatever:

Quote:

Originally Posted by cbk1994 (Post 1516227)


alskdjfhg 10-27-2009 12:03 PM

Quote:

Originally Posted by TSAdmin (Post 1534443)
This thread is nearly a year old... :whatever:

LOL, when on earth did you make that Paul? and how long did it take? D: cute though.

TSAdmin 10-27-2009 12:17 PM

Quote:

Originally Posted by alskdjfhg (Post 1534445)
LOL, when on earth did you make that Paul? and how long did it take? D: cute though.

Chris made it. The quote links back to the first one I could find of him posting it. :p

Samposse 11-27-2009 12:14 PM

i used that help i got from
Quote:

This post might help.
but it didnt work :(

(the Bar thing )

Switch 11-27-2009 10:44 PM

Quote:

Originally Posted by Samposse (Post 1540763)
i used that help i got from
but it didnt work :(

(the Bar thing )

PHP Code:

//#CLIENTSIDE
function onCreated() {
  
this.healthbar "healthbarimg.png"//make a health bar image, as high and wide as it should show for anyone
  
this.width getImgWidth(this.healthbar);
  
this.height getImgHeight(this.healthbar);
  
this.fullhearts 3//max full hearts on the server so it replicates the regular stats but with a bar
  
onTimeout();
}
function 
onTimeout() {
  
showImg(200this.healthbarplayer.x-this.width/32player.y-this.height/16); //change x and y coords to whatever you want them, but try to keep them relevant to the player
  
changeImgPart(20000this.width/(player.hearts/this.fullhearts), this.height);
  
changeImgVis(2003);
  
setTimer(0.05);


Something like this. You'll need to do some work.


All times are GMT +2. The time now is 06:52 AM.

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