Results 1 to 14 of 14

Thread: PIN support?

  1. #1
    Join Date
    Aug 2010
    Posts
    122
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default PIN support?

    PIN is too short to search, and pins came up with nothing for me. I dled some random scripts, but the best I could find was just putting :

    Pin := '';


    I tried it, and it didn't work.

    Is there no longer pin support with simba?

    If there is, a link to something that talks about it would be greatly appreciated!

    Thanks!

  2. #2
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    function Inpin(Pin: string): Boolean;

    Enters bank pin. Will try 3 times, returns true if bank is opened.

  3. #3
    Join Date
    Dec 2011
    Location
    Nj
    Posts
    2,341
    Mentioned
    1 Post(s)
    Quoted
    18 Post(s)

    Default

    Did you try taking it out entirely?
    Do you have a pin? If you do, what exactly do you get when you put it in.
    If you don't, then what is the problem? Just type in anything.

    For the basics of the basics of pascal, try my TuT. ||Photoshop Editing ||MapleResourceDung Script || Book a flight! BuySellTrip

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

    Default

    Simba Code:
    if PinScreen then
    begin
    repeat
    WriteLn('PinScreen detected! Entering PIN...');
    InPin(Players[CurrentPlayer].Pin);
    WriteLn('Checking to see if successfully entered.');
    wait(1500+random(100));
    until (BankScreen) or not (PinScreen);
    end;
    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
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Simba Code:
    if PinScreen then
    begin
    repeat
    WriteLn('PinScreen detected! Entering PIN...');
    InPin(Players[CurrentPlayer].Pin);
    WriteLn('Checking to see if successfully entered.');
    wait(1500+random(100));
    until (BankScreen) or not (PinScreen);
    end;
    Surely you want a failsafe to that potentially infinite loop?

  6. #6
    Join Date
    Aug 2010
    Posts
    122
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    Heh, thanks guys, fast response. I figured pin was like the other parts of declare players

    inpin was what I was missing

    Awesome! thanks for the help... especially that fast! Issue solved =D

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

    Default

    Quote Originally Posted by riwu View Post
    Surely you want a failsafe to that potentially infinite loop?
    Failsafe was in the following procedure.
    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

  8. #8
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Failsafe was in the following procedure.
    Simba Code:
    repeat
    if PinScreen then
    begin
    repeat
    WriteLn('PinScreen detected! Entering PIN...');
    InPin(Players[CurrentPlayer].Pin);
    WriteLn('Checking to see if successfully entered.');
    wait(1500+random(100));
    until (BankScreen) or not (PinScreen);
    end;
    How does this break out if no pin is provided or the pin provided is wrong? It will keep trying the wrong pin eternally.

  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 riwu View Post
    Simba Code:
    repeat
    if PinScreen then
    begin
    repeat
    WriteLn('PinScreen detected! Entering PIN...');
    InPin(Players[CurrentPlayer].Pin);
    WriteLn('Checking to see if successfully entered.');
    wait(1500+random(100));
    until (BankScreen) or not (PinScreen);
    end;
    How does this break out if no pin is provided or the pin provided is wrong? It will keep trying the wrong pin eternally.
    Oh, good point.

    Simba Code:
    for i:=0 to 3 do
    repeat
    if PinScreen then
    begin
    repeat
    WriteLn('PinScreen detected! Entering PIN...');
    InPin(Players[CurrentPlayer].Pin);
    WriteLn('Checking to see if successfully entered.');
    wait(1500+random(100));
    until (BankScreen) or not (PinScreen);
    end;
    Better? Will only try 3 times.
    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 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by KeepBotting View Post
    Oh, good point.

    Simba Code:
    for i:=0 to 3 do
    repeat
    if PinScreen then
    begin
    repeat
    WriteLn('PinScreen detected! Entering PIN...');
    InPin(Players[CurrentPlayer].Pin);
    WriteLn('Checking to see if successfully entered.');
    wait(1500+random(100));
    until (BankScreen) or not (PinScreen);
    end;
    Better? Will only try 3 times.
    No, you didn't remove the potential infinite loop. Think about it like this: what if the pin is incorrect? It will then repeat the input of the false pin until forever; the pinscreen will always be visible, and the bankscreen will never be visible.

  11. #11
    Join Date
    Nov 2011
    Location
    England
    Posts
    3,072
    Mentioned
    296 Post(s)
    Quoted
    1094 Post(s)

    Default

    Inpin retry 3 times irc

  12. #12
    Join Date
    Jan 2007
    Posts
    8,876
    Mentioned
    123 Post(s)
    Quoted
    327 Post(s)

    Default

    Quote Originally Posted by Ollybest View Post
    Inpin retry 3 times irc
    Hmm, true... But only when ClosePinScreen is working correctly. One should always practice having loops like this time-out at some time anyways

  13. #13
    Join Date
    Jan 2012
    Posts
    2,568
    Mentioned
    35 Post(s)
    Quoted
    356 Post(s)

    Default

    Quote Originally Posted by Ollybest View Post
    Inpin retry 3 times irc
    What if no pin is provided? It will simply keep calling InPin which keep exits, hence stuck at the pinscreen forever (instead of say, switching players). Also with that extra external loop, ('repeat' before if Pinscreen()...') it won't break out even if PinScreen return false...

    I pointed out the infinite loop, and instead of removing it, he added an extra for loop in front
    But who are we to judge him? We are but noobs and leechers!
    http://villavu.com/forum/showpost.ph...0&postcount=31

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

    Default

    Simba Code:
    for i:=0 to 3 do
    repeat
    if PinScreen then
    begin
    repeat
    WriteLn('PinScreen detected! Entering PIN...');
    InPin(Players[CurrentPlayer].Pin);
    WriteLn('Checking to see if successfully entered.');
    wait(1500+random(100));
    until (BankScreen) or not (PinScreen);
    end;

    Forgot ``if (i = 3') then.."?

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
  •