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
  #16  
Old 06-19-2001, 01:36 AM
CrazedMerlin CrazedMerlin is offline
Some Guy :\
Join Date: Apr 2001
Posts: 3,619
CrazedMerlin is on a distinguished road
Send a message via AIM to CrazedMerlin Send a message via Yahoo to CrazedMerlin
ok...what color do you leave the inside like where the health part would be? white?
__________________

ICQ: 117881194
AIM: TehWizad
E-Mail: [email protected]
Reply With Quote
  #17  
Old 06-19-2001, 01:48 AM
Bhala Bhala is offline
Disgruntled Monkey
Bhala's Avatar
Join Date: Mar 2001
Posts: 779
Bhala is on a distinguished road
it is ezest to have the lenght of the bar the same as the max total amount of ap....
__________________
Reply With Quote
  #18  
Old 06-19-2001, 10:19 AM
ownerofbabylon ownerofbabylon is offline
Lord Helmut
ownerofbabylon's Avatar
Join Date: Jun 2001
Location: Gainesville FL
Posts: 1,763
ownerofbabylon is on a distinguished road
Send a message via ICQ to ownerofbabylon Send a message via AIM to ownerofbabylon
About the fishing script. I want one thats like Sanstrata's (in the sense its for free servers) and I wanna have a pond or some body of water setup near a fishing store. The player goes in and buys a fishing pole (maybe lure and bait, depends how hard it would be) and then can go fish with those. And if they catch a fish they can have it cooked and they can sell it and stuff. DO YOU THINK THAT WOULD BE TOO HARD KAIMETSU???
__________________


Warrior of Light

WWW.BABYLONSERVER.COM
Reply With Quote
  #19  
Old 06-19-2001, 10:49 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
A bar would work like this

first you would use this
this.stat = int((hp/maxhp)*pixels);

obviosly you have to change maxhp & pixels to actual numbers, unless you can upgrade you max HP, in which case you would just change pixels to a number. Now anyways let me describe how this works: hp/maxhp turns your hp into a percentage, then * pixels gives you the length (in pixels) the bar should be

then you use showimg 201,x,y;
then you do changeimgvis and set it on statbar layer

then you would use a simple changeimgpart 201,0,0,this.stat,10; to change the bar to it's correct shape (Change 10 to the height of the bar in pixels
Reply With Quote
  #20  
Old 06-19-2001, 10:50 AM
General General is offline
Banned
Join Date: Apr 2001
Location: Station Square
Posts: 984
General is on a distinguished road
Send a message via ICQ to General Send a message via AIM to General Send a message via Yahoo to General
Ph yes, about the int, occasionally you will get 46.5% health, now of course you can't have .5 of a pixel, so it rounds off to the nearest integer
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 02:54 PM.


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