View Single Post
  #1  
Old 10-08-2011, 06:11 PM
Nogross Nogross is offline
Registered User
Nogross's Avatar
Join Date: Feb 2011
Location: Germany
Posts: 23
Nogross is an unknown quantity at this point
Send a message via ICQ to Nogross
Question Custom Name System error

Hello Forum,

I got a proplem with my Custom Name System.. It's based like Gunderaks 1:
http://forums.graalonline.com/forums...hp?t=134264204

The proplem is that the hp text and the guild text will be overwritten if there are more then 2 player in the room. I hope you guys can help me.

PHP Code:
//#CLIENTSIDE
function onCreated() {
  
enablefeatures(200);
  
setTimer(0.05);
}

function 
onTimeOut() {
  
this.hideimgs(200, 200 + this.i);

  for (
temp.pl: players) {
    
this.showtext(200 + this.i, temp.pl.x + 1.57, temp.pl.y + 3.05, "Arial", "cb", @ temp.pl.nick);
    
changeimgcolors(200 + this.i, 0.5, 1, 0.5, 1);
    
changeimgvis(200 + this.i, 1);
    
changeimgzoom(200 + this.i, 0.75);
    
this.i++;
    
this.showtext(201 + this.i, temp.pl.x + 1.57, temp.pl.y + 3.85, "Arial", "cb", @ temp.pl.hearts @ "/" @ temp.pl.maxhp);
    
changeimgcolors(201 + this.i, 1, 0.1, 0.1, 1);
    
changeimgvis(201 + this.i, 1);
    
changeimgzoom(201 + this.i, 0.65);
    
this.i++;
    
showtext(202 + this.i, temp.pl.x + 1.57, temp.pl.y + 4.35, "Arial", "cb", @ temp.pl.clientr.guildtag);
    
changeimgcolors(202 + this.i, 1, 1, 1, 1);
    
changeimgvis(202 + this.i, 1);
    
changeimgzoom(202 + this.i, 0.65);
    
this.i++;
  }
  
setTimer(0.05);
} 
Thanks anyway!
NG

Last edited by Nogross; 10-08-2011 at 06:58 PM.. Reason: Beautified
Reply With Quote