Advertisement
tabnation

7 days to die auto run

May 16th, 2022
1,101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.29 KB | None | 0 0
  1. ;V1AHK TabNation 2022 v1.0
  2.  
  3. CurrentDay=1 ;for f3
  4. xgui=800
  5. ygui=366
  6. settimer, notesave, 30000
  7. Return
  8.  
  9. ;===============================================
  10. ;driving/auto mine
  11. ;===============================================
  12. #IfWinActive, 7 Days To Die
  13. #HotkeyModifierTimeout 0
  14.  
  15. f1::
  16. Send {w down}{LShift down}
  17. ;send {w 2}
  18. ;click 5
  19. Return
  20.  
  21. +f1::
  22. Send {LShift up}{w up}
  23. Return
  24.  
  25. #IfWinActive
  26.  
  27.  
  28. ;===============================================
  29. ;auto fire off
  30. ;===============================================
  31. #IfWinActive, 7 Days To Die
  32. f2::
  33. tooltip, click on fire off button. , 0, 0
  34. KeyWait, LButton, D
  35. MouseGetPos, MouseXoff, MouseYoff
  36.  
  37. tooltip, click on first empty slot. , 0, 0
  38. KeyWait, LButton, D
  39. MouseGetPos, MouseXslot, MouseYslot
  40. PixelGetColor, color, %MouseXslot%, %MouseYslot%
  41.  
  42. MouseXslot2 := MouseXslot + 2
  43. MouseYslot2 := MouseYslot + 2
  44.  
  45. sleep, 20000
  46.  
  47. loop{
  48. PixelSearch, Px, Py, MouseXslot, MouseYslot, MouseXslot2, MouseYslot2, %color%, 10, Fast
  49. If ErrorLevel = 0
  50. {
  51. Click, %MouseXoff% %MouseYoff%
  52. Break
  53. }
  54. sleep, 3000
  55. }
  56. msgbox, Fire off!
  57. Return
  58.  
  59. #IfWinActive
  60.  
  61.  
  62. ;===============================================
  63. ;to do list / days till
  64. ;===============================================
  65.  
  66. f3::
  67.  
  68. fileread, notes, %A_Desktop%\ahk7d2d.txt
  69.  
  70. T := !T
  71. If T
  72. {
  73. gui, Destroy
  74. Gui,+AlwaysOnTop
  75. Gui, Add, Edit, x12 y9 w40 h20 vCurrentDay +Center, %CurrentDay%
  76. Gui, Add, Button, x62 y9 w50 h20 gupdate, Update
  77. Gui, Add, Button, x122 y9 w20 h20 gaddday, +
  78. Gui, Add, Text, x152 y9 w200 h20 vdaystill, Till Horde = %horde% Restock = %restock%
  79.  
  80. Gui, Add, GroupBox, x12 y39 w340 h130 , ToDo / Notes
  81. Gui, Add, Edit, x22 y59 w320 h100 vnotes, %notes%
  82. Gui, Add, Text, x82 y169 w170 h20 , f1 - Auto Run f2 - Fire Off f3 - GUI
  83. Gui, Show, x%xgui% y%ygui% h190 w368, Notes
  84. }
  85. Else
  86. {
  87. WinGetPos, xgui, ygui,,,A
  88. Gui, Submit
  89. }
  90. Return
  91.  
  92. NumpadAdd::
  93. addday:
  94. Gui, Submit, nohide
  95. CurrentDay++
  96. goto mathtime
  97.  
  98. update:
  99. Gui, Submit, nohide
  100. mathtime:
  101. GuiControl,,CurrentDay,%CurrentDay%
  102.  
  103. ;horde
  104. if CurrentDay between 1 and 7
  105. {
  106. horde := 7 - CurrentDay
  107. goto moremath
  108. }
  109. if CurrentDay between 8 and 14
  110. {
  111. horde := 14 - CurrentDay
  112. goto moremath
  113. }
  114. if CurrentDay between 15 and 21
  115. {
  116. horde := 21 - CurrentDay
  117. goto moremath
  118. }
  119. if CurrentDay between 22 and 28
  120. {
  121. horde := 28 - CurrentDay
  122. goto moremath
  123. }
  124. if CurrentDay between 29 and 35
  125. {
  126. horde := 35 - CurrentDay
  127. goto moremath
  128. }
  129. if CurrentDay between 36 and 42
  130. {
  131. horde := 42 - CurrentDay
  132. goto moremath
  133. }
  134. if CurrentDay between 43 and 49
  135. {
  136. horde := 49 - CurrentDay
  137. goto moremath
  138. }
  139. if CurrentDay between 50 and 56
  140. {
  141. horde := 56 - CurrentDay
  142. goto moremath
  143. }
  144. if CurrentDay between 57 and 63
  145. {
  146. horde := 63 - CurrentDay
  147. goto moremath
  148. }
  149. if CurrentDay between 64 and 70
  150. {
  151. horde := 70 - CurrentDay
  152. goto moremath
  153. }
  154. if CurrentDay between 71 and 77
  155. {
  156. horde := 77 - CurrentDay
  157. goto moremath
  158. }
  159. if CurrentDay between 78 and 84
  160. {
  161. horde := 84 - CurrentDay
  162. goto moremath
  163. }
  164. if CurrentDay between 85 and 91
  165. {
  166. horde := 91 - CurrentDay
  167. goto moremath
  168. }
  169. if CurrentDay between 92 and 98
  170. {
  171. horde := 98 - CurrentDay
  172. goto moremath
  173. }
  174.  
  175.  
  176. ;trader
  177. moremath:
  178. if CurrentDay between 1 and 3
  179. {
  180. restock := 4 - CurrentDay
  181. goto updatenow
  182. }
  183. if CurrentDay between 4 and 7
  184. {
  185. restock := 8 - CurrentDay
  186. goto updatenow
  187. }
  188. if CurrentDay between 8 and 11
  189. {
  190. restock := 12 - CurrentDay
  191. goto updatenow
  192. }
  193. if CurrentDay between 12 and 15
  194. {
  195. restock := 16 - CurrentDay
  196. goto updatenow
  197. }
  198. if CurrentDay between 16 and 19
  199. {
  200. restock := 20 - CurrentDay
  201. goto updatenow
  202. }
  203. if CurrentDay between 20 and 23
  204. {
  205. restock := 24 - CurrentDay
  206. goto updatenow
  207. }
  208. if CurrentDay between 24 and 27
  209. {
  210. restock := 28 - CurrentDay
  211. goto updatenow
  212. }
  213. if CurrentDay between 28 and 31
  214. {
  215. restock := 32 - CurrentDay
  216. goto updatenow
  217. }
  218. if CurrentDay between 32 and 35
  219. {
  220. restock := 36 - CurrentDay
  221. goto updatenow
  222. }
  223. if CurrentDay between 36 and 39
  224. {
  225. restock := 40 - CurrentDay
  226. goto updatenow
  227. }
  228. if CurrentDay between 40 and 43
  229. {
  230. restock := 44 - CurrentDay
  231. goto updatenow
  232. }
  233. if CurrentDay between 44 and 47
  234. {
  235. restock := 48 - CurrentDay
  236. goto updatenow
  237. }
  238. if CurrentDay between 48 and 51
  239. {
  240. restock := 52 - CurrentDay
  241. goto updatenow
  242. }
  243. if CurrentDay between 52 and 55
  244. {
  245. restock := 56 - CurrentDay
  246. goto updatenow
  247. }
  248. if CurrentDay between 56 and 59
  249. {
  250. restock := 60 - CurrentDay
  251. goto updatenow
  252. }
  253. if CurrentDay between 60 and 63
  254. {
  255. restock := 64 - CurrentDay
  256. goto updatenow
  257. }
  258. if CurrentDay between 64 and 67
  259. {
  260. restock := 68 - CurrentDay
  261. goto updatenow
  262. }
  263. if CurrentDay between 68 and 71
  264. {
  265. restock := 72 - CurrentDay
  266. goto updatenow
  267. }
  268. if CurrentDay between 72 and 75
  269. {
  270. restock := 76 - CurrentDay
  271. goto updatenow
  272. }
  273.  
  274.  
  275. updatenow:
  276. GuiControl,,daystill,Till Horde = %horde% Restock = %restock%
  277. Return
  278.  
  279. notesave:
  280. Gui, Submit, nohide
  281. FileDelete, %A_Desktop%\ahk7d2d.txt
  282. sleep 500
  283. fileAppend, %notes%, %A_Desktop%\ahk7d2d.txt
  284. Return
  285.  
  286. f9::reload
  287.  
  288. q::
  289. Toggle := !Toggle
  290. If Toggle
  291. Click, Down
  292. else
  293. Click, Up
  294. return
  295.  
  296. `:: ;water food
  297. settimer, live, 10000 ;700000 10 min
  298. Return
  299.  
  300. live:
  301. send 0
  302. sleep 1000
  303. click
  304. sleep 1000
  305. send 9
  306. sleep 1000
  307. click
  308. Return
  309.  
  310.  
  311.  
  312.  
  313.  
  314.  
  315.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement