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.
User:Makazi/Macro
Caution
Just as a warning, I'm not an experienced scripter. Scripts may contain errors, use with caution! And on your own risk. However, I haven't had any problems (that I know of) using the scripts I've made available on this page. Good luck!
Flax Assist
I've made a small script that assists in flax growing. What it does is save you mouseclicks for Weed/Watering, and Harvesting. You only have to click the flax bed to get the menu up, then it clicks the menu item you have chosen it to click (selectable when script is started, toggle with Shift or Alt).
I grow 60 flax beds at a time (did it without the script too, just alot of clicking), it takes some practice but when you get the technique down it is no stress.
The script is based on Jimbly's Macros for Veggietales, with multi_click.lua as basis. It is tweaked to work on my system, you might need or want to change the per_click_delay. I am not sure if the pictures is included in Veggietales, or if I got them from the other Flax scripts (mentioned on Jimbly's Macros page).
-- -- -- loadfile("luaScripts/screen_reader_common.inc")(); loadfile("luaScripts/ui_utils.inc")(); per_click_delay = 90; image_name = "WeedAndWater.png"; function doit() askForWindow("This script will look for Flax bed windows and press the option shown. When you start, it will search for Weed and Water, then you can switch to Harvest. Instructions of how to switch will be shown."); -- Find buttons and click them! while 1 do if (lsShiftHeld()) then image_name = "Harvest.png"; end if (lsAltHeld()) then image_name = "WeedAndWater.png"; end srReadScreen(); xyWindowSize = srGetWindowSize(); local buttons = findAllImages(image_name); if #buttons == 0 then statusScreen("Searching for: " .. "\n" .. image_name .. "\n" .. "Press Shift for Harvest." .. "\n" .. "Press Alt for Weed and Water"); lsSleep(per_click_delay); else statusScreen("Clicking " .. #buttons .. "button(s)..."); for i=1, #buttons do srClickMouseNoMove(buttons[i][0]+5, buttons[i][1]+3, right_click); lsSleep(per_click_delay); end end end end