Graal Forums

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

Dnetick 09-24-2001 12:35 AM

Healing Health Bar..
 
Okay, here, this is what I have for the healing part of my health bar which, well, dont work.
NPC Code:

if (playerheals<1&&playerhearts<0.5){
showimg 351,hpbar15.gif,450,30;
changeimgpart 351,0,0,0,0;
changeimgvis 351,4;
}



Can you tell me how to fix it to where it heals and stuff.

Dnetick 09-24-2001 12:50 AM

Oh...hmmm. Could you make it to where it works that you can heal when you are alive?

Xaviar 09-24-2001 12:53 AM

Im gonna save Kai the trouble and say no for him ;)

"No."

Dnetick 09-24-2001 12:54 AM

Just heal pretty much. Like, heal from every heart. Ex: If i had 0.5 health left, and I took a heart, I would be at 1.5. bUt, you think you could do all of it?

Dnetick 09-24-2001 01:06 AM

yeah

Dnetick 09-24-2001 01:13 AM

Well, see I have it and stuff and then when I get a heart (not full heart), it does heal. Well, it dont show the new HP Bar Image I need. But, I know it heals me. It just dont show the new image. I just need it to where if I had 1 heart left, I get a heart, it goes to 2 and it shows the new image

Merlin 09-24-2001 01:18 AM

if (timeout) {
timeout = .5;
setstring this.hearts,#v, playerhearts;
}

or this.hearts = playerhearts;

not sure


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

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