Results 1 to 2 of 2

Thread: problem getting script to deposit

  1. #1
    Join Date
    Feb 2007
    Location
    USA
    Posts
    667
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default problem getting script to deposit

    Ok, the script walks to the bank and opens the bank, but for some reason stops working after that. The script just stops doing anything, but is still running.

    Thanks

    SCAR Code:
    procedure DraynorBanking;
    var
     rx,ry,a:integer;
    begin
     a:=0;
     PerfectNorth;
     while (FindBank('db')=false) do //tries to find the bank a bunch of times
        begin
           a:=a+1;
           FTwait(4);
           BoredEvery(1);
             if (a>10) then
               begin
                Mouse(669,47,3,3,true);//if findbank doesn't work, it blind clicks to try and get there
                Flag;
                  if (OpenbankQuiet('db')=false) then
                    begin
                    writeln('Could not find bank near '+Players[CurrentPlayer].Name);
                    NextPlayer(false);
                    PlayerLogin;
                    Exit;
                 end;
              end;
          end;
     writeln('[debug] walked to bank');// Script does not write this, so the problem happens before here
     Flag;
     FTwait(2);
    if (PinScreen) then
     begin
       writeln('found pin screen');
        if (PlayerPin='') then
           begin
           writeln('You have not specified a pin for '+Players[CurrentPlayer].Name);
            NextPlayer(False);
            PlayerLogin;
            Exit;
           end else
        InPin(PlayerPin);
        FTWait(4);
        if (BankScreen) then
           DepositItemType(LogDTM);
     end else
    if (BankScreen) then
     begin
     writeln('[debug] found bankscreen');
     DepositItemType(LogDTM);
     FTWait(4);
     Mouse(613,110,2,2,true);
     Flag;
     end;
    end;

  2. #2
    Join Date
    Jun 2006
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    maybe you should do this?
    SCAR Code:
    while not FindBank('db') do

    I dont know if that will solve your problem. But it seems like you arent doing anything wrong.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. deposit(2, 28, true);
    By orange in forum OSR Help
    Replies: 9
    Last Post: 08-15-2008, 01:58 PM
  2. Deposit Box(er?)
    By whatsthat in forum OSR Help
    Replies: 22
    Last Post: 12-20-2007, 09:53 PM
  3. Deposit Box Procedure?
    By wtf i sp4nk in forum OSR Help
    Replies: 2
    Last Post: 12-17-2006, 11:43 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
  •