From: darker2k
Tyvm Barbrady… i'm going to download the files and start playing with them :3
NP, I may do some more work on it at a later time let me know if something does not work (I think white and blue uptext are backwards so "use Bank booth" will return "Bank booth use")
Try this copy, I fixed the uptext spacing issue and that above issue:
Var
ss_MMX1, ss_MMY1, ss_MMX2, ss_MMY2, ss_MSX1, ss_MSY1, ss_MSX2, ss_MSY2:Integer;
ss_MS:TPoint;
procedure setssVars;
begin
ss_MSX1 := 0;
ss_MSY1 := 0;
ss_MSX2 := 516;
ss_MSY2 := 339;
ss_MMX1 := 546;
ss_MMY1 := 12;
ss_MMX2 := 703;
ss_MMY2 := 162;
ss_MS := Point(268, 177);
end;
function ss_loggedin():Boolean;
begin
Result := (GetColor(426, 492) = 16777215);
end;
function ss_GetUpText(tol:Integer): String;
Var
Colors:TIntegerArray;
i:Integer;
begin
// white, blue, yellow, orange, green
// Colors := [16776960, 16777215, 65535, 4161758, 384517];
// 20 tol is decent
Colors := [16777215, 16776960, 65535, 4161758, 384517];
for i:=0 to high(Colors) do
Result := Result + GetTextAtExWrap(8, 8, 137, 24, 1, 3, 1, Colors[i], tol, 'SSUpChars');
end;
Procedure ss_SetangleHigh();
begin
Keydown(VK_Up);
wait(RandomRange(2000, 3000));
KeyUp(VK_Up);
end;
Procedure ss_SetangleLow();
begin
Keydown(VK_Down);
wait(RandomRange(2000, 3000));
KeyUp(VK_Down);
end;
function CompassBalenced():Boolean;
var
x, y:Integer;
begin
Result := (FindColortolerance(x, y, 1911089, 542, 11, 545, 14, 20) and (FindColortolerance(x, y, 920735, 530, 24, 534, 27, 25)));
end;
Procedure ss_MakeCompassNorth;
var
t:integer;
begin
if not CompassBalenced() then
begin
MarkTime(t);
Keydown(VK_Right);
waitfunc(@CompassBalenced, 100, 3000);
KeyUp(VK_Right);
end;
end;
procedure SetupSSInclude;
var
t:Integer;
Begin
Marktime(t);
setssVars;
Writeln('SS include took ' + ToStr(TimeFromMark(t)) + ' ms to start');
end;