Advertisement
Guest User

Destiny 2 Aimbot

a guest
May 26th, 2018
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. #SingleInstance, Force
  2. #Persistent
  3. #NoEnv
  4. #Warn
  5. SendMode, Input
  6. SetWorkingDir, %A_ScriptDir%
  7. DirX := 0
  8. DirY := 0
  9. Numpad0::
  10. ExitApp
  11. Return
  12. Numpad1::
  13. #Persistent
  14. #KeyHistory, 0
  15. #NoEnv
  16. #HotKeyInterval 1
  17. #MaxHotkeysPerInterval 127
  18. #InstallKeybdHook
  19. #UseHook
  20. #SingleInstance, Force
  21. SetKeyDelay,-1, 8
  22. SetControlDelay, -1
  23. SetMouseDelay, 0
  24. SetWinDelay,-1
  25. SendMode, InputThenPlay
  26. SetBatchLines,-1
  27. ListLines, Off
  28. CoordMode, Mouse, client
  29. PID := DllCall("GetCurrentProcessId")
  30. Process, Priority, %PID%, Normal
  31. ZeroX := A_Screenwidth/2
  32. ZeroY := A_Screenheight/2
  33. CFovX := 80
  34. CFovY := 200
  35. ScanL := 660
  36. ScanR := 1250
  37. ScanT := 280
  38. ScanB := 610
  39. inicount := 9
  40. fileread,settings,settings.ini
  41. stringsplit,settings,settings,`n
  42. if !(fileexist("settings.ini")) || (settings0-3 != inicount)
  43. {
  44. iniread,rx,settings.ini,settings,sen, 3.2
  45. iniread,xrange,settings.ini,settings,FovX, 4.5
  46. iniread,yrange,settings.ini,settings,FovY, 3.5
  47. iniread,xa,settings.ini,settings,AimX, 85
  48. iniread,xy,settings.ini,settings,AimY, 49
  49. }
  50. Soundbeep, 750, 500
  51. Loop,
  52. {
  53. GetKeyState, Mouse2, LButton, P
  54. GetKeyState, Mouse3, RButton, P
  55. if ( Mouse2 == "D" ) || ( Mouse3 == "D" )
  56. {
  57. GoSub MouseMoves2
  58. }
  59. GetKeyState, Key1, Numpad1, P
  60. if ( Key1 == "D")
  61. {
  62. Soundbeep
  63. break
  64. }
  65. }
  66. MouseMoves2:
  67. imageSearch, AimPixelX, AimPixelY, 0 + (A_Screenwidth * (xrange/10)), 0 + (A_Screenheight * (yrange/10)), A_Screenwidth - (A_Screenwidth * (xrange/10)), A_Screenheight - (A_Screenheight * (yrange / 10)), healthbar.bmp
  68. if(AimPixelX != "" && AimPixelY != "")
  69. {
  70. GoSub GetAimOffset1
  71. GoSub GetAimMoves1
  72. GoSub mouseclcik
  73. }
  74. else
  75. {
  76. imageSearch, AimPixelX, AimPixelY, 0 + (A_Screenwidth * (xrange/10)), 0 + (A_Screenheight * (yrange/10)), A_Screenwidth - (A_Screenwidth * (xrange/10)), A_Screenheight - (A_Screenheight * (yrange / 10)), *4 orangehealthbar.bmp
  77. if(AimPixelX != "" && AimPixelY != "")
  78. {
  79. GoSub GetAimOffset1
  80. GoSub GetAimMoves1
  81. GoSub mouseclcik
  82. }
  83. }
  84. Return
  85. mouseclcik:
  86. loop,
  87. {
  88. GetKeyState, Mouse2, LButton, P
  89. GetKeyState, Mouse3, RButton, P
  90. if ( Mouse2 == "D" ) || ( Mouse3 == "D" )
  91. {
  92. click, down
  93. sleep 25
  94. click, up, left
  95. GoSub MouseMoves2
  96. }
  97. } Until ( Mouse2 == "U" )
  98. return
  99. GetAimOffset1:
  100. Gui,Submit, Nohide
  101. AimX := AimPixelX - ZeroX +xa
  102. AimY := AimPixelY - ZeroY +xy
  103. if ( AimX+10 > 0)
  104. {
  105. DirX := rx / 10
  106. }
  107. else if ( AimX+5 > 0)
  108. {
  109. DirX := rx / 15
  110. }
  111. if ( AimX+10 < 0)
  112. {
  113. DirX := (-rx) / 10
  114. }
  115. else if ( AimX+5 < 0)
  116. {
  117. DirX := (-rx) / 15
  118. }
  119. if ( AimY+.25 > 0 )
  120. {
  121. DirY := rx /13
  122. }
  123. if ( AimY+.25 < 0 )
  124. {
  125. DirY := (-rx) /13
  126. }
  127. AimOffsetX := AimX * DirX
  128. AimOffsetY := AimY * DirY
  129. Return
  130. GetAimMoves1:
  131. RootX := Ceil(( AimOffsetX ** ( 1 )))
  132. RootY := Ceil(( AimOffsetY ** ( 1 )))
  133. MoveX := RootX * DirX
  134. MoveY := RootY * DirY
  135. DllCall("mouse_event", uint, 1, int, MoveX, int, MoveY, uint, 0, int, 0)
  136. Return
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement