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
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
== Clay ==
+
These macros are bash scripts depending on [[http://hoopajoo.net/projects/xautomation.html xautomation]].
#!/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
+
[http://www.divzero.at/nt/atitd/auto_clay.sh Clay]
while true; do
+
 
    # take water
+
[http://www.divzero.at/nt/atitd/auto_grass.sh Grass]
    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
 

Latest revision as of 16:21, 19 December 2008

These macros are bash scripts depending on [xautomation].

Clay

Grass