SRL Archive - SRL Bugs

OpenBankNPC


Wyn

2011-11-24 09:06:05

Wasn't getting good readings in some spots.

So I added the Banker's Ginger hair.

Tested.

function OpenBankNPC: Boolean;
var
bx, by, Speed, ColFace, ColGrey, ColBlue, ColHair: Integer;
begin
Result := (LoggedIn) and (BankScreen or PinScreen);
if (Result) then exit;

Speed := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
ColFace := 7774419; // Face Color
ColGrey := 6381925; // Grey Color [ Clothes ]
ColBlue := 2429979; // Blue Color [ Clothes ]
ColHair := 1398163; // Orange Hair [wyn10]
if (FindObjThroughMM(bx, by, 'npc', [ColHair, ColFace, ColBlue, ColGrey], [5, 5, 5, 5],
['anke', 'to B', 'Banker', 'nker'], 2, 2)) then
begin
Mouse(bx, by, 0, 0, False);
WaitOptionMulti(['ank B', 'ank', 'nker'], 1000);
FFlag(0);
Wait(2000 + Random(500));
if (Length(Players) > 0) then
if ((PinScreen) and (Players[CurrentPlayer].Pin <> '')) then
InPin(Players[CurrentPlayer].Pin);
Result := (BankScreen) or (PinScreen);
end;
ColorToleranceSpeed(Speed);
end;


Verification…(Used a 24 bitmap)



Wyn

2011-11-24 20:45:59

Hmm…ya….

:/

Coh3n

2011-11-26 02:32:10

Committed, sorry it took so long.