View Full Version : InPin(Players[CurrentPlayer].Pin)
KeepBotting
02-29-2012, 02:17 AM
Just need a little help with banking here, seeing as I've created my own.
I have the script Banking the Banker until it recognizes either the BankScreen or the PinScreen, but is this the correct format for having the script input the Bank PIN?
My entire procedure:
procedure GetBank; //My procedure, "GetBank" does just what it says on the tin. It Gets the Bank, and it Gets it much faster than SRL can.
var x, y: integer; //Thanks to nosaj.421 for suggesting this. Please report any bugs.
begin
FindNormalRandoms;
MakeCompass('N');
SetAngle(SRL_ANGLE_HIGH);
AntiBanSm;
WriteLn('We are at the bank. Finding a banker...');
repeat
if FindObj(x, y, 'anker', 4664372, 10) then //Finds the Banker. I had to use the Banker because the Bank Booth matches way too many colors.
WriteLn('Found a banker. Opening bank...');
Mouse(x, y, 0, 0, false);
ChooseOption('ank Ban'); //Gets the Bank.
until (BankScreen) or (PinScreen);
begin
if PinScreen then
if (Players[CurrentPlayer].Pin <> '')then
InPin(Players[CurrentPlayer].Pin)
end;
end;
Thanks,
KeepBotting
Flight
02-29-2012, 02:20 AM
Yeah, I'm pretty sure that's how to enter a PIN. Might I suggest you use "[simba] ['/simba]" tags instead of [code]?
weequ
02-29-2012, 02:20 AM
I think it is.
E: Snailed lol.
KeepBotting
02-29-2012, 02:23 AM
Yeah, I'm pretty sure that's how to enter a PIN. Might I suggest you use "[simba] ['/simba]" tags instead of [code]?
I think it is.
E: Snailed lol.Thanks guys.
Sorry, I'm just so used to using CODE tags. I picked up the habit from powerbot about a year ago.
I'll try to remember to use SIMBA tags on these forums though :noobface:.
my working one, works for ALL scripts.
if PinScreen then
begin
InPin(Players[CurrentPlayer].Pin);
wait(1500);
end;
KeepBotting
02-29-2012, 02:30 AM
my working one, works for ALL scripts.
if PinScreen then
begin
InPin(Players[CurrentPlayer].Pin);
wait(1500);
end;
Thanks, added with credits.
Dgby714
02-29-2012, 02:36 AM
I was bored... Here's a clean up idk if it works...
function GetBank: boolean;
var
I, x, y: LongInt;
begin
Result := LoggedIn();
if (not (Result)) then
Exit;
Result := BankScreen();
if (Result) then
Exit;
Result := PinScreen();
if (Result) then
begin
Result := InPin(Players[CurrentPlayer].Pin);
Exit;
end;
for I := 1 to 3 do
if (FindObj(x, y, 'anker', 4664372, I * 5)) then
begin
Mouse(x, y, 0, 0, mouse_Right);
Wait(100 + Random(250));
if (ChooseOption('ank')) then
begin
Wait(100 + Random(250));
Result := PinScreen();
if (Result) then
InPin(Players[CurrentPlayer].Pin);
Wait(100 + Random(250));
Result := BankScreen();
Exit();
end;
end;
end;
I was bored... Here's a clean up idk if it works...
function GetBank: boolean;
var
I, x, y: LongInt;
begin
Result := LoggedIn();
if (not (Result)) then
Exit;
Result := BankScreen();
if (Result) then
Exit;
Result := PinScreen();
if (Result) then
begin
Result := InPin(Players[CurrentPlayer].Pin);
Exit;
end;
for I := 1 to 3 do
if (FindObj(x, y, 'anker', 4664372, I * 5)) then
begin
Mouse(x, y, 0, 0, mouse_Right);
Wait(100 + Random(250));
if (ChooseOption('ank')) then
begin
Result := PinScreen();
if (Result) then
InPin(Players[CurrentPlayer].Pin);
Result := BankScreen();
end;
end;
end;
Get a life mornon mormom.. dude.
KeepBotting
02-29-2012, 02:39 AM
I was bored... Here's a clean up idk if it works...
function GetBank: boolean;
var
I, x, y: LongInt;
begin
Result := LoggedIn();
if (not (Result)) then
Exit;
Result := BankScreen();
if (Result) then
Exit;
Result := PinScreen();
if (Result) then
begin
Result := InPin(Players[CurrentPlayer].Pin);
Exit;
end;
for I := 1 to 3 do
if (FindObj(x, y, 'anker', 4664372, I * 5)) then
begin
Mouse(x, y, 0, 0, mouse_Right);
Wait(100 + Random(250));
if (ChooseOption('ank')) then
begin
Wait(100 + Random(250));
Result := PinScreen();
if (Result) then
InPin(Players[CurrentPlayer].Pin);
Wait(100 + Random(250));
Result := BankScreen();
Exit();
end;
end;
end;Agh! I've been spoonfed! Thanks though ;) I might use parts of this.
Dgby714
02-29-2012, 02:40 AM
Get a life mornon mormom.. dude.
*infract* Bwahahahahaha jkjk =)
Dgby714
02-29-2012, 02:41 AM
Agh! I've been spoonfed! Thanks though ;) I might use parts of this.
Actually all I did was rewrite what you already had to look sexier and with a few more failsafes.
*infract* Bwahahahahaha jkjk =)
Actually all I did was rewrite what you already had to look sexier and with a few more failsafes.
You double posted nerd friend, guess who should be infracted?
Dgby714
02-29-2012, 02:52 AM
You double posted nerd friend, guess who should be infracted?
lol to bad for you, there is no double post infraction! Only a triple post one...
Powered by vBulletin® Version 4.2.1 Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.