Results 1 to 10 of 10

Thread: Banking

  1. #1
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Banking

    Besides standards, what am I doing wrong here?
    SCAR Code:
    procedure ReachBank;//Radial + bitmaps
    begin
      RadialRoadWalk(FindFallyRoadColor, 45, 203, 186, 0, 0);
      RadialRoadWalk(FindFallyRoadColor, 45, 203, 186, 0, 0);
      RadialRoadWalk(FindFallyRoadColor, 45, 203, 186, 0, 0);
      RadialRoadWalk(FindFallyRoadColor, 45, 203, 186, 0, 0);
      case random(2) of
      0:OpenBankGlass;
      1:OpenBankQuiet;
    end;
    I am fully aware that the 'RadialRoadWalk' would not get you anywhere - I decided that I didn't want to type RadialRoadWalk(FindFallyColor 5-6 times, so I just got one coordinate and left it there.
    (I do have setupsrl and the required thingdoes that I know of at the top.)
    The error I am returned is 'Invalid number of parameters in script,' I know what it means - I just can't figure out what I'm doing wrong.
    Active only during the Summer...

  2. #2
    Join Date
    May 2007
    Location
    Netherlands, Amersfoort
    Posts
    2,701
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure ReachBank;//Radial + bitmaps
    begin
      RadialRoadWalk(FindFallyRoadColor, 45, 203, 186, 0, 0);
      RadialRoadWalk(FindFallyRoadColor, 45, 203, 186, 0, 0);
      RadialRoadWalk(FindFallyRoadColor, 45, 203, 186, 0, 0);
      RadialRoadWalk(FindFallyRoadColor, 45, 203, 186, 0, 0);
      case random(2) of
        0: OpenBankGlass;
        1: OpenBankQuiet;
      end; // use end; after a case
    end;

    idk if it's working now but I at least fixed 1 problem

  3. #3
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol, Well, I did say anything other than standards and radial walk coordinates. I still feel like beating you to death with a wooden spoon though.

    Nah, still gives me invalid parameters. (the notes out to the side are just for organizing a draft, if you are wondering)
    Active only during the Summer...

  4. #4
    Join Date
    Mar 2007
    Location
    Netherlands->Amersfoort.
    Posts
    1,615
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    put a
    end extra in the function above it.
    are can you post the whole script?

  5. #5
    Join Date
    Apr 2007
    Location
    The Netherlands
    Posts
    5,553
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    see a case as a if then always if you do case you need an end
    ~Hermen

  6. #6
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    program New;
    {.include SRL/SRL.scar}
    procedure ReachBank;//Radial + bitmaps
    begin
    RadialRoadWalk(FindFallyRoadColor, 45, 203, 186, 0, 0);
    RadialRoadWalk(FindFallyRoadColor, 45, 203, 186, 0, 0);
    RadialRoadWalk(FindFallyRoadColor, 45, 203, 186, 0, 0);
    RadialRoadWalk(FindFallyRoadColor, 45, 203, 186, 0, 0);
    case random(2) of
    0: OpenBankGlass;
    1: OpenBankQuiet;
    end; // use end; after a case
    end;
    I'm competing with some kid, so I won't post the whole script. It's just telling me that I have invalid parameters for OpenBankGlass and OpenBankQuiet
    EDIT:
    Just found what was wrong, I was supposed to do 'OpenBankQuiet('feb'); and such. Pfft. Brilliant waste of half a day.
    EDIT: Pfft, well metagen found the problem too. Thanks
    Active only during the Summer...

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

    Default

    function OpenBankQuiet(WhichBank: string): Boolean;

    function OpenBankGlass(WhichBank: String; ChangeCompass, ChangeAngle: Boolean): Boolean;


    Valid arguments are:
    'feb' (Falador East Bank)
    'fwb' (Falador West Bank)
    'veb' (Varrock East Bank)
    'vwb' (Varrock West Bank)
    'db' (Draynor Bank)
    'eb' (Edgeville Bank)
    'akb' (Al-Kharid Bank)
    ~ Metagen

  8. #8
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol thanks meta, found it two minutes before me XD
    Active only during the Summer...

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

    Default

    lol np i just read this post like 10 minutes ago so lol
    ~ Metagen

  10. #10
    Join Date
    Jun 2007
    Posts
    1,312
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol 10 minutes = 8 hours
    Wooot thats one difference in scripting knowledge
    lol
    Active only during the Summer...

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Hermpie's banking proc's and Func's makes banking a piece of a cake!
    By ShowerThoughts in forum Research & Development Lounge
    Replies: 13
    Last Post: 06-11-2008, 03:16 PM
  2. Banking help here
    By issamawan in forum OSR Help
    Replies: 5
    Last Post: 06-11-2008, 01:34 PM
  3. Banking help
    By Zeta in forum OSR Help
    Replies: 11
    Last Post: 10-14-2007, 03:27 PM
  4. Banking!!!!!!!
    By Killerbillbo in forum OSR Help
    Replies: 3
    Last Post: 06-09-2007, 05:35 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
  •