Equip
Equips (wears) the item with ObjID to the specified equipment Layer on the character.
Returns True if the item was successfully equipped, False if the character is disconnected or the operation failed.
The item must be in the backpack or on the ground.
Надевает предмет с ObjID на указанный слой экипировки Layer персонажа.
Возвращает True при успешной экипировке, False, если персонаж не подключён или операция не удалась.
Предмет должен находиться в рюкзаке или на земле.
function Equip(Layer: Byte; ObjID: Cardinal): Boolean;
Parameters:
- Layer — equipment layer (see ConstantsAndEnums). Helper methods that return layer values are documented separately in Layers.
- ObjID — ID of the item to equip.
def Equip(layer: int, obj: int) -> bool: ...
begin
UnEquip(RhandLayer);
Wait(500);
Equip(RhandLayer, sword_id);
end.
from py_astealth.stealth_enums import Layer
UnEquip(Layer.RhandLayer)
Wait(500)
Equip(Layer.RhandLayer, sword_id)