Results 1 to 16 of 16

Thread: Fawki's RS3 scriptvault

  1. #1
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default Fawki's RS3 scriptvault

    Hello good people of SRL!

    I am not by far the most skilled scripter, and most of my work will be painful to the average programmers brain, but these works have brought me nonetheless many skillcapes over the cause of SRL's existence.
    Below you find a list of some of the scripts I have been working on for the past year or so. I am done with most of them, so I am going to share them with you. All of my scripts are written to my exact personal needs, so there are many prerequisites to take in consideration before running them. Therefore I need to do some rework before releasing any of these scripts, so I thought it would be nice to let you decide which ones should be published first. If this works for all parties, I'll bring out more content. Once more, they are simple, stupid, (KISS principle) but get the job done.


    List of current projects:

    1. 14_14_Use : takes 14 objects from slot 9 and 14 from slot 10, combines them and banks.
    2. Bamboo_Trader: chops bamboo at Waiko (Player owned Ports) and sells at merchanter for chimes.
    3. Box_Trap: Sets up five traps and collect chinchompas ad inf.
    4. Catherby_Cooker: Cooks at furnace in Catherby and banks
    5. Chop_Yews: Chops yews and fletches or dissasambles logs.
    6. Divination: gen purpose divination gathering
    7. Chop_Bank_Acadia: Chops and banks Acadia logs in the VIP area in Menaphos.
    8. Clean_Herbs: Cleans any herb and banks
    9. Craft_Any: Crafts any object. Also script available leaving spot 1 alone (for thread, bolttips etc)
    10. Drag_Invent: Drags everything into the dissasamble hole.
    11. Ectomelt: Ectofunctus melter and or crafter. Amulets, Bars (with coalbag) and cannonballs.
    12. Enchanter: Enchants jewelry
    13. FireRune_Runner: does what is dsays. Not very solid though
    14. Fish_Porter: Fishes anywhere and porters the fish.
    15. Menaphos_Bonfire: Retrieves logs from bankchest and drops them into Menaphos's bonfire in the Workers District.
    16. Goblin_Thiever: Thieves Cave Goblins in Dorkgesh-Khan.
    17. Harp: Collects harmonic dust from Harp at Priffdinas.
    18. Keldragrim_Rune_Switcher: Mines Rune and switches worlds.
    19. Keramja_Gold: Mines and porters Gold at the keramja gold circle spot.
    20. LobterInvent: Fishes Lobster and disassembles them.
    21. Mahogany_Builder: builds in POH. Needs butler to run!
    22. Menaphos Fish: Fishes at Menaphos's Port District and banks at chest nearby.
    23. Mining_Guild_Porter: Mines coals in guild and porters them.
    24. Powermine_Invent: Powerminer and disassembler. (Better than dropping ey?)
    25. Priffdinas_Agility: Henin course agility runner
    26. Runespan_Toplevel: Runespan script
    27. Safe: Cracks safes at rogues den. Banks to Gem bag.
    28. Salty_Crabletines: Mines Crabletines in Cyclosis.
    29. Serenity_Post: Performs the daily 20k Agility xp in Priffdinas.
    30. Superheat: Superheats and banks.
    31. Shilo_Gem_Porter: Mines gems at shilo and porters them.
    32. Shilo Gem_Switcher: Mines gems at shilo switches worlds.
    33. Smith: Smiths and banks at Varrock anvil.
    34. Incandecent Divination Muspah: Gathers wisps at the incandecent colony and uses Muspah's to enhance collecting.




    Monsters Fighters: These are all variations on the same theme but all properly process the relevant monster drops.
    1. Abberant Spectres
    2. Aquanites
    3. Basilisks
    4. Black Demonas
    5. Bloodveld
    6. Blue Dragons
    7. Corrupted_Creatures
    8. Crawling Hands
    9. Desert Strykewyrms
    10. Gargoyles
    11. Grotworms
    12. Iron Dragons
    13. Kalphites
    14. Kurasks
    15. Lesser Demons
    16. Moss Giants
    17. Mountain Trolls
    18. Water Friends


    So there you have it. My treasure room If you think there is anything worth publishing...reply!



    P.S. Allthough none of these scripts has given me a single ban thusfar, I am not entirely convinced this will remain the case once released!


    WT!
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  2. #2
    Join Date
    Oct 2007
    Posts
    187
    Mentioned
    7 Post(s)
    Quoted
    61 Post(s)

    Default

    Just a bit curious on how you handle looting at those monsters without getting bans. Do any of these monster fighters utilize sign of the porters?

  3. #3
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    My scripts process all loot instant. I hihalc, disassemble, put into gembag, with a goldaccumulator, herbicider en seedicider all equipped. Also I have notepapers for those rares I want to keep. Porters can be used, but they allow for 25 transports only.
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  4. #4
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

  5. #5
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    It took me a while to figure out, but it turned out to be simple...as always. Once the monster ik killed, for approx. 5 seconds there is a stack value indicator. I look for 7 seconds for the left stackcorner (5*5 bitmap), when found I look for the right corner. I hover the mouse to the centre between the two corners and if a Mouseover text appears I click it. If there is more than one loot, I spacebar the lootall button if found through VK_Space.

    Simba Code:
    function collectloot: Boolean;
    var SLC, SRC: Integer; //StackLeftCorner, StackRightCorner
    var CurT, startT, t:Integer;
    var lootall, slx, sly, srx, sry, smx, smy, fx: Integer
    begin
      SLC := BitmapFromString(5, 5, 'meJxbsGCBhoGBBAQoKPz48QPIFRAQ' +
              'gAhAuBxgAOECgQAMLFiw4AcMANkAjlAeQQ==');

      SRC := BitmapFromString(5, 5, 'meJyTkJAQACIBAQ0NjQULFkiA2RDu' +
              'jx8/gAwOMIBzIeAHGADV/4ABIBsA5nEdsQ==');
    lootall := BitmapFromString(65, 2, 'meJx1TykSgDAMjKxERkYikUiewTP' +
            '6lMrKSp6DRPYpJE1vhpkVsFc35CMAmHUnHzOCwCABUiMTQKyLquZP' +
            '7RiuZU4K/QdhBMeR0Ab2L8c51cq8zjnw07djPALdwyP1t5J8V5okE' +
            'Va1sBiyqk+kqnyCH2xaNV2B9jK0tYi7qy3Pq6lSVWe/YquX8Q==');

      StartT:= GetSystemTime;
      CurT:= GetSystemTime;

      while (StartT + 7000) > CurT do
      begin
      CurT:= GetSystemTime;

       if FindbitmapTolerancein(SLC,slx, sly,80,100,550,306,60) then
       begin
         writeln('found left corner');
         if FindbitmapTolerancein(SRC,srx, sry,80,100,550,306,60) then
         begin
          writeln('found right corner');
          fx := round(((slx+srx)/2));
          mouse( point(fx, sly+random(4)+ 6));
          w8(1);
          if isMouseOverText(['ake']) then
          begin
           GetMousePos(smx,smy);
           mouse(point(smx,smy), MOUSE_LEFT);
           writeln('Clicking Loot');
           minimap.waitFlag(2);
           minimap.waitPlayerMoving();
           t := GetSystemTime;
           repeat
            if GetSystemTime > t + 3000 then break;
           until FindbitmapTolerancein(lootall,wtx,wty,100,200,300,300,50);
           typeByte(VK_SPACE);
           Result:= True;
           w8(1);
           Freebitmap(SLC);
           Freebitmap(SRC);
           Freebitmap(LootAll);
           wait(100 + random(300));
           Exit;
          end;
         end
        end
        else
        begin
        writeln('not found stackcorner')
        end;
      end;
      Result := False;
      Freebitmap(SLC);
      Freebitmap(SRC);
      Freebitmap(LootAll);
    end;

    I know ugly code but works pretty well, even through walls etc.
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  6. #6
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

  7. #7
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    Also I have made a simple record of the bitmap mask for the most common drops to be able to recognize the object in my inventory and process it. I currently have seven different methods: disassemble, eat, bury, craft, magic notepaper and hialc and disassemble anything above stack 50.

    Simba Code:
    type
      Item  = record
        n : string;       // name
        w, h,a,u : Integer; // width,height, amount, use
         bm : string;     // bitmap
     end;


    var
      Items: Array of Item;


    procedure setitems;
    begin

     SetLength(Items, 42);

    Items[0].n := 'hatchet';
    Items[0].w := 20;
    Items[0].h := 29;
    Items[0].a := 0;
    Items[0].u := 1;
    Items[0].bm  := 'meJzt08ESABAIBND9/5/miq1tGc' +
            'c6Nl4iAAw7sAdnRHCRK84kbKlsQPTjW1HQtIjOcixzrj2bjr/pmhS' +
            'zzizo/TAUVrTq2DLatm370epvLvgbXHm5bALKOHWZ';

    Items[1].n := 'battlestaff';
    Items[1].w := 30;
    Items[1].h := 30;
    Items[1].a := 0;
    Items[1].u := 1;
    Items[1].bm := 'meJzl0kEOACEIA0D+/2lNPBm7Ik' +
            'LJauzJg4xAFCGktDCkkR0OXFaonaNDkWdIBNendu9kWeWTjSW7sv3' +
            '+btv2hlNlO5sn/7sKB4vyZzmFVeJgUUhiI0E2CF7E4hpZ7Oyhd1hF' +
            'DrIon/zHEM9ge5wIVpOjbKI=';

    Items[2].n := 'herb';
    Items[2].w := 32;
    Items[2].h := 25;
    Items[2].a := 0;
    Items[2].u := 1;
    Items[2].bm := 'meJy1k0kOwCAMA/n/p1OpVRGKsx' +
            'rwjQrGztIxGhKRzvWePvg9i0k+ZaE463HfArth2skrmr8SkI8dk19' +
            '1PtIUapX33EQVY5iZvSqwLUU4x0/LrEzHexiHD6QIWGNQeMtl+HUV' +
            'hxvnj1FEeK/wmMMZpV84BYPb35wUsmNRXDkC3t1nbv9bwcRSeoGen' +
            'VpmufOnn82sLBB4Cj5pxKsHGvIFGA==';

    Items[3].n := 'scimitar';
    Items[3].w := 28;
    Items[3].h := 32;
    Items[3].a := 0;
    Items[3].u := 6;
    Items[3].bm := 'meJzN1NEKwCAIhWHf/6XdxUhCW4' +
            'P5n1FXseDDHTMzc3dD1w2ybJggqzPrHjQRNiEis89WQVEqwi4FH4t' +
            'lX48+s6Jqm/Hq2OX/6ljkmj3J51+zKBKsdqbwBJrB/tYp0UuLjG1y' +
            'qBFQsJXq96v6my8dE5msoOY0wARS7y4cgDbY';

    Items[4].n := 'sqshield';
    Items[4].w := 33;
    Items[4].h := 32;
    Items[4].a := 0;
    Items[4].u := 1;
    Items[4].bm := 'meJztlUsWwCAIA73/pemur49iSx' +
            'Ky07XMGH+sxYyIoOowvs/yJDssif8eg3xljlhLZ4GqCAVaggZxp6b' +
            'PrhlEvBu/lqk3teMM8sssh3/4Cn/K9c3XG0pz/co/36/l/nlobVxf' +
            '8LUGbm+hvMrZWfmJUF5mnb+zzPJLo5WfFA7+bVEUF7pMfpA=';


    Items[5].n := 'fullhelm';
    Items[5].w := 28;
    Items[5].h := 32;
    Items[5].a := 0;
    Items[5].u := 6;
    Items[5].bm := 'meJzd0ksKwCAMBNDe/9J2URAxmc' +
            'kkplDqznye3+uqjDFGb9eTyrK8a2YLrNs1I1lzbUQpN6uAdjN2SjZ' +
            'ss6hYDKIy/kykmIDhj3IjaMUV1C8BfUILIjns3eLhAVMmTymN7nKF' +
            '4b5CL3jIKhfVCBZYBVyLe8GUKYKiqZdlzTfO/v37/KupsAWTs9lHD' +
            '9kTcBO2UQYRy+tvqRjbMw==';

    Items[6].n := 'bar';
    Items[6].w := 31;
    Items[6].h := 24;
    Items[6].a := 0;
    Items[6].u := 1;
    Items[6].bm :='meJztlDEOwDAIA/P/T7dbVKkETs' +
            'ZsYQ5nQI7XovV8CjdR7IRQ2S7zYaOwgvAe3mrumH0/nOa3OC2Euzw' +
            'cutdC/sPt5A285KFTh3/T6OoJYyd50s+QPKnk2OcZyANTHgmqyMuW' +
            'Kk1yomIkn1RgywuDH0LM';

    Items[7].n := 'helm';
    Items[7].w := 26;
    Items[7].h := 30;
    Items[7].a := 0;
    Items[7].u := 6;
    Items[7].bm := 'meJzt1DEOACAIA0D+/2ncjInSVi' +
            'RxUGY4AaNm6/AggnQUoCrBKskiqKcVHqpk7i4Eb1incEnu9peFacq' +
            'meU+oWSjROvK1W9qIVGnpD/Brz2rOQtEoQsGIohNFXfn+4wKbEQXQ' +
            'zIlDW2oehoSK';

    Items[8].n := 'sword';
    Items[8].w := 27;
    Items[8].h := 27;
    Items[8].a := 0;
    Items[8].u := 6;
    Items[8].bm :=  'meJzl01EKwCAMA9Dc/9IdYzC0kY' +
                  '42dQzWP0UfUSvQU2bWJJ3UpenmTS2HBY3xMrhVw58O+x2N94rao/+' +
                  'y5o62BLNaECMFxittqFTCIFjtLXiX2MAYbtLNiBo3c4tmc3Vly3YL' +
                  '50kl4VQOL2s7QNC16yC0j+DqAA6oaaU=';

    Items[9].n := 'strengthpot';
    Items[9].w := 22;
    Items[9].h := 32;
    Items[9].a := 0;
    Items[9].u := 1;
    Items[9].bm := 'meJzNlVEKwCAMQ73/pR1sMBRNmq' +
            'Yyls8teRQtsTWofgv/D/RmPc4ayUK2hBSkSCBmBcI9yiR/JvRBnIA' +
            'gepwTlDgikO+6rXIIOuEbQ7gwFcKRoxYJ9etGK6fEkblYpHafj2Vu' +
            'E57sqTfFnsEeYy2c7Fuw3YqwCfssxYNkTMuzF6whVLo=';

    Items[10].n := 'sqshield';
    Items[10].w := 22;
    Items[10].h := 31;
    Items[10].a := 0;
    Items[10].u := 6;
    Items[10].bm :=  'meJztlMEOwCAIQ/v/P80OZgasNh' +
            't48GBPrh0PogkA7BWcLGoa9U8fsSmidh4c7igiYTJhGomOH9XLcxA' +
            '/QILA8/+FFMuHquJN1glbXvMSLuE0AnZsmASkWI64YQ7cD+J1Vj9b' +
            'XJgrgjkx06LY4ZsX5rSpnv8ByuLATg==';

    Items[11].n := 'water battlestaff';
    Items[11].w := 31;
    Items[11].h := 28;
    Items[11].a := 0;
    Items[11].u := 5;
    Items[11].bm :='meJzt1MEKACAIA1D//6cNOpXkKF' +
            '2B0M728jAUqRHtoYMjy/oCIGFf54CZgLy/QADfeRXAl/PqJykD/2h' +
            't4FPqZ5Dkqkb2WJZMNIGcZ5cyhf1yadlQN5pcVxbSiXuP3+ge/dZ5' +
            'PpFt+CJ+kA==';

    // specials

    Items[12].n := 'Lobster';
    Items[12].w := 34;
    Items[12].h := 32;
    Items[12].a := 0;
    Items[12].u := 2;
    Items[12].bm :='meJzV1EsSgCAMA9De/9K6c7CFkD' +
            'bFGdmhNI+fmvW0a2hNkRMCdA8ph6Bp5k8hkNYFxaOPTcxXCHJAtmp' +
            'VvkorTAwExgSRwAPwsEYClG8V/T5/sJAWRb/zW4XccPIDEeeJQ/AA' +
            '5hfBQ8/bMTBLGLF1LjN2GZe8AzrBL9yJDEEuJJakiIJSJsprcVuHl' +
            'RSxmp54uwC0faIrjGvVQyGV6926iGn4CcJBqaobcShJ0w==';

    Items[13].n := 'bigbone';
    Items[13].w := 25;
    Items[13].h := 22;
    Items[13].a := 0;
    Items[13].u := 3;
    Items[13].bm := 'meJytkksOACEIQ73/pZ3EBSHDp1' +
            'DoTrGPEjnH0X3yKj0JZE7TqAlN268SnSdq4aqLIgJUOroWOpt+szh' +
            'm9FPEf4llcau3UPQ40YJVNhPSpFTpm7zR97AdDA+7JBYbMjq2aEVv' +
            'girOAlFDjoVwBEv7XX6Yh36Q';

    Items[14].n := 'bone';
    Items[14].w := 27;
    Items[14].h := 21;
    Items[14].a := 0;
    Items[14].u := 3;
    Items[14].bm := 'meJytklEOgDAMQrn/pWui0ZhQkL' +
            'rxNdfmQVcBpzplWwZ6ULuYb+B1/h24bvnPBK7azL3JYxxVA18qSHV' +
            'SVQ9s3yqkKYIaXCVnRwx3p7zYFwu/cZvTBA6fwlfNLtju0xF641Og' +
            'ipePw9k8v20w1VF/onzeEXMvELTZdSCCdbAOSJXJRQ==';

    Items[15].n := 'uncut gem';
    Items[15].w := 25;
    Items[15].h := 24;
    Items[15].a := 0;
    Items[15].u := 5;
    Items[15].bm := 'meJzd1DEOACAIA0D+/2lNnBqMUI' +
                  'EBZaYnAyji1FjldR2DWAGQaSZ7yBcFJk86djBM7dkkhfH/KBXPU7j' +
                  'JTSgUSqYq0Xruw37amaN+ggprxjdofJJXlNL4Il8knQlVSDPb';

    Items[16].n := 'cut gem';
    Items[16].w := 23;
    Items[16].h := 24;
    Items[16].a := 0;
    Items[16].u := 1;
    Items[16].bm :=  'meJzNlDEOwDAIA/n/p12pUwItMX' +
                  'aHMjHAgRLjCDYA0LUdYcrBHWuScnJuGo09SIJcNtr2rdiHjB7/ESJ' +
                  '/37cQTY1JAAIhig5NiHNW/4GEet1pDWeZes6C2h259n7CmAxjR73J' +
                  'kIaWimsc24+cvusCYdMh7Q==';

    Items[17].n := 'runes and arrow';
    Items[17].w := 10;
    Items[17].h := 8;
    Items[17].a := 0;
    Items[17].u := 7;
    Items[17].bm := 'meJxjYGD4//8/A24wOGXxa4QArLI' +
            'AMWga5g==';

    Items[18].n := 'ore';
    Items[18].w := 34;
    Items[18].h := 31;
    Items[18].a := 0;
    Items[18].u := 5;
    Items[18].bm := 'meJy1kkESwCAIA/n/p+2pjhVYI1' +
            'pu7ZAsBM0W1d5aNdZrNP8PNDn3z/at65TQ9hAUUsK2MkifuVMKGYZ' +
            'XAEr5qTRX0JYNqXiODrsUEe1Dg6lALm6XOS/PrRwrM5n+K3KeREkj' +
            'a1AmYYp9r1ZGLCnmnkemOqR4UCg5p5i7URjgIQVW2KJAmxiOThGjK' +
            'CRm+HgyQ50Cw/MhtlbOTqlkCBQ/JFNYngl9j0IBuaLNKOF/NufixW' +
            'ueW5RbiJByfZHJVjnuRVDN5AFdlwYl';

    Items[19].n := 'staff';
    Items[19].w := 27;
    Items[19].h := 31;
    Items[19].a := 0;
    Items[19].u := 1;
    Items[19].bm := 'meJzt1DEOACEIRFHuf2m3WmNGtp' +
            'D5m1BIZcPLCNGIYo23qoBq6dnXEDMFHTPtxcE/zPLFZcVSLHjqSBe' +
            'Vqpu2gv78cW0Hy85XPBY0tQn2jMdO72qmFsRaqV9u18KOl2p94kkq' +
            '6s2KaVIPCghmqA==';


    Items[20].n := 'gauntlets';
    Items[20].w := 31;
    Items[20].h := 22;
    Items[20].a := 0;
    Items[20].u := 1;
    Items[20].bm := 'meJy11DEOACAIA0D+/2lMHBwUsN' +
            'XCrBdAxAwKn4Gd5WKxcn8DVX7WCk8CNx8yvF75rLq4Lulnhggfqw8' +
            'PKVVbzpHokyV4NsP/q6OQKaRJtqjG4kezabOL5W3ngCur+LB4hrjP' +
            '1o77Ei30O9jNV2kD10E22A==';


    Items[21].n := 'raw rocktail';
    Items[21].w := 32;
    Items[21].h := 32;
    Items[21].a := 0;
    Items[21].u := 5;
    Items[21].bm := 'meJzFlFEOgDAIQ73/pfFLY4CV0r' +
            'HIlxr6qJ14XbtlZu5isBxzfEQEnh5hTx3il88ZoCvQJpB/b+5KmLY' +
            'YGsNveRDgDFnrF76u2cBl4c7q4VcY2evxdXaQ1OTU7wjA98NJzb+3' +
            '5FJgMjav8bHWhTO+VjF8PCJNmOeXnSf843jLU3POv82MtjyySLZFp' +
            'c55Pp6VkpnvbYVK5S1yqVqZ58mMcITPTBeSEUa0VDdg3iX3';


    Items[22].n := 'raw cavefish';
    Items[22].w := 32;
    Items[22].h := 26;
    Items[22].a := 0;
    Items[22].u := 1;
    Items[22].bm := 'meJzN0zEOwDAIA0D+/2kqdejQJs' +
            'axQSpr4ACJRLRFZvZha3yoxcPmHXN+nKyQmwA+yAEj4afX8CYen72' +
            'E8nKAMvj121toPnMM2vXuZHAGGl5myj6TJuPT/hDOl/t++2/Cp2j6' +
            'PO74fPKvfP7mNd8Zif8vZgsmjvzTdjx1AdXumXU=';


    Items[23].n := 'spear';
    Items[23].w := 32;
    Items[23].h := 32;
    Items[23].a := 0;
    Items[23].u := 6;
    Items[23].bm :=  'meJzt1DEKwDAMBEH9/9MXSGEcx+' +
            '52AwFdp2ZkhOQqOElocsVzR8JPJeXnGRZffA+n5MYbb7zxX+PDB/H' +
            'hS/+5is9dvJm/SxDHJ/MZXvQ2bnH15eo2Gnfq4XMLQ74AR5t4lg==';

    Items[24].n := 'roll';
    Items[24].w := 17;
    Items[24].h := 21;
    Items[24].a := 0;
    Items[24].u := 2;
    Items[24].bm :='meJzVjkEKACAIBP3/p7dDEKUs7t' +
            'Ih8qgzjBHNAOiQA568aCVs6e4z7p612vq9ovA74/LPX/olISp1aSU' +
            'UhZ30RAXSMJ5ZjBxcouAg';


    Items[25].n := 'magic log';
    Items[25].w := 34;
    Items[25].h := 26;
    Items[25].a := 0;
    Items[25].u := 1;
    Items[25].bm :='meJzdldEKgDAIRff/P72gIMKlXv' +
            'HeQfkWbOeoy22MWswzzOcdRZirMHBvQV8UoPCKZhidHJ7LkEw6BEp' +
            'X03LoP4nOkp7gVzqGFMI6l+EkTOR7TIViJUstF1yn+Ktlg0htMUMq' +
            'mpd10rmPaXDVgA8iyE9vs6oIhL9uxHPuNCGgUfipqMo5AJvTh4c=';


    Items[26].n := 'log';
    Items[26].w := 34;
    Items[26].h := 27;
    Items[26].a := 0;
    Items[26].u := 1;
    Items[26].bm :='meJztlUEOgDAIBPn/p2viwRgKBJ' +
            'ddvciph3YG0gBmnFhnkGAx/OLTRWHyrIpc8rBlldF5TrnTSVKq6HB' +
            'e+Diupb5AUXxumTeUGwJhz074hVetsFtFOsVvgUXuoFCoy9k7lDiN' +
            '630Ei5J1l06SzqzDyI9EE3IGrPkweRfp4JlowjkApOOQfg==';

    Items[27].n := 'kiteshield';
    Items[27].w := 25;
    Items[27].h := 31;
    Items[27].a := 0;
    Items[27].u := 6;
    Items[27].bm :='meJzd1EsOwCAIBFDuf2ndNSYIDM' +
            'ykacpWfYIfzKBYR2ArQufKkg445GeWkxGttaPEsTT57nlG1OyutZR' +
            '/MAPnm9T18f/moFTVRS1iTJFO0gkH/5f/emULBTvYaw5CIUhJgcmU' +
            'lNxBkIQaOJ7qFhVRjHNSDKJK5okNLatdsQ==';

    Items[28].n := 'platebody';
    Items[28].w := 31;
    Items[28].h := 30;
    Items[28].a := 0;
    Items[28].u := 6;
    Items[28].bm :='meJy1lNsKwCAMQ/3/n3awMZBeQt' +
            'LaPE1sjuk2u1as/SrZlMuMxTx0yoALGL+t/YuHn8ZOgMwVLtUybAH' +
            'CXmmXEdlmGa52pPLn4J52HV67Xzx/FD7BNxfhenIcu3ncxdghAcDV' +
            '+Rz2Hs7V8nw29iw8Dw+TgA8KhiqI7cMDeNgRCT+XQ3DwziU4/luy+' +
            's2JT26SMGScEMBJMcmzEyW4b8p3WuBnkCY5hDwRIEzQ';

    Items[29].n := 'Royal Dragonhide';
    Items[29].w :=31;
    Items[29].h :=30;
    Items[29].a := 0;
    Items[29].u := 5;
    Items[29].bm :='meJzt1sEOwCAIA1D//6fdlehsEd' +
            'qb3Jbgq5mLbAxScyu2ghegminJhYWIQn8ypfNKaUT/vE6C8Esw4b+' +
            'UVl72L8cd8oJr5YjL5Yc//Fa24vFRK5tuLd99i+ddf8aZxlx+Rvt+' +
            'AGJzfjPl/eBjKsggZa+yTFNA/wd3yG+f';

    Items[30].n := 'Royal Cape';
    Items[30].w :=31;
    Items[30].h :=28;
    Items[30].a := 0;
    Items[30].u := 1;
    Items[30].bm :='meJzF1FEOgDAIA1Duf2n9nZqU0t' +
            'K4zwXeGDqqFtZ1rA3vwb52tuTRPs9iQfbbRLn/P8pFdExOEcrmg9M' +
            'yGS+Uwcs8O8JluX1ZOXnKkiWZMhhiOVljT9wRsAxwvydtjCwnXs10' +
            '+oXGyLce5jM5Dzn0D+CD5LKxz1zKP4hPuQFPGVq0';

    Items[31].n := 'Rune Longsword';
    Items[31].w :=31 ;
    Items[31].h := 31;
    Items[31].a := 0;
    Items[31].u := 6;
    Items[31].bm :='meJzt1kEKgDAMRNG5/6WjIEJJEx' +
            'f6pyC0q9TFawwmVlJEyLMuOe7lwLstjrt9EN/+9reftuwU6hzcTwH' +
            'id8ONqs+M4MmXR3z3RyHFpso8P3/hz6myn33ZSvjPcfQdlwdVLfZf' +
            '31ofeV5hQf7szC/9MzgAlhMP/w==';

    Items[32].n := 'Rune Dagger';
    Items[32].w :=23;
    Items[32].h :=32;
    Items[32].a := 0;
    Items[32].u := 6;
    Items[32].bm := 'meJzl0NEOABAIheHe/6W5sZaN6s' +
            'RodGn59kOETekHvN0E8yQgQD2vCow4hcwZKKII19+SJANFMnypsul' +
            'E9J2TJcMYvruOsLMueGKUt8wWoAznmBlh4c+MXQiJfjmQUAE9XW+f';

    Items[33].n := 'Adamant SQ Shield';
    Items[33].w :=29;
    Items[33].h :=28;
    Items[33].a := 0;
    Items[33].u := 6;
    Items[33].bm :='meJzl1MEOwCAIA1D+/6ddMrNFZU' +
            'Fo62mcPNCXZSJm5Wp3vec6sAH7mZSDOCzHwfaU0DzdafPPV5lJFru' +
            'I7S1gZvDBzMDIzYDln4wXJOaC/Nkk2WBQySmVT9S5B6Xd7Zm9jW2/' +
            '5F6Vd+b7q+YYlJtj3GuM+UlJTI8D2QvG70jG';

    Items[34].n := 'Rune Full Helm';
    Items[34].w := 24;
    Items[34].h := 28;
    Items[34].a := 0;
    Items[34].u := 6;
    Items[34].bm :='meJztlDEOACAIA/n/p3UzRApCdT' +
            'BGRqRnMYgIiIZCnyIRgHj5AZzIJU6pMg+JXZU4Xn0VAlUcREx3T3J' +
            '2XnjTD/w1hB/9R2gz4gzz5wSqqyb5FIeGTPLMuo73p51qKOc4Vr50' +
            'rgsCua2Hl3qZZLNLSRI18h2Z0oGN';

    Items[35].n := 'Adamant Chainbody';
    Items[35].w :=31;
    Items[35].h :=27;
    Items[35].a := 0;
    Items[35].u := 6;
    Items[35].bm :='meJzV1MsWgCAIBFD//6dr0Y6BYQ' +
            'A9lUvSGw9rrXxdsIRDKqvHS/Jwg3tET6xUQq9Y5VS7jWmxW65BNP0' +
            'hS6gf4UY7h2+UDX5ivhxvOG7cHe7wiyb/zypOBLw2p3GMc1xEvoNH' +
            'g4uuegMnGbqPMDGydNyUqchVPG0I9ucVfEH5VRwF93U9Gf0ncgNWaPwS';

    Items[36].n := 'Rune Mace';
    Items[36].w :=32 ;
    Items[36].h :=29 ;
    Items[36].a := 0;
    Items[36].u := 6;
    Items[36].bm := 'meJzVlUsSwCAIQ7n/pW2XtmEy/G' +
            'KnrNRKXkUEM8fW07wtdUPBKcT+wzjuK5PFjn7Qt4zgjvsRCoi4S/k' +
            'W4vERhSi7jfjynGkm6gKb1TfIFulbLnzKIg6cAhFn6uq4/leIHzUg' +
            'V238urGAiEI01eC4vgLx0mz2uBTCZNVDh3A1Ra+bd6hZxD29AOT4aaU=';


    Items[37].n := 'Adamant Boots';
    Items[37].w :=28 ;
    Items[37].h :=26 ;
    Items[37].a := 0;
    Items[37].u := 1;
    Items[37].bm := 'meJzNlDsOwDAIQ3P/S7dDlwpkbD' +
            'CVyhjwC5+Ec4hdyZiCA9Eti0DRO2YqAaFjDjO7npMxszhfZ1L7FXN' +
            'Wvv8I0YhNZgj7grmFnQm7WJ+ZIZQp7rd3jD6Lem/oK0jEBlern8X3' +
            '6bY0aJHl4FaeFIjyR0lqNUmqATCTlab5ZKq6ARx4gY0=';


    Items[38].n := 'Adamant Full Helm';
    Items[38].w :=16 ;
    Items[38].h :=21 ;
    Items[38].a := 0;
    Items[38].u := 1;
    Items[38].bm := 'meJxjYCAW/AcD4hUPrLG0U4zVwb' +
            'h8gcdYrIYQ6QYiFcPVEGkyqerJUDyqnrrqSTUcAIDhVqo=';


    Items[39].n := 'Rune Platelegs';
    Items[39].w :=16 ;
    Items[39].h :=32 ;
    Items[39].a := 0;
    Items[39].u := 6;
    Items[39].bm := 'meJzdk0EKACAIBP3/p+0WseqyEl' +
            'HkqXKosdJMCneHKazE1ATWQQxIxbO4kgjDETrf8tH5br1wV6JPl7/' +
            'ln678zZOGOuFj9D9U+1fv+5RP2tTEZ59fZXSeFKgbkrAQkE3hAYKC' +
            'omw=';


    Items[40].n := 'Rune Full Helm';
    Items[40].w :=22 ;
    Items[40].h :=28 ;
    Items[40].a := 0;
    Items[40].u := 6;
    Items[40].bm := 'meJztkkEKACAIBP3/p+0QhJkWu1' +
            '4i2lvoTBskMkWjrFNJko1CFWTInDQe7qO4q0HgDqwYOvuAgcPH1XQ' +
            'H9+crBluJMNjjN3zDVYajRJMctRC+X0afieIN9d9dsQ==';

    Items[41].n := 'Off Hand Rune Longsword';
    Items[41].w :=31 ;
    Items[41].h :=31 ;
    Items[41].a := 0;
    Items[41].u := 6;
    Items[41].bm := 'meJzt1sEOgCAMA9D+/0+raEIqG8' +
            'RIazyw08LhregOAKW2s2Coysp9BuX5L80anjO788NwBdy/j2OFGvA' +
            'DXzgipVQjBskdPo+Y96szmDKJx16CI4SPjcR/fv7C722m0E//rMRH' +
            'f3NUfqotf/m/9R3vB9/jJPpanEc4wrN/NDuClx7w';

    end;


    HandleStuff is where the processing of the loot takes place.

    Simba Code:
    function HandleStuff: Boolean;
    var x,xm,ym,t, slot, RuneAmount: Integer;
    var where:TPoint;
    var thebox, WTBox:TBox;
    var tempstr:string;
    bm:integer;
    begin

      thebox :=IntToBox(582,325,788,470);

      if infight then Exit(False;

        for x:= 0 to length(Items) do
        begin
          case Items[x].u of
          1:  // disassemble
            begin
              bm := bitmapfromstring(Items[x].w,Items[x].h,Items[x].bm);
              if findbitmapmasktolerance(bm, where, thebox, 10, 10) then
                begin
                  t := GetSystemTime;
                  Mouse(where.x + 4 + Random(16),where.y + 4 + Random(16));
                  dragmouse(Point(617 + Random(8),570  + Random(8)));
                  w8(1);
                  incEx(Items[x].a,1);
                  Mouse(422+Random(140),449 + Random(120));
                 repeat
                    if  WereDone then
                    begin
                      Result := True;
                      Break;
                    end
                  until (GetSystemTime > t + 10000);
                end;
                Freebitmap(bm);

            end;
          2:   // eat
            begin
              if infight then
             begin
              Exit(False);
             end;
            bm := bitmapfromstring(Items[x].w,Items[x].h,Items[x].bm);
             if findbitmapmasktolerance(bm, where,thebox, 10, 10) then
              begin
                xm := Where.x; ym := Where.y;
                Mouse(xm ,ym,16,16, MOUSE_LEFT);
                incEx(Items[x].a,1);
                w8(2);
              end;
            Freebitmap(bm);
           end;
          3:   // bury
            begin
             if infight then
             begin
              Result := False;
              exit;
             end;
            bm := bitmapfromstring(Items[x].w,Items[x].h,Items[x].bm);
            if findbitmapmasktolerance(bm, where, thebox, 10, 10) then
              begin
                xm := Where.x; ym := Where.y;
                Mouse(xm ,ym,16,16, MOUSE_LEFT);
                incEx(Items[x].a,1);
                w8(2);
              end;
            Freebitmap(bm);
           end;
          4:   // craft
            begin
             bm := bitmapfromstring(Items[x].w,Items[x].h,Items[x].bm);
              if findbitmapmasktolerance(bm, where, thebox, 10, 10) then
              begin
                t := GetSystemTime;
                xm := Where.x; ym := Where.y;
                Mouse(xm ,ym,16,16, MOUSE_LEFT);
                incEx(Items[x].a,1);
                w8(4);
                if ClickBlueBut then
                begin
                  repeat
                    if  WereDone then
                    begin
                      Result := True;
                      Break;
                    end
                  until (GetSystemTime > t + 10000);
                 Freebitmap(bm);
                 incEx(Items[x].a,1);
                end
              else
              Freebitmap(bm);
              end;
           end;
          5:   // magic notepaper
            begin
             bm := bitmapfromstring(Items[x].w,Items[x].h,Items[x].bm); // gem
              if findbitmapmasktolerance(bm, where, thebox, 10, 10) then
              begin
                xm := Where.x; ym := Where.y;
                Mouse(xm ,ym,16,16, MOUSE_RIGHT);
                if chooseOption.select(['se']) then
                begin
                  incEx(Items[x].a,1);
                  Mouse(422+Random(140),449 + Random(120));
                  w8(2);
                  if FindBitMapToleranceIn(MNP, xm, ym, thebox, 30) then
                  begin
                    writeln('found MagicNotePaper. Clicking');
                    Mouse(point( xm+random(15), ym + Random(14) ),MOUSE_LEFT);
                    w8(2);
                    Result := True;
                  end
                  result := True;
                end;
             end;
             Freebitmap(bm);
            end
           6:   // HiAlc
            begin
             bm := bitmapfromstring(Items[x].w,Items[x].h,Items[x].bm);
              if findbitmapmasktolerance(bm, where, thebox, 10, 10) then
              begin
                  t := GetSystemTime;
                  Mouse(where.x + 4 + Random(16),where.y + 4 + Random(16));
                  dragmouse(Point(700 + Random(8),570  + Random(8)));
                  w8(1);
                  incEx(Items[x].a,1);
                  Mouse(422+Random(140),449 + Random(120));
                 repeat
                    if  WereDone then
                    begin
                      Result := True;
                      Break;
                    end
                  until (GetSystemTime > t + 10000);
             end;
             Freebitmap(bm);
            end
            7:  // skip
            begin
            end
         end
         end;

         for x := 1 to 15 do
        begin
          runeAmount := getItemAmount(tabBackpack.getSlotBox(x));
          writeln('amount = ' + IntToStr(RuneAmount));
          if runeamount > 50 then
          begin
            WTBox := tabBackpack.getSlotBox(x);
            xm := WTBox.x1; ym := WTBox.y1;
            Mouse(xm + 4 + Random(16), ym + 4 + Random(16));
            dragmouse2(Point(617 + Random(8),570  + Random(8)));
            w8(2);
             Mouse(422+Random(140),449 + Random(120));
            t := GetSystemTime;
             repeat
                if  WereDone then
                begin
                  Result := True;
                  Break;
                end
              until (GetSystemTime > t + 30000);
            incEx(Items[17].a,50);
            end
         end;



       cleardebug;
       writeln('Worked for ' + TimeRunning);

       for x:= 0 to length(Items) do
       begin
          if Items[x].a <> 0 then
          begin
            if Items[x].u  = 1 then
              writeln('Disassembeled ' + IntToStr(Items[x].a) + ' ' +  Items[x].n + 's');
            if Items[x].u  = 2 then
              writeln('ate  ' + IntToStr(Items[x].a) + ' ' +  Items[x].n + 's');
            if Items[x].u  = 3 then
              writeln('buried ' + IntToStr(Items[x].a) + ' ' +  Items[x].n + 's');
            if Items[x].u  = 4 then
              writeln('crafted ' + IntToStr(Items[x].a) + ' ' +  Items[x].n + 's');
          end
       end;

    end;

    So by changing the value of the record "use" you change the behaviour of the object in your inventory.
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  8. #8
    Join Date
    Oct 2007
    Posts
    187
    Mentioned
    7 Post(s)
    Quoted
    61 Post(s)

    Default

    That's some good stuff, I never thought to use the stack value indicator to find the loot... always just continued using specific color profiles. Can't wait to see some releases!

  9. #9
    Join Date
    Mar 2018
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hi there,

    I'm very new to the SIMBA scripting scene (joined today, lurked a few weeks).
    I have a basic (very very basic) knowledge of what's going on with SIMBA scripts.

    Currently I am trying to complete my first script which is the priff harps for harmonic dusts (with help from the MehrunesHarper script).
    I would be very interested in your version, so I can compare and learn some more for this script.

    I intend to become a more overall script user (with personal scripts) and figured that the harps would be a good way to start learning the basics.
    If you can help me out by publishing the priff harp script, I will be gratefull .

    Cheers,

    BLS

  10. #10
    Join Date
    Sep 2014
    Posts
    447
    Mentioned
    10 Post(s)
    Quoted
    203 Post(s)

    Default

    Would love to see that box trap script! I've written my own, but it steps out of sync every now and then :/

  11. #11
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    6,136
    Mentioned
    28 Post(s)
    Quoted
    17 Post(s)

    Default

    Quote Originally Posted by yourule97 View Post
    Would love to see that box trap script! I've written my own, but it steps out of sync every now and then :/
    Yes mine did too. I managed to overcome this by picking up each boxtrap every time, nomatter full, empty or fallen. My script does require carefull callibration though, compass and zoom needs to be set, and there are only a couple of spots where it truly works flawless. Also: i was forced to build in a LABEL: to overcome misclicking and miscounting, and it only works with five traps
    SRL is a Library of routines made by the SRL community written for the Program Simba.
    We produce Scripts for the game Runescape.

  12. #12
    Join Date
    Sep 2006
    Posts
    95
    Mentioned
    2 Post(s)
    Quoted
    37 Post(s)

    Default

    any chance of getting your disassembler? and top floor runespan?

  13. #13
    Join Date
    Feb 2018
    Posts
    23
    Mentioned
    1 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by WT-Fakawi View Post
    CUT
    When do you think you will release some of these? I would be interested to see how you handled the combat scripts.

  14. #14
    Join Date
    Jan 2012
    Posts
    124
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Very interested in the disassembler and harp scripts if you're still working on these!

  15. #15
    Join Date
    Aug 2019
    Posts
    29
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Would also be interested to see these

  16. #16
    Join Date
    Nov 2012
    Posts
    161
    Mentioned
    2 Post(s)
    Quoted
    72 Post(s)

    Default

    Very interested to see how your combat scrips work. The looting you posted above is like you said, works great and simple. love it. Care to share the combat script? Also curious, does your Runespan just do wraiths or it does nodes? Currently trying to write one that priorities nodes but struggling with colors as everything is so similar in there.

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
  •