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:
I recommend this one because it works the best. Here's how to use it and explaining the arguments:
There you go.
Now we need to know if we are at the bankscreen:
Okay lets say that you want to know if you are at the PinScreen?
Now we can figure out what box we are searching for, or using a dtm by using this:
Then you can use this like this.
Now we need to withdraw…
You can set amount to 0 for all.
When you are done withdrawing/depositing you can do closebank.
Please post suggestions!
Thanks,
Cut em2 it
{*******************************************************************************
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