The Wiki for Tale 7 is in read-only mode and is available for archival and reference purposes only. Please visit the current Tale 11 Wiki in the meantime.

If you have any issues with this Wiki, please post in #wiki-editing on Discord or contact Brad in-game.

Macro/Automato/barrel vise

From ATITD7
Revision as of 18:59, 10 November 2015 by Silden (talk | contribs)
Jump to navigationJump to search
Automato

Macro Name: barrel _vise
Author: Not known

Setting Up

Open and pin the Barrel Vise. Make sure you have 100 boards, 2 Copper Strap and Wood for fuel (around 80) in your inventory for each barrel you wish to make.

What it does

  • Makes Small Barrel by following these simple rules:
  • If "Fuel" is length 2, do nothing and wait for the next tick
  • If "Fuel" is length 1, check flame: If not high, add 1 wood, otherwise do nothing
  • If "Fuel" is empty, add 2 wood

This is a reliable script, and makes a small barrel 100% of the time.

It is possible to enter the total number you wish to make in the starting window, and it will loop to make that many barrels. If you change your mind, there is a Finish up button to finish making the barrel - again, this is reliable and works 100% of the time.

Tale 7 problems

Generates an error at the following point:

local pos = srFindImageInRange("Vise_bars.png", window_pos[0], window_pos[1], window_w, window_h);

Whilst window_pos correctly provides the top left coordinate of the Barrel Vise window, and window_w and window_h has the correct window width and height, it's not seeing the image Vise_bars.png in that area, and crashes out of the macro with an error. It is possible to replace it with the following and work correctly, although with only one Barrel Vise window:

local pos = srFindImage("Vise_bars.png");

For the repeating barrels, the window will resize, at the end of the production of the barrel, the window is not in the right place to be "refreshed". Move the window to the top of your screen after starting to make a barrel to stop this issue.