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.

Difference between revisions of "User:ENTi/Linux macros (xautomation)"

From A Tale in the Desert
Jump to navigationJump to search
Line 1: Line 1:
 
== Clay ==
 
== Clay ==
<code>
+
<nowiki>
 
#!/bin/bash                 
 
#!/bin/bash                 
 
# Sinai: 3661, 3856         
 
# Sinai: 3661, 3856         
Line 30: Line 30:
 
     # mouseover water
 
     # mouseover water
 
     xte 'mousermove +130 0' "usleep $TINY_PAUSE"
 
     xte 'mousermove +130 0' "usleep $TINY_PAUSE"
done
+
done</nowiki>
</code>
 

Revision as of 21:33, 14 December 2008

Clay

#!/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