From: Hexless V2
Oh it does only that it seems to keep trying to attack other monkey zombies when its already in combat, how would i make it wait longer or something?
From: Spiritkid
mhm what can i do now, ss is a decent rsps with many players, its cool :) but cant find a good fighter script, and yours is great, but idk what to do now
updated the script, its slower now but it should work. if you know how to use aca you can change it to another monster.
program SSPowerFighter;
{$I srl/srl.simba}
var
x, y, count: integer;
const
USERNAME = '';
PASSWORD = '';
function IsLoggedIn: Boolean;
begin
if FindColorTolerance(x, y, 1448008, 494, 451, 611, 522, 15) then
Result := True
end;
procedure LoggingIn;
begin
Wait(200);
MoveMouse(659, 313);
WriteLn('entering username');
Wait(200);
ClickMouse2(Mouse_Left);
Count := 0;
repeat
Inc(Count);
PressKey(VK_Back);
until Count > 25;
Wait(250);
SendKeys(USERNAME, 0, 0);
Wait(1000);
WriteLn('entering password');
MoveMouse(665, 365);
Wait(200);
ClickMouse2(Mouse_Left);
Wait(200);
count := 0;
repeat
PressKey(VK_Back);
Inc(Count);
until Count > 25 SendKeys(PASSWORD, 50, 25);
WriteLn('logging in');
Wait(1000);
MoveMouse(576, 396);
Wait(1000);
ClickMouse2(Mouse_Left);
Wait(8000);
Writeln('logged in! (?)')
end;
procedure SetMeUp;
begin
WriteLn('setting up....');
WriteLn('putting angle right....');
Sleep(5000) Count := 0
repeat
Inc(Count);
PressKey(38);
until Count > 25;
Sleep(1000);
WriteLn('completed!');
WriteLn('open inventory....');
MoveMouse(747, 172);
Sleep(200);
ClickMouse2(Mouse_Left);
Sleep(1000);
WriteLn('completed!');
WriteLn('set up completed!');
end;
procedure Fighting;
var
TPAA: T2DPointArray;
TPA: TPointArray;
CTS, I: Integer;
begin
CTS := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
setcolorspeed2modifiers(0.05, 0.13);
FindColorsSpiralTolerance(360, 360, TPA, 3691313, 21, 72, 508, 377, 7);
ColorToleranceSpeed(CTS);
TPAA := TPAToATPAEx(TPA, 3, 1);
SortATPASize(TPAA, True);
for I := 0 to High(TPAA) do
if GetArraylength(TPAA[i]) > 2 then
begin
MiddleTPAEx(TPAA[i], x, y);
MMouse(X, Y, 3, 3);
Sleep(140);
ClickMouse2(Mouse_Right);
Sleep(180); MoveMouse(x, y + 60);
ClickMouse2(Mouse_Left);
Sleep(3500);
Exit;
end
else
begin
Exit;
end;
end;
procedure IsInFight;
begin
if (not FindColorTolerance(x, y, 64768, 202, 158, 318, 273, 15)) then
begin
Fighting;
end
else
begin
Sleep(100 + Random(40));
end;
end;
procedure Proggy;
begin
ClearDebug;
WriteLn('Time Running: ' + MsToTime(GetTimeRunning, 3));
end;
begin
WriteLn('SS PowerFighter by Hoodz V2');
MouseSpeed := 20;
repeat
if (not IsLoggedIn) then
begin
LoggingIn;
SetMeUp;
end;
if (IsLoggedIn) then
begin
IsInFight;
Proggy;
end;
until (False);
end.