Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. function goToCityZaap(){
  2. # touche H pour se rendre dans le havre sac
  3. if [[ "$currentPosition" != "$HAVRESAC_POS" ]]; then
  4. xdotool type h
  5. fi
  6. sleepRandom 2 4
  7. # Cliquer sur le zaap
  8. xdotool mousemove $(getHavresacZaapPosition)
  9. sleepRandom 1 2
  10. click
  11. sleepRandom 1 2
  12.  
  13. # Cliquer sur la zone de recherche
  14. xdotool mousemove 1028 229
  15. sleepRandom 1 2
  16. click
  17. sleepRandom 1 2
  18.  
  19. # Taper la $CITY
  20. xdotool type $CITY
  21. sleepRandom 1 2
  22. pressEnter
  23. sleepRandom 4 6
  24.  
  25. currentPosition=$(getMapPosition)
  26. if [[ "$currentPosition" != ${ZAAP_POS} ]]; then
  27. displayPopup "Fail to go to zaap"
  28. exit
  29. fi
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement