• Log in or sign up for an account here: https://www.sythe.org/login

Ardy knight thiever script

Program

Formerly known as Andy Samberg

Retired Sectional Moderator
Joined
Sep 17, 2015
Sythe Gold
902
Messages
5,003
This script is for trapped knights in the room in ardy where you can click the knight repeatedly. It eats cakes for you once your health gets too low.

I may or may not have gotten 200m thieving using this 0.o (initially for cake eating, simplified for after 95)

You might have to tweak the mouse position depending on your camera angle since i set mine up how i liked it. Or try and match my camera angle by trial and error.

Code:
SetVirtualMouseJavaModeOn();
if (SetWindow("Old School") == ""){Die("Could not find runescape");}while(SelectInnerWindow("SunAwtCanvas")){}
// SetVirtualInputsOff();

global targetHoverText = "PickpocketKnight"; // What text should show up when hovering this target? No spaces, hyphens, etc. Can be a subset of the characters, like "TalktoGrand".
global targetX = 164; // Put the X position of where you want to click here.
global targetY = 129; // Put the Y position of where you want to click here.
global minClickInterval = 300; // Minimum interval before clicking again. In Milliseconds.
global maxClickInterval = 700; // Maximum interval before clicking again. In Milliseconds.

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 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);

def CheckIfHoveringTarget() {
    Scrape();
    var x = 0; var y = 0;
    var foundText = OCRUsingFont(x, y, font1, 0, 0, 300, 100, 0, 30, 50, 0);
    return (Contains(targetHoverText, foundText));
}

def words(word) {
    for (var i = 0; i < 5; ++i) {
        Scrape(0,0,300,100);
        var l = 0;
        var x = 0; var y = 0;
        var s = OCRUsingFont(x, y, font1, 0, 0, 300, 100, 0, 30, 50, 0);
        if (Contains(l, word, s)) {
            return true;
        }
        Sleep(1);
    }
    return false;
}

def eatFood() {
    var x = 0;
    var y = 0;
    Sleep(100);
    Scrape();
    if(FindColor(x, y, 15987185, 550, 207, 737, 464, 10)) {
        ClickMouse(x,y,1);
    } else {
        Exit(0);
    }

    return;
}

def AutoClick() {
    var x = 0;
    var y = 0;
    MoveMouse(targetX, targetY);
    while(true) {
        Scrape();
        if(to_int(OCRUsingFont(x, y, font3, 515, 50, 544, 70, 0, 30, 50, 0)) >= 4) {
            MoveMouse(targetX, targetY);
            if(words("PickpocketKnight")) {
                ClickMouse(targetX, targetY, 1);
            }
        } else {
            while(to_int(OCRUsingFont(x, y, font3, 515, 50, 544, 70, 0, 30, 50, 0)) <= 17) {
                eatFood();
                Sleep(1000);
            }
        }
        Sleep(RandomInt(minClickInterval, maxClickInterval));
    }
}

AutoClick();
 
Last edited:
Dragon Claws
It stops clicking if the knight is out of the spot? So it doesn't start clicking ladders etc..
 
It stops clicking if the knight is out of the spot? So it doesn't start clicking ladders etc..

Yeah, or if the hero walks in the way it won’t kill itself on it
 
Creeper
Diamond
Diamond Pickaxe
Runescape Participant
Spam Forum Participant
Community Participant
Donor Lounge Participant
Writing Competition Winner
Sythe Awards 2022 Winner
Sythe Awards 2024 Winner
Rio 2016
Paper Trading Competition Participant
March Madness
SytheSteamer
Dragon Claws
May the 4th Be With You
HamSanta
Member of the Quarter Winner
Sythe's 15th Anniversary
Sythe's 20th Anniversary
thoughts on ban rate?
 
thoughts on ban rate?

I've found that my bans are directly correlated to the age and maturity of the account I'm botting. It seems to me they catch me if they manually look at my account or monitor it heavily, which seems to happen mostly on new accounts.

Old, mature, accounts seem to be able to suicide bot without catching a ban. New accounts I make and bot on get banned frequently.
 
I've found that my bans are directly correlated to the age and maturity of the account I'm botting. It seems to me they catch me if they manually look at my account or monitor it heavily, which seems to happen mostly on new accounts.

Old, mature, accounts seem to be able to suicide bot without catching a ban. New accounts I make and bot on get banned frequently.

My main 116 combat above 1600 days got banned and not even suiciding, so I doubt this argument though.
 
My main 116 combat above 1600 days got banned and not even suiciding, so I doubt this argument though.

When speaking about trends, individual data points don’t mean much.

And I was talking about SytheLib, I’ll bet you were using a standard bottingclient.
 
Last edited:
Runescape Gamblingrunescape gambling
Back
Top