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 10-15-2001, 11:10 AM
Chef93827374 Chef93827374 is offline
Registered User
Join Date: Oct 2001
Location: N.y
Posts: 1
Chef93827374 is on a distinguished road
Exclamation 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-
__________________
Bruce Nope Poole
Reply With Quote
  #2  
Old 10-15-2001, 11:16 AM
Faheria_LAT1 Faheria_LAT1 is offline
Seraphim Warrior
Faheria_LAT1's Avatar
Join Date: Oct 2001
Location: QUÉBEC!!!!!!1
Posts: 2,040
Faheria_LAT1 is on a distinguished road
Send a message via ICQ to Faheria_LAT1 Send a message via AIM to Faheria_LAT1
omg, what has this forum come to?

if (created) {destroy;}
__________________


"I like movies where the guy shoots stuff, and then it blows up, and then this other guy shoots him, and then the first guy drives through a Coke sign, and it blows up, and the car flips over in slow motion, and then the guy gets out and pops his arm back in place, and then they fight 'cause they're out of bullets, and the guy says something like "This is Walmart, boy...and you just got price-checked!" - Broken Saints

"There is no greater sorrow than to recall in misery when we were happy" - Dante

"If you know yourself but not the enemy, for every victory gained you will also suffer a defeat" - Sun Tzu, The Art Of War

"Kingdoms ...rising without word. Collapsing without warning." - Broken Saints

Account now used by Silver and Mmmmkay
yoshee15 account has run out :[[[
Reply With Quote
  #3  
Old 10-15-2001, 11:33 AM
nyghtGT nyghtGT is offline
Banned
nyghtGT's Avatar
Join Date: Jun 2001
Posts: 3,993
nyghtGT is on a distinguished road
Send a message via AIM to nyghtGT
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 ...
Reply With Quote
  #4  
Old 10-15-2001, 12:19 PM
BocoC BocoC is offline
Registered User
BocoC's Avatar
Join Date: Jun 2001
Location: Washington State, USA
Posts: 980
BocoC is on a distinguished road
Send a message via AIM to BocoC Send a message via Yahoo to BocoC
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.
__________________
-Boco

FLKJH$TRFG*$(&%>FMG >REN<>F ;.kjsd
Reply With Quote
  #5  
Old 10-15-2001, 07:20 PM
btedji btedji is offline
bryan986
btedji's Avatar
Join Date: Apr 2001
Location: Force 10
Posts: 1,153
btedji is on a distinguished road
Send a message via ICQ to btedji Send a message via AIM to btedji Send a message via Yahoo to btedji
please look at the other threads before you ask for a script
Reply With Quote
  #6  
Old 10-16-2001, 12:55 AM
Petey84 Petey84 is offline
Registered User
Join Date: Sep 2001
Location: Johnstown PA, and Mobile AL
Posts: 308
Petey84 is on a distinguished road
Send a message via AIM to Petey84 Send a message via Yahoo to Petey84
Shakaku:
i bet he hasn't even tried to figure it out..
__________________
-Pete aka Wilddude
-Nishoku as well ;D!

AIM
Pete: WildDude2002
Nishoku: Nishoku, SaikoAkumu
-----------------------------------------------
StarX480: bai
Reply With Quote
  #7  
Old 10-16-2001, 01:20 AM
thotijn thotijn is offline
Banned
Join Date: Sep 2001
Location: Holland, Enschede
Posts: 473
thotijn is on a distinguished road
Send a message via AIM to thotijn Send a message via Yahoo to thotijn
ewogfrjd-=;';]]=[/.'''7645sfpo[jpodfjwe}0432:o
my new super code
Reply With Quote
  #8  
Old 10-16-2001, 01:27 AM
joseyisleet joseyisleet is offline
Registered User
Join Date: Aug 2001
Posts: 378
joseyisleet is on a distinguished road
I do believe that Ice Pick posted his (which people said he stole which is very likely ) 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.....
__________________
Account used by Josey and Howard.
Ali G: 'Is it cause i Black?'
Reply With Quote
  #9  
Old 10-16-2001, 10:28 PM
mhermher mhermher is offline
galase galase!
mhermher's Avatar
Join Date: Jun 2001
Location: Sweden, Stockholm.
Posts: 2,012
mhermher is on a distinguished road
Send a message via ICQ to mhermher Send a message via AIM to mhermher Send a message via Yahoo to mhermher
NPC Code:

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

__________________
Donate money for my trip to Germany

Adiarde Manager

Last edited by mhermher; 10-17-2001 at 07:06 PM..
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 04:36 PM.


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