TL2List = class(TList)

Basic class of lists

Name Result Description Code Params Examples
Items TL2Object Get object from list by index. Class default method.
function Items(Index: integer): TL2Object; default;

Index - index number (starting with 0)

Для просмотра примера необходимо зарегистрироваться
Count Integer Number of objects in the list
function Count: integer;
There are no arguments Для просмотра примера необходимо зарегистрироваться
ByName Boolean Get object from list by name
function ByName(Name: string; var Obj: TL2Object): boolean;

Name - object name
var Obj - variable for searched object

Для просмотра примера необходимо зарегистрироваться
ByID Boolean Get object from list by identificator
function ByID(ID: cardinal; var Obj: TL2Object): boolean;

ID - object identifier
var Obj - variable for searched object

Для просмотра примера необходимо зарегистрироваться
ByOID Boolean Get object from list by unique identificator
function ByOID(OID: cardinal; var Obj: TL2Object): boolean;

OID - unique object identifier
var Obj - variable for searched object

Для просмотра примера необходимо зарегистрироваться

Objects

Name Class Description
PetList TL2List из TL2Pet List of user pets and summons
SkillList TL2List из TL2Skill List of character skills
CharList TL2List из TL2Char List of players around character
NpcList TL2List из TL2Npc List of NPCs around character
DropList TL2List из TL2Drop List of drop/items laying on the ground around character
LearnList TL2List из TLearnItem List of skills available for learning via skills window. For chronicles higher then High Five.
LearnList2 TL2List из TLearnItem List of skills available for learining via NPC

Methods

Name Result Description
TInventory.User TItemList User inventory list of items
TL2Control.GetPetList TPetList List of user pets and summons of account of this controller
TInventory.Quest TItemList User quest inventory list of items
TL2Live.Buffs TBuffList Object buff list. Available for user character, his pets, his group, and additionally for his current target (on chronicles higher then High Five).
TL2Live.Abnormals TBuffList Object visual(stun, silence, barrier, etc.) effects list. Avaiable for chronicles higher then High Five.
TInventory.Pet TItemList Pet inventory list of items
TL2Control.GetSkillList TSkillList Charater skills list of account of this controller
TL2Control.GetCharList TCharList List of players around character of account of this controller
TL2Control.GetNpcList TNpcList List of NPCs around character of account of this controller
TL2Control.GetDropList TDropList List of drop/items laying on the ground around character of account of this controller