Yago
2011-02-25 23:46:35
I found a bug where you can't bank at lumbridge… Not really a bug, but it can be fixed in SRL with a check uptext failsafe.
So, I run R_OpenBankBook('lb')
Say theres like 20 people in front of the bank booth in Lumbridge. You cant open the bank cause the script is searching for option use quicklky, but there are 20 people in front of the booth so It would find something liek in the picture below:
… Can a mod or someone fix this image link? …. Its invisible unless u edit the post…
Link of the image : http://img199.imageshack.us/i/bankprob.jpg/
Edit : — Image attached.
Image explaination: The script opens the bank using use quickly option but as you can see the option is not present in the picture
BTW, FYI, W.e.:
And My Compass is north and might angle is at highest for all those who are wondering. Also, I find It can easily be fixed by again adding an uptext failsafe and i guess it would be useful for all banks not just lummy.
Right now since im too lazy to do that i just changed the co-ord for lummby bank in srl. And I was pondering that if ur lazy to then just do the same or use R_makecompass(any direction except north);
If You want I can attempt a fix
But enough of that… Im no pro scripter(new to this stuff) but heres my attempted fix …
Replace This Part Of R_OpenBankBooth:
With …:
Explanation:
What is does … hopefully… havent tried it out it just all concept and thinking …
What it does is check if there is a bank booth option then it moves over it and does not click and if so then it chooses usequickly from the popup menu
and if there is no bank booth option then it just runs normally… hence the else.
Again im new to this… just made my first script 3 days ago so dont kill me if im wrong !!! please and thanks. Ill be of any help
So, I run R_OpenBankBook('lb')
Say theres like 20 people in front of the bank booth in Lumbridge. You cant open the bank cause the script is searching for option use quicklky, but there are 20 people in front of the booth so It would find something liek in the picture below:
… Can a mod or someone fix this image link? …. Its invisible unless u edit the post…Link of the image : http://img199.imageshack.us/i/bankprob.jpg/
Edit : — Image attached.
Image explaination: The script opens the bank using use quickly option but as you can see the option is not present in the picture
BTW, FYI, W.e.:
And My Compass is north and might angle is at highest for all those who are wondering. Also, I find It can easily be fixed by again adding an uptext failsafe and i guess it would be useful for all banks not just lummy.
Right now since im too lazy to do that i just changed the co-ord for lummby bank in srl. And I was pondering that if ur lazy to then just do the same or use R_makecompass(any direction except north);
If You want I can attempt a fix
But enough of that… Im no pro scripter(new to this stuff) but heres my attempted fix …
Replace This Part Of R_OpenBankBooth:
P := TileToMS(Tiles[0], 10);
MMouse(p.x - 5, p.y - 5, 11, 11);
Wait(RandomRange(200, 300));
if IsUpTextMultiCustom(['ank', 'ooth']) then
begin
GetMousePos(P.x, P.y);
Mouse(P.x, P.y, 0, 0, false);
Wait(RandomRange(80, 110));
P.x := 0;
if R_ChooseOptionMulti(['Use-quickly']) then
repeat
R_Flag;
Wait(RandomRange(50, 90));
Inc(Tries);
if (Length(Players) > 0) then
if Players[CurrentPlayer].Pin <> '' then
Result := InPin(Players[CurrentPlayer].Pin);
Result := R_BankScreen or R_PinScreen;
until Result or (Tries > 40);
end;
With …:
P := TileToMS(Tiles[0], 10);
MMouse(p.x - 5, p.y - 5, 11, 11);
Wait(RandomRange(200, 300));
if IsUpTextMultiCustom(['ank', 'ooth']) then
begin
GetMousePos(P.x, P.y);
Mouse(P.x, P.y, 0, 0, false);
Wait(RandomRange(80, 110));
P.x := 0;
// couldnt find anything in reflection to help sry had to go to ChooseOptionMultiEx
if ChooseOptionMultiEx(['ank', 'ooth'], 'all', Move) // ud porbably have to set move as variable that is a fnct_ActionOptions
Begin
if R_ChooseOptionMulti(['Use-quickly']) then
repeat
R_Flag;
Wait(RandomRange(50, 90));
Inc(Tries);
if (Length(Players) > 0) then
if Players[CurrentPlayer].Pin <> '' then
Result := InPin(Players[CurrentPlayer].Pin);
Result := R_BankScreen or R_PinScreen;
until Result or (Tries > 40);
end
else
Begin
if R_ChooseOptionMulti(['Use-quickly']) then
repeat
R_Flag;
Wait(RandomRange(50, 90));
Inc(Tries);
if (Length(Players) > 0) then
if Players[CurrentPlayer].Pin <> '' then
Result := InPin(Players[CurrentPlayer].Pin);
Result := R_BankScreen or R_PinScreen;
until Result or (Tries > 40);
end
Explanation:
What is does … hopefully… havent tried it out it just all concept and thinking …
What it does is check if there is a bank booth option then it moves over it and does not click and if so then it chooses usequickly from the popup menu
and if there is no bank booth option then it just runs normally… hence the else.
Again im new to this… just made my first script 3 days ago so dont kill me if im wrong !!! please and thanks. Ill be of any help