View Single Post
  #2  
Old 06-16-2008, 03:17 PM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
For scripter reference, the following things are available for working with community names:
  • player.communityname - gets the community name of the player
  • findPlayerByCommunityName() - works almost identically findPlayer() except it takes a community name as a parameter instead of account name
For instance, to address a player by their community name, you may use the following:
PHP Code:
function onPlayerTouchsMe()
{
  
this.chat "Hello, " player.communityname;

Notes:
  • Players with original account names have community names set to the same as their account. For instance, account "Skyld" has the community name "Skyld".
  • Guest players (those who have not logged in with an account for the 4-hour trial) have a community name of "guest".
Reply With Quote