SRL Archive - OSR Help

Banking Issue (Soul Wars Related?)


ForgotMyName

2010-05-09 23:27:26

I'm trying again on making a script which uses the soul wars bank chest. A few past attempts using different methods have caused similar errors. Today I finally figured out why. The spot I get stuck in is roughly where you go from the bank chest if you try to click the first bank spot when the bank screen is not actually open. This happens extremely rarely and I do not know why, since I've already checked that the bank screen is indeed open. Any help would be appreciated.

Frement

2010-05-09 23:32:37

So the bank screen open detection fails? Try adding Wait(400+Random(200)); before the click, that should do it.

NCDS

2010-05-09 23:50:14

Or use WaitFunc();

Example:

WaitFunc(@BankScreen, 30, 3000);

That will wait 30ms between searching for bankscreen while waiting a total of 3000 ms before returning false.

ForgotMyName

2010-05-10 01:54:58

I don't know. I'm using the normal Withdraw() procedure from Bank.scar. I haven't actually seen this miss happen, but given that it's the same spot every time, this is the only theory I have.

swisspking

2010-05-10 15:12:33

I am also using a script which is using the soulwars bank. I don't have this problem.
Using something like this:
    repeat
FindSWChest();
Wait(RandomRange(800, 1500));
until (BankScreen) or (PinScreen);
^this has never failed since I'm using these scripts.

Hope this helped :)
~Aron

ForgotMyName

2010-05-10 17:38:41

I'm working on implementing a walk back to bank icon routine when it can't find the bank. Just temporarily ignoring why it happens and duct taping the gap.

Home

2010-05-11 07:02:56

From: swisspking
I am also using a script which is using the soulwars bank. I don't have this problem.
Using something like this:
    repeat
FindSWChest();
Wait(RandomRange(800, 1500));
until (BankScreen) or (PinScreen);
^this has never failed since I'm using these scripts.

Hope this helped :)
~Aron


Kinda Offtopic, but remember failsafes :)

~Home

swisspking

2010-05-11 13:58:22

Home, I'm always watching when I'm autoing. My scripts are very short and don't work for more than 3h.
But they work, and I can do other stuff on my computer. Goal reached :)

~Swiss

ONTOPIC: Why don't you post that part of the script? I can't imagine why it shouldn't be working tbh :S