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

AutoBuy

Applying for present buy lists, or set the hook for next incoming buy lists.

This hook works until removed, NOT once!

For hook removing need to set AutoBuy with “Quantity” param = 0.

Params:

ItemType : Type of Object. Can be a number (numerical or hex) (-1 or $FFFF for any type) OR name of type in TypesCollection (DWS only - read more about Collections)

ItemColor : Number (numerical or hex). Use $FFFF or -1 for any color.

Quantity : Number (numerical or hex). If set $FFFF or -1 - maximum amount from shop list will be used. If “Quantity” less than amount in sell list, then using “Quantity”, else using amount from buy list.

Pascal Script:

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

DWS:

procedure AutoBuyEx(ItemType : [Word, String]; ItemColor : Word; Quantity : Word)

DWS\Pascal Script Example:

AutoBuy(NS,$FFFF,400); //will buy NS reagent of any color, all amount in buy list

Python:

def AutoBuy(ItemType, ItemColor, Quantity)