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.

Difference between revisions of "Macro/Automato/barrel vise"

From ATITD7
Jump to navigationJump to search
(Created page with "Macro Name: '''barrel _vise'''<BR> Author: '''Not known'''<BR> =Setting Up= Open and pin the Barrel Vise. Make sure you have 100 boards, 2 Copper Strap and Wood for ...")
 
Line 3: Line 3:
  
 
=Setting Up=
 
=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.
+
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=
 
=What it does=

Revision as of 02:11, 9 November 2015

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
  • If 2 wood in fuel, it does nothing and waits for the next tick
  • If 1 Wood in fuel, check flame, if not high, add 1 wood, otherwise it does nothing
  • If no wood, it adds 2 wood

This is a reliable script, and makes a small barrel 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");