Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; Download or copy/paste this script to scraper.ahk
- ; Run it (just double klick scraper.ahk)
- ; F3 - Bottle Filling. Place mouse pointer over bottles you want to fill and press F3 to start (Esc or F8 to stop)
- ; F4 - Ammo Dismanteling. Place mouse pointer over ammo you want to dismantle and press F4 to start (Esc or F8 to stop)
- ; F5 - Auto scraping if you have crowbars in all 3 slots
- ; F6 - Auto scraping if you have weapon in slot 1 (crowbar in slot 2 and 3)
- ; F7 - Auto scraping if you have only one crowbar no matter in which slot, just regular autoclicking
- ; F8 or Esc - stops all above
- #SingleInstance
- #IfWinActive H1Z1
- #MaxThreadsPerHotkey 2
- sleepDelayScraping := 150
- crowbarSwitchingFactor := 5
- sleepDelayFill := 5500
- sleepDelayDismanteling := 2000
- toggle := 0
- ~F3::
- toggle := 1
- While toggle{
- SetMouseDelay 30
- Click right
- MouseMove, 10, 10, 3, R
- Click
- MouseMove, -10, -10, 3, R
- Sleep sleepDelayFill
- }
- Return
- ~F4::
- toggle := 1
- While toggle{
- SetMouseDelay 30
- Click right
- MouseMove, 10, 10, 3, R
- Click
- MouseMove, -10, -10, 3, R
- Sleep sleepDelayDismanteling
- }
- Return
- ~F5::
- toggle := 1
- While toggle{
- Random, rand, 1, crowbarSwitchingFactor
- if (rand = 1) {
- Send 2
- Sleep 50
- }
- SetMouseDelay 30
- Click
- Sleep sleepDelayScraping
- }
- Return
- ~F6::
- toggle := 1
- While toggle{
- Random, rand, 1, crowbarSwitchingFactor
- if (rand = 1) {
- Send 3
- Sleep 50
- }
- SetMouseDelay 30
- Click
- Sleep sleepDelayScraping
- }
- Return
- ~F7::
- toggle := 1
- While toggle{
- SetMouseDelay 30
- Click
- Sleep sleepDelayScraping
- }
- Return
- ~F8::
- toggle := 0
- Return
- ~*Esc::
- toggle := 0
- Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement