Graal Forums  

Go Back   Graal Forums > Development Forums > Future Improvements
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 11-27-2009, 07:09 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by DustyPorViva View Post
stuff
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.
__________________
Reply With Quote
  #2  
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
  #3  
Old 11-27-2009, 07:24 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by DustyPorViva View Post
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?
Commands players use, such as ":hire account", or even staff commands?

Quote:
However, I still think the script I posted above should work, as it seems pretty easy and with minimal effort on the scripters part.
Sure, that's not the problem. The problem arises when the other player is offline.
__________________
Reply With Quote
  #4  
Old 11-27-2009, 07:34 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
Commands players use, such as ":hire account", or even staff commands?
True points. I agree, this is a mess for scripters. I hate having to do checks like this.

Quote:
Originally Posted by cbk1994 View Post
Sure, that's not the problem. The problem arises when the other player is offline.
What about them being offline? As far as I know, findplayer() does not allow access to an offline player data anyways?
Reply With Quote
  #5  
Old 11-27-2009, 07:36 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by DustyPorViva View Post
What about them being offline? As far as I know, findplayer() does not allow access to an offline player data anyways?
Yes, but bank accounts are usually stored in a database NPC, SQL, etc.
__________________
Reply With Quote
  #6  
Old 11-27-2009, 07:49 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
Yes, but bank accounts are usually stored in a database NPC, SQL, etc.
Ah, ya, I get it now. Same conditions of :hire account thing.

What a mess.
Reply With Quote
  #7  
Old 11-28-2009, 12:33 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by cbk1994 View Post
Commands players use, such as ":hire account", or even staff commands?
Chat commands should be eliminated completely. Only time they should exist is as a secondary way of triggering functions that are already available in some kind of GUI.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
  #8  
Old 11-28-2009, 01:50 AM
cbk1994 cbk1994 is offline
the fake one
cbk1994's Avatar
Join Date: Mar 2003
Location: San Francisco
Posts: 10,718
cbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond reputecbk1994 has a reputation beyond repute
Send a message via AIM to cbk1994
Quote:
Originally Posted by xXziroXx View Post
Chat commands should be eliminated completely. Only time they should exist is as a secondary way of triggering functions that are already available in some kind of GUI.
There are still plenty of cases where you may only know the community name.

__________________
Reply With Quote
  #9  
Old 11-28-2009, 03:59 AM
xXziroXx xXziroXx is offline
Malorian
xXziroXx's Avatar
Join Date: May 2004
Posts: 5,289
xXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant futurexXziroXx has a brilliant future
Quote:
Originally Posted by cbk1994 View Post
There are still plenty of cases where you may only know the community name.

True.
__________________
Follow my work on social media post-Graal:Updated august 2025.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:50 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.