API:CAccount

From STNE Wiki

Revision as of 08:38, 5 May 2020 by Jacksfh (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Scripting Portal | Contents | API Reference | Index

The CAccount class has only one static and two dynamic methods.

Example:

Var myAccount As CAccount;
myAccount = CAccount.Current;
WriteLine("The current account has the ID: " & myAccount.UserID);
WriteLine("The name of the player is: " & myAccount.User.Name);

Output:

The current account has the ID: 12345
The name of the player is: John Doe

Methods

Method Description
Current Returns the current account as a class
User Returns an object of class CUser
UserID Returns the current user ID

https://game.en.stne.net/objectexplorer?p=CAccount