The Wiki for Tale 5 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.

HoI/Macros

From ATITD5
Jump to navigationJump to search

Kavad's Macros

Flax Setup

//Run this once when starting to flax.
//This macro is to help get the screen in the right position and zoom.
// THIS MACRO IS ONLY DESIGNED TO WORK IN WINDOWED MODE AT 1600 by 900 resolution
//1) Turn OFF flax hotkeys
//1) Remove all seeds but the flax seeds you wish to plant
//2) Pin the plant window and move it to the absolute top left corner of the screen
//3) Use Cartographer's Camera
//4) Zoom in as far as you can
//5) Run the macro
//6) Move inbetween the 2 flax beds, as close as you can to the exact middle
//7) Zoom out until there is a flax bed at each end of the screen. Try to fit them on the screen as perfectly as possible but there is some room for error.
//8) hit ALT-L to lock your screen into this position. 
//9) Rip out the two beds
//If you unlock your screen or change cameras you will have to rerun this

Delay 3 sec

//Planting
MousePos 630, 5
Delay 3 sec

MousePos 50, 40
Delay 50
LeftClick
Delay 50

Loop 9
	MousePos 1200, 460
	Delay 50
	LeftClick
	Delay 1 sec
end

MousePos 50, 40
Delay 50
LeftClick

Flax Harvest

//THIS MACRO IS ONLY DESIGNED TO WORK IN WINDOWED MODE AT 1600 by 900 resolution
// 	1)Run Flax Setup first 
//	2) Remove the beds, and run this.
Constants
	mX = 175
	mY = 360
	menuX = 0
	menuY = 0
End

Delay 3 sec

Loop 1
//Planting
	MousePos 50, 40
	Delay 50
	LeftClick
	Delay 50
	
	Loop 9
		MousePos 935, 448
		Delay 100
		LeftClick
		Delay 1 sec
		MousePos 50, 40
		Delay 100
		LeftClick
		Delay 100
	end
	
	MousePos 790, 635
	Delay 50
	LeftClick
	Delay 1 sec
	MousePos 50, 40
	Delay 50
	LeftClick
	Delay 50
	
	Loop 9
		MousePos 652, 448
		Delay 100
		LeftClick
		Delay 1 sec
		MousePos 50, 40
		Delay 100
		LeftClick
		Delay 100
	end
	
	MousePos 790, 350
	Delay 50
	LeftClick
	Delay 1 sec
	MousePos 1415, 448
	Delay 50
	LeftClick
	Delay 10.5 sec
	
	Loop 3
		Loop 10
			MousePos $mX, $mY
			Delay 200
			LeftClick
			Delay 600
			compute menuX = $mX + 20
			compute menuY = $mY - 10
			MousePos $menuX, $menuY
			Delay 200
			LeftClick
			Delay 300
			compute mX = $mX + 140
		End
		compute mX = $mX - 140
		compute mY = $mY + 185
		Delay 100
		Loop 10
			MousePos $mX, $mY
			Delay 200
			LeftClick
			Delay 600
			compute menuX = $mX + 20
			compute menuY = $mY - 10
			MousePos $menuX, $menuY
			Delay 200
			LeftClick
			Delay 300
			compute mX = $mX - 140
		End

		SetConst $mX = 175
		SetConst $mY = 360
	End
	MousePos $mX, $mY
	Delay 100
	LeftClick
	Delay 2 sec
End