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

AutoSell

Sets up an automatic sell hook for vendor sell lists. When a sell list is received from a vendor (or if one is already present), Stealth will automatically sell items matching the specified type and color.

This hook is persistent — it remains active until explicitly removed by calling AutoSell with Quantity = 0.

To remove all buy/sell hooks at once, use ClearShopList.

Устанавливает автоматический хук для продажи вендорам. Когда от вендора приходит список продажи (или если он уже открыт), Stealth автоматически продаст предметы, соответствующие указанному типу и цвету.

Хук постоянный — он остаётся активным, пока не будет явно удалён вызовом AutoSell с Quantity = 0.

Для удаления всех хуков покупки/продажи используйте ClearShopList.

Pascal

procedure AutoSell(ItemType: Word; ItemColor: Word; Quantity: Word);

Parameters:

  • ItemType — graphic (type) of the item to sell.
  • ItemColor — color (hue) of the item. $FFFF = any color.
  • Quantity — maximum quantity to sell. 0 = remove this hook.

Python

def AutoSell(ItemType: int, ItemColor: int, Quantity: int) -> None: ...

Pascal Example

begin
  // Sell up to 40 bandages of any color
  AutoSell($0E21, $FFFF, 40);

  // Remove the bandage sell hook
  AutoSell($0E21, $FFFF, 0);
end.

Python Example

# Sell up to 40 bandages of any color
AutoSell(0x0E21, 0xFFFF, 40)

# Remove the bandage sell hook
AutoSell(0x0E21, 0xFFFF, 0)

See Also

AutoBuy, ClearShopList, GetAutoSellDelay