OutdatedDestiny 2 External Bot Final + Source

Posts 511–525 of 635 · Page 35 of 43
Quote Originally Posted by navysonar View Post
same its working pretty well if you increase the sens !
I'm assuming you mean the sens option in the settings.ini file.
Quote Originally Posted by fatdoobie View Post
Until someone figures out something better with FindText or another script, I've got a somewhat working solution.

This script requires the 'settings.ini' file found in Andrew's release.

Numpad1 for on/off, or change every instance of "Numpad1" in the code to whatever you want to use.

Brightness: 4

Sample images for 1080p: (right click -> save as)

healthbar.bmp

healthbar2.bmp

healthbar3.bmp

secondimage.bmp

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
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
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%, *60 healthbar.bmp ; big red bar
	if (AimPixelX != "" && AimPixelY != "") {
		GoSub, getnewoffsets
		imagesearch, newX, newY, %newX1%, %newY1%, %newX2%, %newY2%, *15 secondimage.bmp ; secondary reference point
		if (newX != "" && newY != "") {
			gosub, GetAimOffset1
			gosub, GetAimMoves1
			return
		}
	}
}
if (!foundSmall) {
	imagesearch, AimPixelX, AimPixelY, %X1%, %Y1%, %X2%, %Y2%, *50 healthbar2.bmp ; medium red bar
	if (AimPixelX != "" && AimPixelY != "") {
		GoSub, getnewoffsets
		imagesearch, newX, newY, %newX1%, %newY1%, %newX2%, %newY2%, *15 secondimage.bmp ; secondary reference point
		if (newX != "" && newY != "") {
			foundMedium := true
			gosub, GetAimOffset1
			gosub, GetAimMoves1
			return
		}
	}
}
foundMedium := false
imagesearch, AimPixelX, AimPixelY, %X1%, %Y1%, %X2%, %Y2%, *40 healthbar3.bmp ; small red bar
if (AimPixelX != "" && AimPixelY != "") {
	GoSub, getnewoffsets
	imagesearch, newX, newY, %newX1%, %newY1%, %newX2%, %newY2%, *15 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 - 20
newY2 := AimPixelY + 10
return
I do every step you write, but dont working for me, when Andrew's is ok :[
Quote Originally Posted by navysonar View Post
same its working pretty well if you increase the sens !
I can't make this work, can you send me yours via P.M. maybe? :\

First imagesearch in every if works but second one fails all the time. Idk why.
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.

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
2. Open notepad and save the following text as settings.ini

Code:
[settings]
sen=9
FovX=3.7
FovY=3.6
AimX=67
AimY=40
tolRed=60
tolWhite=15
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.
Quote Originally Posted by fatdoobie View Post
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.

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 - 20
newY2 := AimPixelY + 10
return
2. Open notepad and save the following text as settings.ini

Code:
[settings]
sen=9
FovX=3.7
FovY=3.6
AimX=67
AimY=40
tolRed=60
tolWhite=15
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.

You da man stan.
Quote Originally Posted by fatdoobie View Post
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.

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
2. Open notepad and save the following text as settings.ini

Code:
[settings]
sen=9
FovX=3.7
FovY=3.6
AimX=67
AimY=40
tolRed=60
tolWhite=15
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.

this Pictures come in the same Folder with the whatever.ahk but how can i start the script or find the script this Pictures on my desktop too?
Quote Originally Posted by fatdoobie View Post
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.

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
2. Open notepad and save the following text as settings.ini

Code:
[settings]
sen=9
FovX=3.7
FovY=3.6
AimX=67
AimY=40
tolRed=60
tolWhite=15
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.
Pictures the same, i dont need it to change?(use your's posted on page 31). Any ways last one was not perfect but at least its work, gonna try this one too, thx.
Quote Originally Posted by JackAim View Post
Pictures the same, i dont need it to change?(use your's posted on page 31). Any ways last one was not perfect but at least its work, gonna try this one too, thx.
YOu wanna do some private matches testing.?
Quote Originally Posted by fatdoobie View Post
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.

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
2. Open notepad and save the following text as settings.ini

Code:
[settings]
sen=9
FovX=3.7
FovY=3.6
AimX=67
AimY=40
tolRed=60
tolWhite=15
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.
you can upload your folder.thank you

- - - Updated - - -

Quote Originally Posted by yashspartan1 View Post
Wait.... this works really well. Holy shit, thank you for this!
you can upload file your folder or send me.thank you
Quote Originally Posted by fatdoobie View Post
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.

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
2. Open notepad and save the following text as settings.ini

Code:
[settings]
sen=9
FovX=3.7
FovY=3.6
AimX=67
AimY=40
tolRed=60
tolWhite=15
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.
works quite well down to the last 10% health best out there just now by far, nice work
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?
Posts 511–525 of 635 · Page 35 of 43
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us