TL2Item = class(TL2Object)

Class describing ingame items.

Name Result Description Code Params Examples
Count Int64 Number of items (if stack)
function Count: Int64;
There are no arguments Examples not found
Equipped Boolean Check equipped item
function Equipped: Boolean;
There are no arguments
const 
BOW_ID = 7577;
var
bow: tl2item;
begin
if inventory.user.byid(BOW_ID,bow) and not bow.equipped 
then engine.useitem(bow);
end.    // equip drac bow
ItemType Cardinal Type of item (0-weapon,1-armor,2-jewelry,5-resourses and etc.)
function ItemType: Cardinal;
There are no arguments Examples not found
Grade Cardinal Item grade
function Grade: Cardinal;
There are no arguments Examples not found
GradeName String Item grade name ('NG', 'D', 'C', 'B', 'A', 'S', 'S80', 'S84', 'R', 'R95', 'R99')
function GradeName: string;
There are no arguments Examples not found
EnchantLevel Word Item enchant level
function EnchantLevel: Word;
There are no arguments Examples not found
Slot Cardinal Inventory item number
function Slot: Cardinal;
There are no arguments Examples not found
IsNamed Boolean
function  IsNamed: Boolean;
There are no arguments Examples not found
BodyPart Cardinal
function  BodyPart: Cardinal;
There are no arguments Examples not found
AugmentID Cardinal
function  AugmentID: Cardinal;
There are no arguments Examples not found
AugmentID2 Cardinal
function  AugmentID2: Cardinal;
There are no arguments Examples not found
RemainTime Cardinal
function  RemainTime: Cardinal;
There are no arguments Examples not found
AtkElem Word
function  AtkElem: Word;
There are no arguments Examples not found
ElemPower Word
function  ElemPower: Word;
There are no arguments Examples not found
WaterPower Word
function  WaterPower: Word;
There are no arguments Examples not found
FirePower Word
function  FirePower: Word;
There are no arguments Examples not found
EartPower Word EartPower! There's no error.
function EartPower: Word;
There are no arguments Examples not found
WindPower Word
function  WindPower: Word;
There are no arguments Examples not found
HolyPower Word
function  HolyPower: Word;
There are no arguments Examples not found
UnholyPower Word
function  UnholyPower: Word;
There are no arguments Examples not found

Objects

Name Class Description
ItemList TL2List из TL2Item List of all items availabe to our char
WareHouse TL2List из TL2Item List of items in our warehouse

Methods

Name Result Description
TL2Warehouse.Items TL2Item List of items in our warehouse