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.
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.
def AutoSell(ItemType: int, ItemColor: int, Quantity: int) -> None: ...
begin
// Sell up to 40 bandages of any color
AutoSell($0E21, $FFFF, 40);
// Remove the bandage sell hook
AutoSell($0E21, $FFFF, 0);
end.
# Sell up to 40 bandages of any color
AutoSell(0x0E21, 0xFFFF, 40)
# Remove the bandage sell hook
AutoSell(0x0E21, 0xFFFF, 0)