OutdatedDestiny 2 External Bot Final + Source
To those asking for my "folder", that script and the images are literally all you need, and the settings file from Andrew's release. It works the same as Andrew's, but it does a second check to prevent locking onto red terrain. It will only move the mouse if it finds the second image as well, which is the enemy's level number text. I've also added several general improvements to the performance of the script, which should help a lot.
I'll post it again now, with a little bit more instructions since people seem to be getting confused. I've also added a two "tolerance" settings to the settings.ini file, one for the red colour and one for the white colour, which you can use to easily adjust the sensitivity for colour matches.
NOTE: This is for PVP ONLY! It will NOT work in PvE whatsoever
edit: Doing some preliminary tests in PvE, looking ok so far. (pic)
If enough of you are interested I can put this one out as well, but its pretty sloppy atm.
1. Save the following script as whatever.ahk, make sure you have AHK installed.
2. Open notepad and save the following text as settings.ini
These are sample settings, replace the values with what you used before. But these are roughly the settings I use if you're wondering.
3. Put these images into your folder
Save as the exact names I use!
healthbar.bmp
healthbar2.bmp
healthbar3.bmp
secondimage.bmp
edit: it seems imgur rehosts them as .png, open them in paint and save as 24-bit .bmp image, make sure it is solid color 175,45,45 for red and 255,255,255 for white.
These images are for 1080p, so if you have a bigger resolution you should be fine but people with smaller resolutions will need to make these images all a bit smaller, especially the height.
For secondimage.bmp, you might want to try making it a different shape altogether. I've had success also with 2x2 shapes, 1x4, 4x1 and others.
4. Using the script and settings instructions
Numpad1 is the default on/off button, you can change that by doing a Ctrl+F for "Numpad1" in the script and replace with whatever. Keep in mind there are 4 instances you will need to change.
Brightness: 4
Settings.ini instructions:
Sensitivity (sens) will need to be high, I use 9 personally.
AimX+Y are your aim offsets, relative to the top-left corner of the image search result (health bar).
FoVX+Y is your scan area. Just set it to about 3.5.
tolRed and tolWhite are your imagesearch tolerance settings, how many shades difference to allow (scale 0-255).
5. It's not working! Why?
Could be lots of things.
- You're trying to aim at enemies who are against red backgrounds. I don't have a magic solution to that right now.
- Your sensitivity is too low. The new script is about half as fast as the previous one, so double the sensitivity you used.
- Your images are wrong. People have given instructions in this thread many times on how to make your own images, try that for best results.
- Adding onto the previous one - your secondimage.bmp especially could be the culprit. Try experimenting with smaller sizes, but don't go too small or it will start to get false positives.
- Your tolerance might be too low. Try increasing the white tolerance first, then red.
I'll post it again now, with a little bit more instructions since people seem to be getting confused. I've also added a two "tolerance" settings to the settings.ini file, one for the red colour and one for the white colour, which you can use to easily adjust the sensitivity for colour matches.
NOTE: This is for PVP ONLY! It will NOT work in PvE whatsoever
edit: Doing some preliminary tests in PvE, looking ok so far. (pic)
If enough of you are interested I can put this one out as well, but its pretty sloppy atm.
1. Save the following script as whatever.ahk, make sure you have AHK installed.
Code:
#NoEnv
#Persistent
#SingleInstance, Force
#KeyHistory, 0
#InstallKeybdHook
#UseHook
#HotKeyInterval 1
#MaxHotkeysPerInterval 127
SetBatchLines,-1
SetKeyDelay,-1, 8
SetControlDelay, -1
SetMouseDelay, 0
SetWinDelay,-1
ListLines, Off
SendMode, Input
CoordMode, Mouse, client
Numpad1::
Keywait, Numpad1, U
fileread,settings,settings.ini
stringsplit,settings,settings,`n
iniread,rx,settings.ini,settings,sen
iniread,xrange,settings.ini,settings,FovX
iniread,yrange,settings.ini,settings,FovY
iniread,xa,settings.ini,settings,AimX
iniread,xy,settings.ini,settings,AimY
iniread,tolerancered,settings.ini,settings,tolRed
iniread,tolerancewhite,settings.ini,settings,tolWhite
DirX := 0
DirY := 0
ZeroX := A_Screenwidth/2
ZeroY := A_Screenheight/2
X1 := 0 + (A_Screenwidth * (xrange / 10))
Y1 := 0 + (A_Screenheight * (yrange / 10))
X2 := A_Screenwidth - (A_Screenwidth * (xrange / 10))
Y2 := A_Screenheight - (A_Screenheight * (yrange / 10))
foundSmall := false
foundMedium := false
tolRed2 := tolerancered - 10
tolRed3 := tolerancered - 20
Soundbeep, 750, 500
loop, {
if (GetKeyState("RButton", "P") || GetKeyState("LButton", "P")) {
GoSub MouseMoves2
continue
}
if GetKeyState("Numpad1", "P") {
Keywait, Numpad1, U
break
}
Sleep, 1
}
Soundbeep, 500, 250
return
MouseMoves2:
if (!foundMedium && !foundSmall) {
imagesearch, AimPixelX, AimPixelY, %X1%, %Y1%, %X2%, %Y2%, *%tolerancered% healthbar.bmp ; big red bar
if (AimPixelX != "" && AimPixelY != "") {
GoSub, getnewoffsets
imagesearch, newX, newY, %newX1%, %newY1%, %newX2%, %newY2%, *%tolerancewhite% secondimage.bmp ; secondary reference point
if (newX != "" && newY != "") {
gosub, GetAimOffset1
gosub, GetAimMoves1
return
}
}
}
if (!foundSmall) {
imagesearch, AimPixelX, AimPixelY, %X1%, %Y1%, %X2%, %Y2%, *%tolRed2% healthbar2.bmp ; medium red bar
if (AimPixelX != "" && AimPixelY != "") {
GoSub, getnewoffsets
imagesearch, newX, newY, %newX1%, %newY1%, %newX2%, %newY2%, *%tolerancewhite% secondimage.bmp ; secondary reference point
if (newX != "" && newY != "") {
foundMedium := true
gosub, GetAimOffset1
gosub, GetAimMoves1
return
}
}
}
foundMedium := false
imagesearch, AimPixelX, AimPixelY, %X1%, %Y1%, %X2%, %Y2%, *%tolRed3% healthbar3.bmp ; small red bar
if (AimPixelX != "" && AimPixelY != "") {
GoSub, getnewoffsets
imagesearch, newX, newY, %newX1%, %newY1%, %newX2%, %newY2%, *%tolerancewhite% secondimage.bmp ; secondary reference point
if (newX != "" && newY != "") {
foundSmall := true
gosub, GetAimOffset1
gosub, GetAimMoves1
return
}
}
foundSmall := false
return
GetAimOffset1:
AimX := AimPixelX - ZeroX +xa
AimY := AimPixelY - ZeroY +xy
if (AimX > 10) {
DirX := rx / 10
} else if (AimX > 0) {
DirX := rx / 15
}
if (AimX < -10) {
DirX := (-rx) / 10
} else if (AimX < 0) {
DirX := (-rx) / 15
}
if (AimY > 0) {
DirY := rx /13
} else if (AimY < 0) {
DirY := (-rx) /13
}
AimOffsetX := AimX * DirX
AimOffsetY := AimY * DirY
Return
GetAimMoves1:
RootX := Ceil(( AimOffsetX ** ( 1 )))
RootY := Ceil(( AimOffsetY ** ( 1 )))
MoveX := RootX * DirX
MoveY := RootY * DirY
DllCall("mouse_event", uint, 1, int, MoveX, int, MoveY, uint, 0, int, 0)
Return
getnewoffsets:
newX1 := AimPixelX - 50
newX2 := AimPixelX - 10
newY1 := AimPixelY - 30
newY2 := AimPixelY + 10
return
Code:
[settings] sen=9 FovX=3.7 FovY=3.6 AimX=67 AimY=40 tolRed=60 tolWhite=15
3. Put these images into your folder
Save as the exact names I use!
healthbar.bmp
healthbar2.bmp
healthbar3.bmp
secondimage.bmp
edit: it seems imgur rehosts them as .png, open them in paint and save as 24-bit .bmp image, make sure it is solid color 175,45,45 for red and 255,255,255 for white.
These images are for 1080p, so if you have a bigger resolution you should be fine but people with smaller resolutions will need to make these images all a bit smaller, especially the height.
For secondimage.bmp, you might want to try making it a different shape altogether. I've had success also with 2x2 shapes, 1x4, 4x1 and others.
4. Using the script and settings instructions
Numpad1 is the default on/off button, you can change that by doing a Ctrl+F for "Numpad1" in the script and replace with whatever. Keep in mind there are 4 instances you will need to change.
Brightness: 4
Settings.ini instructions:
Sensitivity (sens) will need to be high, I use 9 personally.
AimX+Y are your aim offsets, relative to the top-left corner of the image search result (health bar).
FoVX+Y is your scan area. Just set it to about 3.5.
tolRed and tolWhite are your imagesearch tolerance settings, how many shades difference to allow (scale 0-255).
5. It's not working! Why?
Could be lots of things.
- You're trying to aim at enemies who are against red backgrounds. I don't have a magic solution to that right now.
- Your sensitivity is too low. The new script is about half as fast as the previous one, so double the sensitivity you used.
- Your images are wrong. People have given instructions in this thread many times on how to make your own images, try that for best results.
- Adding onto the previous one - your secondimage.bmp especially could be the culprit. Try experimenting with smaller sizes, but don't go too small or it will start to get false positives.
- Your tolerance might be too low. Try increasing the white tolerance first, then red.
Wait.... this works really well. Holy shit, thank you for this!
Didnt work as intented in 1440p it snapped a lot to different spots
Cant get anything to happen whatsoever with that
I don't even know where to try to start with this thing tbh. Am I supposed to hit numpad 1, and then hold right click, or what? Because when I do that it does nothing..
Anyone wanna test and tune the settings file in some private matches?
This thread is closed for replies.
Similar Threads
Destiny 2 HacksDestiny 2 External Bot v3.4 (GUI, PvE Mode, New Triggerbot + More)KI 144 Destiny 2 Hacks[v3.5] Destiny 2 External Bot (GUI, PvE Mode, Triggerbot +more)KI 2 CrossFire Hacks & CheatsUndetected Cheat Engine Final: SourceTH 2 WarRock - International HacksUndetected Cheat Engine Final: SourceTH 3 CounterStrike (CS) 1.6 Hacks / Counter Strike: Source (CSS) HacksUndetected Cheat Engine Final: SourceTH 2
