![]() |
Community name help
I still get complains from people that on some servers it's displaying account names instead of community names (e.g. for trading systems) although that is not really good and often quite easy to fix. If you know of such things please report them here, so we can help fixing them.
|
For scripter reference, the following things are available for working with community names:
PHP Code:
|
Quote:
What if you have multiple guests on the server, would be my question? findPlayerByCommunityName( "guest" ) wouldn't be very effective ... |
Quote:
(plus, Stefan, could you make findplayer() work with both? Like, make findplayer() work as findplayerbycommunityname()?) |
Quote:
|
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) @ ")" |
Quote:
"temp.displayName = ( player.communityname != "" ? player.communityname : player.account );" Perhaps guest community name could equal their account of pcid? |
Maybe player.communityName is empty for guests, but findPlayerByCommunityName() still finds somebody when you input "guest". So could you please add something in the next version that prevents exactly that and just returns nil when you do findPlayerByCommunityName("guest")?
Thanks. |
We have updated the gserver and npcserver for hosted and under construction playerworlds, it's now displaying the community name for RC actions (login, logout, changing scripts etc.). Strange that no one ever complained. Still waiting for reports on which server stuff is not working, and what.
|
Quote:
Apparently you have to put community name AND account name. At least, that's what I was told. |
You put the community name if someone has one, otherwise the account name. Only for editing the rights you need to use the account name right now, although you can also wait until the staff logins (ip-range will automatically be set on first login).
|
How about all guests have their PCID as their account name?
Or have like player.pcid or player.ip string for someone's PCID or IP which you can then set temp.displayName? |
How about 'warpto community name' instead of 'warpto account name'
Quote:
|
I think it would be easier if we just forced players to put in their telephone numbers while registering (Cell phones work too), and then have it as player.number. That way we can also call them if they are lonely or we need to make sure it's the right person. And imagine, if we know their birthday too we call all be calling all day long to wish them a happy birthday! This would make it much easier I think and much more personal.
IN FACT I HAVE AN EVEN BETTER IDEA!! Make it so the account names are "Graal5555555555" Where the numbers following are a full telephone number! We can all talk to each other it will be so much fun!! |
Quote:
Quote:
Quote:
|
| All times are GMT +2. The time now is 06:14 PM. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.