Advertisement
Guest User

BCWO Afk Farm Script

a guest
Jan 23rd, 2025
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Requires AutoHotkey v2.0
  2.  
  3. ; BCWO Afk Farm Script
  4. ; Made By McScrottie
  5.  
  6. ; Global variables to track script state
  7. isRunning := false
  8.  
  9. ; Create GUI
  10. MyGui := Gui()
  11. MyGui.BackColor := "EEAA99"
  12. MyGui.Opt("+AlwaysOnTop -Caption +ToolWindow")  ; Make overlay always on top and borderless
  13.  
  14. ; Create text for overlay
  15. statusText := MyGui.Add("Text", "x10 y10 w200", "BCWO Afk Farm`nMade By McScrottie`nJ: Stop/Start`nK: Terminate`nStatus: Stopped")
  16. statusText.SetFont("s10")
  17.  
  18. ; Position GUI at middle-right of screen
  19. MyGui.Show("x" . (A_ScreenWidth - 220) . " y" . (A_ScreenHeight // 2 - 100) . " w210 h150")
  20.  
  21. ; Hotkey to toggle script on/off
  22. J::
  23. {
  24.     isRunning := !isRunning
  25.     if (isRunning) {
  26.         statusText.Value := "BCWO Afk Farm`nMade By McScrottie`nJ: Stop/Start`nK: Terminate`nStatus: Running"
  27.         SetTimer(PressKeys1234, 5000)
  28.         SetTimer(Press5C, 136000)
  29.         SetTimer(PressF, 30000)
  30.         SetTimer(RandomMovement, 1000)
  31.     }
  32.     else {
  33.         statusText.Value := "BCWO Afk Farm`nMade By McScrottie`nJ: Stop/Start`nK: Terminate`nStatus: Stopped"
  34.         SetTimer(PressKeys1234, 0)
  35.         SetTimer(Press5C, 0)
  36.         SetTimer(PressF, 0)
  37.         SetTimer(RandomMovement, 0)
  38.     }
  39. }
  40.  
  41. ; Hotkey to terminate script
  42. K::ExitApp()
  43.  
  44. ; Functions for key sequences
  45. PressKeys1234() {
  46.     if (!isRunning)
  47.         return
  48.    
  49.     Send("1")
  50.     Click()
  51.     Sleep(100)
  52.     Send("2")
  53.     Click()
  54.     Sleep(100)
  55.     Send("3")
  56.     Click()
  57.     Sleep(100)
  58.     Send("4")
  59.     Click()
  60. }
  61.  
  62. Press5C() {
  63.     if (!isRunning)
  64.         return
  65.    
  66.     Send("5")
  67.     Sleep(50)
  68.     Send("c")
  69. }
  70.  
  71. PressF() {
  72.     if (!isRunning)
  73.         return
  74.    
  75.     Send("f")
  76. }
  77.  
  78. RandomMovement() {
  79.     if (!isRunning)
  80.         return
  81.    
  82.     movements := ["w", "a", "s", "d"]
  83.     randomMove := movements[Random(1, movements.Length)]
  84.     Send(randomMove)
  85. }
Tags: AHKv2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement