SRL Archive - OSR Help

Problem with depositing to bank


l6bustank

2012-12-29 14:40:14

I am using the procedure 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)

I want it to deposit all of a certain item but keep other items i need in my inv. The code im using looks like this:

if (BankScreen) then
begin
Deposit(3, 27, True);
Wait(RandomRange(100, 150));
Withdraw(0, 0, 28);
Wait(RandomRange(100, 150));
CloseBank;

As I understand, it should deposit all and not one-by one. But one-by-one is exactly what it does. Same happens if I use an integer in the last parameter.

whats wrong?

The Killer

2012-12-29 14:43:38

it's been reported in my thread here too however I didn't recieve the problem myself testing the script not long after.

Try force updating srl

Gucci

2012-12-29 15:02:37

Or use a DTM/Bitmap for the item and have it deposit it.

This is something from my safe cracker:

if FindBitmapToleranceIn(SappBMP, x, y, MIX1, MIY1, MIX2, MIY2, 45) then
begin
MMouse(x, y, 0, 0);
ClickMouse2(mouse_right);
WaitOption('ll', 500);
end;

Just replace SappBMP with the one you create

l6bustank

2012-12-29 15:05:15

used ChooseOption, seems to work for now

Wardancer

2012-12-29 15:28:48

What inventory slot are you trying to deposit from? For the third slot, I believe you have to use Deposit(1, 3, true). I recall having some issues with it for my superheater…

l6bustank

2012-12-29 15:55:46

im trying to deposit from slot 3. If I look at the parameters' description, then it should deposit items in inv slots 3 - 27 in my case? (Deposits from Slot to ToSlot.) I just ordered it to deposit-all in slot 3 since 3-27 are filled with the same item.

Wardancer

2012-12-29 16:37:20

Try what I suggested. I deposit from slot 1 to 4 with a script and I use nothing close to 27. Tell us how it goes.

Gucci

2012-12-29 18:42:18

Just try what I posted and create your own deposit function ;)