Difference between revisions of "GetAccountNum"
From UODemo Wiki
(Created page with 'integer '''getAccountNum'''(object PlayerObject); getAccountNum returns the account number of a player object (character). If no valid player object was provided then the functi...') |
m (Protected "GetAccountNum" ([edit=sysop] (indefinite) [move=sysop] (indefinite))) |
(No difference)
|
Revision as of 22:08, 24 January 2010
integer getAccountNum(object PlayerObject);
getAccountNum returns the account number of a player object (character). If no valid player object was provided then the function will return 0. Normally, the Avatar character has a fixed account number of 2130706433.
For "UoDemo+, Publish 14 and upwards" Server Operators you can use the following pseudo-check to detect yourself (if you didn't override the account number that is):
if( getAccountNum( player_to_check ) == 2130706433 )
{
systemMessage("I am the one running UoDemo+, Publish 14.");
}