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.
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
procedure AutoBuyEx(ItemType : Word; ItemColor : Word; Quantity : Word; Price : Cardinal; Name : String)
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
AutoBuyEx(ItemType, ItemColor, Quantity, Price, ItemName)