Great skill check script (AHK)
This is not a release I have created this thread on "Help" prefix cause I just gave up on this script that should complete every skill check on great. I'm gonna give you the source for those who know AHK so they could finish it or rewrite it in c++, c#, etc. I think it would be a great idea to have something like this around.
Leave your feedback, would you like something like this around?
Code:
#NoEnv
dots1X := []
dots1Y := []
dots2X := []
dots2Y := []
i = 0
i2 := 0
c = 0
r = 70
en = 10
a := 0
while (i2 <= 360) {
dots1X[i2] := Round(Cos(DegToRad(i2)) * r) + 963
dots1Y[i2] := Round(Sin(DegToRad(i2)) * r) + 525
i2 += en
}
loop {
X := dots1X[a]
Y := dots1Y[a]
PixelGetColor, color, X, Y
SplitRGBColor(color, Red, Green, Blue)
if (Red >= 240) and (Green >= 240) and (Blue >= 240) {
f = 1
i += 1
dots2X[i] := X
dots2Y[i] := Y
} else if (f = 1) {
f = 0
loop {
c += 1
if (c > i) {
c = 1
}
PixelGetColor, color, dots2X[c], dots2Y[c]
SplitRGBColor(color, Red, Green, Blue)
if (Green <= 240) and (Blue <= 240) {
if (255 >= Red) and (0 = Green) and (0 = Blue) {
sendinput {space}
break
}
} else {
break
}
}
}
a += en
if (a >= 361) {
a = 0
}
}
DegToRad(deg) {
static degree := 0.01745329252
return deg * degree
}
SplitRGBColor(RGBColor, ByRef Red, ByRef Green, ByRef Blue)
{
Red := RGBColor >> 16 & 0xFF
Green := RGBColor >> 8 & 0xFF
Blue := RGBColor & 0xFF
}


.