Results 1 to 7 of 7

Thread: Need to edit the LRC Miner

  1. #1
    Join Date
    Dec 2014
    Posts
    78
    Mentioned
    0 Post(s)
    Quoted
    40 Post(s)

    Default Need to edit the LRC Miner

    Hello folks, before I start I would like to say I don't know if this is in the right section or not. Second of all, I would also like to say I'm a total newb at what I am about to ask, hence why I have decided to come to write this thread.

    I would like to someone to tell me or if they are kind enough for them to edit it for me so this script just mines coal instead of gold. Thanks.

    Script: https://villavu.com/forum/showthread.php?t=89755

  2. #2
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Doesn't it already mine both?
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  3. #3
    Join Date
    Dec 2014
    Posts
    78
    Mentioned
    0 Post(s)
    Quoted
    40 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Doesn't it already mine both?
    It will only mine coal if there's no gold left. I can't mine gold atm.

  4. #4
    Join Date
    Jul 2012
    Posts
    181
    Mentioned
    4 Post(s)
    Quoted
    67 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Doesn't it already mine both?
    I believe it only mines coal when both gold deposits are exhausted.


    OP have you tried to edit it yourself?

  5. #5
    Join Date
    Dec 2014
    Posts
    78
    Mentioned
    0 Post(s)
    Quoted
    40 Post(s)

    Default

    Quote Originally Posted by Rlp View Post
    I believe it only mines coal when both gold deposits are exhausted.


    OP have you tried to edit it yourself?
    Yeah but trust me I'm awful at it...

  6. #6
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by BanditBob View Post
    It will only mine coal if there's no gold left. I can't mine gold atm.
    Oh, okay.

    From a quick gander through the script's sauce code, I _think_ the variable used in determining which type of rock to mine is EmptySpot. No idea what that means or what it refers to, but from the writeLn()'s, I conclude that when EmptySpot >= 2, the script will go mine coal.

    Relevant code:

    Simba Code:
    SkipUp:
        If (Spot=1) Then
          If FindGoldDTM Then     //low or high spot
          Begin
            If Debug Then
              Writeln('Found Gold, EmptySpot back to 0');
            EmptySpot:=0;
            Mining;
            BreakHandler(BreakIn,BreakFor,Bir,Bfr);
            If (Not TabBackpack.IsFull) And (Spot=1) Then
              GoTo SkipDown;
          End Else
          Begin
            BreakHandler(BreakIn,BreakFor,Bir,Bfr);
            EmptySpot := EmptySpot + 1;
            If Debug Then
              Writeln('Did not find gold, emptyspot is: '+ToStr(EmptySpot));

            SkipDown:
            If RunPercent < 50 Then
            Begin
              If Debug Then
                Writeln('Run energy low, resting');
              Setrest;
              Repeat
                Timeout.Reset;
                Timeout.Start;
                Timeout2.Reset;
                Timeout2.Start;
                If Runaways Then
                  Exit;
                CheckStuff;
                If Not IsLoggedIn Then
                  Exit;
                setrest;
                wait(100);
              Until RunPercent > 90;
              Minimap.ToggleRun(True);

              If Debug Then
                Writeln('Run energy restored');

              GoTo SkipUp;
            End;
            CheckStuff;

            If EmptySpot >= 2 Then
            Begin
              If Debug Then
                Writeln('EmptySpot too high, going to look for coal');

    So the solution to your problem would be to a) remove all lines in the script which forcibly reset EmptySpot to below 2 and b) add a line in the mainloop which will keep EmptySpot above 2. Therefore, everytime the script checks the value of EmptySpot, it will always find it at a suitable value to mine coal.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Badâ„¢ before everyone gets laser pistols

  7. #7
    Join Date
    Dec 2014
    Posts
    78
    Mentioned
    0 Post(s)
    Quoted
    40 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Oh, okay.

    From a quick gander through the script's sauce code, I _think_ the variable used in determining which type of rock to mine is EmptySpot. No idea what that means or what it refers to, but from the writeLn()'s, I conclude that when EmptySpot >= 2, the script will go mine coal.

    Relevant code:

    Simba Code:
    SkipUp:
        If (Spot=1) Then
          If FindGoldDTM Then     //low or high spot
          Begin
            If Debug Then
              Writeln('Found Gold, EmptySpot back to 0');
            EmptySpot:=0;
            Mining;
            BreakHandler(BreakIn,BreakFor,Bir,Bfr);
            If (Not TabBackpack.IsFull) And (Spot=1) Then
              GoTo SkipDown;
          End Else
          Begin
            BreakHandler(BreakIn,BreakFor,Bir,Bfr);
            EmptySpot := EmptySpot + 1;
            If Debug Then
              Writeln('Did not find gold, emptyspot is: '+ToStr(EmptySpot));

            SkipDown:
            If RunPercent < 50 Then
            Begin
              If Debug Then
                Writeln('Run energy low, resting');
              Setrest;
              Repeat
                Timeout.Reset;
                Timeout.Start;
                Timeout2.Reset;
                Timeout2.Start;
                If Runaways Then
                  Exit;
                CheckStuff;
                If Not IsLoggedIn Then
                  Exit;
                setrest;
                wait(100);
              Until RunPercent > 90;
              Minimap.ToggleRun(True);

              If Debug Then
                Writeln('Run energy restored');

              GoTo SkipUp;
            End;
            CheckStuff;

            If EmptySpot >= 2 Then
            Begin
              If Debug Then
                Writeln('EmptySpot too high, going to look for coal');

    So the solution to your problem would be to a) remove all lines in the script which forcibly reset EmptySpot to below 2 and b) add a line in the mainloop which will keep EmptySpot above 2. Therefore, everytime the script checks the value of EmptySpot, it will always find it at a suitable value to mine coal.
    No idea when it comes to code language, so will let you know if it works. Thanks.

    EDIT: The code you pasted there, is that the original or what you changed?
    Last edited by BanditBob; 12-29-2014 at 10:54 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •