SRL Archive - OSR Intermediate Scripting Tutorials

Banking in SRL


Raskolnikov

2008-10-17 23:49:37

Okay. First off we need to open the bank… You can make your own procedure, or use some of these:

{*******************************************************************************
function OpenBankGlass(WhichBank: String; ChangeCompass, ChangeAngle: Boolean): Boolean;
By: Wizzup? and modified by Ron
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)
*******************************************************************************

I recommend this one because it works the best. Here's how to use it and explaining the arguments:

OpenBankGlass('bankname', //should we change the compass?, //should we set the angle to the best angle to find the bank?

There you go.

Now we need to know if we are at the bankscreen:

if Bankscreen then LookBelow;

Okay lets say that you want to know if you are at the PinScreen?

if PinScreen then InPin('0000');

Now we can figure out what box we are searching for, or using a dtm by using this:

BankIndexToMSBox(Index: integer): TBox; //You state which index and returns a TBox.

Then you can use this like this.

for i:=1 to 32 do
begin
TheBox := BankIndexToMSBox(i);
FindDTM(TheDTM, x, y, TheBox.x1, TheBox.y1, TheBox.x2, TheBox.y2);
end; //you can use this credit me...

Now we need to withdraw…

Withdraw(//collumn, //row, //amount);

You can set amount to 0 for all.

Deposit(SlotFrom, SlotTo, vType); //vtype is how much to deposit each slot. Put "True" as vType if you want to have deposit all in each slot.

When you are done withdrawing/depositing you can do closebank.

CloseBank;

Please post suggestions!

Thanks,
Cut em2 it

Alligaattor

2008-10-18 14:17:09

didn't understand…

Hugolord

2008-10-18 14:18:45

From: Alligaattor
didn't understand…


maybe try some beginner tuts? \

Nice tut btw.

Raskolnikov

2008-10-18 16:01:46

Thanks, just decided to try and help :D

Magiic

2008-10-18 17:58:57

yeah maybe include Deposit() and stuff like that, bank tabbing scrolling etc (or is bank tabbing not in there?)

Raskolnikov

2008-10-18 18:00:48

forgot about deposit thank you :D

Cut em2 it

crazy_crabko

2008-12-11 10:53:48

Nice tut short but simple im gunna use this when i get around to making a mining script :)

Tickyy

2008-12-29 02:43:49

can you make a example with all of them at end please? :D