Results 1 to 13 of 13

Thread: InPin(Players[CurrentPlayer].Pin)

  1. #1
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default InPin(Players[CurrentPlayer].Pin)

    Just need a little help with banking here, seeing as I've created my own.
    I have the script Banking the Banker until it recognizes either the BankScreen or the PinScreen, but is this the correct format for having the script input the Bank PIN?
    My entire procedure:
    Simba Code:
    procedure GetBank;  //My procedure, "GetBank" does just what it says on the tin. It Gets the Bank, and it Gets it much faster than SRL can.
    var x, y: integer;  //Thanks to nosaj.421 for suggesting this. Please report any bugs.
    begin
    FindNormalRandoms;
    MakeCompass('N');
    SetAngle(SRL_ANGLE_HIGH);
    AntiBanSm;
    WriteLn('We are at the bank. Finding a banker...');
    repeat
    if FindObj(x, y, 'anker', 4664372, 10) then //Finds the Banker. I had to use the Banker because the Bank Booth matches way too many colors.
    WriteLn('Found a banker. Opening bank...');
    Mouse(x, y, 0, 0, false);
    ChooseOption('ank Ban');  //Gets the Bank.
    until (BankScreen) or (PinScreen);
    begin
    if PinScreen then
    if (Players[CurrentPlayer].Pin <> '')then
    InPin(Players[CurrentPlayer].Pin)
    end;
    end;
    Thanks,
    KeepBotting
    Last edited by KeepBotting; 02-29-2012 at 02:23 AM.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  2. #2
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

    Yeah, I'm pretty sure that's how to enter a PIN. Might I suggest you use "[simba] ['/simba]" tags instead of [code]?

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  3. #3
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    I think it is.

    E: Snailed lol.
    Quote Originally Posted by DeSnob View Post
    ETA's don't exist in SRL like they did in other communities. Want a faster update? Help out with updating, otherwise just gotta wait it out.

  4. #4
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Flight View Post
    Yeah, I'm pretty sure that's how to enter a PIN. Might I suggest you use "[simba] ['/simba]" tags instead of [code]?
    Quote Originally Posted by weequ View Post
    I think it is.

    E: Snailed lol.
    Thanks guys.
    Sorry, I'm just so used to using CODE tags. I picked up the habit from powerbot about a year ago.
    I'll try to remember to use SIMBA tags on these forums though :noobface:.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

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

    Default

    my working one, works for ALL scripts.

    Simba Code:
    if PinScreen then
      begin
        InPin(Players[CurrentPlayer].Pin);
        wait(1500);
      end;

  6. #6
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    my working one, works for ALL scripts.

    Simba Code:
    if PinScreen then
      begin
        InPin(Players[CurrentPlayer].Pin);
        wait(1500);
      end;
    Thanks, added with credits.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  7. #7
    Join Date
    Jan 2008
    Location
    10° north of Hell
    Posts
    2,035
    Mentioned
    65 Post(s)
    Quoted
    164 Post(s)

    Default

    I was bored... Here's a clean up idk if it works...

    Simba Code:
    function GetBank: boolean;
    var
      I, x, y: LongInt;
    begin
      Result := LoggedIn();
      if (not (Result)) then
        Exit;

      Result := BankScreen();
      if (Result) then
        Exit;

      Result := PinScreen();
      if (Result) then
      begin
        Result := InPin(Players[CurrentPlayer].Pin);
        Exit;
      end;

      for I := 1 to 3 do
        if (FindObj(x, y, 'anker', 4664372, I * 5)) then
        begin
          Mouse(x, y, 0, 0, mouse_Right);
          Wait(100 + Random(250));
          if (ChooseOption('ank')) then
          begin
            Wait(100 + Random(250));
            Result := PinScreen();
            if (Result) then
              InPin(Players[CurrentPlayer].Pin);

            Wait(100 + Random(250));
            Result := BankScreen();
            Exit();
          end;
        end;
    end;

    Dg's Small Procedures | IRC Quotes
    Thank Wishlah for my nice new avatar!
    Quote Originally Posted by IRC
    [22:12:05] <Dgby714> Im agnostic
    [22:12:36] <Blumblebee> :O ...you can read minds

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

    Default

    Quote Originally Posted by Dgby714 View Post
    I was bored... Here's a clean up idk if it works...

    Simba Code:
    function GetBank: boolean;
    var
      I, x, y: LongInt;
    begin
      Result := LoggedIn();
      if (not (Result)) then
        Exit;

      Result := BankScreen();
      if (Result) then
        Exit;

      Result := PinScreen();
      if (Result) then
      begin
        Result := InPin(Players[CurrentPlayer].Pin);
        Exit;
      end;

      for I := 1 to 3 do
        if (FindObj(x, y, 'anker', 4664372, I * 5)) then
        begin
          Mouse(x, y, 0, 0, mouse_Right);
          Wait(100 + Random(250));
          if (ChooseOption('ank')) then
          begin
            Result := PinScreen();
            if (Result) then
              InPin(Players[CurrentPlayer].Pin);

            Result := BankScreen();
          end;
        end;
    end;

    Get a life mornon mormom.. dude.

  9. #9
    Join Date
    Dec 2011
    Location
    East Coast, USA
    Posts
    4,231
    Mentioned
    112 Post(s)
    Quoted
    1869 Post(s)

    Default

    Quote Originally Posted by Dgby714 View Post
    I was bored... Here's a clean up idk if it works...

    Simba Code:
    function GetBank: boolean;
    var
      I, x, y: LongInt;
    begin
      Result := LoggedIn();
      if (not (Result)) then
        Exit;

      Result := BankScreen();
      if (Result) then
        Exit;

      Result := PinScreen();
      if (Result) then
      begin
        Result := InPin(Players[CurrentPlayer].Pin);
        Exit;
      end;

      for I := 1 to 3 do
        if (FindObj(x, y, 'anker', 4664372, I * 5)) then
        begin
          Mouse(x, y, 0, 0, mouse_Right);
          Wait(100 + Random(250));
          if (ChooseOption('ank')) then
          begin
            Wait(100 + Random(250));
            Result := PinScreen();
            if (Result) then
              InPin(Players[CurrentPlayer].Pin);

            Wait(100 + Random(250));
            Result := BankScreen();
            Exit();
          end;
        end;
    end;
    Agh! I've been spoonfed! Thanks though I might use parts of this.
    GitLab projects | Simba 1.4 | Find me on IRC or Discord | ScapeRune scripts | Come play bot ScapeRune!

    <BenLand100> we're just in the transitional phase where society reclassifies guns as Bad™ before everyone gets laser pistols

  10. #10
    Join Date
    Jan 2008
    Location
    10° north of Hell
    Posts
    2,035
    Mentioned
    65 Post(s)
    Quoted
    164 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    Get a life mornon mormom.. dude.
    *infract* Bwahahahahaha jkjk =)

    Dg's Small Procedures | IRC Quotes
    Thank Wishlah for my nice new avatar!
    Quote Originally Posted by IRC
    [22:12:05] <Dgby714> Im agnostic
    [22:12:36] <Blumblebee> :O ...you can read minds

  11. #11
    Join Date
    Jan 2008
    Location
    10° north of Hell
    Posts
    2,035
    Mentioned
    65 Post(s)
    Quoted
    164 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Agh! I've been spoonfed! Thanks though I might use parts of this.
    Actually all I did was rewrite what you already had to look sexier and with a few more failsafes.

    Dg's Small Procedures | IRC Quotes
    Thank Wishlah for my nice new avatar!
    Quote Originally Posted by IRC
    [22:12:05] <Dgby714> Im agnostic
    [22:12:36] <Blumblebee> :O ...you can read minds

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

    Default

    Quote Originally Posted by Dgby714 View Post
    *infract* Bwahahahahaha jkjk =)
    Quote Originally Posted by Dgby714 View Post
    Actually all I did was rewrite what you already had to look sexier and with a few more failsafes.
    You double posted nerd friend, guess who should be infracted?

  13. #13
    Join Date
    Jan 2008
    Location
    10° north of Hell
    Posts
    2,035
    Mentioned
    65 Post(s)
    Quoted
    164 Post(s)

    Default

    Quote Originally Posted by Sin View Post
    You double posted nerd friend, guess who should be infracted?
    lol to bad for you, there is no double post infraction! Only a triple post one...

    Dg's Small Procedures | IRC Quotes
    Thank Wishlah for my nice new avatar!
    Quote Originally Posted by IRC
    [22:12:05] <Dgby714> Im agnostic
    [22:12:36] <Blumblebee> :O ...you can read minds

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
  •