
06-16-2008, 05:02 PM
|
|
Graal Administration
|
Join Date: Jan 2000
Location: Admins
Posts: 11,693
|
|
|
Normally the communityname for guests is empty, so do
temp.displayname = (player.communityname!=""? player.communityname : player.account)
although it's recommended to display the nick name instead, and use the account name for identification. Only for stuff that needs strong identification (e.g. trading of items) accept community name (the name displayed on playerlist / in the game) as input, with findplayerbycommunityname(). So most of the time you don't need to a lot of changes, just:
- accept community name as input for stuff like trading: replace findplayer() by findplayerbycommunityname()
- when talking to the player or displaying the player name then use the nickname: player.nick
- for stuff like ladders or rankings eventually display nick name + account: player.nick @ " (" @ (player.communityname!=""? player.communityname : player.account) @ ")" |
|
|
|