SRL Archive - General Botting Help

After a couple hours of running, BankScreen.Open doesn't work...


twirap

2014-08-28 06:58:10

After 8-9 hours of botting, the SMART client is re-started due to 6 hour fix and then a few mins later I get this bug where the code won't recognize the bankscreen to be open even though it is open…Any ideas why? I have a long delay before the statement:

bankScreen.clickButton(BANK_BUTTON_PRESET_1);

but it says bank screen isn't open….Why would it say that even though the screen is open? Like I said, this only happens after code has been running for 8 hours+
Error is:

– ERROR: bankScreen.clickButton(): Unable to click button since bankscreen isn't open

NKN

2014-08-28 06:58:49

Is that treasure box thing open? (The one with the keys)

twirap

2014-08-28 07:18:43

No, it is closed…I find it really weird because I have other bots that do the same after a while of running and something like a teleport resets and fixes the glitch so that is my current fix for this…Not sure if someone else experienced this.

Sin

2014-08-28 08:37:07

bankScreen.isOpen has a lot of problems for me. Sometimes it doesn't recognize that it's open, so I had to create my own bankIsOpen function.

cosmasjdz

2014-08-28 09:39:07

From: Sin
bankScreen.isOpen has a lot of problems for me. Sometimes it doesn't recognize that it's open, so I had to create my own bankIsOpen function.


It just kills my bots too, can i have a snippet plz?

Sin

2014-08-28 11:11:59

From: cosmasjdz
It just kills my bots too, can i have a snippet plz?



function bankIsOpen:Boolean;
var
TPA:TPointArray;
t:TPoint;
begin
colorSetting(2, 0.01, 0.61);
SetLength(TPA, 0);
FindColorsSpiralTolerance(T.y,T.y,TPA,307678,IntToBox(225,17,380,30), 7)
Result := Length(TPA) > 20;
colorSetting(2, 0.20, 0.20);
end;

if bankIsOpen then...

Ashaman88

2014-08-28 17:12:23

@Olly; you check this out while I'm gone ? :) Or do you have a new version with the newer simba