SRL Archive - OSR Help

need help with these built in banking procedures


Here2help

2012-05-16 11:04:03

if OpenBank('feb', False, True) then
Withdraw(...);

Working on the first banking part of my script. I search banking and see a bunch of banking procedures come up, i chose this one because it seems basic and what i want it to do, open the bank.

First question. What do i put in the withdraw? bank slot numbers? DMTs? Can someone give me an explanation of this please?

second question, do i need to do a FindBank Procedure first? Or will OpenBank already do that?

Le Jingle

2012-05-16 11:05:33

You're not opening the bank, try this

OpenBank('feb', False, True);
If BankScreen Then
Withdraw(0,0,1000); // this is the 1st bank slot, as in the very 1st, you go over 0 colums, and down 0 rows, and withdraw 1k

Here2help

2012-05-16 11:10:54

From: Le Jingle
You're not opening the bank, try this

OpenBank('feb', False, True);
If BankScreen Then
Withdraw(0,0,1000); // this is the 1st bank slot, as in the very 1st, you go over 0 colums, and down 0 rows, and withdraw 1k


Thank you.


How would i go about getting simba to actually detect items? Does that have to go with DMTs?

Abu

2012-05-16 11:34:48

From: Here2help
Thank you.


How would i go about getting simba to actually detect items? Does that have to go with DMTs?


FYI, use
OpenBankFast('feb');

It's much better.

In Withdraw you put the column number, followed by the row number followed by the amount you want to withdraw.
Withdraw(2, 3, 0);
//This will withdraw all of the item in the second column, third row.

If the item you want to withdraw is not always in the same bank slot - then DTM's are the way to go because there are too many objects in a bank to find the specific colour of a specific object.

Rich

2012-05-16 11:46:50

From: abu_jwka
FYI, use
OpenBankFast('feb');

It's much better.
Surely it'll be better to use OpenBank, since it attempts to use all SRL procedures if the previous fail?

Here2help

2012-05-16 12:30:01

After it withdraws the xx,xx,how many. Will it close the bank?

weequ

2012-05-16 12:59:17

From: Here2help
After it withdraws the xx,xx,how many. Will it close the bank?
No. There is a function called CloseBank; if I remember correctly. Also to save time you could close the bank by walking on the minimap if your script walks.

Here2help

2012-05-16 13:15:10

From: weequ
No. There is a function called CloseBank; if I remember correctly. Also to save time you could close the bank by walking on the minimap if your script walks.


Can i do this by just having the banking procedure and then just going straight to the walking procedure? Just skipping the closebank procedure altogether?

Abu

2012-05-16 13:18:41

From: Here2help
Can i do this by just having the banking procedure and then just going straight to the walking procedure? Just skipping the closebank procedure altogether?


Yes.