Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ;V1AHK TabNation 2022 v1.0
- CurrentDay=1 ;for f3
- xgui=800
- ygui=366
- settimer, notesave, 30000
- Return
- ;===============================================
- ;driving/auto mine
- ;===============================================
- #IfWinActive, 7 Days To Die
- #HotkeyModifierTimeout 0
- f1::
- Send {w down}{LShift down}
- ;send {w 2}
- ;click 5
- Return
- +f1::
- Send {LShift up}{w up}
- Return
- #IfWinActive
- ;===============================================
- ;auto fire off
- ;===============================================
- #IfWinActive, 7 Days To Die
- f2::
- tooltip, click on fire off button. , 0, 0
- KeyWait, LButton, D
- MouseGetPos, MouseXoff, MouseYoff
- tooltip, click on first empty slot. , 0, 0
- KeyWait, LButton, D
- MouseGetPos, MouseXslot, MouseYslot
- PixelGetColor, color, %MouseXslot%, %MouseYslot%
- MouseXslot2 := MouseXslot + 2
- MouseYslot2 := MouseYslot + 2
- sleep, 20000
- loop{
- PixelSearch, Px, Py, MouseXslot, MouseYslot, MouseXslot2, MouseYslot2, %color%, 10, Fast
- If ErrorLevel = 0
- {
- Click, %MouseXoff% %MouseYoff%
- Break
- }
- sleep, 3000
- }
- msgbox, Fire off!
- Return
- #IfWinActive
- ;===============================================
- ;to do list / days till
- ;===============================================
- f3::
- fileread, notes, %A_Desktop%\ahk7d2d.txt
- T := !T
- If T
- {
- gui, Destroy
- Gui,+AlwaysOnTop
- Gui, Add, Edit, x12 y9 w40 h20 vCurrentDay +Center, %CurrentDay%
- Gui, Add, Button, x62 y9 w50 h20 gupdate, Update
- Gui, Add, Button, x122 y9 w20 h20 gaddday, +
- Gui, Add, Text, x152 y9 w200 h20 vdaystill, Till Horde = %horde% Restock = %restock%
- Gui, Add, GroupBox, x12 y39 w340 h130 , ToDo / Notes
- Gui, Add, Edit, x22 y59 w320 h100 vnotes, %notes%
- Gui, Add, Text, x82 y169 w170 h20 , f1 - Auto Run f2 - Fire Off f3 - GUI
- Gui, Show, x%xgui% y%ygui% h190 w368, Notes
- }
- Else
- {
- WinGetPos, xgui, ygui,,,A
- Gui, Submit
- }
- Return
- NumpadAdd::
- addday:
- Gui, Submit, nohide
- CurrentDay++
- goto mathtime
- update:
- Gui, Submit, nohide
- mathtime:
- GuiControl,,CurrentDay,%CurrentDay%
- ;horde
- if CurrentDay between 1 and 7
- {
- horde := 7 - CurrentDay
- goto moremath
- }
- if CurrentDay between 8 and 14
- {
- horde := 14 - CurrentDay
- goto moremath
- }
- if CurrentDay between 15 and 21
- {
- horde := 21 - CurrentDay
- goto moremath
- }
- if CurrentDay between 22 and 28
- {
- horde := 28 - CurrentDay
- goto moremath
- }
- if CurrentDay between 29 and 35
- {
- horde := 35 - CurrentDay
- goto moremath
- }
- if CurrentDay between 36 and 42
- {
- horde := 42 - CurrentDay
- goto moremath
- }
- if CurrentDay between 43 and 49
- {
- horde := 49 - CurrentDay
- goto moremath
- }
- if CurrentDay between 50 and 56
- {
- horde := 56 - CurrentDay
- goto moremath
- }
- if CurrentDay between 57 and 63
- {
- horde := 63 - CurrentDay
- goto moremath
- }
- if CurrentDay between 64 and 70
- {
- horde := 70 - CurrentDay
- goto moremath
- }
- if CurrentDay between 71 and 77
- {
- horde := 77 - CurrentDay
- goto moremath
- }
- if CurrentDay between 78 and 84
- {
- horde := 84 - CurrentDay
- goto moremath
- }
- if CurrentDay between 85 and 91
- {
- horde := 91 - CurrentDay
- goto moremath
- }
- if CurrentDay between 92 and 98
- {
- horde := 98 - CurrentDay
- goto moremath
- }
- ;trader
- moremath:
- if CurrentDay between 1 and 3
- {
- restock := 4 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 4 and 7
- {
- restock := 8 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 8 and 11
- {
- restock := 12 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 12 and 15
- {
- restock := 16 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 16 and 19
- {
- restock := 20 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 20 and 23
- {
- restock := 24 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 24 and 27
- {
- restock := 28 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 28 and 31
- {
- restock := 32 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 32 and 35
- {
- restock := 36 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 36 and 39
- {
- restock := 40 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 40 and 43
- {
- restock := 44 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 44 and 47
- {
- restock := 48 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 48 and 51
- {
- restock := 52 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 52 and 55
- {
- restock := 56 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 56 and 59
- {
- restock := 60 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 60 and 63
- {
- restock := 64 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 64 and 67
- {
- restock := 68 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 68 and 71
- {
- restock := 72 - CurrentDay
- goto updatenow
- }
- if CurrentDay between 72 and 75
- {
- restock := 76 - CurrentDay
- goto updatenow
- }
- updatenow:
- GuiControl,,daystill,Till Horde = %horde% Restock = %restock%
- Return
- notesave:
- Gui, Submit, nohide
- FileDelete, %A_Desktop%\ahk7d2d.txt
- sleep 500
- fileAppend, %notes%, %A_Desktop%\ahk7d2d.txt
- Return
- f9::reload
- q::
- Toggle := !Toggle
- If Toggle
- Click, Down
- else
- Click, Up
- return
- `:: ;water food
- settimer, live, 10000 ;700000 10 min
- Return
- live:
- send 0
- sleep 1000
- click
- sleep 1000
- send 9
- sleep 1000
- click
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement