Advertisement
Guest User

Untitled

a guest
Dec 16th, 2019
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.14 KB | None | 0 0
  1. #include "Inventory.au3"
  2. ;Paladin
  3.  
  4. Global $qTimer = TimerInit()
  5. Global $wTimer = TimerInit()
  6. Global $eTimer = TimerInit()
  7. Global $rTimer = TimerInit()
  8. Global $tTimer = TimerInit()
  9. Global $yTimer = TimerInit()
  10. Global $sixTimer = TimerInit()
  11. Global $four_five_Timer = TimerInit()
  12. $p = False
  13. $x = False
  14. $q = 0
  15. $w = 0
  16. $e = 0
  17. $r = 0
  18. $t = 0
  19. $y = 0
  20. $six = 0
  21. $four_five = 0
  22.  
  23. HotKeySet("u", switchHotkeyActivation)
  24. HotKeySet("{Numpad3}",Terminate)
  25. HotKeySet("q",q_fast)
  26. HotKeySet("w",w_fast)
  27. HotKeySet("e",e_fast)
  28. HotKeySet("r",r_fast)
  29. HotKeySet("t",t_fast)
  30. HotKeySet("y",y_fast)
  31. HotKeySet("4",four_to_num)
  32. HotKeySet("6",six_to_num)
  33.  
  34. Global $qDiff = TimerDiff($qTimer)
  35. Global $wDiff = TimerDiff($wTimer)
  36. Global $eDiff = TimerDiff($eTimer)
  37. Global $rDiff = TimerDiff($rTimer)
  38. Global $tDiff = TimerDiff($tTimer)
  39. Global $yDiff = TimerDiff($yTimer)
  40. Global $sixDiff = TimerDiff($sixTimer)
  41. Global $four_five_Diff = TimerDiff($four_five_Timer)
  42.  
  43.  
  44. while 1
  45. Sleep(100)
  46. $qDiff = TimerDiff($qTimer)
  47. $wDiff = TimerDiff($wTimer)
  48. $eDiff = TimerDiff($eTimer)
  49. $rDiff = TimerDiff($rTimer)
  50. $tDiff = TimerDiff($tTimer)
  51. $yDiff = TimerDiff($yTimer)
  52. $sixDiff = TimerDiff($sixTimer)
  53. $four_five_Diff = TimerDiff($four_five_Timer)
  54. if($qDiff > 7000) and ($q = 0) and ($x) Then
  55. $q = 1
  56. EndIf
  57. if($wDiff > 7000) and ($w = 0) and ($x) Then
  58. $w = 1
  59. EndIf
  60. if($eDiff > 4000) and ($e = 0) and ($x) Then
  61. $e = 1
  62. EndIf
  63. if($rDiff > 8000) and ($r = 0) and ($x) Then
  64. $r = 1
  65. EndIf
  66. if($tDiff > 30000) and ($t = 0) and ($x) Then
  67. $t = 1
  68. EndIf
  69. if($yDiff > 26000) and ($y = 0) and ($x) Then
  70. $y = 1
  71. EndIf
  72. if($four_five_Diff > 46000) and ($four_five = 0) and ($x) Then
  73. $four_five = 1
  74. EndIf
  75. if($sixDiff > 31000) and ($six = 0) and ($x) Then
  76. $six = 1
  77. EndIf
  78. WEnd
  79.  
  80.  
  81. Func switchHotkeyActivation()
  82. $p = not $p
  83. $x = not $x
  84. if($p) Then
  85. HotKeySet("{TAB}", tab_to_num)
  86. HotKeySet("d", d_to_num)
  87. HotKeySet("3", three_to_num)
  88. HotKeySet("5", five_to_num) ;Auskommentieren ohne Geld
  89. HotKeySet("g", skilltree)
  90. HotKeySet("b", inventory)
  91. HotKeySet("^b",training)
  92. HotKeySet("!1", Heal1)
  93. HotKeySet("!2", Heal2)
  94. HotKeySet("!3", Heal3)
  95. HotKeySet("!4", Heal4)
  96. HotKeySet("!q", Hot1)
  97. HotKeySet("!w", Hot2)
  98. HotKeySet("!e", Hot3)
  99. HotKeySet("!r", Hot4)
  100. HotKeySet("l", setup)
  101. $q = 1
  102. $w = 1
  103. $e = 1
  104. $r = 1
  105. $t = 1
  106. $y = 1
  107. $six = 1
  108. $four_five = 1
  109. Else
  110. HotKeySet("3")
  111. HotKeySet("d")
  112. HotKeySet("{TAB}")
  113. HotKeySet("g")
  114. HotKeySet("b")
  115. HotKeySet("^b")
  116. HotKeySet("5") ;Auskommentieren ohne Geld
  117. HotKeySet("!1")
  118. HotKeySet("!2")
  119. HotKeySet("!3")
  120. HotKeySet("!4")
  121. HotKeySet("!q")
  122. HotKeySet("!w")
  123. HotKeySet("!e")
  124. HotKeySet("!r")
  125. HotKeySet("l")
  126. EndIf
  127. EndFunc
  128.  
  129. Func four_to_num()
  130. HotKeySet("4")
  131. if($four_five = 1) Then
  132. $four_five = 0
  133. Send("{Numpad4}")
  134. ;Send("{Numpad5}")
  135. MouseClick("")
  136. $four_five_Timer = TimerInit()
  137. Else
  138. Send("{Numpad4}")
  139. ;Send("{Numpad5}")
  140. EndIf
  141. HotKeySet("4", four_to_num)
  142. EndFunc
  143.  
  144. Func six_to_num()
  145. HotKeySet("6")
  146. if($six = 1) Then
  147. $six = 0
  148. Send("{Numpad1}")
  149. MouseClick("")
  150. $sixTimer = TimerInit()
  151. Else
  152. Send("{Numpad1}")
  153. EndIf
  154. HotKeySet("6", six_to_num)
  155. EndFunc
  156.  
  157. Func q_fast()
  158. HotKeySet("q")
  159. if($q = 1) Then
  160. $q = 0
  161. Send("{q}")
  162. MouseClick("")
  163. $qTimer = TimerInit()
  164. Else
  165. Send("{q}")
  166. EndIf
  167. HotKeySet("q", q_fast)
  168. EndFunc
  169.  
  170. Func w_fast()
  171. HotKeySet("w")
  172. if($w = 1) Then
  173. $w = 0
  174. Send("{w}")
  175. MouseClick("")
  176. $wTimer = TimerInit()
  177. Else
  178. Send("{w}")
  179. EndIf
  180. HotKeySet("w", w_fast)
  181. EndFunc
  182.  
  183. Func e_fast()
  184. HotKeySet("e")
  185. if($e = 1) Then
  186. $e = 0
  187. Send("{e}")
  188. MouseClick("")
  189. $eTimer = TimerInit()
  190. Else
  191. Send("{e}")
  192. EndIf
  193. HotKeySet("e", e_fast)
  194. EndFunc
  195.  
  196. Func r_fast()
  197. HotKeySet("r")
  198. if($r = 1) Then
  199. $r = 0
  200. Send("{r}")
  201. MouseClick("")
  202. $rTimer = TimerInit()
  203. Else
  204. Send("{r}")
  205. EndIf
  206. HotKeySet("r", r_fast)
  207. EndFunc
  208.  
  209. Func t_fast()
  210. HotKeySet("t")
  211. if($t = 1) Then
  212. $t = 0
  213. Send("{t}")
  214. MouseClick("")
  215. $tTimer = TimerInit()
  216. Else
  217. Send("{t}")
  218. EndIf
  219. HotKeySet("t", t_fast)
  220. EndFunc
  221.  
  222. Func y_fast()
  223. HotKeySet("y")
  224. if($y = 1) Then
  225. $y = 0
  226. Send("{y}")
  227. MouseClick("")
  228. $eTimer = TimerInit()
  229. Else
  230. Send("{y}")
  231. EndIf
  232. HotKeySet("y", y_fast)
  233. EndFunc
  234.  
  235. Func skilltree()
  236. HotKeySet("t")
  237. Send("{Enter}")
  238. Send("{-}")
  239. Send("{t}")
  240. Send("{t}")
  241. Send("{Enter}")
  242. HotKeySet("t", t_fast)
  243. EndFunc
  244.  
  245. Func Heal1()
  246. Local $pos = MouseGetPos()
  247. MouseMove(45,65,0)
  248. Send("{e}")
  249. MouseMove($pos[0],$pos[1],0)
  250. EndFunc
  251.  
  252. Func Heal2()
  253. Local $pos = MouseGetPos()
  254. MouseMove(60,100,0)
  255. Send("{e}")
  256. MouseMove($pos[0],$pos[1],0)
  257. EndFunc
  258.  
  259. Func Heal3()
  260. Local $pos = MouseGetPos()
  261. MouseMove(60,100,0)
  262. Send("{e}")
  263. MouseMove($pos[0],$pos[1],0)
  264. EndFunc
  265.  
  266. Func Heal4()
  267. Local $pos = MouseGetPos()
  268. MouseMove(60,100,0)
  269. Send("{e}")
  270. MouseMove($pos[0],$pos[1],0)
  271. EndFunc
  272.  
  273. Func Hot1()
  274. Local $pos = MouseGetPos()
  275. MouseMove(45,65,0)
  276. Send("{w}")
  277. MouseMove($pos[0],$pos[1],0)
  278. EndFunc
  279.  
  280. Func Hot2()
  281. Local $pos = MouseGetPos()
  282. MouseMove(60,100,0)
  283. Send("{w}")
  284. MouseMove($pos[0],$pos[1],0)
  285. EndFunc
  286.  
  287. Func Hot3()
  288. Local $pos = MouseGetPos()
  289. MouseMove(60,100,0)
  290. Send("{w}")
  291. MouseMove($pos[0],$pos[1],0)
  292. EndFunc
  293.  
  294. Func Hot4()
  295. Local $pos = MouseGetPos()
  296. MouseMove(60,100,0)
  297. Send("{w}")
  298. MouseMove($pos[0],$pos[1],0)
  299. EndFunc
  300.  
  301. Func setup()
  302. HotKeySet("g")
  303. HotKeySet("d")
  304. HotKeySet("t")
  305. Send("{Enter}")
  306. Send("{-}")
  307. Send("{f}")
  308. Send("{o}")
  309. Send("{g}")
  310. Send("{Enter}")
  311. Send("{Enter}")
  312. Send("{-}")
  313. Send("{c}")
  314. Send("{d}")
  315. Send("{i}")
  316. Send("{s}")
  317. Send("{t}")
  318. Send("{Enter}")
  319. HotKeySet("g", skilltree)
  320. HotKeySet("d", d_to_num)
  321. HotKeySet("t", t_fast)
  322. EndFunc
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement