Looks like a pretty nice first script, but there is allot of room for improvements.
Let me start here:
// oooooooooooo0000 < Laimonas171 First IronPowerMiner > 0000ooooooooooooo \\
Procedure Prisijungimas; //login procedure
begin
cleardebug;
Mouse (401,186,1,1,true);
wait(750+Random(1200));
WriteLn('Wait a second scar trying to login... :P')
Mouse (444,285,1,1,true);
Wait(750+Random(1200));
TypeSend(username);
wait(1000+Random(200));
TypeSend(password);
wait(4000+Random(2000));
Mouse (377,330,1,1,true);
This can simplified allot, using the following function in your mainloop / setup:
DeclarePlayers;
LoginPlayer;
Next thing, the mining procedure:
begin
FindColor(X, Y, OreColor, 3, 3, 516, 337);
Mouse(X, Y, 3, 3, False);
Wait(300 + Random(200));
ChooseOption('Mine');
end;
Pretty much nothing wrong here, except the colors in rs change allot, thats why you need a Tolerance in finding the colors. Like so:
begin
FindColorTolerance(X, Y, OreColor, MSX1, MSY1, MSX2 ,MSY2, 5); // ALso select the main RS screen, so no more coordinates ;)
Mouse(X, Y, 3, 3, False);
Wait(300 + Random(200));
ChooseOption('Mine');
end;
On to the antirandoms.
You are using the (old) FindFastRandoms function. However you can use the following function to also do everything that FindFastRandoms does, and more.
FindNormalRandoms:
As a final thing you should change your mainloop a little, maybe like this
procedure mainloop;
begin
SetUpSRL;
Disguise('-=IronPowerMiner by Laimonas171=-')
ClearDeBug;
Parasas;
ActivateClient;
DeclarePlayers;
LoginPlayer;
Pradzia;
repeat
Kasineja;
FindNormalRandoms;
ZmogausJudesys;
Wait(1500 + Random(2200));
If (InvFull) then
MetoRuda;
Wait(1000);
until (false)
end;
Glad to help :)
~Sir