TL2Npc = class(TL2Live)

Class describing NPCs

Name Result Description Code Params Examples
IsPet Boolean Returns true if object is pet/summon/etc.
function IsPet: Boolean;
There are no arguments
// тут будет пример
PetType Cardinal Returns type (pet or summon)
function PetType: Cardinal;
There are no arguments
// тут будет пример

Objects

Name Class Description
NpcList TL2List из TL2Npc List of all visible NPCs