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 ...")
 
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
{{automato}}
 
Macro Name: '''barrel _vise'''<BR>
 
Macro Name: '''barrel _vise'''<BR>
 
Author: '''Not known'''<BR>
 
Author: '''Not known'''<BR>
  
 
=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=
* Makes Small Barrel
+
* Makes Small Barrel by following these simple rules:
* If 2 wood in fuel, it does nothing and waits for the next tick
+
:* If "Fuel" is length 2, do nothing and wait for the next tick
* If 1 Wood in fuel, check flame, if not high, add 1 wood, otherwise it does nothing
+
:* If "Fuel" is length 1, check flame: If not high, add 1 wood, otherwise do nothing
* If no wood, it adds 2 wood
+
:* If "Fuel" is empty, add 2 wood
  
 
This is a reliable script, and makes a small barrel 100% of the time.
 
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 =
 
= Tale 7 problems =
Generates an error at the following point:
+
Make one slight change to the macro work in tale 7:
: ''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:
+
Line 130: add "- 20" after window_pos[0], to give you:
: ''local pos = srFindImage("Vise_bars.png");''
+
<CODE>local pos = srFindImageInRange("Vise_bars.png", window_pos[0] ''' - 20''', window_pos[1], window_w, window_h);</CODE>

Latest revision as of 15:40, 7 December 2015

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

Make one slight change to the macro work in tale 7:

Line 130: add "- 20" after window_pos[0], to give you: local pos = srFindImageInRange("Vise_bars.png", window_pos[0] - 20, window_pos[1], window_w, window_h);