-
Notifications
You must be signed in to change notification settings - Fork 113
Shop commands
Command format:
ReturnType NameSpace.name(requiredParameters, [optionalParameters=defaultValue]);
-
ReturnType - the return value of the function (void - the function returns nothing);
-
NameSpace - the scope of the function;
-
name - the name of the function;
-
requiredParameters - required parameters;
-
optionalParameters - optional parameters, the default value is indicated after the = sign
Initiate buying.
This will block user input untill completed.
If shops buy list has appeared but there are no matches for buying, this process will end and resume accepting user input.
If shops buy list doesn't appear, it awaits 'shopDelay' amount of time in ms and blocks user input.
-
shopListName - name of the shop list with goods to buy.
-
vendorName - name of vendor.
-
shopDelay - buying operation delay. Will be measured automatically if passed as 0 or as default based on amount of goods to buy and 'Shop delay for 1 stack' value.
Initiate selling.
This will block user input untill completed.
If shops sell list has appeared but there are no matches for selling, this process will end and resume accepting user input.
If shops sell list doesn't appear, it awaits 'shopDelay' amount of time in ms and blocks user input.
-
shopListName - name of the shop list with goods to sell.
-
vendorName - name of vendor.
-
shopDelay - selling operation delay. Will be measured automatically if passed as 0 or as default based on amount of goods to sell and 'Shop delay for 1 stack' value.
Await for a shop gump for a given 'delay' amount of time and blocking script execution.
Returns true if a shop gump was received during this period.
Proceed to purchase goods to replenish stocks. It only works if Graphic and Color items are specified in the list.
This will block user input untill completed.
If shops buy list has appeared but there are no matches for buying, this process will end and resume accepting user input.
If shops buy list doesn't appear, it awaits 'shopDelay' amount of time in ms and blocks user input.
-
shopListName - name of the shop list with goods to buy.
-
vendorName - name of vendor.
-
shopDelay - buying operation delay. Will be measured automatically if passed as 0 or as default based on amount of goods to buy and 'Shop delay for 1 stack' value.
Get object ShopList.
Result: An object of type ShopListObject, even if the list with the specified name does not exist.
Save shopListObject in the assistant list.
If a list with the same name already exists will overwrite it; if it does not exist, it will create a new one.
Set hook on buy list.
-
shopListName - name of the shop list with goods to buy.
-
shopDelay - buying operation delay. Will be measured automatically if passed as 0 or as default based on amount of goods to buy and 'Shop delay for 1 stack' value.
Set hook on buy restock list.
-
shopListName - name of the shop list with goods to buy.
-
shopDelay - buying operation delay. Will be measured automatically if passed as 0 or as default based on amount of goods to buy and 'Shop delay for 1 stack' value.
Set hook on sell list.
-
shopListName - name of the shop list with goods to buy.
-
shopDelay - buying operation delay. Will be measured automatically if passed as 0 or as default based on amount of goods to buy and 'Shop delay for 1 stack' value.
Checking whether a purchase or sale is currently underway.
Result: true - if the buy / sell list is being processed now, false if not.