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:ENTi/Linux macros (xautomation)
From A Tale in the Desert
Jump to navigationJump to searchClay
- !/bin/bash
 
- Sinai: 3661, 3856
 
- Preconditions: 2xF8 View, empty jug, clay/dirt/water available at starting position, no slate
 
TINY_PAUSE=300000                                                                              
WALKING_TIME=800000                                                                            
WATER_PAUSE=300000                                                                             
sleep 5
while true; do
   # take water
   xte 'mouseclick 1' "usleep $WATER_PAUSE" 'key Return' 'sleep 4'
   # mouse over clay
   xte 'mousermove -130 0' "usleep $TINY_PAUSE"
   # take clay
   xte 'mouseclick 1' "usleep $TINY_PAUSE"
   # mouseover water
   xte 'mousermove +75 0' "usleep $TINY_PAUSE"
   # take water
   xte 'mouseclick 1' "usleep $WATER_PAUSE" 'key Return' 'sleep 4'
   # move up to next clay patch
   xte 'keydown Up' "usleep $WALKING_TIME" 'keyup Up'
   # mouseover clay
   xte 'mousermove -75 0' "usleep $TINY_PAUSE"
   # take clay
   xte 'mouseclick 1' "usleep $TINY_PAUSE"
   # move to beginning
   xte 'keydown Down' "usleep $WALKING_TIME" 'keyup Down'
   # mouseover water
   xte 'mousermove +130 0' "usleep $TINY_PAUSE"
done