SRL Archive - Reflection Help

R_DepositAll


Yago

2011-03-04 18:37:15

My bank is full and my inv has about 10 items in it. So … I call this and my script clicks the deposit all button and just stands there.

Harry

2011-03-04 19:10:56

Are you using R_DepositAll(True) or (False)?

It shouldn't do that. (True) uses SRL's method which is failsafed properly and will exit 2 seconds after clicking the button. I am pretty sure it's not R_DepositAll's fault; add some WriteLns every other line in the problematic procedure in your script to debug the true source of where it's freezing.

Yago

2011-03-04 22:07:05

I'm Using (True) and stuff and I Did add writelns for debugging. Heres some of my code. Im pretty sure its not the rest cause then i would see my writelns of my else:


Begin
WriteLn('Bank Screen Is Open.');
Wait(500 + Random(300));
R_DepositAll(True);
If R_InvEmpty Then
Begin
SOME Codee...
End
Else
Begin
WriteLn('Could Not Deposit All The Items In The Inventory.');
TerminateScript;
End;
End;

I should be getting the line COULD Not Deposit All The Items In The inventory, but im not


Edit: Again I only got this after my bank was full/ Could you please try filling your bank 78/78 then depositall and let me know what happens to see if its my code or not?

smurg

2011-03-05 01:42:52

From: yago
I'm Using (True) and stuff and I Did add writelns for debugging. Heres some of my code. Im pretty sure its not the rest cause then i would see my writelns of my else:

Simba Code:
[LEFT]Begin
WriteLn('Bank Screen Is Open.');
Wait(500 + Random(300));
R_DepositAll(True);
If R_InvEmpty Then
Begin
SOME Codee…
End
Else
Begin
WriteLn('Could Not Deposit All The Items In The Inventory.');
TerminateScript;
End;
End;
[/LEFT]


I should be getting the line COULD Not Deposit All The Items In The inventory, but im not


Edit: Again I only got this after my bank was full/ Could you please try filling your bank 78/78 then depositall and let me know what happens to see if its my code or not?


You'll have to add a wait after the depositing.

R_DepositAll ends and an item count directly after will still see the items because there's a delay between clicking the 'Deposit All' button and the items actually depositing.

Harry

2011-03-05 02:06:17

I meant using them as debug, every other line. Like WriteLn('1'); OneLineOfCodeHere; Writeln('2');, etc. It will show exactly where it slows down. And as smurg said, try adding a small wait there.

Yago

2011-03-05 12:42:18

Yeah it doesnt get past depositall… my debugging harry. I tried an emptied a bit my bank and it works perfectly. So theres obviously some sort of something with the code that should and probably wont be fixed if your bank is full.

Bad Boy JH

2011-03-06 17:16:08

Try using the writelns in the depositAll (Not R_DepositAll) procedure
I can't see whats stuffing it up, it has a failsafe that kicks you out after 2 seconds.
Are you using a bank booth, or a depostit box (or whatever its called)

Yago

2011-03-06 17:19:55

bankbooth yeah it just stays there for more than 2 secs

E: Ill try just depositall but i did before and nothing. Ill let you know this time.

Edit2: Did anybody try this at all? Im still getting the same errors!