General stats

Name Result Description Code Params Examples
Race Cardinal (TL2Race) Player race
function Race: cardinal;
There are no arguments You need to register to view the code example.
Sex Cardinal Player sex (0 - male, 1 - female)
function Sex: cardinal;
There are no arguments You need to register to view the code example.
ClassID Cardinal Player class identificator. Classes list.
function ClassID: cardinal;
There are no arguments You need to register to view the code example.
MainClass Cardinal Player main class identificator. Classes list.
function MainClass: cardinal;
There are no arguments You need to register to view the code example.
CP Cardinal Player CP number in percentages
function CP: cardinal;
There are no arguments You need to register to view the code example.
CurCP Cardinal Player CP number in units
function CurCP: cardinal;
There are no arguments You need to register to view the code example.
MaxCP Cardinal Player maximal CP number in units
function MaxCP: cardinal;
There are no arguments You need to register to view the code example.
Hero Boolean Is player hero
function Hero: boolean;
There are no arguments You need to register to view the code example.
Noble Boolean Is player noble
function Noble: boolean;
There are no arguments You need to register to view the code example.

Additional stats

Name Result Description Code Params Examples
Recom Cardinal Player recommendations number
function Recom: cardinal;
There are no arguments You need to register to view the code example.
Premium Boolean Is player has active premium account
function Premium: boolean;
There are no arguments You need to register to view the code example.
CubicCount Cardinal Players summoned cubics
function CubicCount: cardinal;
There are no arguments You need to register to view the code example.
LoadCrest Pointer Get player clan icon. Need to call only via MainProc.
function LoadCrest(Buffer: pointer): pointer;

Buffer - pointer to buffer, where icon will be written

You need to register to view the code example.

Conditions

Name Result Description Code Params Examples
StoreType Byte (TStoreType) Player active store type
function StoreType: byte;
There are no arguments You need to register to view the code example.
MountType Byte Type of mount pet using by player (1 - dragon, 2 - wyvern, 3 - wolf)
function MountType: byte;
There are no arguments You need to register to view the code example.

Objects

Имя Класс Description
CharList TL2List из TL2Char List of players around character

Methods

Имя Результат Description
TParty.Leader TL2Char Group leader