Page 2 of 2 FirstFirst 12
Results 26 to 30 of 30

Thread: Another question lol :D

  1. #26
    Join Date
    Apr 2007
    Posts
    2,593
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    If OpenBankFast makes it face north, then it needs to face north.

    End of story.

  2. #27
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by fabis94 View Post
    Ok thanks. Now i have a problem with this case:

    SCAR Code:
    case Whichbank of
      'akb'  : begin
               Writeln('Opening Al Kharid bank.');
               MakeCompass('e');
               OpenBankFast('akb');
               Writeln('Opened Al Kharid bank.');
               end;
      'lb'   : begin
               Writeln('Opening Lumbridge bank.');
               MakeCompass('w');
               OpenBankFast('lb');
               Writeln('Opened Lumbridge bank.');
               end;
      'veb'  : begin
               Writeln('Opening Varrock East bank.');
               MakeCompass('n');
               OpenBankFast('veb');
               Writeln('Opened Varrock East bank.');
               end;
      'vwb'  : begin
               Writeln('Opening Varrock west bank.');
               MakeCompass('e');
               OpenBankFast('vwb');
               Writeln('Opened Varrock west bank.');
               end;
      'feb'  : begin
               Writeln('Opening Falador East bank.');
               MakeCompass('n');
               OpenBankFast('feb');
               Writeln('Opened Falador East bank.');
               end;
      'fwb'  : begin
               Writeln('Opening Falador west bank.');
               MakeCompass('n');
               OpenBankFast('fwb');
               Writeln('Opened Falador west bank.');
               end;
      'db'  : begin
               Writeln('Opening Draynor Village bank.');
               MakeCompass('n');
               OpenBankFast('db');
               Writeln('Opened Draynor Village bank.');
               end;
      'eb'  : begin
               Writeln('Opening Edgeville bank.');
               MakeCompass('w');
               OpenBankFast('eb');
               Writeln('Opened Edgeville bank.');
               end;
        end;

    Im at VWB and when it needs to Rorate the Compass, it makes it East, but then makes it back to North. Why?
    Here is a shortened version of this, since its basically the same thing repeated, here:

    SCAR Code:
    begin
      Writeln('Opening Bank : ' + WhichBank);
      if OpenBankFast(WhichBank) then
        Writeln('Opened Bank: ' + WhichBank)
      else
        Writeln('Could not open bank: ' + WhichBank);
    end;

    Now, this is not even needed as a case. This is because the function OpenBankFast makes the compass a certain angle, as well, the WhichBank string is declared and can be used this way in a lot less lines. A case is only useful if you have more than one line of code, or you do something different in each line.

    Also, I added a bad failsafe. The failsafe will writeln if it opened the bank and if it didn't as OpenBankFast does return a boolean.

    Well, good luck, hope you will post more help here.

    P.S. Thanks TheVoiceInYourHead.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  3. #28
    Join Date
    Mar 2007
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Hmm well i ran it for a few times and it didnt find the bank. So yea...
    If it can't find the bank i need to do something for it to find it.
    http://www.fenjer.com/adnan/SRLStats/877.png
    The Fabis Uber banner has been updated so it works in the latest SRL versions -->Fastest baning script ever!

  4. #29
    Join Date
    Jan 2008
    Location
    Ontario, Canada
    Posts
    7,805
    Mentioned
    5 Post(s)
    Quoted
    3 Post(s)

    Default

    Which, at first, or after a few runs?

    You may need to increase waits in before you search for the bank etc.
    Writing an SRL Member Application | [Updated] Pascal Scripting Statements
    My GitHub

    Progress Report:
    13:46 <@BenLand100> <SourceCode> @BenLand100: what you have just said shows you 
                        have serious physchological problems
    13:46 <@BenLand100> HE GETS IT!
    13:46 <@BenLand100> HE FINALLY GETS IT!!!!1

  5. #30
    Join Date
    Mar 2007
    Posts
    132
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    At first. Thats why i now changed Compass and now it can properly find the bank.
    http://www.fenjer.com/adnan/SRLStats/877.png
    The Fabis Uber banner has been updated so it works in the latest SRL versions -->Fastest baning script ever!

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. i has a question
    By Solkrieg in forum OSR Help
    Replies: 5
    Last Post: 10-30-2008, 08:20 AM
  2. tab 5 question
    By dvdcrayola in forum OSR Help
    Replies: 4
    Last Post: 07-04-2008, 06:43 AM

Posting Permissions

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