Page 2 of 2 FirstFirst 12
Results 26 to 32 of 32

Thread: [OSR] Flight's Motherlode-Miner

  1. #26
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Updated to BETA (final version).

    This update simply patches a number of bugs throughout the script. You should notice smoother, more reliable object interacting as well as a critical fix to the ladder handling section of the script. It's the final revision of the script's beta phase; beyond this a full release will be in the works, including support for the lower levels. It's very likely it will hereafter require WaspLib to function. As always, please feel free to post feedback here or contact me directly with comments / concerns.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  2. #27
    Join Date
    Jul 2013
    Posts
    140
    Mentioned
    7 Post(s)
    Quoted
    61 Post(s)

    Default

    Looks like a great release as always Flight, I'm currently manually getting the nuggets I need to give this a bit of a test for you (I didn't realise how long this takes to do!)

    Just out of curiosity, what is the main benefit of doing Motherlode mine compared to other options? It seems to have quite a barrier to entry (in my opinion at least) for what it gives... Is it just to unlock the coal/gem bags or am I going full noob?
    Looking for cheap games? Kinguin has what you need!

    Teamwork Tutorial - Akuma Tutorial
    Don't give up, reward is just around the corner.

  3. #28
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Quote Originally Posted by tehYosh View Post
    Looks like a great release as always Flight, I'm currently manually getting the nuggets I need to give this a bit of a test for you (I didn't realise how long this takes to do!)

    Just out of curiosity, what is the main benefit of doing Motherlode mine compared to other options? It seems to have quite a barrier to entry (in my opinion at least) for what it gives... Is it just to unlock the coal/gem bags or am I going full noob?
    Right, those 100 nuggets are quite a grind. The coal bag is quite beneficial for activities such as Blast Furnace or mining coal in general. The gem bag comes in handy for gem mining in Shilo Village and certain slayer tasks. The prospector outfit can be acquired here and provides a decent XP bonus while worn. The nuggets can also be traded in for soft clay packs as well as uncut gem packs. With rewards aside the script itself provides a stable, decently fast method for upper mining levels and a great array of various ores which is a particular advantage for ironmen. I myself, while wearing mining enhancers (outfit, amulet of glory, celestial ring with a rune pickaxe) am seeing 44k-45k mining XP / hour. So it may not be quite the rate of powermining iron or granite, but it's a great balance between XP and profit.

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  4. #29
    Join Date
    Jul 2013
    Posts
    140
    Mentioned
    7 Post(s)
    Quoted
    61 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    Right, those 100 nuggets are quite a grind. The coal bag is quite beneficial for activities such as Blast Furnace or mining coal in general. The gem bag comes in handy for gem mining in Shilo Village and certain slayer tasks. The prospector outfit can be acquired here and provides a decent XP bonus while worn. The nuggets can also be traded in for soft clay packs as well as uncut gem packs. With rewards aside the script itself provides a stable, decently fast method for upper mining levels and a great array of various ores which is a particular advantage for ironmen. I myself, while wearing mining enhancers (outfit, amulet of glory, celestial ring with a rune pickaxe) am seeing 44k-45k mining XP / hour. So it may not be quite the rate of powermining iron or granite, but it's a great balance between XP and profit.
    I did wonder if the balance between XP/GP was what you were going for this, and I suppose it's quite a tedious task as well to get the rewards as mentioned... Unfortunately for me I got banned whilst doing some other bits and pieces in my attempt to get to 100 nuggets (Got to 58 as well) so won't be testing this anytime soon... Will race you to see if you get the lower levels working before I get another account anywhere close to doing this!
    Looking for cheap games? Kinguin has what you need!

    Teamwork Tutorial - Akuma Tutorial
    Don't give up, reward is just around the corner.

  5. #30
    Join Date
    Feb 2006
    Location
    Canada
    Posts
    2,254
    Mentioned
    21 Post(s)
    Quoted
    238 Post(s)

    Default

    Enjoying this script immensely Flight, thank you for that.
    I had a small compile error (index out of range, low:0, high:-1) on line 753:
    Code:
    RandTile := Zone.WalkTiles[RandomRange(0, 1)];
    So I changed the range to a high of 1, instead of a zone search. Only encountered this error when I set SAMEZONE to True.

  6. #31
    Join Date
    Mar 2022
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I think the only issue I've had, (though rarely happened) depending on the amount of miners in MLM, if you've mined ores too quickly before the last pay dirt before capped ore red notification pops then it gets stuck once it comes down the ladder. So I did babysit a bit but it's more than enough to get the nuggets you may need.

    Thank you I've lurked this since the first version release.

  7. #32
    Join Date
    Jun 2009
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    16 Post(s)

    Default

    Quote Originally Posted by masterBB View Post
    Nice script! A bit of a late run by me, had to work on a iron 'quild mine' miner to get level 72 mining. I now got tons of ores, the dwarves are a bit stingy with the gold nuggets though.

    Progress Report:
    [================================]
    [ Runtime    : 02H 39M 01S       ]
    [ XP Gained  : 88445(33370 / Hr) ]
    [ Nuggets    : 23(9 / Hr)        ]
    [ Coal       : 495(187 / Hr)     ]
    [ Gold       : 316(119 / Hr)     ]
    [ Mithril    : 308(116 / Hr)     ]
    [ Adamantite : 105(40 / Hr)      ]
    [ Runite     : 0(0 / Hr)         ]
    [ Shutdown   : 03H 36M 24S       ]
    [================================]
    [     Motherlode Miner BETA 2    ]
    [================================]


    I had some trouble getting it past the one hour mark though. I encountered the following bugs:
    • Looking for colours outside the mainscreen
    • Not finding the deposit box on certain worlds
    • Sometimes it gets stuck in this loop where it switches very quickly between mining and clearing the ruble. Usually the pickaxe barely hit the vein before the script clicks on the ruble again.


    For point 1 I added the following to the GetVeinsInMyZone function (I can't confirm this fixed it, but I did not see the problem again.):
    Simba Code:
    VeinBox := VeinRect.Bounds;
        VeinBox.LimitTo(MainScreen.Bounds);

    For point 2 I just hopped worlds. I made some screenshots yesterday but I can't find them.

    For point 3 al I got is this log:
    Code:
    [Bot]: Clearing the rockfall
    [Bot]: Rotating to angle: 0
    [Bot]: Rotating to angle: 0
    [Bot]: No veins found nearby, switching spots in zone
    [Bot]: Rotating to angle: 0
    [Bot]: No veins found nearby, switching zones
    [Bot]: Navigating to vein zone
    [Bot]: Rotating to angle: 44
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Rotating to angle: 185
    [Bot]: Clearing the rockfall
    [Bot]: Rotating to angle: 0
    [Bot]: Rotating to angle: 0
    [Bot]: No veins found nearby, switching spots in zone
    [Bot]: Rotating to angle: 0
    [Bot]: No veins found nearby, switching zones
    [Bot]: Navigating to vein zone
    [Bot]: Clearing the rockfall
    [Bot]: Rotating to angle: 86
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Rotating to angle: 0
    [Bot]: Rotating to angle: 0
    [Bot]: No veins found nearby, switching spots in zone
    [Bot]: Rotating to angle: 0
    [Bot]: No veins found nearby, switching zones
    [Bot]: Navigating to vein zone
    [Bot]: Clearing the rockfall
    [Bot]: Rotating to angle: 180
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Rotating to angle: 0
    [Bot]: Rotating to angle: 0
    [Bot]: No veins found nearby, switching spots in zone
    [Bot]: Rotating to angle: 0
    [Bot]: No veins found nearby, switching zones
    [Bot]: Navigating to vein zone
    [Bot]: Clearing the rockfall
    [Bot]: Rotating to angle: 268
    [Bot]: Clearing the rockfall
    [Bot]: Clearing the rockfall
    [Bot]: Rotating to angle: 0
    [Bot]: Rotating to angle: 0
    [Bot]: No veins found nearby, switching spots in zone
    [Bot]: Rotating to angle: 0
    [Bot]: No veins found nearby, switching zones
    [Bot]: Navigating to vein zone
    [Bot]: Clearing the rockfall
    [Bot]: Rotating to angle: 46
    [Bot]: Clearing the rockfall
    [Bot]: Rotating to angle: 0
    [Bot]: Rotating to angle: 0
    [Bot]: No veins found nearby, switching spots in zone
    [Bot]: Rotating to angle: 0
    [Bot]: No veins found nearby, switching zones
    [Bot]: Navigating to vein zone
    [Bot]: Rotating to angle: 43
    [Bot]: Clearing the rockfall
    [Bot]: Rotating to angle: 354
    [Bot]: Clearing the rockfall
    Regardless of those bugs, the script runs really well. And with short runs and keeping a bit of an eye on the script, it can achieve nice result. It even got me to write a simba colour script again.
    Hi Flight, Great script! I've gotten from 95 mining to 97 so far. Above point 3 is still a bug in BETA_final. The reason I believe is due to the code in TScript.MineVeins:


    Simba Code:
    if 'reach that' in Chat.GetMessage(7, [CHAT_COLOR_BLACK]) then
        begin
          Self.MineZoneBlock(Self.GetCurrentZone(), True);
          Exit;
        end;
    This will trigger in every loop when mining until some other message appears in the chat. Some thoughts on how to amend this perhaps (I'm sure there's many better ways): Add a 'continue;' for each check above this and move the worldhop check to the top without a continue. I've briefly checked below with 'reach that' in Chat.GetMessage (edit: below solution still mines the rockfall every time the loop finishes such as when the vein depletes or animating/xp drop doesn't trigger. All I can think of if you want to use the chat messages is to keep all the lines in the chatbox remembered in an array and to only activate the condition if the 7th message matches what your looking for and the full array of 0-7 messages are different to the previous time you acted on the chat messages. The only time that wouldn't work is if all 8 messages are the same which is unlikely) :
    Simba Code:
    while (not T.IsFinished) do
      begin
        if (not RSClient.IsLoggedIn) then Exit;
        if Inventory.IsFull() then break;

        if HOPONCHAT then
          Self.CheckForChat();

        if Chat.ClickContinue(False) then
        begin
          T.Restart;
          continue;
        end;

        if XPBar.Read() > XP then
        begin
          XP := XPBar.Read();
          T.Restart();
          continue;
        end;

        if (SRL.PercentShift(MainScreen.GetPlayerBox(), 500) >= PERCSHIFT) then
        begin
          T.Restart();
          continue;
        end;

        if Self.DoAB() then
        begin
          T.Restart();
          continue;
        end;



        if 'reach that' in Chat.GetMessage(7, [CHAT_COLOR_BLACK]) then
        begin
          Self.MineZoneBlock(Self.GetCurrentZone(), True);
          Exit;
        end;

        Wait(250);
      end;

    Further edit, I'm now testing the following workaround:
    I added PreviousChatArray : TStringArray; to the TScript record
    then created the Function:
    Simba Code:
    function TScript.ChatChecker(ChatMessage: String): Boolean;
    var i,Count: Int32;
    begin
    if PreviousChatArray = [] then
    begin
      for i:=0 to CHAT_INPUT_LINE - 1 do
        PreviousChatArray.Append(Chat.GetMessage(i, [CHAT_COLOR_BLACK]));
      if ChatMessage in PreviousChatArray[CHAT_INPUT_LINE - 1] then Exit(True);
    end else
    begin
      for i:=0 to CHAT_INPUT_LINE - 1 do
      begin
        if PreviousChatArray[i] <> Chat.GetMessage(i, [CHAT_COLOR_BLACK]) then
        begin
          PreviousChatArray[i] := Chat.GetMessage(i, [CHAT_COLOR_BLACK]);
          Count += 1;
        end;
      end;
    end;
    if ChatMessage in PreviousChatArray[CHAT_INPUT_LINE - 1] then Exit(Count > 0);
    end;

    I then used the function in the DepositDirt and MineVeins like:
    Simba Code:
    if Self.ChatChecker('reach that') then
        begin
          Self.MineZoneBlock(Self.GetCurrentZone(), True);
          Exit;
        end;

Page 2 of 2 FirstFirst 12

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
  •