First I am very thankful that you post your scripts for free. This bot works quite well for me but I had a few problems which I think are rather caused by BigPoint than you but still were a bit anoying. Sometimes the ship just freezes and refuses to move. A client reload solves the Problem. Since the Bot doesnt recognise that, I modified the TimeCheck Function a bit:
-- Scar Code --
//new variables to declare
var newx,newy:integer;
//modified Function
procedure TimeCheck;
begin
if (DEBUGMODE = true) then WriteLn('DB (' + FormatDateTime('DD.MM.YYYY HH:MM:SS', now) + '): PROCEDURE: TimeCheck - START');
if (HoursToRun < GetTimeRunning) then
begin
ClickLogout;
HoursToRun:=HoursToRun/3600000;
WriteLn('The script has been running for ' + IntToStr(HoursToRun) + ' hours.');
WriteLn('Estimated Collected Shinys: ' + IntToStr(CollectedShinyCounter));
WriteLn('Ending RRaidBot at: ' + FormatDateTime('DD.MM.YYYY HH:MM:SS', now))
WriteLn('Thankyou for using RShinyBot.');
TerminateScript;
end;
// 1200000 20mins
if ((CollectedTime + 1200000) < GetTimeRunning) then
begin
CollectedTime:=CollectedTime+1200000;
WriteLn('Estimated Collected Shinys (' + FormatDateTime('DD.MM.YYYY HH:MM:SS', now) + '): ' + IntToStr(CollectedShinyCounter));
KeyDown(116);
Wait(200)
KeyUp(116);
Wait(1000);
repeat
Wait(500);
until(FindColor(newx,newy,3876096,scx1,scy1,scx2,s cy2));
FindColor(newx,newy,5931381,scx1,scy1,scx2,scy2);
ClickMouse(newx+10,newy+10,true);
end;
if (DEBUGMODE = true) then WriteLn('DB (' + FormatDateTime('DD.MM.YYYY HH:MM:SS', now) + '): PROCEDURE: TimeCheck - END');
end;
--
It just refreshes the client every 20 min. For me that improves the stability of the bot a lot.
But i have another problem which I cant solve without deeper understanding of the script. Maybe for you its easy to fix:
Always when the bot repairs the ship after I lost a bit of hp from npcs (not after being sunk) and some npc attacks me the bot gets stuck in some loop and moves in random directions. unfortunately with a high frequence which results in no movement at all and no repair because of the npc that shoots.. Usually the consequence the ship gets shot by the npc or with luck the bot escapes the range of the npc and is able to repair.
Thanks again for your work.
Greets
AeXON