Quote:
Originally Posted by cbk1994
findPlayer() will accept an account name; old or new, they're still accounts
findPlayerByCommunityName() will accept an account name or community name; players with old accounts have their account as their community name
Let's assume "Graal123" has a cname of "Bob"
PHP Code:
// work:
temp.pl = findPlayer("cbk1994");
temp.pl = findPlayerByCommunityName("cbk1994");
temp.pl = findPlayer("Graal123");
temp.pl = findPlayerByCommunityName("Graal123");
// don't work:
temp.pl = findPlayer("Bob");
The reason these commands are needed is not for findPlayer, but for when accounts are offline.
|
I guess that makes sense if the only thing available is their community name... but why would you ever only have their community name available? However, I still think the script I posted above should work, as it seems pretty easy and with minimal effort on the scripters part.