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

Undress

Removes all equipped items from the character to the backpack.

Iterates through all wearable layers (right hand, left hand, shoes, pants, shirt, hat, gloves, ring, neck, waist, torso, bracelet, outer torso, earrings, arms, cloak, robe, skirt, legs) and moves each equipped item to the backpack with a DressSpeed delay between operations.

On client versions 7.7.4+ (client version integer ≥ 7007400), uses the built-in UnequipItemsSetMacro packet instead of iterating layers manually.

Returns True if all items were successfully unequipped. Returns False if the character is disconnected or any item transfer failed.

Снимает все экипированные предметы персонажа в рюкзак.

Перебирает все слои экипировки (правая рука, левая рука, обувь, штаны, рубашка, шлем, перчатки, кольцо, шея, пояс, торс, браслет, внешний торс, серьги, руки, плащ, мантия, юбка, ноги) и перемещает каждый экипированный предмет в рюкзак с задержкой DressSpeed между операциями.

На клиентах версии 7.7.4+ (целочисленная версия ≥ 7007400) используется встроенный пакет UnequipItemsSetMacro вместо ручного перебора слоёв.

Возвращает True, если все предметы успешно сняты. Возвращает False, если персонаж не подключён или перенос какого-либо предмета не удался.

Pascal

function Undress: Boolean;

Python

def Undress() -> bool: ...

Pascal Example

begin
  DressSpeed := 650;
  if Undress then
    AddToSystemJournal('All items removed')
  else
    AddToSystemJournal('Undress failed');
end.

Python Example

SetDressSpeed(650)
if Undress():
    AddToSystemJournal('All items removed')
else:
    AddToSystemJournal('Undress failed')

See Also

Disarm, EquipDressSet, SetDress, DressSpeed, UnEquip, Layers