Results 1 to 3 of 3

Thread: SRL Includes

  1. #1
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default SRL Includes

    Simba Code:
    program Bankprocedure;
    {$i srl/srl.simba}

    begin
      if OpenDepositBox then
      Deposit(2,28, false);
    end.

    That should work I think right? I would test it but I'm on an Ipad, It will find any deposit box and open it then deposit from slot 2 to 28 individually. How could I make it right click slot 2 and deposit all of that said item then click like slot 14 and deposit all of that item? I have the pickaxe in the first slot and don't want to deposit it.

  2. #2
    Join Date
    Dec 2011
    Location
    Toronto, Ontario
    Posts
    6,424
    Mentioned
    84 Post(s)
    Quoted
    863 Post(s)

    Default

    No, there's no function called 'OpenDepositBox', you're going to have to make one.
    You can also do MouseItem(RandomRange(1,28),0), ChooseOption('All');.

  3. #3
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Simba Code:
    function OpenDepositBox : Boolean;
    var
      X, Y, T:integer;
    begin
      result := false;
      If(not(LoggedIn)) then exit;
      begin
        if FindObjTPA(x, y, 739167, 10, -1, 30, 30, 200, ['deposit']) then
        begin
          GetMousePos(X, Y);
          Mouse(x, y, 0, 0, mouse_left);
          Result := True;
          T :=0;
          repeat
            Inc(T);
            Wait(500+random(500));
          until (DepositScreen) or (T>=30);
        end else
        Writeln('Could not find the deposit box');
      end;
    end;

    I got that from typing open in the search box in simba. If that isn't going to work then I don't think making one would be to hard.

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
  •