Name Result Description Code Params Examples
X Integer Object coordinate X
function X: integer;
There are no arguments You need to register to view the code example.
Y Integer Object coordinate Y
function Y: integer;
There are no arguments You need to register to view the code example.
Z Integer Object coordinate Z
function Z: integer;
There are no arguments You need to register to view the code example.
SpawnTime Cardinal Object appearing/spawn time moment(GetTickCount) (in ms, 1sec = 1000ms)
function SpawnTime: cardinal;
There are no arguments You need to register to view the code example.
DistTo Cardinal Get distance from object to another object/point
function DistTo(X: integer; Y: integer; Z: integer): cardinal;
function DistTo(Obj: TL2Spawn): cardinal;

X, Y, Z - point coordinates
Obj - object

You need to register to view the code example.
InRange Boolean Is object in zone around point
function InRange(X: integer; Y: integer; Z: integer; Range: cardinal; ZLimit: cardinal = 250): boolean;

X, Y, Z - point coordinates
Range - maximal distance to point
ZLimit - limitation on difference in Z coordinate (default - 250)

You need to register to view the code example.
InZone Boolean Is object in zone configured in bot
function InZone: boolean;
There are no arguments You need to register to view the code example.