SRL Archive - Jr. Member General Help and Discussion

Bank Preset Button Question


IROC-Z

2014-11-04 15:18:00

While using a script while banking and using the preset buttons it will either click the preset too early or too late or click it twice. Can't tell which but the ability assigned "2" is queued along with withdrawing the item. I tried changing/adding some wait times in banking functions, but it doesn't seem to have helped. Should I assign my abilities something other than 2? Should I not be worried? Any suggestions?

The Mayor

2014-11-04 15:58:02

From: IROC-Z
While using a script while banking and using the preset buttons it will either click the preset too early or too late or click it twice. Can't tell which but the ability assigned "2" is queued along with withdrawing the item. I tried changing/adding some wait times in banking functions, but it doesn't seem to have helped. Should I assign my abilities something other than 2? Should I not be worried? Any suggestions?


bankScreen.clickButton() waits 100-150ms for the bank screen to close before pressing the button again. If you game is laggy/slow then it will press it multiple times.

You could try this:

Go to bankScreen.simba line 1172 and change this

wait(100 + random(50));

to something higher like:

wait(500+ random(50));

IROC-Z

2014-11-04 17:39:23

From: The Mayor
bankScreen.clickButton() waits 100-150ms for the bank screen to close before pressing the button again. If you game is laggy/slow then it will press it multiple times.

You could try this:

Go to bankScreen.simba line 1172 and change this

wait(100 + random(50));

to something higher like:

wait(500+ random(50));

Thanks! I was there but didn't wanna mess anything up. Guess I should try it before I ask :p

Clarity

2014-11-04 17:48:52

If you're worried about this looking bad, it is pretty normal for a human to make a mistake associated with multiple button presses in a short time, or simply do it out of impatience. :)

Lipcot

2014-11-04 18:36:05

It's a nice antiban heheh, unless it breaks your script i would leave it