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...') |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
integer '''getAccountNum'''(object PlayerObject); | 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 | + | 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 demo's Avatar account has a fixed account number of 2130706433. |
− | + | "UoDemo+, Publish 14 and upwards" Server Operators can use the following check to detect themselves (if they didn't override the account number that is): | |
− | <code><pre> | + | <code><pre>// Example Code |
if( getAccountNum( player_to_check ) == 2130706433 ) | if( getAccountNum( player_to_check ) == 2130706433 ) | ||
{ | { | ||
Line 10: | Line 10: | ||
} | } | ||
</pre></code> | </pre></code> | ||
+ | |||
+ | |||
+ | Return to the [[Command List]]. |
Latest revision as of 10:21, 25 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 demo's Avatar account has a fixed account number of 2130706433.
"UoDemo+, Publish 14 and upwards" Server Operators can use the following check to detect themselves (if they didn't override the account number that is):
// Example Code
if( getAccountNum( player_to_check ) == 2130706433 )
{
systemMessage("I am the one running UoDemo+, Publish 14.");
}
Return to the Command List.