SRL Archive - General Botting Help

GWD Bot Script ..


MamiiPapii

2015-06-07 22:48:30

Hey everybody. My friend recently gave me a God Wars Dungeon script so I can get 120 attack but for me it's not working and I continue receiving access violation errors. The script works for my friend and others but not for me and it's frustrating. Here's the error that comes up:

—- Client is ready.
—- Setup SRL in 1 Minute and 47 Seconds
– setupSRL(): True
– ERROR: Specified Action Bar slot not in the range of 1 - 0.
– WARNING: actionBar.clickSlot() will now exit, returning False.
Error: Access violation at line 145
Execution failed.

The error redirects to the tbox getMiddle on line 145. Any easy fixes for this guys?:(

KeepBotting

2015-06-07 22:57:20

Post the code or we can't help you.

MamiiPapii

2015-06-07 23:01:31

This is the part that's causing the errors, at least I believe so:

procedure heal();
var
i: Integer;
j: Integer;
begin
j := 0
if shouldHeal() then
begin
writeLn('healing');
i := randomRange(1, 4);
if random(10) < 5 then
begin
repeat
SendKeys(Healing_Blade, 50+Random(150), 30+Random(200));
Wait(RandomRange(200, 350));
writeln('pressed buttons');
inc(j);
until j = i;
end else
actionbar.clickSlot(9);
end
smallRandomMouse();
end

procedure threshold();
begin
if not shouldHeal() and (actionBar.getAdrenalinePercent > 50) then
begin
if actionbar.clickSlot(chooseAbility) then
begin
smallRandomMouse();
writeln('threshold');
wait(RandomRange(500, 2000));
end
if random(10) = 5 then actionbar.clickSlot(12);
end
end

procedure randomAbility();
var
i: Integer;
begin
i := randomRange(1, 9);
actionbar.clickSlot(i);
writeln('random ability');
end

KeepBotting

2015-06-07 23:05:23

From: MamiiPapii
This is the part that's causing the errors, at least I believe so:

procedure heal();
var
i: Integer;
j: Integer;
begin
j := 0
if shouldHeal() then
begin
writeLn('healing');
i := randomRange(1, 4);
if random(10) < 5 then
begin
repeat
SendKeys(Healing_Blade, 50+Random(150), 30+Random(200));
Wait(RandomRange(200, 350));
writeln('pressed buttons');
inc(j);
until j = i;
end else
actionbar.clickSlot(9);
end
smallRandomMouse();
end

procedure threshold();
begin
if not shouldHeal() and (actionBar.getAdrenalinePercent > 50) then
begin
if actionbar.clickSlot(chooseAbility) then
begin
smallRandomMouse();
writeln('threshold');
wait(RandomRange(500, 2000));
end
if random(10) = 5 then actionbar.clickSlot(12);
end
end

procedure randomAbility();
var
i: Integer;
begin
i := randomRange(1, 9);
actionbar.clickSlot(i);
writeln('random ability');
end


Judging from the code you provided & your debug output, I don't think SRL-6 was able to set your dynamic interface settings properly.

Please post a screenshot of the game window in the same conditions that exist when attempting to run the script.

fady

2015-06-07 23:11:30

From: MamiiPapii
This is the part that's causing the errors, at least I believe so:

procedure heal();
var
i: Integer;
j: Integer;
begin
j := 0
if shouldHeal() then
begin
writeLn('healing');
i := randomRange(1, 4);
if random(10) < 5 then
begin
repeat
SendKeys(Healing_Blade, 50+Random(150), 30+Random(200));
Wait(RandomRange(200, 350));
writeln('pressed buttons');
inc(j);
until j = i;
end else
actionbar.clickSlot(9);
end
smallRandomMouse();
end

procedure threshold();
begin
if not shouldHeal() and (actionBar.getAdrenalinePercent > 50) then
begin
if actionbar.clickSlot(chooseAbility) then
begin
smallRandomMouse();
writeln('threshold');
wait(RandomRange(500, 2000));
end
if random(10) = 5 then actionbar.clickSlot(12);
end
end

procedure randomAbility();
var
i: Integer;
begin
i := randomRange(1, 9);
actionbar.clickSlot(i);
writeln('random ability');
end


Well, I can see that the line
if random(10) = 5 then actionbar.clickSlot(12);
is causing an error because the slot it is clicking is not within 0-9 (12). Try changing that to a number between 0-9 and see what happens. Also a snippet like that wont give us a chance to fully help you. If you post the script itself I'm sure you'll have your solution in no time.

TIP: when posting a script or snippets of a script, include it within simba tags, as this makes it easier for everyone to read [noparse]
insert script/snippets here
[/noparse]

MamiiPapii

2015-06-07 23:16:40

[ATTACH=CONFIG]26092[/ATTACH]
[ATTACH=CONFIG]26093[/ATTACH]

The first screenshot is when it's loading the client.
The second screenshot is when it stops at the login screen and results in that error.

@fady, that solution did not help but thank you

KeepBotting

2015-06-07 23:17:13

From: fady
Well, I can see that the line
if random(10) = 5 then actionbar.clickSlot(12);
is causing an error because the slot it is clicking is not within 0-9 (12). Try changing that to a number between 0-9 and see what happens. Also a snippet like that wont give us a chance to fully help you. If you post the script itself I'm sure you'll have your solution in no time.

TIP: when posting a script or snippets of a script, include it within simba tags, as this makes it easier for everyone to read [noparse]
insert script/snippets here
[/noparse]


There are 14 action bar slots that .clickSlot() can click, not 9. Also, the debug output in the OP suggests that SRL was unable to detect his interfaces properly:

-- ERROR: Specified Action Bar slot not in the range of 1 - 0.

which comes from

print('Specified Action Bar slot not in the range of 1 - ' + toStr(length(self.__slots)) + '.', TDebug.ERROR);

Why is self.__slots returning 0? This leads me to believe that SRL was unable to set up the dynamic interfaces properly.

From: MamiiPapii
[ATTACH=CONFIG]26092[/ATTACH]
[ATTACH=CONFIG]26093[/ATTACH]

The first screenshot is when it's loading the client.
The second screenshot is when it stops at the login screen and results in that error.

@fady, that solution did not help but thank you


I need an image of you logged in.

fady

2015-06-07 23:22:16

From: KeepBotting
SNIP


Ohh!!! I totally missed that. Thanks for pointing that out.

MamiiPapii

2015-06-07 23:23:55

[ATTACH=CONFIG]26094[/ATTACH]

KeepBotting

2015-06-07 23:25:03

From: fady
Ohh!!! I totally missed that. Thanks for pointing that out.

;)
From: MamiiPapii
[ATTACH=CONFIG]26094[/ATTACH]

As expected. Please read the RS3 setup thread.

MamiiPapii

2015-06-07 23:33:13

From: KeepBotting
;)

As expected. Please read the RS3 setup thread.


Could you please clarify what exactly is wrong? I followed all the steps to that and the error is still coming up.

KeepBotting

2015-06-07 23:35:49

From: MamiiPapii
Could you please clarify what exactly is wrong? I followed all the steps to that and the error is still coming up.

Your interfaces are wrong, the transparency is not 0% / completely opaque, as it should be.

fady

2015-06-07 23:36:03

From: MamiiPapii
Could you please clarify what exactly is wrong? I followed all the steps to that and the error is still coming up.


From what I can see Transparency should be all the way down. Also Lock your interface (Click the "L" button if you have the default configuration, as that sometimes messes it up. Also some scripts recommend that you make your chat box the smallest it can be.

Those are the things that I can recommend but more things might be off.

MamiiPapii

2015-06-07 23:42:18

From: fady
From what I can see Transparency should be all the way down. Also Lock your interface (Click the "L" button if you have the default configuration, as that sometimes messes it up. Also some scripts recommend that you make your chat box the smallest it can be.

Those are the things that I can recommend but more things might be off.


Ahh, the chatbox had to be the smallest. Thank you so much, guys. Such a simple fix. :)

Sawyer

2015-06-08 10:42:38

From: MamiiPapii
Ahh, the chatbox had to be the smallest. Thank you so much, guys. Such a simple fix. :)


Make sure your interfaces are NOT transparent and CANNOT be clicked through.