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

This hook works NOT once, but will work until removed.

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


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


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

Example 1:

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