jhilds varrock rune buyer

Discussion in 'Outdated RS Scripts' started by jhild, Apr 12, 2007.

jhilds varrock rune buyer
  1. Unread #1 - Apr 12, 2007 at 2:15 PM
  2. jhild
    Referrals:
    0

    jhild Guest

    jhilds varrock rune buyer

    second release added two types of runes
    post imporvements
    progress report still messed up wont say 2nd type but i thought id let everyone get the new release
    enjoy

    Code:
    program New;
    
    // first release banker doesnt quite work
    //start in arburys rune shop with the rune window opened
    //post what needs to be fixed
    //jhild.
    
    //second release fixed banker( a little might have minor flaws)
    //added masking option and second rune option
    {.include SRL\SRL.Scar}
    const
    rune = 'water';// type of rune
    runes = 10;// how many it will only buy exact amounts in 10s but if its like
    //425 it will buy 430
    twotypes = true;//true or false if u want to get 2 seperate types of runes
    rune2 = 'fire';//second type of rune if ^ is true
    runes2 = 10;// how many of the second rune if its true
    bank = true;//true to bank false to not
    Mask = 'AIM';//what to mask scar as
    
    //////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    TheBank = 'vwb';// dont touch
    var
    xx,yy,i,k,t,h,xy,yx,q: integer;
    typeofrune: string;
    procedure buywater;
    begin
    repeat;
     if FindColortolerance(xx,yy,11016725,0,0,700,700,5) then
     begin
     i:= i+10;
     wait(100+random(50));
     MMouse(xx,yy,1,1);
     wait(100+random(400));
     Mouse(xx,yy,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
     end;
     until (i>=runes)
    end;
    
    procedure buyfire;
    begin
    repeat;
     if FindColortolerance(xx,yy,1319334,0,0,700,700,5) then
     begin
     i:= i+10;
     wait(100+random(50));
     MMouse(xx,yy,1,1);
     wait(100+random(50));
     Mouse(xx,yy,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
    end;
    until (i>=runes)
    end;
    
    procedure buyair;
    begin
    repeat;
     if MMouse(190,84,1,1) then
     begin
     i:= i+10;
     Mouse(190,84,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
     end;
     until (i>=runes)
    end;
    
    procedure buyearth;
    begin
    repeat;
     if FindColortolerance(xx,yy,870251,0,0,700,700,5) then
     begin
     i:= i+10;
     wait(100+random(50));
     MMouse(xx,yy,1,1);
     wait(100+random(40));
     Mouse(xx,yy,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
      end;
      until (i>=runes)
    end;
    
    procedure buymind;
    begin
    repeat;
     if FindColortolerance(xx,yy,542022,0,0,700,700,5) then
     begin
     i:= i+10;
     wait(100+random(50));
     MMouse(xx,yy,1,1);
     wait(100+random(50));
     Mouse(xx,yy,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
     end;
     until (i>=runes)
    end;
    
    
    procedure buybody;
    begin
    repeat;
     if FindColortolerance(xx,yy,13573655,0,0,700,700,5) then
     begin
     i:= i+10;
     wait(100+random(50));
     MMouse(xx,yy,1,1);
     wait(100+random(50));
     Mouse(xx,yy,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
     end;
     until (i>=runes)
    end;
    
    procedure buychaos;
    begin
    repeat;
     if FindColortolerance(xx,yy,1681119,0,0,700,700,5) then
     begin
     i:= i+10;
     wait(100+random(50));
     MMouse(xx,yy,1,1);
     wait(100+random(50));
     Mouse(xx,yy,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
      end;
      until (i>=runes)
    end;
    
    procedure buydeath;
    begin
    repeat;
     if FindColortolerance(xx,yy,1052692,404,66,447,107,5) then
     begin
     i:= i+10;
     wait(100+random(50));
     MMouse(xx,yy,1,1);
     wait(100+random(50));
     Mouse(xx,yy,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
      end;
      until (i>=runes)
    end;
    
    procedure buywater2;
    begin
    repeat;
     if FindColortolerance(xx,yy,11016725,0,0,700,700,5) then
     begin
     k:= k+10;
     wait(100+random(50));
     MMouse(xx,yy,1,1);
     wait(100+random(400));
     Mouse(xx,yy,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
     end;
     until (k>=runes2)
    end;
    
    procedure buyfire2;
    begin
    repeat;
     if FindColortolerance(xx,yy,1319334,0,0,700,700,5) then
     begin
     k:= k+10;
     wait(100+random(50));
     MMouse(xx,yy,1,1);
     wait(100+random(50));
     Mouse(xx,yy,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
    end;
    until (k>=runes2)
    end;
    
    procedure buyair2;
    begin
    repeat;
     if MMouse(190,84,1,1) then
     begin
     k:= k+10;
     Mouse(190,84,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
     end;
     until (k>=runes2)
    end;
    
    procedure buyearth2;
    begin
    repeat;
     if FindColortolerance(xx,yy,870251,0,0,700,700,5) then
     begin
     k:= k+10;
     wait(100+random(50));
     MMouse(xx,yy,1,1);
     wait(100+random(40));
     Mouse(xx,yy,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
      end;
      until (k>=runes2)
    end;
    
    procedure buymind2;
    begin
    repeat;
     if FindColortolerance(xx,yy,542022,0,0,700,700,5) then
     begin
     k:= k+10;
     wait(100+random(50));
     MMouse(xx,yy,1,1);
     wait(100+random(50));
     Mouse(xx,yy,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
     end;
     until (k>=runes2)
    end;
    
    procedure buybody2;
    begin
    repeat;
     if FindColortolerance(xx,yy,13573655,0,0,700,700,5) then
     begin
     k:= k+10;
     wait(100+random(50));
     MMouse(xx,yy,1,1);
     wait(100+random(50));
     Mouse(xx,yy,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
     end;
     until (k>=runes2)
    end;
    
    procedure buychaos2;
    begin
    repeat;
     if FindColortolerance(xx,yy,1681119,0,0,700,700,5) then
     begin
     k:= k+10;
     wait(100+random(50));
     MMouse(xx,yy,1,1);
     wait(100+random(50));
     Mouse(xx,yy,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
      end;
      until (k>=runes2)
    end;
    
    procedure buydeath2;
    begin
    repeat;
     if FindColortolerance(xx,yy,1052692,404,66,447,107,5) then
     begin
     k:= k+10;
     wait(100+random(50));
     MMouse(xx,yy,1,1);
     wait(100+random(50));
     Mouse(xx,yy,1,1,false);
     wait(100+random(50));
     PopUp('Buy 10');
      end;
      until (k>=runes2)
    end;
    
    procedure ifs;
    begin
    if rune = 'water' then
    buywater;
    if rune = 'earth' then
    buyearth;
    if rune = 'chaos' then
    buychaos;
    if rune = 'death' then
    buydeath;
    if rune = 'fire' then
    buyfire;
    if rune = 'air' then
    buyair;
    if rune = 'body' then
    buybody;
    if rune = 'mind' then
    buymind;
    end;
    
    procedure ifs2;
    begin
    if rune2 = 'water' then
    buywater2;
    if rune2 = 'earth' then
    buyearth2;
    if rune2 = 'chaos' then
    buychaos2;
    if rune2 = 'death' then
    buydeath2;
    if rune2 = 'fire' then
    buyfire2;
    if rune2 = 'air' then
    buyair2;
    if rune2 = 'body' then
    buybody2;
    if rune2 = 'mind' then
    buymind2;
    end;
    
    procedure progress;
    begin
    typeofrune:=(rune)
    cleardebug;
    writeln('sucessfully bought '+ inttostr(i) + (typeofrune) +'s');
    writeln('script by jhild')
    end;
    
    procedure logedout;
    begin
    MMouse(649,486,1,1);
    wait(100+random(200));
    Mouse(649,486,1,1,true);
    wait(100);
    MMouse(650,378,1,1);
    wait(100);
    Mouse(650,378,1,1,true);
    end;
    
    procedure FindBooth;
    begin
    q:=0;
    repeat
    q:= q+1;
    begin
    Makecompass('s');
    wait(100+random(20));
    if findcolortolerance(t,h,4483191,0,0,516,339,3) then
    begin
    MMouse(t,h,1,1)
    wait(100+random(30));
    Mouse(t,h,1,1,false);
    wait(100+random(40));
    Popup('quickly');
    wait(200+random(20));
    end;
    end;
    until bankscreen = true or (q = 50);
    if bankscreen = false then
    begin
    writeln('error cant find bank booth, logging out');
    Logedout;
    end;
    end;
    
    
    
    procedure bankage;
    begin
    perfectnorth;
    wait(100+random(50));
    Setrun(true);
    wait(100+random(50));
    MMouse(680,20,1,1);
    wait(100+random(50));
    Mouse(680,20,1,1,true);
    wait(10000+random(50));
    findcolortolerance(xy,yx,6284281,556,6,762,157,4);
    wait(100+random(20));
    MMouse(xy,yx,1,1);
    wait(100+random(20));
    Mouse(xy,yx,1,1,true);
    wait(2000+random(400));
    FindBooth;
    Wait(200+random(10));
    depositall;
    wait(100+random(30));
    closebank;
    end;
    
    
    begin
    SetUpSRL;
    DisguiseScar(Mask);
    MMouse(758,4,1,1);
    wait(100);
    Mouse(758,4,1,1,true);
    i:=0;
    ifs;
    if twotypes = true then
    begin
    k:= 0;
    ifs2;
    end;
    MMouse(487,43,1,1);
    wait(400);
    Mouse(487,43,1,1,true);
    if bank = true then
    begin
    bankage;
    end;
    logedout;
    progress;
    end.
     
  3. Unread #2 - Apr 12, 2007 at 6:18 PM
  4. The Bloodz
    Joined:
    Mar 22, 2007
    Posts:
    585
    Referrals:
    1
    Sythe Gold:
    0

    The Bloodz Forum Addict

    jhilds varrock rune buyer

    works for me but could be a tad faster i guess
     
  5. Unread #3 - Apr 12, 2007 at 6:29 PM
  6. jhild
    Referrals:
    0

    jhild Guest

    jhilds varrock rune buyer

    k ill keep that in mind
     
  7. Unread #4 - Apr 12, 2007 at 6:47 PM
  8. The Bloodz
    Joined:
    Mar 22, 2007
    Posts:
    585
    Referrals:
    1
    Sythe Gold:
    0

    The Bloodz Forum Addict

    jhilds varrock rune buyer

    Random mouse movements might help.

    Also whe ni started it up buying water runes the scar program was over the water runes so it just clicked the scar program, make it so that it clicks on the runescape screen before trying to buy.

    good job anyway
     
  9. Unread #5 - Apr 17, 2007 at 2:02 PM
  10. Heh3x1337
    Referrals:
    0

    Heh3x1337 Guest

    jhilds varrock rune buyer

    Nice script but i dont think I'l use it cuz i dont need rune buyer...
     
  11. Unread #6 - Apr 17, 2007 at 4:29 PM
  12. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    jhilds varrock rune buyer

    Nice script, but try making your own banking proecdure instead of OpenBank. OpenBank doesn't work as well as it could.
     
  13. Unread #7 - Apr 22, 2007 at 9:52 PM
  14. xSlaughteRx
    Joined:
    Apr 21, 2007
    Posts:
    270
    Referrals:
    0
    Sythe Gold:
    0

    xSlaughteRx Forum Addict
    Banned

    jhilds varrock rune buyer

    no offense but

    1) why would u want a rune buyer? dont u only need like 1 set..
    2) did you make this yourself?
     
  15. Unread #8 - Apr 24, 2007 at 10:37 PM
  16. jhild
    Referrals:
    0

    jhild Guest

    jhilds varrock rune buyer

    yes i did make this myself and
    if u need to buy runes in sets of 1000 or something
     
  17. Unread #9 - Apr 29, 2007 at 5:09 AM
  18. fons
    Referrals:
    0

    fons Guest

    jhilds varrock rune buyer

    Thx gona try this one.
     
  19. Unread #10 - Apr 29, 2007 at 8:54 AM
  20. crapkiller
    Joined:
    Jul 19, 2006
    Posts:
    426
    Referrals:
    0
    Sythe Gold:
    0

    crapkiller Forum Addict

    jhilds varrock rune buyer

    OpenBankGlass works great for me, no lag and gets on usually first click.
     
  21. Unread #11 - Apr 29, 2007 at 10:33 AM
  22. Gofez0r
    Joined:
    Jan 21, 2007
    Posts:
    1,820
    Referrals:
    1
    Sythe Gold:
    0

    Gofez0r Guru

    jhilds varrock rune buyer

    U used the same procedure over and over again with small changes.. If u think about it, u can do that in alot easier ways too.
     
  23. Unread #12 - Apr 30, 2007 at 10:51 PM
  24. jhild
    Referrals:
    0

    jhild Guest

    jhilds varrock rune buyer

    yea i know and i am learning thats why i asked people to post these things and thanks for that tip ill go try to think of something
     
< Auto Talker With Form!!!!!!! | Really nooby autotalker (first script) >

Users viewing this thread
1 guest


 
 
Adblock breaks this site