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 08-25-2006, 03:35 AM
excaliber7388 excaliber7388 is offline
Banned
excaliber7388's Avatar
Join Date: Jul 2005
Location: US
Posts: 5,229
excaliber7388 can only hope to improve
Send a message via AIM to excaliber7388
changing image parts

I've been using this script:
PHP Code:
 changeimgpart(2005,0,0,imgwidth(imagename)/clientr.exp_level*clientr.exp,10); 
to change the width of the bar for the exp.
Except, I've found that when the exp_level (the max value) variable gets too high, the bar will not change size. Is there a solution to this? I've seen other servers that have a higher variable, so there has to be some way.
Reply With Quote
  #2  
Old 08-25-2006, 09:00 AM
Tolnaftate2004 Tolnaftate2004 is offline
penguin.
Join Date: Jul 2004
Location: Berkeley, CA
Posts: 534
Tolnaftate2004 is a jewel in the roughTolnaftate2004 is a jewel in the rough
Send a message via AIM to Tolnaftate2004
Quote:
Originally Posted by excaliber7388
PHP Code:
 changeimgpart(2005,0,0,imgwidth(imagename)/clientr.exp_level*clientr.exp,10); 
You want to use clientr.exp/clientr.exp_level*getimgwidth(image);
And only display the image when that value is greater than 0.
__________________
◕‿‿◕ · pfa · check yer syntax! · src

Killa Be: when i got that locker in 6th grade the only thing in it was a picture of a midget useing a firehose :/
Reply With Quote
  #3  
Old 08-25-2006, 10:08 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
Yes the image is displayed fully if the width or height of the image part is zero, so don't display it in that case
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 08:31 PM.


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