Advertisement
tabnation

val 4

Mar 13th, 2021
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1.  
  2. gui,destroy
  3. Gui, Add, Button, x12 y9 w100 h30 gCookNow, Cook
  4. Gui, Add, Button, x122 y9 w100 h30 gCoalNow, Coal
  5. Gui, Add, Button, x72 y49 w100 h30 gReload, Stop
  6. Gui, Add, Text, x12 y89 w210 h30 , In game press tab and hover mouse over coal spot and press f1 to set click spot
  7. Gui, Show, x815 y377 h134 w235, Farm
  8. Return
  9.  
  10. GuiClose:
  11. ExitApp
  12.  
  13. ;auto cook food
  14. CookNow:
  15. WinActivate, Valheim
  16. loop{
  17. send e
  18. sleep 2000
  19. }
  20.  
  21.  
  22. ;auto farm coal
  23. CoalNow:
  24. WinActivate, Valheim
  25. count=0
  26. loop{
  27. send e
  28. sleep 15000
  29. count++
  30. if count = 2
  31. {
  32. send {a down}
  33. sleep 1000
  34. send {a up}
  35. send e
  36. send {ctrl down}
  37. mousemove, xpos, ypos
  38. click
  39. sleep 250
  40. send {ctrl up}
  41. send {esc}
  42. send {d down}
  43. sleep 1000
  44. send {d up}
  45. count=0
  46. }
  47. }
  48. Return
  49.  
  50. f1::
  51. MouseGetPos, xpos, ypos
  52. Return
  53.  
  54. f2::
  55. Reload:
  56. Reload
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement