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

AutoBuyEx

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.

Price : Number (numerical or hex). Use $FFFF or -1 for any price.

Name : Can be exact item name (including case!), or empty string for any name

Pascal Script:

procedure AutoBuyEx(ItemType : Word; ItemColor : Word; Quantity : Word; Price : Cardinal; Name : String)

DWS:

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

DWS\Pascal Script Example:

AutoBuyEx(NS,$FFFF,400,$FFFF,''); //will buy NS reagent of any color, all amount in buy list, any price, any name

Python:

AutoBuyEx(ItemType, ItemColor, Quantity, Price, ItemName)