Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ; keybinds for turning left/right and macros
- ; /targetenemyplayer
- ; /targetfriendplayer
- rotateLeft = a
- rotateRight = d
- targetEnemyPlayer = 7
- targetFriendPlayer = 8
- ; button press-time
- minRotate = 400
- maxRotate = 900
- ; min/max time between rotating
- minWaitRotate = 300000
- maxWaitRotate = 600000
- ; min/max time between targeting
- minWaitTarget = 30000
- maxWaitTarget = 60000
- ; random delays
- maxRnd = 200
- ; tells AHK to search anywhere in the window title for some text
- SetTitleMatchMode, 2
- ; (CTRL+F2) Start bot
- #IfWinActive, World of Warcraft
- ^F2::
- if !botStarted {
- rotating = 1
- targeting = 1
- botStarted = 1
- WinGet, wowid, ID, World of Warcraft
- SetTimer, Rotating, -%rotating%
- SetTimer, Targeting, -%targeting%
- }
- return
- ;(CTRL+F4) Stop bot
- #IfWinActive, World of Warcraft
- ^F4::
- if botStarted {
- SetTimer, Rotating, Off
- SetTimer, Targeting, Off
- botStarted = 0
- }
- return
- Rotating:
- Random, rotate , %minRotate%, %maxRotate%
- Random, rotating, %minWaitRotate%, %maxWaitRotate%
- Random, direction, 0, 1
- if direction
- SendWow(rotateLeft, rotate)
- else
- SendWow(rotateRight, rotate)
- SetTimer, Rotating, -%rotating%
- return
- Targeting:
- Random, rnd1, 10, %maxRnd%
- Random, rnd2, 10, %maxRnd%
- Random, targeting, %minWaitTarget%, %maxWaitTarget%
- SendWow(targetEnemyPlayer, rnd1)
- SendWow(targetFriendPlayer, rnd2)
- SetTimer, Targeting, -%targeting%
- return
- SendWoW(key, presstime) {
- global wowid
- Random, rnd3, 10, %maxRnd%
- SetKeyDelay, %A_KeyDelay%+rnd3, %presstime%
- ControlSend,, %key%, ahk_id %wowid%
- }
- ;(ALTGR+V) @ sign, doesn't work while trying to login on some keyboard layouts
- #IfWinActive, World of Warcraft
- <^>!v::
- Send, {alt down}{numpad6}{numpad4}{alt up}
- return
- #IfWinActive
- ; (CTRL+SHIFT+;/é) Switch keyboard layout, use this if you use all combos of CTRL,ALT,SHIFT while playing
- +^é::
- +^;::
- PostMessage, 0x50, 0x02,0,, A
- return
Advertisement
Add Comment
Please, Sign In to add comment