Results 1 to 10 of 10

Thread: deposit(2, 28, true);

  1. #1
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Banking

    edit: Now i'm having trouble finding the bank,
    edit2: Updated the banking bit, but all the OpenBank.. commands don't seem to work very well, anyone know another way i can easily, quickly and accurately open the bank? :S
    help appreciated as usual

    SCAR Code:
    Procedure DepositClay;
        var
          Ai : Integer;
        begin
          wait(500 +random(500));
          status('Finding banker and depositing clay.');
          WriteLn('Finding banker.');
          wait(150 +random(300));
          repeat
            OpenBankFast('vwb');
            Ai:= Ai + 1;
          until(Bankscreen)Or (Ai > 10)
          if (Ai > 10) then
          begin
            WriteLn('Failed to find the bank.');
            wait(1000);
            WriteLn('User will logout and script will terminate in one second.');
            wait(1000);
            Logout;
            wait(1000);
            TerminateScript
          end else
            wait(150 +random(100));
          if BankScreen then
             begin
               WriteLn('Depositing all clay.');
               Deposit(2, 28, true);
               WriteLn('Successfully banked all clay.');
               wait(100 +random(150));
               AntiRandoms1;
             end;
          end;

  2. #2
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Deposit is a procedure, and does not return any value.
    Thus making the statement if Deposit() then invalid. You cannot use Deposit in an "if then" statement. Deposit(2, 28, true) would be valid.



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

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

    Default

    Oh yeah, cheers, xD.

    How else can i make a failsafe? :s

  4. #4
    Join Date
    Feb 2006
    Location
    Amsterdam
    Posts
    13,692
    Mentioned
    146 Post(s)
    Quoted
    130 Post(s)

    Default

    Use BankScreen.
    SCAR Code:
    If BankScreen Then
    Begin
      Deposit(2, 28, True)
    End;



    The best way to contact me is by email, which you can find on my website: http://wizzup.org
    I also get email notifications of private messages, though.

    Simba (on Twitter | Group on Villavu | Website | Stable/Unstable releases
    Documentation | Source | Simba Bug Tracker on Github and Villavu )


    My (Blog | Website)

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

    Default

    Tyvm

  6. #6
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Now i'm having trouble finding the bank, -.-

  7. #7
    Join Date
    Mar 2008
    Posts
    1,492
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    are you in the varrock west bank? lol

  8. #8
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by orange View Post
    Now i'm having trouble finding the bank, -.-
    Use a dtm . Then call a command FindDTMRotated .
    You can use a symbol too , sec .
    Got it .
    ~Eerik~

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

    Default

    Quote Originally Posted by orange View Post
    edit: Now i'm having trouble finding the bank,
    help appreciated as usual
    none of the FindBank commands seem to work..? :S

    SCAR Code:
    Procedure DepositClay;
        begin
          wait(500 +random(500));
          status('Finding banker and depositing clay.');
          WriteLn('Finding banker.');
          wait(150 +random(300));
          OpenBankFast('vwb');
          wait(1000 +random(500));
          if BankScreen then
             begin
               WriteLn('Depositing all clay.');
               Deposit(2, 28, 3);
               WriteLn('Successfully banked all clay.');
             end else
               WriteLn('Failed to deposit clay.');
               wait(1000);
               WriteLn('User will LogOut and script will terminate in 1 second.');
               wait(1000);
               LogOut;
               wait(1000)
               TerminateScript
          end;
    Well, it probably doesnt work because this function will ALWAYS Log Out.

    Remember, if you have more than one thing after an if..else statement, you must nest it. Putting begins and ends around it.

    Nava2
    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

  10. #10
    Join Date
    Mar 2007
    Posts
    151
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks, fixed, unless anyone else knows another way to easily find the bank, i guess i'll just have to use a dtm..

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Deposit Bank..
    By faster789 in forum OSR Help
    Replies: 7
    Last Post: 05-24-2008, 11:05 PM
  2. Deposit Box(er?)
    By whatsthat in forum OSR Help
    Replies: 22
    Last Post: 12-20-2007, 09:53 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
  •