SRL Archive - OSR Help

Finding A Banker


lilcmp1

2011-12-23 01:50:11

I had it finding the banker perfectly then unfortunatly misclicked and exited simba without saving the script :duh::duh::duh::duh: Now I can't seem to get it to find a banker again.

It used to go straight to the booth/banker but now it likes to move around at other gray colors. I can't remember if I was using FindObjCustom before, is there another option? It also can hover over the banker but doesn't seem to recognize uptext or something and moves on to keep trying. Also lots of errors saying
'Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.
Successfully executed.'


Procedure Bank;
var
SeX, SeY: Integer;

Begin
If FindObjCustom(SeX, SeY, ['Use','Talk'], [5724255, 5000531], 5) Then
Mouse(SeX, SeY, 5, 5, False);
WaitOptionMulti(['Use-qu', 'Bank'], 200)
End;

Yanhua

2011-12-23 01:56:21

There are pre built functions for banker in SRL. Just type Bank and they all should come on.


OpenBankNPC;

Works very nicely.

Hero

2011-12-23 02:41:02

{*******************************************************************************
function OpenBank(WhichBank: String, ChangeCompass, ChangeAngle: Boolean): Boolean;
by: SRL Development Team
Description: Opens the bank if possible.
Valid arguments are:
'feb' (Falador East Bank)
'fwb' (Falador West Bank)
'veb' (Varrock East Bank)
'vwb' (Varrock West Bank)
'db' (Draynor Bank)
'akb' (Al-Kharid Bank)
'eb' (Edgeville Bank)
'lb' (Lumbridge Bank)
'ctb' (Catherby bank)
'clt' (Camelot bank)
'nab' (North Ardougne bank)
'sab' (South Ardougne bank)
'ynb' (Yanille bank)
'ngb' (North gnome bank)
'sgb' (South gnome bank)
'wgb' (Warrior guild bank)
'fgb' (Fishing guild bank)
*******************************************************************************}

Example:
OpenBank('vwb', false, false);

Anything other then probably those are custom.

lilcmp1

2011-12-23 11:36:07

I've tried using OpenBank, OpenBankNPC, OpenBankFast, etc. They all seem to try to move the mouse to the windows on the right of the bank. It never goes to the bank booth, any suggestions?

Yanhua

2011-12-23 23:47:20

From: lilcmp1
I've tried using OpenBank, OpenBankNPC, OpenBankFast, etc. They all seem to try to move the mouse to the windows on the right of the bank. It never goes to the bank booth, any suggestions?


Yeah, this happens to me sometimes as well.

Personally I always use OpenBankNPC.

Make sure that before you call that, do MakeCompasss() to whichever direction the bank booth(s) are at.