Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 08-02-2010, 04:40 AM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
Centering a nickname?

So I was wondering (no matter the length) how I would go about setting a custom nick name right below the player, like the default one would. It's through a gani, btw

PHP Code:
SCRIPT
function onPlayerEnters() onTimeOut();
function 
onCreated() onTimeOut();
function 
onTimeOut() {
  if ( 
player.level.name != NULL ) {
    
showText300player.xplayer.3"verdana""b"player.nick );
    
changeImgZoom3000.6 );
    
changeImgColors300player.clientr.( @ "namecolor_colors" )[ ], player.clientr.( @ "namecolor_colors" )[ ], player.clientr.( @ "namecolor_colors" )[ ], );
  } else {
    
hideImg300 );
  }
  
setTimer0.05 );
}
SCRIPTEND 
Reply With Quote
  #2  
Old 08-02-2010, 04:42 AM
Tigairius Tigairius is offline
The Cat
Tigairius's Avatar
Join Date: Jan 2007
Location: Missouri, USA
Posts: 4,240
Tigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant futureTigairius has a brilliant future
PHP Code:
showText300player.xplayer.3"verdana""bc"player.nick ); 
__________________


“Shoot for the moon. Even if you miss, you'll land among the stars.”
Reply With Quote
  #3  
Old 08-02-2010, 04:45 AM
devilsknite1 devilsknite1 is offline
C:
devilsknite1's Avatar
Join Date: Jul 2006
Location: Florida, USA
Posts: 269
devilsknite1 has a spectacular aura about
Send a message via AIM to devilsknite1 Send a message via MSN to devilsknite1 Send a message via Yahoo to devilsknite1
Oh wow.... I'm an idiot. >.>

well of course it would be
PHP Code:
showText300player.1.5player.3"verdana""bc"player.nick ); 
There... Do I not look as retarded now?
Reply With Quote
  #4  
Old 08-02-2010, 06:39 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Replace the font with defaultfontname imo
Reply With Quote
  #5  
Old 08-02-2010, 07:29 AM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Quote:
Originally Posted by Mark Sir Link View Post
Replace the font with defaultfontname imo
Some servers have a specific look they want to convey.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #6  
Old 08-02-2010, 07:54 AM
Mark Sir Link Mark Sir Link is offline
Kevin Azite
Mark Sir Link's Avatar
Join Date: Sep 2005
Posts: 1,489
Mark Sir Link is just really niceMark Sir Link is just really nice
Send a message via AIM to Mark Sir Link
Quote:
Originally Posted by LoneAngelIbesu View Post
Some servers have a specific look they want to convey.
and some players like to pick a font that makes things easier for them to read. I can understand using a different font elsewhere but for nicks and chat, why limit the player?
Reply With Quote
  #7  
Old 08-02-2010, 12:00 PM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by Mark Sir Link View Post
and some players like to pick a font that makes things easier for them to read. I can understand using a different font elsewhere but for nicks and chat, why limit the player?
That's up to the server to decide. I don't see any reason to throw a blanket over the entire concept of changing fonts until you've seen it .
__________________
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 07:07 PM.


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