Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 03-10-2011, 03:50 PM
AlexanderK AlexanderK is offline
Registered User
AlexanderK's Avatar
Join Date: Mar 2006
Location: Germany
Posts: 79
AlexanderK is on a distinguished road
Send a message via MSN to AlexanderK
Showimg HUD, possible V6 beta bug?

I just downloaded the new V6 beta and my hud is messed up.
This is my script:
PHP Code:
//FULLHEARTS

  
if (!this.heartsfirstdisplayed || this.maxhearts != clientr.maxhearts) {
    
hideimgs(11001299);
    for (
0clientr.maxheartsi++) {
      
showimg(1100 i"sorna_hud_heart_background.png"64 110 18 i12);
      
changeimgvis(1100 i5);

      
showimg(1200 i"sorna_hud_heart.png"64 110 18 112);
      
changeimgvis(1200 i5);
    }
    
this.maxhearts clientr.maxhearts;
    
this.hearts clientr.maxhearts 1;
    
this.heartsfirstdisplayed true;
  }

  
//HEARTS

  
if (this.hearts != clientr.hearts) {
    for (
0;clientr.maxheartsi++) {
      if (
clientr.hearts i) {
        
findimg(1200 i).image "sorna_hud_heart.png";
        
findimg(1200 i).alpha 1;
        if (
clientr.hearts 1)
          switch (
clientr.hearts 1) {
            case 
0:
              
findimg(1200 i).image "sorna_hud_heart.png";
              break;
            case 
0.25:
              
findimg(1200 i).image "sorna_hud_heart_quarter.png";
              break;
            case 
0.5:
              
findimg(1200 i).image "sorna_hud_heart_half.png";
              break;
            case 
0.75:
              
findimg(1200 i).image "sorna_hud_heart_threequarters.png";
              break;
          }

      } else {
        
findimg(1200 i).alpha 0;
      }
    }
    
this.hearts clientr.hearts;
  } 
There are always some extra hearts displayed next to the actual hearts and I have no idea why. On V5 it works fine and I think it did on the last beta too.

Also somehow my ALT+2 is messed up and everything is blue. :/
Attached Thumbnails
Click image for larger version

Name:	graal_1299763755.png
Views:	307
Size:	36.6 KB
ID:	52524  
Reply With Quote
 


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:01 AM.


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