SRL Archive - OSR Help

After logout continue script?


bas

2012-04-10 16:43:48

Hello,
I made a battleScape Thieving script.
But i have 1 problem, somethimes battlescape gives a anti random.
This mean you can't use your inventory before you logout once.
I fixed this with simple FindColor then ….
But when it log out and logs back in, it just stand there at the bank! (most of the time @ bank..)

How can i let the script search the bank again after the login? and if not found bank then continue script? eg, walking back

Thanks

Joe

2012-04-10 16:47:01

What do you mean by search the bank
do you mean search your bank inventory or or just sit in the bank standing in the middle. Never played battlescape, but wouldn't that be a DTM of a unique part of the bank and if not found do a radial walk or SPS walk back?

Abu

2012-04-10 16:52:53

You'll need to fix your mainloop.

When it logs back in, it will carry on where it left off unless if you implement a failsafe.

Maybe define the area of the bank, then say 'if IsAtBank then', that way if you are at the bank, it will use the banking procedure

bas

2012-04-10 16:55:10

From: JOEbot
What do you mean by search the bank
do you mean search your bank inventory or or just sit in the bank standing in the middle. Never played battlescape, but wouldn't that be a DTM of a unique part of the bank and if not found do a radial walk or SPS walk back?


Its more like, when its doing a procedure, and finally gets to the bank chest, it want to open it but cant, so it will relog and then it stands by the bank chest :S i want it to continue like:

Open bank chest
If random > relog
Get stuff from bank
Walk back to the place and repeat everything (Instead of the random, only when it see it)

Sorry broken english .. :P