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:Trillian/Onion Macro

From A Tale in the Desert
Jump to navigationJump to search

this is my first ever macro I've tried, USE AT OWN RISK If you do want to try it, the following need setup before you start it

  • Turn plant crops where you stand OFF
  • Pin onion plant menu to top left corner of screen(res 1280x1024 don't know if this makes difference because needs adjusted for click points anyway)
  • stand on sand with available water icon(set icons to right of screen or adjust click point for water collection also)
  • make sure you have at least 1 EMPTY jug(its going to fill jugs at start of each loop)
  • Change loop value below if you want to run more/fewer times
  • have at least 8 onion seeds on you
  • use dbl F8 camera zoomed all the way in and lock using ALT-L
  • now heres the annoying part pehaps someone who knows about macros could help if they like- 2 annoying things:
  • 1 I don't know how to add an exit key out of the macro and for parts of it have to wait a little to get control over mouse
  • 2. every time I restart macro the places it's clicks to pick up onion menus are off a fraction and need the coords reset which in turn might need the pickupmenu and drag coords reset
  • I usually start by opening window spy and resetting these before running the macro- very occasionally it works straight off but not often - I think its to do with exact alignment of avatars stance- I always start with avatar facing north and as straight as possible

anyway ONCE all the adjustments are in it works great and can go on for ever really - refilling jugs and because no movement can carry infinite onions- I usually do about 2k-3k at a time every couple of weeks, because it is so fiddly to start; I dont recommend using it to do just a couple of hundred ;)
oh it runs on autohotkeys which is where you will find window spy also- copy paste the code below into a autohotkey script

Finally feel free to chat me but I really have not much idea about macros and this is all very mechanical just following mouse clicks from the few basic commands I've learnt recently but happy to chat anyway, DO NOT however chat me to tell me its how useless it is cause 1. I KNOW!! and 2. it wont be appreciated and gets you off the xmas card list pronto


WinWait, eGenesis Client, 
IfWinNotActive, eGenesis Client, , WinActivate, eGenesis Client, 
WinWaitActive, eGenesis Client, 

;adding loop to make whole thing run twice or more by changing loop value- perhaps add user interface once i know what the heck I'm doing so can adjust at ;start for number of runs! it works woot
;remember dblF8 and one empty jug also pin plant menu top left corner, and lock screen full zoom in alt-l, AND plant crops where u stand OFF!

Loop 50
{
;add delay for mouse movement
SetMouseDelay 80

;get water
Click 1045, 100
sleep 100
Click 645, 554

;get seed 1
Click 50, 50

;position seed 1
Click 64, 81

;build seed1
Click 33,164

;get menu1
Click 639, 483

;drag menu1
MouseClickDrag, left, 652, 452, 135, 41

;pin menu
Click 276,51

;1water seed1
Click 199, 77

;plant no2 seed
Click 50, 50

;position no2
Click 79, 89

;build seed2
Click 33,164

;get menu 2
Click 670, 484

;drag menu2
MouseClickDrag, left, 684, 452, 304, 40

;pin menu2
Click 442, 47

;water seed2
Click 367, 78

;plant no3 seed
Click 50, 50

;position no3
Click 86, 103

;build seed3
Click 33,164

;get menu 3
Click 667, 533

;drag menu3
MouseClickDrag, left, 688, 507, 480, 42

;pin menu3
Click 612, 47

;water seed3
Click 529, 81

;plant no4 seed
Click 50, 50

;position no4
Click 78, 120

;build seed4
Click 33,164

;get menu 4
Click 667, 557

;drag menu4
MouseClickDrag, left, 683, 531, 646, 44

;pin menu4
Click 784, 46

;water seed4
Click 691, 79

;plant no5 seed
Click 50, 50

;position no5
Click 63, 128

;build seed5
Click 33,164

;get menu 5
Click 642, 558

;drag menu5
MouseClickDrag, left, 653, 529, 134, 126

;pin menu5
Click 277, 132

;water seed5
Click 176, 159

;plant no6 seed
Click 50, 50

;position no6
Click 48, 119

;build seed6
Click 33,164

;get menu 6
Click 601, 545

;drag menu6
MouseClickDrag, left, 618, 517, 311, 127

;pin menu6
Click 445, 131

;water seed6
Click 355, 159

;plant no7 seed
Click 50, 50

;position no7
Click 41, 104

;build seed7
Click 33,164

;get menu 7
Click 599, 519

;drag menu7
MouseClickDrag, left, 613, 494, 485, 131

;pin menu7
Click 619, 133

;water seed7
Click 529, 162

;keep seeds 1 2 3 4 5 alive
Click 193, 78
Click 359, 79
Click 538, 79
Click 705, 81
Click 194, 161

;plant no8 seed
Click 50, 50

;position no8
Click 48, 87

;build seed8
Click 33,164

;get menu 8
Click 598, 493

;drag menu8
MouseClickDrag, left, 618, 467, 658, 129

;pin menu8
Click 790, 134

;water seed8
Click 706, 163

;water/harvest loop
Loop 5
{
sleep 14000
Click 193, 50
Click 193, 78
Click 359, 50
Click 359, 79
Click 540, 50
Click 540, 79
Click 705, 50
Click 705, 81
Click 194, 130
Click 194, 161
Click 369, 130
Click 369, 162
Click 543, 130
Click 543, 162
Click 710, 130
Click 710, 162
}
}