Bank ==== The Bank include contains Bank finders, and all banking routines. BankScreen ~~~~~~~~~~ .. code-block:: pascal function BankScreen: Boolean; Finds Bankscreen. Returns true if Found. .. note:: by The SRL Dev Team Example: .. code-block:: pascal DepositScreen ~~~~~~~~~~~~~ .. code-block:: pascal function DepositScreen: Boolean; Returns true if deposit screen is Found. .. note:: by Shuttleu Example: .. code-block:: pascal PinScreen ~~~~~~~~~ .. code-block:: pascal function PinScreen: Boolean; Finds Pin Screen. Returns true if Found. .. note:: by NaumanAkhlaq Example: .. code-block:: pascal InPin ~~~~~ .. code-block:: pascal function InPin(Pin: String): Boolean; Enters bank pin. Will try 3 times, returns true if bank is opened. .. note:: by ZephyrsFury and Nava2 Example: .. code-block:: pascal MSTPointToBankPoint ~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function MSTPointToBankPoint(P: TPoint): TPoint; Converts a point on the Mainscreen to the point in the Bank. First Row and Col are (0,0). .. note:: by Wizzup? Example: .. code-block:: pascal BankPointToBankIndex ~~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function BankPointToBankIndex(P: TPoint): Integer; Description: Converts a Bank Point (Row,Col) to Bank Index (spot in bank). (0, 0) = 1 .. note:: by Wizzup? Example: .. code-block:: pascal BankIndexToBankPoint ~~~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function BankIndexToBankPoint(ind: Integer): TPoint; Converts the Bank Index (spot in bank) to a Bank Point (Row,Col). 1 = (0, 0) .. note:: by Wizzup? Example: .. code-block:: pascal BankIndexToMSPoint ~~~~~~~~~~~~~~~~~~ .. code-block:: pascal function BankIndexToMSPoint(Index: Integer): TPoint; Converts the Bank Index (spot in bank) to a Mainscreen TPoint of the Index. (Top Left) .. note:: by Wizzup? Example: .. code-block:: pascal BankIndexToMSBox ~~~~~~~~~~~~~~~~ .. code-block:: pascal function BankIndexToMSBox(ind:Integer): TBox; Converts the Bank Index (spot in bank) to a Mainscreen TBox of the Index. .. note:: by Wizzup? Example: .. code-block:: pascal DepositItemBox ~~~~~~~~~~~~~~ .. code-block:: pascal function DepositItemBox(Item: Integer): TBox; Returns a TBox surround Item (1 to 28) in the Deposit Box screen. .. note:: by ZephyrsFury Example: .. code-block:: pascal FixBank ~~~~~~~ .. code-block:: pascal procedure FixBank; Scrolls the bank screen up. .. note:: by lordsaturn, Nava2, IceFire908 & Bixby Sayz Example: .. code-block:: pascal FixBankTab ~~~~~~~~~~ .. code-block:: pascal function FixBankTab: Boolean; Fixes the BankTab to 'View All' .. note:: by Wizzup? Example: .. code-block:: pascal CurrentBankTab ~~~~~~~~~~~~~~ .. code-block:: pascal function CurrentBankTab: Integer; Returns Current Bank Tab selected .. note:: by Narcle Example: .. code-block:: pascal ExistsBankTab ~~~~~~~~~~~~~ .. code-block:: pascal function ExistsBankTab(T: Integer): Boolean; Returns true if Bank Tab Exists .. note:: by Narcle Example: .. code-block:: pascal BankTab ~~~~~~~ .. code-block:: pascal function BankTab(T: Integer): Boolean; If Bank Tab is there will switch to it. .. note:: by Narcle Example: .. code-block:: pascal SearchBank ~~~~~~~~~~ .. code-block:: pascal procedure SearchBank(Item: string); Searches for Item in your bank. .. note:: by ZephyrsFury Example: .. code-block:: pascal DepositAll ~~~~~~~~~~ .. code-block:: pascal function DepositAll: Boolean; Deposits all items in your inventory .. note:: by ZephyrsFury & Quickmarch Example: .. code-block:: pascal Deposit ~~~~~~~ .. code-block:: pascal 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:: by WT-Fakawi/PPLSUQBAWLZ/Stupid3ooo/Town Example: .. code-block:: pascal WithdrawEx ~~~~~~~~~~ .. code-block:: pascal function WithdrawEx(Col, Row, Amount: Integer; Uptexts: TStringArray): Boolean; Withdraws Amount at Column/Row. .. note:: by Starblaster100, Town, Wizzup? and Narcle, small fixes by r!ch!e & EvilChicken! Example: .. code-block:: pascal Withdraw ~~~~~~~~ .. code-block:: pascal function Withdraw(Col, Row, Amount: Integer): Boolean; Withdraws Amount at Column/Row. .. note:: by Starblaster100, Town, Wizzup? and Narcle Example: .. code-block:: pascal WithdrawItemEx ~~~~~~~~~~~~~~ .. code-block:: pascal 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:: by Nava2 Example: .. code-block:: pascal WithdrawItem ~~~~~~~~~~~~ .. code-block:: pascal function WithdrawItem(Ident: integer; IdentType: string; Amount: integer; UpText: TStringArray; Tol: TIntegerArray): boolean; Withdraws an item using WithdrawItemEx, but removes the Index check. .. note:: by Nava2 Example: .. code-block:: pascal Notes ~~~~~ .. code-block:: pascal procedure Notes(SwitchOn: Boolean); Toggles note withdrawal on or off. .. note:: by lordsaturn, idea by R1ch Example: .. code-block:: pascal CloseBank ~~~~~~~~~ .. code-block:: pascal function CloseBank: Boolean; Closes the bank window - Tries twice before exiting .. note:: by Starblaster100 Example: .. code-block:: pascal OpenBankQuiet ~~~~~~~~~~~~~ .. code-block:: pascal function OpenBankQuiet(WhichBank: string): Boolean; Opens any given bank in the free world using FindDeformedBitmapToleranceIn. Avoids strange mouse movements. Will causesignificant 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:: by WT-Fakawi Example: .. code-block:: pascal OpenBankGlass ~~~~~~~~~~~~~ .. code-block:: pascal 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:: by Wizzup? and modified by Ron updated to P2p banks by N1ke! Example: .. code-block:: pascal OpenBankFast ~~~~~~~~~~~~ .. code-block:: pascal function OpenBankFast(Location: String): Boolean; Description: 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:: by Wizzup? and Nielsie95 updated by N1ke! updated again by marpis Example: .. code-block:: pascal Home ~~~~ .. code-block:: pascal function OpenBankNPC: Boolean; Opens the bank by using Banker. .. note:: by Home Example: .. code-block:: pascal OpenBank ~~~~~~~~~~~~ .. code-block:: pascal 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:: by phantombmx/EvilChicken!, idea by NaumanAkhlaQ Example: .. code-block:: pascal FindBank ~~~~~~~~ .. code-block:: pascal function FindBank(TheBank: String): Boolean; Finds and opens any given bank in the free world. If the MM DTM is found it will find and open 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) - '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:: by WT-Fakawi and modified by Ron Updated to P2p by N1ke! Eb added by R1ch Example: .. code-block:: pascal OpenDepositBox ~~~~~~~~~~~~~~ .. code-block:: pascal function OpenDepositBox : Boolean; Opens the deposit box. .. note:: by Shuttleu Example: .. code-block:: pascal