Results 1 to 6 of 6

Thread: InPin does not handle "PIN is pending" message

  1. #1
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default Fix for InPin does not handle "PIN is pending" message

    Really makes it unfun for my botters to withdraw food to fight with, when the PIN message says "PIN pending, coming in 5 days", and SRL doesn't handle it.

    Fixed copy for SRL:
    Simba Code:
    function BankScreen: Boolean;
    var
      c: Integer;
    begin
      if (CountColor(2070783, MSX1, MSY1, MSX2, MSY2) > 2000) then
      begin
        MouseBox(112, 159, 210, 196, 1);
        c := GetTimeRunning + 45000;
        while (not BankScreen) and (GetTimeRunning < c) do
          Wait(50);
        Wait(RandomRange(100, 150));
      end;
      Result := FindTextTPA(4106994, 20, 20, 22, 400, 45, 'Bank', upchars, Nothing);
    end;
    Countcolor and Mousebox were both changed. Try it and see, it should work fine now.

    Reflection fix: https://github.com/HarryS/srl-reflec...01e0db0b6ec08b (already made pull request (and accepted by Pyroryan ), just throwing it here if anyone wants to try it out)

    Thanks!
    Last edited by Harry; 03-20-2011 at 11:23 PM.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

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

    Default

    Bump?

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

    Default

    So this worked for you then, Harry? If so then great job. I'd imagine not a whole lot of people would need this, the majority would either have a pin at this point or not give a second thought as to adding one But in any case, this is good to have!

    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..."


  4. #4
    Join Date
    Dec 2006
    Location
    Houston, TX USA
    Posts
    4,791
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Been meaning to get around to this, but it's pretty low priority.

  5. #5
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Quote Originally Posted by IceFire908 View Post
    Been meaning to get around to this, but it's pretty low priority.
    You could just try my fix, it works fine for me :/


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  6. #6
    Join Date
    Jun 2007
    Location
    Netherlands
    Posts
    137
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Harry View Post
    Really makes it unfun for my botters to withdraw food to fight with, when the PIN message says "PIN pending, coming in 5 days", and SRL doesn't handle it.

    Fixed copy for SRL:
    Simba Code:
    function BankScreen: Boolean;
    var
      c: Integer;
    begin
      if (CountColor(2070783, MSX1, MSY1, MSX2, MSY2) > 2000) then
      begin
        MouseBox(112, 159, 210, 196, 1);
        c := GetTimeRunning + 45000;
        while (not BankScreen) and (GetTimeRunning < c) do
          Wait(50);
        Wait(RandomRange(100, 150));
      end;
      Result := FindTextTPA(4106994, 20, 20, 22, 400, 45, 'Bank', upchars, Nothing);
    end;
    Countcolor and Mousebox were both changed. Try it and see, it should work fine now.

    Reflection fix: https://github.com/HarryS/srl-reflec...01e0db0b6ec08b (already made pull request (and accepted by Pyroryan ), just throwing it here if anyone wants to try it out)

    Thanks!
    Thanks works fine, i have an 'army' of 3 chars with pending pins atm so it's quite usefull for me
    This week is exam week, after that I'll start making my first script

    I've been away for a while, reading about the updates i've missed now

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
  •