SRL Archive - General Botting Help

SRL banking problems?


Nufineek

2015-03-01 13:59:32

Hey guys, I am having some problems while using SRL banking - sometimes it takes the function even 10 or more times to detect the uptext and click the chest/NPC. I've been experiencing the exact same issue using several banking locations (SW, CW, GROTTO, SHANTAY).. and also BLUE_NPC.

This is how it looks like
[video]https://vid.me/V0X5[/video]

This is my simba banking code:

function banking: boolean;
var
t: TTimeMarker;
time, shift, slot: integer;
b, area: TBox;
begin
b := mainScreen.getBounds();
shift := getPixelShiftAverage(b, 100, 2000);
t.start;
time := gaussRangeInt(80000, 120000);
repeat
if (t.getTime > time) or (not isLoggedIn) then
exit;
getRightAngle;
findNormalrandoms;
disableSRLDebug := False;
if bankScreen.Open(players[currentPlayer].integers[2]) then
begin
disableSRLDebug := true;
break;
end;
chooseOption.close;
case random(10) of
0..8: slot := 2;
9..10: slot := 7;
end;
// Check if any backpack item is clicked - which might stop us from banking
if ((tabBackpack.countDTM(clickedHerb)) > 0) or ((tabBackpack.countDTM(clickedPot)) > 0) then
begin
writeln('--- Found clicked item, clicking cancel ---');
tabBackpack.mouseSlot(slot, MOUSE_MOVE);
fastclick(MOUSE_RIGHT);
chooseOption.select(['Cancel']);
end;
mainScreen.setAngle(MS_ANGLE_HIGH);
if (t.getTime > time) or (not isLoggedIn) then
exit;
wait(gaussRangeInt(100, 300));
until bankscreen.isOpen or (t.getTime > time);
result := true;
end;

cosmasjdz

2015-03-01 14:02:48

why dont you mouse left?

Nufineek

2015-03-01 15:11:19

From: cosmasjdz
why dont you mouse left?


mouse left..where? I'm using bankScreen.Open which should find the chest/banker, point on it and if there's the right uptext, click and return true if the bankscreen is open, no?

Sin

2015-03-01 17:16:25

I think your computer is slow. I just ran it and it opened it perfectly fine.

Turpinator

2015-03-01 17:39:30

From: Sin
I think your computer is slow. I just ran it and it opened it perfectly fine.


^^
either the video is skipping frames and appearing slow, or your computer is. and it looks like the computer.

KeepBotting

2015-03-01 17:56:47

I agree with Sin and Turp. Comparing the video to the debug, it seems like the main problem is the script not detecting the chooseOption menu opening after performing a right-click.

Thus, the chooseOption menu stays open, no mouse-over text is detected, and the function loops again.

I'd advise you to create a custom function, or delve into the core routines and place a wait() so that the function will pause for a bit in between right-clicking and checking for the chooseOption menu.

the bank

2015-03-02 11:00:52

Alternatively simply try playing on a world with a lower latency. If it is indeed your computer being piss poor, then close unneeded processes in the background.

Nufineek

2015-03-03 05:47:06

Thanks for your responses guys. You're all right - I'm running a few accounts each within one VM. The rest of my script is made to handle the weak cpu performance, this is the only function that doesn't work flawlessly (at least within my script…..I cant even think about running SPS walking script within a VM for a longer time).

Anybody has experience with VMs? Maybe some of my settings reduce the cpu power of each VM.

KeepBotting

2015-03-03 07:47:37

From: Nufineek
Thanks for your responses guys. You're all right - I'm running a few accounts each within one VM. The rest of my script is made to handle the weak cpu performance, this is the only function that doesn't work flawlessly (at least within my script…..I cant even think about running SPS walking script within a VM for a longer time).

Anybody has experience with VMs? Maybe some of my settings reduce the cpu power of each VM.

How-To Geek has a guide that I've had some experience following (some, but not all steps seem to provide a performance boost)

http://www.howtogeek.com/124796/the-htg-guide-to-speeding-up-your-virtual-machines/

For your situation, I think you're going to want to be looking at the "Allocate more CPUs" section. Other sections will help to a lesser degree or maybe not at all, depending on how your host machine is set up.

Nufineek

2015-03-03 16:52:32

From: KeepBotting
How-To Geek has a guide that I've had some experience following (some, but not all steps seem to provide a performance boost)

http://www.howtogeek.com/124796/the-htg-guide-to-speeding-up-your-virtual-machines/

For your situation, I think you're going to want to be looking at the "Allocate more CPUs" section. Other sections will help to a lesser degree or maybe not at all, depending on how your host machine is set up.

Yeah I have allocated all cores/threads to each of the VMs. I did not try different brand though (using VMware atm), but I guess that'll be very similar. Thanks for ur answer tho! :)