Getdropped
10-26-2012, 11:32 PM
Umm well i was just messing around with an old script I had and I noticed that it would no longer bank and I found that if I changed the loggedin function I would work....
Here is my banking function:
procedure Bank;
var
FailSafe, SuperFailSafe : Integer;
BankPath : TPointArray;
begin
FailSafe := 0;
repeat
FindNormalRandoms;
MakeCompass('N');
SetAngle(SRL_ANGLE_HIGH);
OpenBankNPC;
Inc(FailSafe);
if (FailSafe > 5) and not(BankScreen) and not(PinScreen) then
begin
Writeln('Walking back to bank....');
WalkToBank;
end;
if (FailSafe > 10) and not(BankScreen) and not(PinScreen) then
begin
Writeln('Bank tele safe.');
LoadStone;
WalkToBank;
FailSafe := 0;
{Mouse(664, 81, RandomRange(-2, 2), RandomRange(-2, 2), true); }
end;
FindNormalRandoms;
until BankScreen or PinScreen; //or not(LoggedIn);
if PinScreen then
begin
repeat
InPin(Players[0].Pin);
until BankScreen; //or not(LoggedIn);
end;
if BankScreen then
begin
writeln('in');
Wait(RandomRange(200, 300));
InvMouse((Random(15) + 2), 0);
//Mouse(700, 315, 3, 3, Mouse_Right);
WaitOptionMulti(['ll', 'All'], 300);
Wait(RandomRange(200, 300));
CloseBank;
//Mouse(490, 60, RandomRange(-3, 3), RandomRange(-3, 3), Mouse_Left);
Wait(RandomRange(500, 700));
end;
end;
and here is what I changed in simba players to make it bank:
function LoggedIn: Boolean;
begin
//White text on Report Abuse Button
//SRL_ResetNavBar;
Result := (GetColor(472, 490) = 16777215);
end;
line 137
What happens is when i opens the bank it thinks you are not logged in because if the not(loggedin) are uncommented they trigger.... When i use my other scripts that I have it banks fine.... which is really odd.... this used to work.... I am banking at edgeville bank, it works fine without the reset of the nav bar so im not sure if this is a bug so just wanted to tell everyone before a million posts are put up with thisproblem... Any ideas?
~Getdropped :cool:
Here is my banking function:
procedure Bank;
var
FailSafe, SuperFailSafe : Integer;
BankPath : TPointArray;
begin
FailSafe := 0;
repeat
FindNormalRandoms;
MakeCompass('N');
SetAngle(SRL_ANGLE_HIGH);
OpenBankNPC;
Inc(FailSafe);
if (FailSafe > 5) and not(BankScreen) and not(PinScreen) then
begin
Writeln('Walking back to bank....');
WalkToBank;
end;
if (FailSafe > 10) and not(BankScreen) and not(PinScreen) then
begin
Writeln('Bank tele safe.');
LoadStone;
WalkToBank;
FailSafe := 0;
{Mouse(664, 81, RandomRange(-2, 2), RandomRange(-2, 2), true); }
end;
FindNormalRandoms;
until BankScreen or PinScreen; //or not(LoggedIn);
if PinScreen then
begin
repeat
InPin(Players[0].Pin);
until BankScreen; //or not(LoggedIn);
end;
if BankScreen then
begin
writeln('in');
Wait(RandomRange(200, 300));
InvMouse((Random(15) + 2), 0);
//Mouse(700, 315, 3, 3, Mouse_Right);
WaitOptionMulti(['ll', 'All'], 300);
Wait(RandomRange(200, 300));
CloseBank;
//Mouse(490, 60, RandomRange(-3, 3), RandomRange(-3, 3), Mouse_Left);
Wait(RandomRange(500, 700));
end;
end;
and here is what I changed in simba players to make it bank:
function LoggedIn: Boolean;
begin
//White text on Report Abuse Button
//SRL_ResetNavBar;
Result := (GetColor(472, 490) = 16777215);
end;
line 137
What happens is when i opens the bank it thinks you are not logged in because if the not(loggedin) are uncommented they trigger.... When i use my other scripts that I have it banks fine.... which is really odd.... this used to work.... I am banking at edgeville bank, it works fine without the reset of the nav bar so im not sure if this is a bug so just wanted to tell everyone before a million posts are put up with thisproblem... Any ideas?
~Getdropped :cool: