Advertisement
Guthlx

Ultimate 2007scape / OSRS AHK script

May 2nd, 2016
4,007
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  2. ;As of 26 January 2017 AHK is no longer allowed
  3. ;If you get banned for this you have only yourself to blame
  4. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  5.  
  6. ;Ignore this section
  7. #NoEnv
  8.  
  9. ;Removes the AHK icon from your taskbar, just remove these two lines if you really want the icon
  10. #NoTrayIcon
  11.  
  12. #SingleInstance Force
  13. #Persistent
  14. SetBatchLines -1
  15. SetTitleMatchMode, 2
  16. #If or WinActive("OSBuddy")
  17. ; Ok, continue reading
  18.  
  19. ;==============================================================
  20. ;=============== Created by Dovry ===============
  21. ;==============================================================
  22.  
  23. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  24. ;                       Table of contents (ctrl+f to find what you're looking for)
  25. ;   1. Hotkeys
  26. ;   2. Client / Script
  27. ;   3. Dropping / Runecrafting
  28. ;       3.1 - Inventory jumping
  29. ;   4. Blackjacking
  30. ;   5. Fletching
  31. ;   6. Email/Password + Alt account
  32. ;   7. Construction - Tables
  33. ;       7.1 - Larders
  34. ;   8. Magic + Smithing - Superheat
  35. ;   9. Future plans
  36.  
  37. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  38.  
  39. ;You may change the hotkey combinations to whatever you want
  40. ;Just make sure that no keys overlap
  41.  
  42. ;   1. Hotkeys
  43.  
  44. ;   //  ! = Alt     //
  45. ;   //  ^ = Ctrl    //
  46. ;   //  + = Shift   //
  47. ;   //  # = Win key //
  48.  
  49. ;###############################################################################
  50. ;###############################################################################
  51. ;###############################################################################
  52.  
  53. ;   2. Client / Script
  54.  
  55. ;Pauses the script // Shift+Escape
  56. +Esc::
  57.   Suspend, Toggle
  58.   return
  59.  
  60. ;Exits the script // Ctrl+Escape
  61. ^Esc::
  62.   ExitApp
  63.  
  64. ; Minimizes OSBuddy // Ctrl+F1
  65. ^F1:: WinMinimize, OSBuddy
  66.  
  67. ; Resizes the client to whatever resolution you wish // Ctrl+F12
  68. ^F12::ResizeWin(1366,768)
  69. ;   change this ^^^^^^^^^^^^
  70. ResizeWin(Width = 0,Height = 0)
  71. {
  72.   WinGetPos,X,Y,W,H,A
  73.   If %Width% = 0
  74.     Width := W
  75.   If %Height% = 0
  76.     Height := H
  77.   WinMove,A,,%X%,%Y%,%Width%,%Height%
  78. }
  79.  
  80. ;###############################################################################
  81. ;###############################################################################
  82. ;###############################################################################
  83.  
  84. ;   3. Dropping / Runecrafting / Withdraw 14 (herb, craft, whatever)
  85. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  86. ;   !!! disable Settings > Widgets > Price Guide > 'shift-click Lookup' in OSBuddy
  87. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  88.  
  89. ; Shift+1 2 3 drops items with 'drop' as 3rd option and Shift+4 sends cursor from last item to first in next r
  90. ;It also empties RC pouches, Edge tele on glory and duel arena on duel rings
  91. ; Shift+3 2 3 2 Fills RC pouches
  92. +1::Click Right
  93. return
  94. +2::Mousemove,0,37,0,
  95. return
  96. +3::Click
  97. return
  98. +4::MouseMove, 0,-37, 0, R
  99. return
  100.  
  101. ; Shift+qwe deposits runes, withdraws essence
  102. +q::Click Right
  103. return
  104. +w::Mousemove,0,74,0,R
  105. return
  106. +e::Click
  107. return
  108. +r::MouseMove,0,-74,0,R
  109. return
  110.  
  111. ;###############################################################################
  112. ;###############################################################################
  113. ;###############################################################################
  114.  
  115. ;   3.1 - Inventory jumping
  116.  
  117. ;Shift+Space jumps from bottom item to top item in next row
  118. +Space:: MouseMove, 42, -222, 0, R
  119.  
  120. ;Ctrl+Space jumps from last item in last row to first item in first row
  121. ^Space:: MouseMove, -122, -224, 0, R
  122.  
  123. ;###############################################################################
  124. ;###############################################################################
  125. ;###############################################################################
  126.  
  127. ;   4. Blackjacking
  128.  
  129. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  130. ;You need to lure the Bandits manually or use Shift+QWE
  131. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  132.  
  133. +a::Click Right
  134. return
  135. +s::Mousemove,0,92,0,
  136. return
  137. +d::Click
  138. return
  139. +f::MouseMove,0,-92,0,R
  140. return
  141.  
  142. +z::Click Right
  143. return
  144. +x::Mousemove,0,55,0,R
  145. return
  146. +c::Click
  147. return
  148. +v::MouseMove,0,-55,0,R
  149. return
  150.  
  151. ;###############################################################################
  152. ;###############################################################################
  153. ;###############################################################################
  154.  
  155. ;   5. Fletching ((numpad has to be on) num 123)
  156.  
  157. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  158. ; How this works: Spam 123 123 123 123, this gives the best xp since
  159. ; using feather > bolt > bolt > feather back and forth is faster than
  160. ; feather > bolt | feather > bolt
  161. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  162.  
  163. ; If your keyboard doesn't have a numpad you can swap
  164. ; the hotkeys for whatever you want.
  165. ; just try to use a ctrl, alt, win or shift key with it
  166. ; to prevent MouseMove when typing
  167. Numpad1::Click
  168. return
  169. Numpad2::
  170. if left != 1
  171. {
  172.   MouseMove, 40, 0, 0, R
  173.   left := 1
  174.   return
  175. }
  176. else
  177. {
  178.   MouseMove, -40, 0, 0, R
  179.   left := 0
  180.   return
  181. }
  182. return
  183. Numpad3::Click
  184. return
  185.  
  186. ;###############################################################################
  187. ;###############################################################################
  188. ;###############################################################################
  189.  
  190. ;   6. Email/Password + Login
  191.  
  192. ; You can add as many accounts as you want, just copy/paste and modify the hotkeys to not overlap
  193. ; Try not to use any key combinations you could accidentally press, you wouldn't want to
  194. ; broadcast your e-mail address in-game
  195.  
  196. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  197. ; DO NOT use a variation of this command in-game, as this could flag the autotyper antibot.
  198. ;@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
  199.  
  200. ; Ctrl+Alt+Hotkey
  201. ^!q::
  202. Sendinput User{Tab}
  203. return
  204. ^!w::
  205. Sendinput Pass
  206. return
  207. ^!a::
  208. Sendinput User{Tab}
  209. return
  210. ^!s::
  211. Sendinput Pass
  212. return
  213.  
  214. ;###############################################################################
  215. ;###############################################################################
  216. ;###############################################################################
  217.  
  218. ;   7 Construction - Tables
  219.  
  220. ;shift u, i, o ,p (I use my left thumb on RightShift and four other fingers on UIOP
  221. ;remap if you have small hands
  222.  
  223. +u:: Send 1
  224. return
  225. +i::Click Right
  226. return
  227. +o::MouseMove, 0, 55, 0, R
  228. return
  229. +p::click
  230. return
  231.  
  232. ;   7.1 Construction - Larders
  233.  
  234. ;Numpad 4, 5, 6, 8
  235.  
  236. Numpad4::Rbutton
  237. return
  238. Numpad5::MouseMove 0, 50, 0, R
  239. return
  240. Numpad6::click
  241. return
  242. Numpad8::MouseMove 0, 70, 0, R
  243. return
  244.  
  245. ;###############################################################################
  246. ;###############################################################################
  247. ;###############################################################################
  248.  
  249. ;   8. Magic + Smithing - Superheat
  250. ;   Space key + fghj (rebind to whatever you want if you dont like the positioning of your fingers
  251.  
  252. Space:: SendInput {Space}
  253. return
  254. Space & f::click
  255. return
  256. Space & g::Mousemove,0, 140, 0, R
  257. return
  258. Space & h::click
  259. return
  260. Space & j::Mousemove,0, -140, 0, R
  261. return
  262.  
  263. ;###############################################################################
  264. ;###############################################################################
  265. ;###############################################################################
  266.  
  267. ;   9. Future plans
  268.  
  269. ; Thinking of other shit to add, pm me in game: 'Guthlx' if you have any ideas!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement