Results 1 to 15 of 15

Thread: Genius plan, but need major help.

  1. #1
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Genius plan, but need major help.

    I have recgonized that my script sometimes gets stuck when going to bank by the museum. So i decided for it to do radialwalk until it finds the bank, but this time i thot i should make it do radialwalk until it finds the bank in the bottom half of the minimap. I've tried a dozen times to do this, but I keep failing. So i ask if ANY generous person can edit this part of my script for it to only look for the findbank on the bottom half of the minimap. I will be sure to repp u and appreciate your help!

    Here is the script thats need to be edited so it does findbank only in the bottom half of the minimap! THANKS!~

    SCAR Code:
    procedure Walktobank;
    begin
      if Not(LoggedIn) then exit;
      SetAngle(True);
      MakeCompass('N');
      SetRun(False);
      RadialRoadWalk(FindVarrockRoadColor,0,90,65,-2,0);
      Wait (1000+ random(200));
      repeat
        Tries:= Tries +1;
        Myrandom;
        RadialRoadWalk(FindVarrockRoadColor,270,390,65,-2,0);
        Wait (1000+ random(200));
        FFlag(0);
        until FindBank('veb')or (Tries >6)
        If Tries >6 then
        begin
          WriteLn(' Dang, couldnt find bank! ');
          Logout;
        end else
          WriteLn('  Entering Bank  ');
          if FindDTM(Loadiron, x, y, mix1, miy1, mix2, miy2) then
          begin
          mouse (x,y,2,2,false);
          Wait(200+random(1000));
          ChooseOption('All');
          Wait (1000 +random(300));
          CloseBank;
          LoadsNum := LoadsNum + 1;
          Inc(Players[CurrentPlayer].Banked);
          if Players[CurrentPlayer].Banked mod LoadsPerPlayer = 0 then
          begin
            CheckLevel;
            Proggy;
            NextPlayer(True);
          end;
        end;
      end;

  2. #2
    Join Date
    Apr 2007
    Posts
    277
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If it's a VEM then use Walkpath, much easier to control in my opinion. There's a tutorial on it in the intermediate section in tutorial island.
    Current Script: Al-Kharid Fighter and Banker
    Status : Just Started

  3. #3
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Testing siggy *aka im spamming ftw...*

    yea, just set it to find the dtm in the lower half of the minimap
    ~ Metagen

  4. #4
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by metagen View Post
    Testing siggy *aka im spamming ftw...*

    yea, just set it to find the dtm in the lower half of the minimap
    LOl dude...thats what i need to know how to do that

  5. #5
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    DTM := DTMFromString('78DA632C61626008654001FFFFFF67F80FA41' +
           '921ECFF8C79403589A86ADEBE65609083AA0101C6024C357FFE30' +
           'A1AA01D99540404D05504D127E3500A4E91464');

    Edit: if u wnana test it use this

    SCAR Code:
    program New;
    {.include srl\srl.scar}
    var
    DTM : integer;

    function ToDBank : boolean;
    var c : tpoint;
    i : integer;
    begin
      if not LoggedIn then Exit;
       i := 0;
       repeat
         wait(200);
         i := i + 1;
         if i > 20 then
         begin
           LogOut;
           WriteLn('ERROR: Could not find bank, Logging off.');
           result := False;
           Exit;
         end;
         if DTMRotated(DTM, c.x, c.y, MMX1, MMY1, MMX2, MMY2) then
         begin
           i := 21;
         end else if FindSymbol(c.x, c.y, 'bank') then
         begin
           i := 21;
         end;
       until  i > 20
       Mouse(c.x, c.y, 0, 0, true);
       fflag(0);
    end;

    begin
    setupSRL;
      DTM := DTMFromString('78DA632C61626008654001FFFFFF67F80FA41' +
           '921ECFF8C79403589A86ADEBE65609083AA0101C6024C357FFE30' +
           'A1AA01D99540404D05504D127E3500A4E91464');
           repeat
           toDBank;
           until false;
    end.

    no you can't have that, it's mine.

    EditEdit: to make it so that you search in bottom half of the minimap just do this

    SCAR Code:
    DTMRotated(DTM, c.x, c.y, MMX1, MMY1, MMX2, MMY2) //instead of this do this
      DTMRotated(DTM, c.x, c.y, MMX1, {replace with y value to search below}, MMX2, MMY2)
    ~ Metagen

  6. #6
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by metagen View Post
    SCAR Code:
    DTM := DTMFromString('78DA632C61626008654001FFFFFF67F80FA41' +
           '921ECFF8C79403589A86ADEBE65609083AA0101C6024C357FFE30' +
           'A1AA01D99540404D05504D127E3500A4E91464');

    Edit: if u wnana test it use this

    SCAR Code:
    program New;
    {.include srl\srl.scar}
    var
    DTM : integer;

    function ToDBank : boolean;
    var c : tpoint;
    i : integer;
    begin
      if not LoggedIn then Exit;
       i := 0;
       repeat
         wait(200);
         i := i + 1;
         if i > 20 then
         begin
           LogOut;
           WriteLn('ERROR: Could not find bank, Logging off.');
           result := False;
           Exit;
         end;
         if DTMRotated(DTM, c.x, c.y, MMX1, MMY1, MMX2, MMY2) then
         begin
           i := 21;
         end else if FindSymbol(c.x, c.y, 'bank') then
         begin
           i := 21;
         end;
       until  i > 20
       Mouse(c.x, c.y, 0, 0, true);
       fflag(0);
    end;

    begin
    setupSRL;
      DTM := DTMFromString('78DA632C61626008654001FFFFFF67F80FA41' +
           '921ECFF8C79403589A86ADEBE65609083AA0101C6024C357FFE30' +
           'A1AA01D99540404D05504D127E3500A4E91464');
           repeat
           toDBank;
           until false;
    end.

    no you can't have that, it's mine.

    EditEdit: to make it so that you search in bottom half of the minimap just do this

    SCAR Code:
    DTMRotated(DTM, c.x, c.y, MMX1, MMY1, MMX2, MMY2) //instead of this do this
      DTMRotated(DTM, c.x, c.y, MMX1, {replace with y value to search below}, MMX2, MMY2)
    Lol here can u do me a favor? can u edit the script thhat i posted so it checks bottom half MM? plzz and then post it..

  7. #7
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Can you do me a favor and not quote what i just said as you made no reference to it? errr. and no. i dont know how ur script works.
    ~ Metagen

  8. #8
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    DTMRotated(DTM, c.x, c.y, MMX1, MMY1, MMX2, MMY2) //instead of this do this
    DTMRotated(DTM, c.x, c.y, MMX1, {replace with y value to search below}, MMX2, MMY2)
    I meant can u just replace them for me lol..cuz im SOO confussed, as u know..

  9. #9
    Join Date
    Jul 2007
    Location
    Ottawa, Canada
    Posts
    930
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    kay uhh heres what i think...

    have seperate procedures. walk to the bank, and one to actually go inside the bank.

    thats what i always do. makes failsafes easier. and it also will make me actually want to read your code -.- im going to bed now so c ya
    ~ Metagen

  10. #10
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    oooooo the genius has an idea WAt ABOUT IF I USE DDTM to walk? wud that help?

  11. #11
    Join Date
    Jul 2007
    Location
    Ohio
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Just a suggestion... You should use the srl. Wiki, its great for finding a lot of good procedures/ functions.

  12. #12
    Join Date
    May 2007
    Location
    Ohio
    Posts
    2,296
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Bottom half of MM?

    MMX1, MMCY, MMX2, MMY2

  13. #13
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    Try
    FindSymbolIn(var rx, ry: Integer; Name: string; xs, ys, xe, ye: Integer): Boolean;
    You can then define where to look for the Bank minimap icon, thus make sure it only goes to the one at the bottom
    So if you make it north before searching you can use Timer's cor-ords to search inside of
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  14. #14
    Join Date
    Mar 2007
    Posts
    1,223
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by Timer View Post
    Bottom half of MM?

    MMX1, MMCY, MMX2, MMY2
    Just, curious if thats bottom whats top?

  15. #15
    Join Date
    Sep 2007
    Posts
    415
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    MMX1,MMY1,MMx2,MMCy would be the top
    Quote Originally Posted by That guy that wrote forefeathers
    <munklez>haha im too lazy, girls annoy me
    <munklez> they always wanna like, do stuff
    <munklez> and i just wanna program
    <munklez> and they always take all my money

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. 12yo genius?
    By Freddy1990 in forum Blogs and Writing
    Replies: 6
    Last Post: 10-26-2008, 08:35 PM
  2. Im A Freaking Genius (world Urls) 10/17
    By ZaSz in forum News and General
    Replies: 25
    Last Post: 10-22-2008, 10:40 PM
  3. some plan that was...
    By legendaryhero90 in forum News and General
    Replies: 19
    Last Post: 05-23-2008, 04:09 AM
  4. Website plan
    By darky in forum Gaming
    Replies: 2
    Last Post: 11-23-2007, 06:33 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •