Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Someone Give Me Script For Health Bat,plz (https://forums.graalonline.com/forums/showthread.php?t=14674)

Chef93827374 10-15-2001 11:10 AM

Someone Give Me Script For Health Bat,plz
 
Someone Give Me Script For Health Bar!!!
Someone Give Me The Exact Script For Health Bar,And Can a Good Gat Maybe Make Me an Image For it?i suck at that,plz!!!! Thx!!!!!!!!!!!!!!!!

-DarkBuzz-

Faheria_LAT1 10-15-2001 11:16 AM

omg, what has this forum come to?

if (created) {destroy;}

nyghtGT 10-15-2001 11:33 AM

Re: Someone Give Me Script For Health Bat,plz
 
Quote:

Originally posted by Chef93827374
Someone Give Me Script For Health Bar!!!
Someone Give Me The Exact Script For Health Bar,And Can a Good Gat Maybe Make Me an Image For it?i suck at that,plz!!!! Thx!!!!!!!!!!!!!!!!

-DarkBuzz-

i'll point you in the proper direction .... using enigexp.gif:
NPC Code:

// NPC made by Nyght *Asst* (LAT Admin)
if (created) {
toweapons -EXP Bar;
EXPenabled();
}
function EXPenabled() {
showimg 200,enigexp.gif,500,55;
changeimgvis 200,10;
changeimgpart 200,1,1,109,32
}
while (playerhearts=3) {
showimg 201,enigmaexp.gif,520,65;
changeimgvis 201,10;
changeimgpart 201,15,31,95,25
}


This is all still very new for me but its fairly simple once you get the basics straight. What it does is it puts the image on there and the blue bar should appear ithin the main black one but I am still getting the settings right .... This is just to get you heading the right way ...

BocoC 10-15-2001 12:19 PM

NPC Code:

//This example assumes you have a bar that is 100x25 pixels and is named hpbar.gif
if (created) {
timeout=0.05;
}
if (timeout) {
GetHP();
DrawBar();
timeout=0.05;
}
function GetHP() {
this.hp=int(playerhearts/playerfullhearts)*100;
}
function DrawBar() {
showimg 1000,hpbar.gif,screenwidth*0.9,screenheight*0.05;
changeimgpart 1000,0,0,this.hp,25;
changeimgvis 1000,4;
}


I haven't tested in Graal. Just now made it up. You should test it though. Don't forget the showstats command.

btedji 10-15-2001 07:20 PM

please look at the other threads before you ask for a script

Petey84 10-16-2001 12:55 AM

Shakaku:
i bet he hasn't even tried to figure it out..

thotijn 10-16-2001 01:20 AM

ewogfrjd-=;';]]=[/.'''7645sfpo[jpodfjwe}0432:o
my new super code

joseyisleet 10-16-2001 01:27 AM

I do believe that Ice Pick posted his (which people said he stole which is very likely :megaeek:) about 3 - 4 pages back by now most likely. I don't see why you want to use an HP bar because they literally suck ass.....

mhermher 10-16-2001 10:28 PM

NPC Code:

if (playerenters&&strequals(#a,Chef93827374)) {
setplayerprop #c,mEz a st00pid scriptah thut cant' skripth;



All times are GMT +2. The time now is 01:31 PM.

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