SRL Archive - SRL Archives

InPin does not handle "PIN is pending" message


Harry

2011-03-20 18:34:28

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:
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-reflection/commit/4468e10b569f854992c32204e001e0db0b6ec08b (already made pull request (and accepted by Pyroryan :D), just throwing it here if anyone wants to try it out)

Thanks!

Gu3st...

2011-03-29 20:15:16

Bump?

Flight

2011-03-29 20:40:38

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!

Wanted

2011-03-29 22:26:34

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

Harry

2011-03-29 23:04:55

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

You could just try my fix, it works fine for me :/

autoerforlife

2011-03-30 02:45:25

From: Harry
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:
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-reflection/commit/4468e10b569f854992c32204e001e0db0b6ec08b (already made pull request (and accepted by Pyroryan :D), 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