Watched my script for a bit and sometimes char was still moving while trying to look for bank so it didnt work.
Watched my script for a bit and sometimes char was still moving while trying to look for bank so it didnt work.
Rogeruk's Al-Kharid Tanner V1.1 [Released]
Rogeruk's Barbarian Crafter [Coming Soon]
Rogeruk's Guild Fisher [Coming Soon]
!! - Taking Requests - !!
Cool function. I think it's been so long since they used the committed tag they forgot an M.
~Sandstorm
Edited it so that it waits until Bank/Pin screen appears. Also now it doesn't wait 2sec in vain if the banker wasn't found (misclick)
Uses WaitFunc so this would require BankScreenOrPinScreen: Boolean; to be commited as well.
Works perfectly in Catherby btwAwesome job Home!
SCAR Code:function BankScreenOrPinScreen: Boolean;
begin
Result := BankScreen or PinScreen;
end;
{*******************************************************************************
function OpenBankNPC: Boolean;
By: Home, edited by marpis
Description: Opens the bank by using Banker.
*******************************************************************************}
function OpenBankNPC2: Boolean;
var
bx, by, Speed, ColFace, ColGrey, ColBlue: Integer;
begin
Speed := GetColorToleranceSpeed;
ColorToleranceSpeed(2);
ColFace := 7774419; // Face Color
ColGrey := 6381925; // Grey Color [ Clothes ]
ColBlue := 2429979; // Blue Color [ Clothes ]
if (FindObjThroughMM(bx, by, 'npc', [ColFace, ColBlue, ColGrey], [5, 5, 5], ['anke', 'to B', 'Banker', 'nker'], 2, 2)) then
begin
Mouse(bx, by, 0, 0, False);
if WaitOption('ank B', 350 + Random(50)) then
begin
FFlag(0);
Result := WaitFunc(@BankScreenOrPinScreen, 100, 10000 + Random(2000));
if Result then
if (Length(Players) > 0) then
if (Players[CurrentPlayer].Pin <> '') then
InPin(Players[CurrentPlayer].Pin);
end;
end;
ColorToleranceSpeed(Speed);
end;
Last edited by marpis; 10-06-2009 at 11:25 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)