View Single Post
  #7  
Old 11-27-2009, 07:15 AM
DustyPorViva DustyPorViva is offline
Will work for food. Maybe
DustyPorViva's Avatar
Join Date: Sep 2003
Location: Maryland, USA
Posts: 9,589
DustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond reputeDustyPorViva has a reputation beyond repute
Send a message via AIM to DustyPorViva Send a message via MSN to DustyPorViva
Quote:
Originally Posted by cbk1994 View Post
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.
Reply With Quote