Guest User

Untitled

a guest
Dec 10th, 2011
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; keybinds for turning left/right and macros
  2. ; /targetenemyplayer
  3. ; /targetfriendplayer
  4. rotateLeft = a
  5. rotateRight = d
  6. targetEnemyPlayer = 7
  7. targetFriendPlayer = 8
  8.  
  9. ; button press-time
  10. minRotate = 400
  11. maxRotate = 900
  12.  
  13. ; min/max time between rotating
  14. minWaitRotate = 300000
  15. maxWaitRotate = 600000
  16.  
  17. ; min/max time between targeting
  18. minWaitTarget = 30000
  19. maxWaitTarget = 60000
  20.  
  21. ; random delays
  22. maxRnd = 200
  23.  
  24. ; tells AHK to search anywhere in the window title for some text
  25. SetTitleMatchMode, 2
  26.  
  27. ; (CTRL+F2) Start bot
  28. #IfWinActive, World of Warcraft
  29. ^F2::
  30. if !botStarted {
  31.     rotating = 1
  32.     targeting = 1
  33.     botStarted = 1
  34.     WinGet, wowid, ID, World of Warcraft
  35.     SetTimer, Rotating, -%rotating%
  36.     SetTimer, Targeting, -%targeting%
  37. }
  38. return
  39.  
  40. ;(CTRL+F4) Stop bot
  41. #IfWinActive, World of Warcraft
  42. ^F4::
  43. if botStarted {
  44.     SetTimer, Rotating, Off
  45.     SetTimer, Targeting, Off
  46.     botStarted = 0
  47. }
  48. return
  49.  
  50. Rotating:
  51. Random, rotate , %minRotate%, %maxRotate%
  52. Random, rotating, %minWaitRotate%, %maxWaitRotate%
  53. Random, direction, 0, 1
  54. if direction
  55.     SendWow(rotateLeft, rotate)
  56. else
  57.     SendWow(rotateRight, rotate)
  58. SetTimer, Rotating, -%rotating%
  59. return
  60.  
  61. Targeting:
  62. Random, rnd1, 10, %maxRnd%
  63. Random, rnd2, 10, %maxRnd%
  64. Random, targeting, %minWaitTarget%, %maxWaitTarget%
  65. SendWow(targetEnemyPlayer, rnd1)
  66. SendWow(targetFriendPlayer, rnd2)
  67. SetTimer, Targeting, -%targeting%
  68. return
  69.  
  70. SendWoW(key, presstime) {
  71.     global wowid
  72.     Random, rnd3, 10, %maxRnd%
  73.     SetKeyDelay, %A_KeyDelay%+rnd3, %presstime%
  74.     ControlSend,, %key%, ahk_id %wowid%
  75. }
  76.  
  77.  
  78. ;(ALTGR+V) @ sign, doesn't work while trying to login on some keyboard layouts
  79. #IfWinActive, World of Warcraft
  80. <^>!v::
  81. Send, {alt down}{numpad6}{numpad4}{alt up}
  82. return
  83. #IfWinActive
  84.  
  85. ; (CTRL+SHIFT+;/é) Switch keyboard layout, use this if you use all combos of CTRL,ALT,SHIFT while playing
  86. +^é::
  87. +^;::
  88. PostMessage, 0x50, 0x02,0,, A
  89. return
  90.  
  91.  
Advertisement
Add Comment
Please, Sign In to add comment