xegaJ

[Thieving] Blackjacking

Oct 8th, 2016
2,707
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; Contact me for any questions on Reddit: /u/xegaJ
  2. ; This script is used to blackjack NPC's in Pollnivneach.
  3. ; Uses q, w, e & r to knockout and a, s, d & f to pickpocket. These keys can obviously be changed to suit your preferences.
  4. ; Make sure your NPC 'attack' options are hidden.
  5.  
  6. #If WinActive("RuneLoader") or WinActive("Old School RuneScape") or WinActive("OSBuddy") or WinActive("OSBuddy Pro") ; ; This piece of code makes sure that the AHK script only works in a specific program/game window, this comes in handy if you don't feel like suspending/pausing the AHK script whenever you want to use the keys in another window such as Chrome/Netflix. Change it to "OSBuddy"/"OSBuddy Pro"/"RuneLoader" if you're using any 3rd party client.
  7.  
  8. q:: Click right
  9. return
  10.  
  11. w:: Mousemove 0, 72, 1, R
  12. return
  13.  
  14. e:: Click
  15. return
  16.  
  17. r:: Mousemove 0, -72, 1, R
  18. return
  19.  
  20. a:: Click right
  21. return
  22.  
  23. s:: Mousemove 0, 36, 1, R
  24. return
  25.  
  26. d:: Click
  27. return
  28.  
  29. f:: Mousemove 0, -36, 1, R
  30. return
  31.  
  32. `:: ; Pressing ` (~/console key) turns the AHK icon in your system tray to red to let you know that's it's suspended.
  33.     Suspend, Permit
  34.     if not A_IsSuspended
  35.     {
  36.         Menu, Tray, Icon, %A_AhkPath%, 5, 1
  37.         Suspend, On
  38.     }
  39.     else
  40.     {
  41.         Menu, Tray, Icon, %A_AhkPath%, 1, 0
  42.         Suspend, Off
  43.     }
  44.     return
Advertisement
Add Comment
Please, Sign In to add comment