My first SRL script yay!

Discussion in 'Outdated RS Scripts' started by crapkiller, Apr 5, 2007.

My first SRL script yay!
  1. Unread #1 - Apr 5, 2007 at 8:19 PM
  2. crapkiller
    Joined:
    Jul 19, 2006
    Posts:
    426
    Referrals:
    0
    Sythe Gold:
    0

    crapkiller Forum Addict

    My first SRL script yay!

    A powerminer! (thats what EVERYONE makes duh)

    It has a few of the basic SRL anti-randoms. Im not even sure if they work lolz. No anti-ban yet but it doesn't use movemouse etc.

    THIS ONLY MINES COPPER. I was too lazy to quickly edit it for everything. If you know how you can change the colors. again THIS ONLY MINES COPPER. i DON'T suggest using this for more than 2 loads.

    Code:
    program New;
    {.include SRL\SRL.Scar}
    
    Const
    Weild = false; // True if pick is weilded,  False if it is not.
    
    var CurrentOres,Loads,Ores:integer;
    
    Procedure FindRandomz;
    begin
      FindNormalRandoms;
      FindLamp('mining');
       if FindFight then
        begin
         RunAwayDirection('n');
         Wait(10000+random(2000));
         RunBack;
        end;
    end;
    
    
    Procedure FindRock;
    begin
    if(FindColorTolerance(x,y,4815555,209, 123,306, 235,10) = true) then
    begin
    Mouse(x,y,1,1,true);
    end
    
    if(FindColorTolerance(x,y,4815555,209, 123,306, 235,10) = false) then
    
    if(FindColorTolerance(x,y,4815555,142, 35,404, 321,10) = true) then
    begin
    Mouse(x,y,1,1,true);
    end
    
    if(FindColorTolerance(x,y,4815555,142, 35,404, 321,10) = false) then
    
    if(FindColorTolerance(x,y,4815555,6, 6,514, 335,10) = true) then
    begin
    Mouse(x,y,1,1,true);
    end
    
    if(FindColorTolerance(x,y,4815555,6, 6,514, 335,10) = false) then FindRock;
    FindRandomz;
    end;
    
    
    Procedure Checkifdone;
    begin
    CurrentOres := CountItemColor(3635923)
    while (CountItemColor(3635923) = CurrentOres)do
    begin
    wait(500);
    end;
    FindRandomz;
    end;
    
    Procedure ProggyReport;
    begin
    if (Weild = false) then x := 27
    if (Weild = true) then x := 28
    Ores := Loads * x
    Writeln('|---------------------------------------------|');
    Writeln('|Worked For : ' + ScriptTime2(2))
    Writeln('|Mined and Dropped '+IntToStr(Loads)+' Loads');
    Writeln('|Mined and Dropped '+ IntToStr(Ores)+' Ores');
    Writeln('|---------------------------------------------|');
    end;
    
    
    begin
    ActivateClient;
    SetUpSRL;
    Makecompass('N');
    HighestAngle;
    repeat
    while(InvFull = False) do
    begin
    FindRock;
    CheckIfDone;
    end;
    if (Weild = false or False) then DropTo(2,28);
    if (Weild = true or True) then DropTo(1,28);
    Loads := Loads + 1
    ProggyReport;
    until(false);
    end.
     
  3. Unread #2 - Apr 5, 2007 at 8:50 PM
  4. JAD
    Joined:
    Apr 3, 2007
    Posts:
    301
    Referrals:
    2
    Sythe Gold:
    1

    JAD Forum Addict

    My first SRL script yay!

    You don't need = true and = false in the FindColor/FindColorSpiral command. I'd suggest you learn standards :) other then that, good first script. Keep it up.
     
< [SRL][RS2]Edgeville Yew Cutter | [RS2][SRL] bibi26's Alcher >

Users viewing this thread
1 guest


 
 
Adblock breaks this site