The Wiki for Tale 4 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.
User:Cegaiel/Macros
Instructions
Click the "Get Code!" links, below, for a copy/paste version of the code. Copy and Paste the script into Notepad and save as "something.ahk". Yes do put the quotation marks in the file name field as this will prevent it from being named something.ahk.txt.
Make sure you have AutoHotKey installed. Then double click the .ahk file from My Computer and it will launch it and appear as an icon in system tray. Then press the correct key combination (listed in comments for script) to execute the script.
At anytime, you can right click (Authohotkey icon in system tray) and choose Reload to start script over.
Tutorial: Mouse Clicks in any resolution
Alot of people write scripts, with mouse clicks, that only works in the resolution they wrote it in. That drives me nuts! Below is a Autohotkey script to help you make mouse clicks work in any resolution. Read the comments in the script.
WinGetActiveStats, Title, Width, Height, X, Y MsgBox, The active window "%Title%" is %Width% wide`, %Height% tall` ;The above two lines will popup a box that tells you what your PROGRAM resolution is. ;No, it is not the same as Windows (ie 1024x768 in Windows is actually 1032x746 in Autohotkey). ;Copy/Paste this script and save it on your computer as something.ahk. ;Now open My Computer and maximize it. It is extremely important that it's maximized. ;Now double click on your script to launch it and record the results of the message box. ;At 1024x768, it should report 1032 width and 746 height ;Lets say you want to click "No" on a Yes/No dialogue popup on the game ;And at your current resolution (example: 1024x768) the "No" button is at 550, 431 ;Now subtract 1032 - 550 = 482 and 746 - 431 = 315 ;The 1032 is width reported by script, the 550 is the x position of where the No button is ;The 746 is the height reported by script, the 431 is the y position of where the No button is ;Your results are now an offset of 482, 315 ;Now we set new variables of your offset like this: ;ClickWidth := Width - 482 ;ClickHeight := Height - 315 ;If anyone was using the same resolution as you, then Click, 550, 431 would absolutely work. ;But if anyone is using any other resolution than you, then that will NOT work. ;DON'T make a mouse click like this (this will only work on folks with 1024x768 resolution): ;Click, 550, 431 ;DO make your mouse clicks like this (will work in any resolution): ;Click, %ClickWidth%, %ClickHeight%
Grass (Autohotkey)
Start script with Ctrl+Alt+G
Enter amount of grass to collect. Walks around in a circle and collects grass without moving too far from where you started. Great to get your Rhythmic Strength skill up. The reason this is a zip file is because it contains a .png image of the grass icon that needs to be in the same directory as the script.
Note recently IE downloads somtimes show the zip file as being corrupt. If you try to download and it shows the zip file as corrupt, then you will need to download and install Firefox to download correctly. Or, you can manually get the code and download the image, below.
Download Zip File (Script + Grass icon image)
-OR-
Get Code! -AND- Get Grass Image (Right click the link and choose Save Target As...)
Note: The .png file needs to be in same directory as the script.
Wheat (Beta) (Autohotkey)
Instructions:
Zoom in about half way (in F5 or F6) and lock your screen (Alt + L) to prevent your screen from moving around.
Start script with Ctrl+Alt+W
The script has GUI menus to walk you through the setup process, its very easy.
Basically here is how I do it. I first minimize my chat (so I dont forget and mess up the first watering). I plant my wheat beds next (before starting the script). Once planted, I quickly move and stand in the center of all the beds. Then quickly start the script and middle click your water icon. Then middle click all your wheat beds, press OK, drag the status bar so it doesn't cover any over your wheat beds, then sit back and enjoy the show. Don't worry about what you need to click, there is a GUI dialogue that will walk you through.
Supports unlimited beds, but I suggest you start out small (4-6 beds) until you get used to the script. It will hover each bed and send the H and W hotkey over each bed, back to back. Then it will wait 4 seconds and repeat the cycle.
Note you must have the chat minimized or else you will see HW appear in chat bar (will not send) repeatedly.
This macro you do NOT pin up any menus, it simply remembers where all your beds are and points to them and sends the H and W key back to back. By sending the H and W key at same time, this will ensure that it will [H]arvest the wheat (if its time) or [W]ater
Make sure you are standing along water, where you will be planting wheat. Make sure you have at least one EMPTY jug (Esc, Skills, Empty Jugs), before you start the script, so that the water icon is showing on top left corner.
When you start the script it will tell you to point and middle click your water icon. Then it will tell you to middle click (click your mouse scroll wheel) all of your wheat beds. Enter as many as you like. Then once you click OK, it will go to work. Once you start the script, you have 7 seconds (before script begins) to move the status bar out of the way of your wheat beds.
When you first activate the script, it will wait 3 mins and then click the water icon. Once it clicks the water icon, then it will wait another 3 mins to gather more water and so on. Most wheat beds need watering every 32-34 seconds. So every 3 minutes is more than enough for the water icon to appear. I usually keep about 50 water jugs on me.
Bonus Tactic: if you have a Water Mine, plant your wheat next to it. If a gem pops, then hit Ctrl+P to pause the macro and get your gem. Then hit Ctrl+P again to resume where you left off at.
Tested on 1024x768 resolution but I am almost certain it will run at any resolution.
By the way, I took a shortcut and revamped an old mining script, so you will see alot of references to mining in the script, ^_^
Plane Boards (Autohotkey)
Instructions: Zoom in about half way (in F5 or F6) and lock your screen (Alt + L) to prevent your screen from moving around.
Start script with Ctrl+Alt+W
It will walk you through the setup process with GUI Menus.
If you use multiple carpentry benches to make boards, then this is for you! It will now ask how many boards you want plane. Next a popup will tell you to middle click (click mouse wheel) all your carpentry benches. When done click OK. It will wait 7 seconds before the script begins. During this time, drag the status bar out of the way so it doesn't cover up any of the benches. Then it will start hovering all your benches and clicking the P key (equivalent to [P]lane Board), faster than you can. The more benches you have the faster you will plane a full inventory of wood.
Important: You MUST minimize chat for this to work correctly. If you dont, you will see the letter P appear in your chat bar over and over. It wont send it to chat if you forget, but you will notice it.
Fishing (Autohotkey)
Start script with Ctrl+Alt+F
It will walk you through with GUI menus, but heres what it will ask:
1) Enter how many times you want to cast (click the fishing icon)
2) It will ask you to hover and middle click your fishing icon
3) It will now begin fishing and pause 15 seconds between casts
Once it reaches the the number of casts you entered, it will stop.
I find 15 seconds to work perfectly on my machine. If you find it is clicking to fast (message in Main Chat: You are already fishing), then try adding 1s by changing Sleep 15000 to Sleep 16000 in the script.
What makes this better than some other fishing scripts? The fishing icon can change positions depending on where you are standing (ie mud, sand, etc). This script will ask you where the icon is...
No configuration required, will work at any resolution, user friendly with GUI menus.