That's the thing, you don't want my images because they're not good at all. I have about 35 different sizes and colors of red bars and "50" combinations and none of them gave something reliable so far, hence me asking 3andrew for his findings to avoid the wave animation that all of my tests have been following so far. This also makes it very easy for bungo/blizzard to detect your mouse moving at the same speed as their colors and ban you for it...
OutdatedDestiny 2 External Bot Final + Source
Don't take this the wrong way, but if you can't tell this code refers to various bitmap images and means nothing without them, you probably should wait until a functional version is posted... Walking around with the code I sent you will not only make your performance in the game terrible, but it will most likely get you banned if it does work in that state. He meant the code does not error with that version and makes sense as far as syntax is concerned, images are always necessary with AHK unless you do pixel search which is less than ideal for our current predicament.
Yeah I usually had as big of a picture as I can use, aka a vertical column a few pixels wide and the height of a bar at max range to avoid snapping on foliage or other reddish things as much as possible. I also completely avoid pixel search because there's tons of other red/white/grey pixels on your screen at pretty much any moment. What's hard is to get the bar while it's at the mid level of the color change to have the smallest possible variance detecting all of it and avoid the bot moving right with the animation.
ok its working...but i need like 50+ more presets of HP bars in all states of % hp remain
- - - Updated - - -
and better to make horizontal column since vertical will provide jittery with aim...since hp bar have wave effect from left to right with shades
- - - Updated - - -
Can someone tell me why i have error Else with no matching IF since im bad in coding
MainSub:
if (trackRedMode = 1) {
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
else
{
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr2.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
else
{
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr3.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
else
{
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr4.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
else
{
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr5.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
}
return
if (trackRedMode = 1) {
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
else
{
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr2.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
else
{
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr3.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
else
{
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr4.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
else
{
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr5.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
}
return
I tried cleaning up your code to how I usually see code in java and C++. IDK if ahk has it, but is there an Else If statement? Could it be due to the multitude of Else statements that would fall under the same condition after if(AimPixelX != "" && AimPixelY != "") failed?
MainSub:
if (trackRedMode = 1) {
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
else {
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr2.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
else {
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr3.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
else {
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr4.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
else {
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr5.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
}
return
EDIT: well, I guess spacing doesnt show up well, so I'll just upload a pic of it formatted instead.
https://gyazo.com/63b138a70678abde44b0e41cd418c586
MainSub:
if (trackRedMode = 1) {
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
else {
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr2.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
else {
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr3.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
else {
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr4.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
else {
imageSearch, AimPixelX, AimPixelY, %sx1%, %sy1%, %sx2%, %sy2%, *5 hr5.bmp
if(AimPixelX != "" && AimPixelY != "") {
GoSub FindOffsetToTarget
GoSub DoMousemove
}
}
}
return
EDIT: well, I guess spacing doesnt show up well, so I'll just upload a pic of it formatted instead.
https://gyazo.com/63b138a70678abde44b0e41cd418c586
https://********/fm/WWwQ0IZR
- - - Updated - - -
tried...but still same error...seems its not working with more then 2 arguments.
- - - Updated - - -
tried...but still same error...seems its not working with more then 2 arguments.
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
