Mining Guild and Rimmington Miner

Discussion in 'Sythe Lib Archive' started by Program, Feb 11, 2018.

Mining Guild and Rimmington Miner
  1. Unread #1 - Feb 11, 2018 at 5:46 PM
  2. Program
    Joined:
    Sep 17, 2015
    Posts:
    5,003
    Referrals:
    0
    Sythe Gold:
    902
    Discord Unique ID:
    171517906276843520
    Discord Username:
    FuukinAndy #6867

    Program Formerly known as Andy Samberg
    Retired Sectional Moderator

    Mining Guild and Rimmington Miner

    The first script mines ore and banks it in the mining guild with the three rocks closest to the bank chest. You need to be in the default camera position and zoomed all the way in as this is hard coded.

    The second mines the two rocks in Rimmington mining area with the two rocks to the southeast side. It'll just drop when it reaches a full inventory. It also requires default camera angle and zoomed in.

    These scripts are currently hardcoded, but I'm working on a script that can mine anything anywhere given a couple inputs. I figured I'd just drop these here for people who are interested in trying to get them working themselves.

    Once again, this is raw development code. I usually follow a process of "make it work" -> "make it clean." And this script never made it to the second step, so I'm not interested in a code review. If you improve the script, I'll edit this to reflect improvements though.

    I'll add that I got mils of exp with these scripts and haven't seen a ban.

    Guild:
    Code:
    SetVirtualMouseJavaModeOn();
    
    global ironColor = 3086607;
    
    global font1 = LoadFontFromBitmap(LoadBitmapFromString(
            "0006!0q_70LRx4sF+o`-Q(69p^U(kguHXRVl1Tsn0MG=!91lqkYyysv05B4pQlF|AB=t!pCYVX" +
            "2)h2*aN}8UdPWxLnl6jJ%>_}#<YMUm-wKGsQs=Eg^#D-)KbxvtDmSwF`?t#to6n2AZ-MNfjWpv" +
            "RtIc{xZVmAA`T-_+vEwW>7>yr?annH-Gie}w9`?p^E+rsyAG}0uaMw4CKk&-5DV<ne%>3gf9b=" +
            "?V}nG$6ILOFj|n@D6x+BEyG-1nW{OQ`kpiYSR9$QhNKw6V6NbuL%Ur1^Q0`OT7&ii>>TFC$(%i" +
            "854~kjs0nAfO`!ht{f6`O;L^$Bcz}<S^}FUgn=z1{nnaL{LzA)qd-*&AAX(^4%-Ta>=Bm$%au(" +
            "O=UClkK^Xv?$`6%v7#o~UT%r82MKpVMRLX0n(UK%baPDkU{8|6Y9g@G4~^Dkag}pp1{>b<1!3o" +
            "IGbEXSBL!Fp!>t`L0Y;WeQ}c>hDrnXE?bL+LtMcZOX=u-TyoIJmGw$+yu8SE3CYo5vYcfa_l9E" +
            "4n0cDVM)x!j_ETU4!?zPb|Br%MVGg4w94PD$3Nf8l1WeJJ2UEQFvKJLr9?Xe)lf|GvSOvN|02P" +
            "8)&ePssOHnEFDNnG0I+Zx_;ZHqs=QO#d9T*YE(WTK-|8r;_^BC=Z+weVleUo~6aqqJ>XD)UapX" +
            "-2WJqeY)}ZOy45W(ug<^K#o}CM$2va=CoksVVf810+SHMgA`2ig2MJ{SW7&00000", 0xff00ff, true),
    "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:", 0xff00ff);
    
    global font2 = LoadFontFromBitmap(LoadBitmapFromString(
            "0006x0j&TILRx4sF+o`-Q(3=4LO%c%!N4ZK000Ca01yBG0MG^=-~a#s009Fu12h6pRHF>g1tkZ" +
            "SP-RpYR8hxVUB=c^Qj;Yqqb(#*h^PsqM99RXj8ilcXoL(JMnRy=H4F)oLMn=)#v>RqM$sE@+gq" +
            "B(v~5Pl)dfb|7}XU>qhYXOv~9FoV`()dMxwE?sED!>fQcnW)f)t8Hj*haF)EE?Y|UcWwv$DQqi" +
            "mXrO=7X2qKj!Qv}!96sH1F_DAvZJi$z&9TUe_mjgYHi(pZaRi7jkeqM25WM$v6WA)+?1tw~lk(" +
            "X9sCOoXDOBN*7&)L9b2rfs5GWVD$!iYb(nGD;gLl0`eNmXa`Pjf)scN=->csI?)DnPSqBNK#FK" +
            "W)Mq8G_t{xDG3mo!z_s<7^KEaLP@a*g(7H(sgTUr%$1guXd@PB6qFc}G>K~=tYo7wv4V_522B>" +
            "3W`r5GVG;~d8Dk{Gz*L1S%P=BZRMizJV9O+lMN2YRjA+UbQW+9Wu!$OJi5OB;Y=)TyjFCu|A~v" +
            "IIC}lE6iAxhC3Jn>U#w4VhWXlwrOtDPcB}ye3W{nb(L9|q0sU*z|MUvJSDN7?sGb2h<N*a-%P*" +
            "jl;l%~x_3YH5dD$Izaf{+T6X2NNV$RwhHF>5JNjKY)?C6cNQ5@@MPjBTQgQMQQ0Rg|M`LTy<q8" +
            "&Rrev9{RS%>kIDZJ0KyY)Z{c$+Q}1RkEU+L~Pk=lu_|_BvXY63-lx-@Bjb+", 0xff00ff, true),
    "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789:", 0xff00ff);
    
    global font3 =  LoadFontFromBitmap(LoadBitmapFromString(
        "0001Q05|{&LRx4sF+o`-Q&~)QKpX%8$iM)=000260Pq3<C#WD+)wV??7?F_BCT$uplp7NylVfP" +
            "8ji9946m3S0vdBc*G-?nuXf$IOqKhPzB1SB+q9$NtB`DBA2q?h{l!+wGZDO^ni@744C`cwdAPx" +
            "Wk", 0xff00ff, true), "1234567890", 0xff00ff);
    
    
    
    if (SetWindow("Old School") == ""){Die("Could not find runescape");}while(SelectInnerWindow("SunAwtCanvas")){}
    // SetVirtualInputsOff();
    
    ClickMouse(533,245,1);
    
    def dropOre() {
        var x = RandomInt(563,587);
        var y = RandomInt(255,277);
        KeyDown(0x10);
        Sleep(100);
        for (var i = 0; i < 6; ++i)
        {
            Sleep(100);
            ClickMouse(x,y,1);
            y += 35;
        }
    
        x = RandomInt(606,630);
        y = RandomInt(220,240);
    
        for (var i = 0; i < 7; ++i)
        {
            Sleep(100);
            ClickMouse(x,y,1);
            y += 35;
        }
    
        x = RandomInt(648,674);
        y = RandomInt(220,240);
    
        for (var i = 0; i < 7; ++i)
        {
            Sleep(100);
            ClickMouse(x,y,1);
            y += 35;
        }
    
        x = RandomInt(693,713);
        y = RandomInt(220,240);
    
        for (var i = 0; i < 7; ++i)
        {
            Sleep(100);
            ClickMouse(x,y,1);
            y += 35;
        }
        Sleep(100);
        KeyUp(0x10);
        Scrape();
        while(FindColor(x, y, ironColor, 550, 207, 732, 457, 10)) {
            ClickMouse(x,y,2);
            y += 40;
            ClickMouse(x,y,1);
            Sleep(500);
            Scrape();
        }
    
        return;
    }
    
    def bankOre() {
        var x = 0;
        var y = 0;
        ClickMouse(611, 86, 1);
        Sleep(5500);
    
        Scrape();
        while(FindColor(x, y, 4995363, 600, 212, 718, 240, 10)) {
        
    
            var depositBoxX = RandomInt(106,174);
            var depositBoxY = RandomInt(91,214);
    
            var depositAllX = RandomInt(181,208);
            var depositAllY = RandomInt(248,271);
    
            ClickMouse(depositBoxX, depositBoxY, 1);
            Sleep(1000);
            ClickMouse(depositAllX, depositAllY, 1);
            Sleep(300);
    
            KeyDown(27);
            Sleep(50);
            KeyUp(27);
    
            Sleep(700);
            Scrape();
        }
    
        ClickMouse(669, 80, 1);
    
        Sleep(5500);
    }
    
    def words(word) {
        Scrape();
        var l = 0;
        var x = 0; var y = 0;
        var s = OCRUsingFont(x, y, font1, 0, 0, 300, 100, 0, 30, 50, 0);
        print(s);
        print(Contains(l, word, s));
        return (Contains(l, word, s));
    }
    
    def Main() {
        print("HELLO2");
        var x = 0;
        var y = 0;
        var firstIronX = RandomInt(207, 276);
        var firstIronY = RandomInt(243, 312);
    
        var secondIronX = RandomInt(121, 187);
        var secondIronY = RandomInt(148, 216);
    
        var thirdIronX = RandomInt(214, 283);
        var thirdIronY = RandomInt(53, 124);
    
        var timeout = 50;
    
        Scrape();
        while(true) {
            print("HELLO3");
    
    
            firstIronX = RandomInt(207, 276);
            firstIronY = RandomInt(243, 312);
            Scrape();
            if(!IsColor(GetColor(705,441),4932154, 30)) {
                bankOre();
            }
            Scrape();
            timeout = 50;
            while(FindColor(x, y, 3748916, 207, 243, 276, 312, 10)) {
                Sleep(100);
                Scrape();
                if(timeout == 0) {
                    break;
                }
                --timeout;
            }
            print("HELLO4");
            // MoveMouse(firstIronX, firstIronY);
            // Sleep(1000);
            // if(words("Mine")) {
                ClickMouse(firstIronX, firstIronY, 1);
            // }
            Scrape();
            timeout = 50;
            while(FindColor(x, y, 3545875, 207, 243, 276, 312, 10)) {
                Sleep(100);
                Scrape();
                if(timeout == 0) {
                    break;
                }
                --timeout;
            }
            print("HELLO5");
    
    
    
    
    
            secondIronX = RandomInt(121, 187);
            secondIronY = RandomInt(148, 216);
            Scrape();
            if(!IsColor(GetColor(705,441),4932154, 30)) {
                bankOre();
            }
            print("HELLO7");
            Scrape();
            timeout = 50;
            while(FindColor(x, y, 3748916, 121, 148, 187, 216, 10)) {
                Sleep(100);
                Scrape();
                if(timeout == 0) {
                    break;
                }
                --timeout;
            }
            // MoveMouse(secondIronX, secondIronY);
            // Sleep(1000);
            // if(words("Mine")) {
                ClickMouse(secondIronX, secondIronY, 1);
            // }
            Scrape();
            timeout = 50;
            while(FindColor(x, y, 3545875, 121, 148, 187, 216, 10)) {
                Sleep(100);
                Scrape();
                if(timeout == 0) {
                    break;
                }
                --timeout;
            }
            print("HELLO8");
            Scrape();
            if(!IsColor(GetColor(705,441),4932154, 30)) {
                bankOre();
            }
            print("HELLO9");
    
    
    
    
    
            thirdIronX = RandomInt(214, 283);
            thirdIronY = RandomInt(53, 124);
            Scrape();
            if(!IsColor(GetColor(705,441),4932154, 30)) {
                bankOre();
            }
            print("HELLO7");
            Scrape();
            timeout = 50;
            while(FindColor(x, y, 3748916, 214, 53, 283, 124, 10)) {
                Sleep(100);
                Scrape();
                if(timeout == 0) {
                    break;
                }
                --timeout;
            }
            // MoveMouse(thirdIronX, thirdIronY);
            // Sleep(1000);
            // if(words("Mine")) {
                ClickMouse(thirdIronX, thirdIronY, 1);
            // }
            Scrape();
            timeout = 50;
            while(FindColor(x, y, 3545875, 214, 53, 283, 124, 10)) {
                Sleep(100);
                Scrape();
                if(timeout == 0) {
                    break;
                }
                --timeout;
            }
            print("HELLO8");
        }
    }
    
    print("HELLO1");
    Main();
    
    Rimmington
    Code:
    SetVirtualMouseJavaModeOn();
    
    global ironColor = 3086607;
    
    
    if (SetWindow("Old School") == ""){Die("Could not find runescape");}while(SelectInnerWindow("SunAwtCanvas")){}
    // SetVirtualInputsOff();
    
    ClickMouse(533,245,1);
    
    def dropOre() {
        var x = RandomInt(563,587);
        var y = RandomInt(255,277);
        KeyDown(0x10);
        Sleep(100);
        for (var i = 0; i < 6; ++i)
        {
            Sleep(100);
            ClickMouse(x,y,1);
            y += 35;
        }
    
        x = RandomInt(606,630);
        y = RandomInt(220,240);
    
        for (var i = 0; i < 7; ++i)
        {
            Sleep(100);
            ClickMouse(x,y,1);
            y += 35;
        }
    
        x = RandomInt(648,674);
        y = RandomInt(220,240);
    
        for (var i = 0; i < 7; ++i)
        {
            Sleep(100);
            ClickMouse(x,y,1);
            y += 35;
        }
    
        x = RandomInt(693,713);
        y = RandomInt(220,240);
    
        for (var i = 0; i < 7; ++i)
        {
            Sleep(100);
            ClickMouse(x,y,1);
            y += 35;
        }
        Sleep(100);
        KeyUp(0x10);
        Scrape();
        while(FindColor(x, y, ironColor, 550, 207, 732, 457, 10)) {
            ClickMouse(x,y,2);
            y += 40;
            ClickMouse(x,y,1);
            Sleep(500);
            Scrape();
        }
    
        return;
    }
    
    // dropOre();
    
    def Main() {
        print("HELLO2");
        var x = 0;
        var y = 0;
        var firstIronX = RandomInt(342, 392);
        var firstIronY = RandomInt(182, 247);
    
        var secondIronX = RandomInt(232, 292);
        var secondIronY = RandomInt(264, 315);
    
        var timeout = 100;
    
        Scrape();
        while(true) {
            print("HELLO3");
            firstIronX = RandomInt(342, 392);
            firstIronY = RandomInt(182, 247);
            if(!IsColor(GetColor(705,441),4932154, 30)) {
                dropOre();
            }
            Scrape();
            timeout = 100;
            while(FindColor(x, y, 3748916, 322, 171, 409, 262, 10)) {
                Sleep(100);
                Scrape();
                if(timeout == 0) {
                    break;
                }
                --timeout;
            }
            print("HELLO4");
            ClickMouse(firstIronX, firstIronY, 1);
            Scrape();
            timeout = 100;
            while(FindColor(x, y, 3545875, 322, 171, 409, 262, 10)) {
                Sleep(100);
                Scrape();
                if(timeout == 0) {
                    break;
                }
                --timeout;
            }
            print("HELLO5");
    
            if(!IsColor(GetColor(705,441),4932154, 30)) {
                dropOre();
            }
            print("HELLO6");
    
            secondIronX = RandomInt(232, 292);
            secondIronY = RandomInt(264, 315);
            if(!IsColor(GetColor(705,441),4932154, 30)) {
                dropOre();
            }
            print("HELLO7");
            Scrape();
            timeout = 100;
            while(FindColor(x, y, 3748916, 215, 315, 250, 330, 10)) {
                Sleep(100);
                Scrape();
                if(timeout == 0) {
                    break;
                }
                --timeout;
            }
            ClickMouse(secondIronX, secondIronY, 1);
            Scrape();
            timeout = 100;
            while(FindColor(x, y, 3545875, 215, 315, 250, 330, 10)) {
                Sleep(100);
                Scrape();
                if(timeout == 0) {
                    break;
                }
                --timeout;
            }
            print("HELLO8");
    
            if(!IsColor(GetColor(705,441),4932154, 30)) {
                dropOre();
            }
            print("HELLO9");
        }
    }
    
    print("HELLO1");
    Main();
    
     
    ^ JSand likes this.
    Last edited: Feb 11, 2018
  3. Unread #2 - Feb 11, 2018 at 8:45 PM
  4. JSand
    Joined:
    Nov 3, 2013
    Posts:
    1,511
    Referrals:
    0
    Sythe Gold:
    2,059
    Discord Unique ID:
    231898879644270593
    <3 n4n0 Wait, do you not have an Archer rank? (2) Potamus Pokémon Trainer Easter 2019 Sythe's 10th Anniversary Spam Forum Participant Two Factor Authentication User Heidy Lawrence

    JSand Guru
    $50 USD Donor New

    Mining Guild and Rimmington Miner

    Interesting. Ill try this out Andy. Are the sleep timers and missclicks done on purpose as antibans?

    Edit: nvm realized i had camera position incorrect.
     
    Last edited: Feb 11, 2018
  5. Unread #3 - Feb 11, 2018 at 9:21 PM
  6. JSand
    Joined:
    Nov 3, 2013
    Posts:
    1,511
    Referrals:
    0
    Sythe Gold:
    2,059
    Discord Unique ID:
    231898879644270593
    <3 n4n0 Wait, do you not have an Archer rank? (2) Potamus Pokémon Trainer Easter 2019 Sythe's 10th Anniversary Spam Forum Participant Two Factor Authentication User Heidy Lawrence

    JSand Guru
    $50 USD Donor New

    Mining Guild and Rimmington Miner

    @Andy Samberg about 20mins into mining in mining guild it stops clicking ores. I assumed it was a sleeptimer but couldn't see any for that extended amount of time. Last thing it says is this; Execution thread status: alive [attempting to kill]

    I have to manually stop and re-start
     
    Last edited: Feb 11, 2018
  7. Unread #4 - Feb 11, 2018 at 9:29 PM
  8. Program
    Joined:
    Sep 17, 2015
    Posts:
    5,003
    Referrals:
    0
    Sythe Gold:
    902
    Discord Unique ID:
    171517906276843520
    Discord Username:
    FuukinAndy #6867

    Program Formerly known as Andy Samberg
    Retired Sectional Moderator

    Mining Guild and Rimmington Miner

    Which script are you using? I haven't tested either of them in a like a bit. Make sure you start them next to the ores as I'm sure you've found out.

    What's the last "hello" that prints? Or if you dont have that, where does it stop? Like what's the last thing it does.
     
    Last edited: Feb 11, 2018
  9. Unread #5 - Feb 11, 2018 at 9:42 PM
  10. JSand
    Joined:
    Nov 3, 2013
    Posts:
    1,511
    Referrals:
    0
    Sythe Gold:
    2,059
    Discord Unique ID:
    231898879644270593
    <3 n4n0 Wait, do you not have an Archer rank? (2) Potamus Pokémon Trainer Easter 2019 Sythe's 10th Anniversary Spam Forum Participant Two Factor Authentication User Heidy Lawrence

    JSand Guru
    $50 USD Donor New

    Mining Guild and Rimmington Miner

    I'm using the mining guild one. It mines half an invent and abruptly stops. There are no Hellos right now.
     
  11. Unread #6 - Feb 11, 2018 at 9:43 PM
  12. Program
    Joined:
    Sep 17, 2015
    Posts:
    5,003
    Referrals:
    0
    Sythe Gold:
    902
    Discord Unique ID:
    171517906276843520
    Discord Username:
    FuukinAndy #6867

    Program Formerly known as Andy Samberg
    Retired Sectional Moderator

    Mining Guild and Rimmington Miner

    Want to come chat with me in Discord for a min and we can figure it out.
     
  13. Unread #7 - Feb 11, 2018 at 9:44 PM
  14. JSand
    Joined:
    Nov 3, 2013
    Posts:
    1,511
    Referrals:
    0
    Sythe Gold:
    2,059
    Discord Unique ID:
    231898879644270593
    <3 n4n0 Wait, do you not have an Archer rank? (2) Potamus Pokémon Trainer Easter 2019 Sythe's 10th Anniversary Spam Forum Participant Two Factor Authentication User Heidy Lawrence

    JSand Guru
    $50 USD Donor New

    Mining Guild and Rimmington Miner

    Yea sure just give me a minute
     
< Someone please help | OSRS Docks Glassblowing Script >

Users viewing this thread
1 guest


 
 
Adblock breaks this site