SRL Archive - SRL Bugs

[Bug] SGB and NGB not found.


shstiger2009

2011-12-03 20:15:07

The South Gnome Bank and North Gnome Banks return this:

**Warning in OpenBankQuiet: Unknown bank: sgb/ngb**

It was weird…it worked for a bit, slowly (I guess because it had trouble finding it) then stopped and I can't get it to work at all now.

YoHoJo

2011-12-03 20:17:59

If you look in
C:\Simba\Includes\SRL\SRL\core\bank.scar

the only allowed banks are
  Bank_FE = 'feb'; // (Falador East Bank)
Bank_FW = 'fwb'; // (Falador West Bank)
Bank_VE = 'veb'; // (Varrock East Bank)
Bank_VW = 'vwb'; // (Varrock West Bank)
Bank_GE = 'geb'; // (Varrock GE Bank)
Bank_DR = 'db' ; // (Draynor Bank)
Bank_AK = 'akb'; // (Al-Kharid Bank)
Bank_EV = 'eb' ; // (Edgeville Bank)
Bank_CT = 'ctb'; // (Catherby bank)
Bank_CM = 'clt'; // (Camelot bank)
Bank_NA = 'nab'; // (North Ardougne bank)
Bank_SA = 'sab'; // (South Ardougne bank)
Bank_YN = 'ynb'; // (Yanille bank)
Bank_NG = 'ngb'; // (North gnome bank)
Bank_SG = 'sgb'; // (South gnome bank)
Bank_WG = 'wgb'; // (Warrior guild bank)
Bank_FG = 'fgb'; // (Fishing guild bank)

What do you mean by worked slowly?
Are you writing/using/testing your own script? What script are you using?

shstiger2009

2011-12-03 20:27:34

Right, and the North gnome bank and South gnome bank which are listed there aren't working. Currently testing my own script, but I've tried others and they have the same problem. I'm pretty sure the problem is in SRL.

YoHoJo

2011-12-03 20:29:38

Druf didn't see them in the list, you're right LOL.
Where exactly does it fail? Does the mouse move to the banker/bank/booth/whatever?
Does it right click?
Or does it just not find anything at all?

Also did you enter the bank as 'sgb/ngb'?
You are only supposed to enter one like 'sgb' OR 'ngb'

shstiger2009

2011-12-03 20:31:00

Yeah, I just put sgb/ngb because I get either one, whether I chose to use the North or South bank. The mouse moves to the Gnome, and clicks "Talk to" instead of bank, and just repeats.

YoHoJo

2011-12-03 20:36:44

function OpenBankQuiet(WhichBank: string): Boolean;
By: WT-Fakawi and modified by Ron
Description: Opens any given bank in the free world using
FindDeformedBitmapToleranceIn. Avoids strange mouse movements. Will cause
significant lag (approx. 1 second), but finds the bank with one click.

Valid arguments are:
'feb' (Falador East Bank)
'fwb' (Falador West Bank)
'veb' (Varrock East Bank)
'vwb' (Varrock West Bank)
'db' (Draynor Bank)
'eb' (Edgeville Bank)
'akb' (Al-Kharid Bank)

Not sure if those banks worth with OpenBankQueit.
Look though Bank.scar and find a openbank procedure that actually takes sgb or ngb.

And you can't put the string at 'sgb/ngb' you need to have one or the other.

Do it like:
(This is just example code, you'll need to tweak it)

If Not OpenBank('sgb') Then
If Not OpenBank('ngb') Then
Begin
Whatever Failsafe You Want Here;
End;