Results 1 to 6 of 6

Thread: Some help please

  1. #1
    Join Date
    Dec 2011
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Some help please

    Hello, Im a guy with very basic script knowledge and tried to modify Flight's ZMI script so I could use it for Astral runes instead. Ive used alot of hes fucntion/procedures and I managed to get it do a run. Im trying to add hes function and stuff that detects and repairs broken pouches, im getting this error however

    Simba Code:
    Function WithdrawRunes(Method: String): Boolean;
    var
      ABMP,CBMP,X,Y: Integer;
    begin
      Result := False;
      if not LoggedIn then Exit;
      if InvFull then
      begin
        if not BankScreen then
        OpenBank
        if BankScreen then       //Invalid number of parameters!!!
        DepositEss;
        Wait(RandomRange(350, 625));
      end;
    end;

    OpenBank looks like this

    Simba Code:
    procedure OpenBank;
    var
      X, Y, eX, eY: integer;
    begin
      if FindTheBank(X, Y)then
      begin
        GetMousePos(eX, eY);
        Mouse(eX, eY, 0, 0, false);
        ChooseOption('uickly');
        Wait(1500 + random(100));
      end;
    end;

    And DepositEss like this
    Simba Code:
    Function DepositEss: Boolean;
    var
      T,Slot: Integer;
    begin
      if not BankScreen then exit;

      Slot := RandomRange(9, 20);
      MouseItem(Slot, mouse_right);
      Wait(RandomRange(50, 115));
      WaitOption('Deposit-5', 300);

      MarkTime(T);
      repeat
        FindNormalRandoms;
        if (TimeFromMark(T) > 3000) then
        Result := False;
        if not InvFull then
          break;
      until(False)

      Result := (not InvFull);
    end;

    Any help/suggestions or tips would be very nice!!

  2. #2
    Join Date
    Apr 2007
    Posts
    581
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    I can't remember correctly how sensitive pascal script is and I don't use Simba, but my guess is you need to add a semi-colon at the end of

    Code:
    OpenBank
    So it looks like

    Code:
    OpenBank;
    However I might be wrong, I haven't used Simba or SCAR in a long time.

    Edit: Don't add the else I suggested before, I didn't take a clear look at the function and you won't need it, sorry. Just do as I suggested above. ^
    Last edited by ShawnjohnSJ; 01-27-2012 at 09:20 AM.

  3. #3
    Join Date
    Oct 2011
    Posts
    59
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i think hes right...

  4. #4
    Join Date
    Dec 2011
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by ShawnjohnSJ View Post
    I can't remember correctly how sensitive pascal script is and I don't use Simba, but my guess is you need to add a semi-colon at the end of

    Code:
    OpenBank
    So it looks like

    Code:
    OpenBank;
    However I might be wrong, I haven't used Simba or SCAR in a long time.

    Edit: Don't add the else I suggested before, I didn't take a clear look at the function and you won't need it, sorry. Just do as I suggested above. ^
    I tried to do that and now im getting the error at OpenBank instead :/

  5. #5
    Join Date
    Dec 2006
    Location
    Sydney, New South Wales, Australia
    Posts
    4,603
    Mentioned
    15 Post(s)
    Quoted
    42 Post(s)

    Default

    OpenBank already exists within SRL, which requires multiple input parametres. Rename your OpenBank method to something else and it will work
    You may contact me with any concerns you have.
    Are you a victim of harassment? Please notify me or any other staff member.

    | SRL Community Rules | SRL Live Help & Chat | Setting up Simba | F.A.Q's |

  6. #6
    Join Date
    Dec 2011
    Posts
    189
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Daniel View Post
    OpenBank already exists within SRL, which requires multiple input parametres. Rename your OpenBank method to something else and it will work
    Thanks mate, since I want to open the bank at lunars I renamed it OpenBankLunar and it works now

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
  •