Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function goToCityZaap(){
- # touche H pour se rendre dans le havre sac
- if [[ "$currentPosition" != "$HAVRESAC_POS" ]]; then
- xdotool type h
- fi
- sleepRandom 2 4
- # Cliquer sur le zaap
- xdotool mousemove $(getHavresacZaapPosition)
- sleepRandom 1 2
- click
- sleepRandom 1 2
- # Cliquer sur la zone de recherche
- xdotool mousemove 1028 229
- sleepRandom 1 2
- click
- sleepRandom 1 2
- # Taper la $CITY
- xdotool type $CITY
- sleepRandom 1 2
- pressEnter
- sleepRandom 4 6
- currentPosition=$(getMapPosition)
- if [[ "$currentPosition" != ${ZAAP_POS} ]]; then
- displayPopup "Fail to go to zaap"
- exit
- fi
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement