Bank¶
The Bank include contains Bank finders, and all banking routines.
Normal Banks: ‘feb’ = Falador East Bank ‘fwb’ = Falador West Bank ‘veb’ = Varrock East Bank ‘vwb’ = Varrock West Bank ‘geb’ = Varrock GE Bank ‘db’ = Draynor Bank ‘akb’ = Al-Kharid Bank ‘eb’ = Edgeville 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
Special Bank: SRL_BANK_SW = Soul Wars chest SRL_BANK_CW = Castle Wars chest SRL_BANK_B = Burthrope chest (outside warriors guild) SRL_BANK_GG = Gamer’s Grotto (north of Falador) SRL_BANK_SP = Shantay Pass chest
Contents
- Bank
- BankScreen
- DepositScreen
- PinScreen
- ClosePinScreen
- InPin
- MSTPointToBankPoint
- BankPointToBankIndex
- BankIndexToBankPoint
- BankIndexToMSPoint
- BankIndexToMSBox
- GetBankItemAmount
- GetBankItemAmount
- GetMSBankItemAmount
- DepositItemBox
- FixBank
- FixBankTab
- CurrentBankTab
- ExistsBankTab
- BankTab
- SearchBank
- MouseBankSlot
- QuickDeposit
- DepositAll
- Deposit
- WithdrawEx
- Withdraw
- WithdrawItemEx
- WithdrawItem
- Notes
- CloseBank
- OpenDepositBox
- OpenBankQuiet
- OpenBankGlass
- OpenBankFast
- OpenBankNPCEx
- OpenBankNPC
- OpenBankChestEdge
- OpenBankChest
- OpenBank
- FindBank
- WithdrawFromPouch
BankScreen¶
function BankScreen: Boolean;
Finds Bankscreen. Returns true if Found.
Note
Author: SRL Dev Team Last Modified: Feb. 14th, 2012 by Coh3n
Example:
BankOpen := BankScreen;
DepositScreen¶
function DepositScreen: Boolean;
Returns true if deposit screen is Found.
Note
Author: Shuttleu Last Modified: Unknown
Example:
BankOpen := (not DepositScreen);
PinScreen¶
function PinScreen: Boolean;
Finds Pin Screen. Returns true if Found.
Note
Author: Naum Last Modified: Unknown
Example:
if PinScreen then
InPin();
ClosePinScreen¶
function ClosePinScreen: Boolean;
Results true is PinScreen is not open.
Note
Author: SRL Last Modified: Unknown
Example:
if PinScreen then
Result := ClosePinScreen;
InPin¶
function Inpin(Pin: string): Boolean;
Enters bank pin. Will try 3 times, returns true if bank is opened.
Note
Author: ZephyrsFury and Nava2 Last Modified: Unknown
Example:
if PinScreen then
InPin('1234');
MSTPointToBankPoint¶
function MSTPointToBankPoint(P: TPoint): TPoint;
Converts a point on the Mainscreen to the point in the Bank.
Note
Author: Wizzup Last Modified: Unknown
Example:
ItemSlot := MSTPointToBankPoint(Point);
BankPointToBankIndex¶
function BankPointToBankIndex(P: TPoint): Integer;
Converts a Bank Point (Row,Col) to Bank Index (spot in bank). (0, 0) = 1
Note
Author: Wizzup? Last Modified: Unknown
Example:
BankSlot := BankPointToBankIndex(itemPoint);
BankIndexToBankPoint¶
function BankIndexToBankPoint(ind: Integer): TPoint;
Converts the Bank Index (spot in bank) to a Bank Point (Row,Col). 1 = (0, 0)
Note
Author: Wizzup? Last Modified: Unknown
Example:
BankPoint := BankIndexToBankPoint(index);
BankIndexToMSPoint¶
function BankIndexToMSPoint(Index: Integer): TPoint;
Converts the Bank Index (spot in bank) to a Mainscreen TPoint of the Index. (Top Left)
Note
Author: Wizzup? Last Modified: Unknown
Example:
msPoint := BankIndexToMSPoint(index);
BankIndexToMSBox¶
function BankIndexToMSBox(Ind: Integer): TBox;
Converts the Bank Index (spot in bank) to a Mainscreen TBox of the Index.
Note
Author: Wizzup? Last Modified: Unknown
Example:
msBox := BankIndexToMSBox(index);
GetBankItemAmount¶
function GetBankIndexItemAmount(const Index: Integer): Integer;
Returns the amount of an item in the bank at bank index, Index.
Note
Author: Daniel Last Modified: Jan. 03, 2012 by Daniel
Example:
amt := GetBankIndexItemAmount(13);
GetBankItemAmount¶
function GetBankItemAmount(const Row, Col: Integer): Integer;
Returns the amount of an item in the bank at bank screen coordinates (Row, Col).
Note
Author: Daniel Last Modified: Jan. 03, 2012 by Daniel
Example:
amt := GetBankItemAmount(0, 5);
GetMSBankItemAmount¶
function GetMSBankItemAmount(const x, y: Integer): Integer;
Returns the amount of an item in the bank at main screen coordinates x, y.
Note
Author: Daniel Last Modified: Jan. 03, 2012 by Daniel
Example:
amt := GetMSBankItemAmount(250, 100);
DepositItemBox¶
function DepositItemBox(Item: Integer): TBox;
Returns a TBox surround Item (1 to 28) in the Deposit Box screen.
Note
Author: ZephyrsFury Last Modified: Unknown
Example:
currentItem := DepositItemBox(itemSlot);
FixBank¶
procedure FixBank;
Scrolls the bank screen up.
Note
Author: lordsaturn, Nava2, IceFire908 & Bixby Sayz Last Modified: Unknown
Example:
FixBank;
FixBankTab¶
procedure FixBankTab;
Fixes the BankTab to ‘View All’
Note
Author: Wizzup? Last Modified: Unknown
Example:
if FixBankTab then
SearchForItem;
CurrentBankTab¶
function CurrentBankTab: Integer;
Returns Current Bank Tab selected
Note
Author: Narcle Last Modified: Unknown
Example:
curTab := GetCurrentBankTab;
ExistsBankTab¶
function ExistsBankTab(T: Integer): Boolean;
Returns true if Bank Tab Exists
Note
Author: Narcle Last Modified: Unknown
Example:
if ExistsBankTab(2) then
BankTab(2);
BankTab¶
function BankTab(T: Integer): Boolean;
If Bank Tab is there will switch to it.
Note
Author: Narcle Last Modified: Unknown
Example:
if ExistsBankTab(2) then
BankTab(2);
SearchBank¶
procedure SearchBank(Item: string);
Searches for Item in your bank.
Note
Author: ZephyrsFury Last Modified: Unknown
Example:
SearchBank('air rune');
if FindDTM(..) then
MouseBankSlot¶
procedure MouseBankSlot(BankSlot, Action: integer);
Note
by Fwd Motion Last Modified: Feb. 09, 2012 by Fwd Motion
Example:
MouseBankSlot(1, mouse_Right);
if (WaitOption('ithdraw-All', 500)) then
Writeln('Withdrew item');
QuickDeposit¶
function QuickDeposit(Which: Integer): Boolean;
Uses the quick deposit buttons in the bottom right of the bank. Valid arguments for ‘Which’ are:
- SRL_DEPOSIT_ALL
- SRL_DEPOSIT_COINS
- SRL_DEPOSIT_EQUIPMENT
- SRL_DEPOSIT_FOLLOWER
Note
Author: ZephyrsFury & Quickmarch & Shuttleu Last Modified: January 08, 2012 by Coh3n
Example:
QuickDeposit(SRL_DEPOSIT_COINS);
DepositAll¶
function DepositAll: Boolean;
Deposits all items in your inventory.
Note
Author: Shuttleu Last Modified: January 08, 2012 by Coh3n
Example:
DepositAll();
Deposit¶
Procedure Deposit(SlotFrom, SlotTo: Integer; vType: Variant);
Deposits from Slot to ToSlot.
vType True = Deposit All. vType False = Deposit one by one.
Any integer is deposit with Deposit X. (except for 5 and 10)
Note
Author: WT-Fakawi/PPLSUQBAWLZ/Stupid3ooo/Town Last Modified: Unknown
Example:
Deposit(1, 28, True);
WithdrawEx¶
function WithdrawEx(Col, Row, Amount: Integer; Uptexts: TStringArray): Boolean;
Withdraws Amount at Column/Row.
Note
Author: Starblaster100, Town, Wizzup? and Narcle, small fixes by r!ch!e & EvilChicken! Last Modified: riwu (19 Jan 2013)
Example:
WithdrawEx(1, 3, 28, ['ron ore', 'ore', 'on or']);
Withdraw¶
function Withdraw(Col, Row, Amount: Integer): Boolean;
Withdraws Amount at Column/Row. Column/Row start at 0. Columns are left/right - Rows are up/down.
Note
Author: Starblaster100, Town, Wizzup? and Narcle Last Modified: Unknown
Example:
Withdraw(0, 0, 28) withdraws 28 of the item in the upper-left most bank slot.
WithdrawItemEx¶
function WithdrawItemEx(Ident: integer; IdentType: string; var Index: integer;
Amount: integer; UpText: String; Tol: TIntegerArray): boolean;
Withdraws an item from the bank by using “Ident” with tol[0] as color tolerance, tol[1] as contour tolerance in case of bmp masks, or the count of colors for TPA item finding. Valid IdentTypes are all in FindItem.
Index:
The Bank Index where the item is found, must be a variable. Speeds up future withdraws.
Amount:
Amount to withdraw from bank.
UpText:
The UpText which the function checks for.
Note
Author: Nava2 Last Modified: Unknown
Example:
if WithdrawItemEx(theColor, 'color', itemSlot, 27, 'ew log', [3]) then
CloseBank;
WithdrawItem¶
function WithdrawItem(Ident: integer; IdentType: string; Amount: integer;
UpText: TStringArray; Tol: TIntegerArray): boolean;
Withdraws an item using WithdrawItemEx, but removes the Index check.
Note
Author: Nava2 Last Modified: Unknown
Example:
if WithdrawItem(theColor, 'color', 27, ['ew log', 'ew l'], [3]) then
CloseBank;
Notes¶
procedure Notes(SwitchOn: Boolean);
Toggles note withdrawal on or off.
Note
Author: lordsaturn, idea by R1ch Last Modified: Unknown
Example:
Notes(True);
Withdraw(Col, Row, 100);
CloseBank¶
function CloseBank: Boolean;
Closes the bank window - Tries twice before exiting
Note
Author: Starblaster100 Last Modified: Unknown
Example:
if Withdraw(Col, Row, 100) then
CloseBank;
OpenDepositBox¶
function OpenDepositBox : Boolean;
Opens the light deposit box (such as the boxes in edgeville).
Note
Author: Ollybest
Example:
if (OpenDepositBox) then
DepositAll;
OpenBankQuiet¶
function OpenBankQuiet(WhichBank: string): Boolean;
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)
Note
Author: WT-Fakawi and modified by Ron Last Modified: Unknown
Example:
if OpenBankQuiet('feb') then
Withdraw(...);
OpenBankGlass¶
function OpenBankGlass(WhichBank: String; ChangeCompass, ChangeAngle: Boolean): Boolean;
Opens the bank. 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) ‘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)
Note
Author: Wizzup? and modified by Ron Last Modified: Unknown
Example:
if OpenBankGlass('feb', True, False) then
Withdraw(...);
OpenBankFast¶
function OpenBankFast(Location: String): Boolean;
Opens the bank. 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) ‘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’ ‘tavb’, ‘taverly bank’
Note
Author: Wizzup? and Nielsie95 Last Modified: Unknown
Example:
if OpenBankFast('feb') then
Withdraw(...);
OpenBankNPCEx¶
function OpenBankNPCEx(Color: String): Boolean;
Opens the bank by using the NPC banker.
Vaild colors are: ‘blue’ - most bankers.. edgeville, varrock etc. ‘green’ - al-kharid. ‘gray’, ‘grey’ - ardougne.
Note
Author: Ollybest (Heavily copyied home’s function)
Example:
if (OpenBankNPCEx('green') then
Withdraw(...);
OpenBankNPC¶
function OpenBankNPC: Boolean;
Attempts to open the blue NPC banker. (used as a wrapper to prevent breaking script)
Note
Author: Ollybest.
Example:
if (OpenBankNPC) then
Withdraw(...);
OpenBankChestEdge¶
function OpenBankChestEdge(Location: String): Boolean;
- Opens the bank. Valid arguments are:
- SRL_BANK_SW (Soul Wars Bank)
- SRL_BANK_CW (Castle Wars Bank)
- SRL_BANK_B (Burthrope)
- SRL_BANK_GG (Gamer’s Grotto)
- SRL_BANK_SP (Shantay Pass)
Note
Author: -daazndagger- Last Modified: Jan 27th, 2013
Example:
if OpenBankChestEdge(SRL_BANK_SW) then
Withdraw(...);
OpenBankChest¶
function OpenBankChest(WhichBank): Boolean;
- Opens the bank. Valid arguments are:
- SRL_BANK_SW (Soul Wars Bank)
- SRL_BANK_CW (Castle Wars Bank)
- SRL_BANK_B (Burthrope)
Note
Author: SRL Dev Team Last Modified: 18/01/2012
Example:
if OpenBankChest(SRL_BANK_SW) then
Withdraw(...);
OpenBank¶
function OpenBank(WhichBank: String, ChangeCompass, ChangeAngle: Boolean): Boolean;
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)
Note
Author: SRL Dev Team Last Modified: January 31st, 2012 by Coh3n
Example:
if OpenBank('feb', False, True) then
Withdraw(...);
FindBank¶
function FindBank(TheBank: String): Boolean;
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) ‘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) ‘fgb’ (Fishing guild bank)
Note
Author: WT-Fakawi and modified by Ron Last Modified: Unknown
Example:
if FindBank('feb') then
Withdraw(...);
WithdrawFromPouch¶
function WithdrawFromPouch(Amount :Integer) :Boolean;
Withdraws amount from pouch.
Note
by Home