FANDOM


Performs the tradeskill a specified # of times

DoTradeSkill(index, repeat)

Parameters

Arguments

index
Integer - The index of the tradeskill recipe. Index starts at 1.
repeat
Integer - The number of times to repeat the creation of the specified recipe.
If this integer exceeds the amount of items the player can craft, no error occurs and the crafting process will only halt when the player runs out of bag space or crafting materials.

Illustration

DoTradesSkill

Indexes of a tradeskill window. Crafting "Thick Armor Kit" is at index 2 and "Nightscape Headband" is at 8. Index 1, 5 and 7 are headers, but still indexed. The function does not return an error message when calling it with an index that is NOT an item (i.g. 1).

Crafting "Thick Armor Kit" is, in this example, at index 2 and "Nightscape Headband" is at 8.

Index 1, 5 and 7 are headers, but still indexed. The function does not return an error message when calling it with an index that is NOT an item. Running /script DoTradeSkill(1, 1); does do anything, while running /script DoTradeSkill(2, 1); would craft "Thick Armor Kit" once

Link to illustration on imgur: https://imgur.com/a/ax4ZAAW

Example:

/script DoTradeSkill(8, 1);

This will craft the item at slot 8 once.




/script DoTradeSkill(8, 999999);

This will craft the item at slot 8. repeating 99999 times.

You can use this as a way to say "craft all" because the game will just try to make 999999 copies but will naturally stop once you run out of resources.

Community content is available under CC-BY-SA unless otherwise noted.