Home API Manuals About Forum
Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Toggle Dark/Light/Auto mode Back to homepage

Equipt

Equips the first item matching type ObjType from the backpack to the specified equipment Layer.

Returns True if the item was successfully equipped, False if the character is disconnected, no item of the given type was found, or the operation failed.

Надевает первый найденный предмет с типом ObjType из рюкзака на указанный слой экипировки Layer.

Возвращает True при успешной экипировке, False, если персонаж не подключён, предмет не найден, или операция не удалась.

Pascal

function Equipt(Layer: Byte; ObjType: Word): Boolean;

Parameters:

  • Layer — equipment layer (see ConstantsAndEnums). Helper methods that return layer values are documented separately in Layers.
  • ObjType — graphic (type) of the item to equip.

Python

def Equipt(layer: int, obj_type: int) -> bool: ...

Pascal Example

begin
  UnEquip(RhandLayer);
  Wait(500);
  Equipt(RhandLayer, $13B6);  // equip a scimitar by type
end.

Python Example

from py_astealth.stealth_enums import Layer

UnEquip(Layer.RhandLayer)
Wait(500)
Equipt(Layer.RhandLayer, 0x13B6)

See Also

Equip, Unequip, ObjAtLayerEx, ConstantsAndEnums, Layers