SRL Archive - First Scripts

gNomeProject (Gnome Agility Course - Basic)


increaseblu

2014-07-10 12:49:17

Heres a very basic script for the Gnome agility course. It requires supervision but should be able to push to level ~50 for Ashaman's Ape Atoll.

Its very basic (no login/location detection) but it works :) Feel free to make adjustments to make it 24/7 afk, I will definitely post creds!

Setup:
Old School, slim headers, small chatbox
Camera - RS3
Compass north, angle_high, zoom out
Enter left pipe, start after player exits
Enjoy :)


program gNomeProject;
{$DEFINE SMART}
{$i SRL-6/SRL.simba}

function crossLog(): boolean;
var
x,y:integer;
begin
mouse(point(8, 256), MOUSE_RIGHT, MOUSE_HUMAN);
wait(gaussRangeInt(500,800));
if chooseOption.select(['Walk-across']) then
begin
wait(gaussRangeInt(9400,10600));
Result:=true;
end;
end;
procedure climbNet1();
begin
mouse(point(299, 334), MOUSE_RIGHT, MOUSE_HUMAN);
chooseOption.select(['Climb-over']);
wait(gaussRangeInt(6100,6800));
end;
procedure climbTree1();
begin
mouse(point(291, 247), MOUSE_RIGHT, MOUSE_HUMAN);
chooseOption.select(['Climb']);
wait(gaussRangeInt(5200,5600));
end;
procedure crossRope();
var
x,y:integer
begin
mouse(point(431, 202), MOUSE_RIGHT, MOUSE_HUMAN);
wait(gaussRangeInt(500,800));
if not chooseOption.select(['Walk-on']) then
begin
mouse(point(430, 201), MOUSE_RIGHT, MOUSE_HUMAN);
wait(gaussRangeInt(500,800));
if not chooseOption.select(['Walk-on']) then
mainscreen.findObject(x,y,4746892,1,['Walk']);
end;
wait(gaussRangeInt(7200,7800));
end;
procedure climbTree2();
begin
mouse(point(425, 225), MOUSE_RIGHT, MOUSE_HUMAN);
wait(gaussRangeInt(500,800));
chooseOption.select(['Climb-down']);
wait(gaussRangeInt(6000,6200));
end;
procedure crossNet2();
begin
mouse(point(269, 13), MOUSE_LEFT, MOUSE_HUMAN);
wait(gaussRangeInt(4000,4200));
mouse(point(301, 114), MOUSE_RIGHT, MOUSE_HUMAN);
chooseOption.select(['Climb-over']);
wait(gaussRangeInt(6800,7200));
end;
procedure enterPipe();
begin
mouse(point(196, 59), MOUSE_RIGHT, MOUSE_HUMAN);
chooseOption.select(['Squeeze']);
wait(gaussRangeInt(7100,7800));
end;

procedure mainLoop();
begin
repeat
if crossLog then
begin
climbNet1;
climbTree1;
crossRope;
climbTree2;
crossNet2;
enterPipe;
end;
until(not isLoggedIn)
end;

begin
smartPlugins := ['opengl32.dll'];
smartEnableDrawing := true;
setupSRL;
mainLoop;
end.

bestplox

2014-07-10 15:39:31

Wow! Nice script! Going to try that out and report bugs ;)

Brotein

2014-07-10 16:59:58

This should probably go in the "First Scripts" section so you can receive helpful tips from people here.

increaseblu

2014-07-10 17:21:40

From: Brotein
This should probably go in the "First Scripts" section so you can receive helpful tips from people here.

aha, my bad! Can a mod/admin take care of that for me?

masterBB

2014-07-10 17:45:47

done.

theorange

2014-07-27 10:21:23

– setupSRL()
—- Setting up SRL…
—- initSmart():
—— Attempting to pair to a previously spawned client
—— smartPairToExistingClient():
——– Found 1 free client(s), attempting to pair to one…
———- smartSetAsTarget(): Succesfully set SMART[4476] as Simba's target
——– Succesfully paired to a existing client, SMART[4476]
—— smartPairToExistingClient(): result = true
—— Succesfully initialized via pairing to a previously spawned client
—- initSmart()
—— smartSetupDrawing(): Succesfully setup SMART drawing
—- Waiting up to 5 minutes for RS to load…

-Doesn't do anything
Attached are settings
[ATTACH=CONFIG]23681[/ATTACH][ATTACH=CONFIG]23682[/ATTACH][ATTACH=CONFIG]23683[/ATTACH][ATTACH=CONFIG]23684[/ATTACH][ATTACH=CONFIG]23685[/ATTACH]

Ashaman88

2014-07-27 10:24:29

From: theorange
– setupSRL()
—- Setting up SRL…
—- initSmart():
—— Attempting to pair to a previously spawned client
—— smartPairToExistingClient():
——– Found 1 free client(s), attempting to pair to one…
———- smartSetAsTarget(): Succesfully set SMART[4476] as Simba's target
——– Succesfully paired to a existing client, SMART[4476]
—— smartPairToExistingClient(): result = true
—— Succesfully initialized via pairing to a previously spawned client
—- initSmart()
—— smartSetupDrawing(): Succesfully setup SMART drawing
—- Waiting up to 5 minutes for RS to load…

-Doesn't do anything
Attached are settings
[ATTACH=CONFIG]23681[/ATTACH][ATTACH=CONFIG]23682[/ATTACH][ATTACH=CONFIG]23683[/ATTACH][ATTACH=CONFIG]23684[/ATTACH][ATTACH=CONFIG]23685[/ATTACH]


Cmon man your brightness isn't turned up all the way!

theorange

2014-07-27 23:51:09

From: Ashaman88
Cmon man your brightness isn't turned up all the way!


Fixed it, for some reason RS randomly changes my brightness settings. Normally it is at the proper settings.
With changed brightness it still says waiting for rs to load, then gets to full 5 mins and still does not recognize it. Settings are the same as above pics, but with max brightness

Realized my camera setting might have been wrong as must people go with the other one instead of RS, even with swapping camera modes, being fully zoomed out, high angle, with max brightness and low transperency still doesn't work (And yes I am following the guide on how to set up for the scripts, as I can make some of them work)

—— smartSetupDrawing(): Succesfully setup SMART drawing
—- Waiting up to 5 minutes for RS to load…
—- 1 minute(s) have passed, client is not ready yet
—- 2 minute(s) have passed, client is not ready yet
—- 3 minute(s) have passed, client is not ready yet
—- 4 minute(s) have passed, client is not ready yet
—- Client is taking too long to load, terminating…
– setupSRL(): False
– Succesfully freed SMART[1792]
Successfully executed.

Jeroen

2014-07-28 15:39:30

From: theorange
Fixed it, for some reason RS randomly changes my brightness settings. Normally it is at the proper settings.
With changed brightness it still says waiting for rs to load, then gets to full 5 mins and still does not recognize it. Settings are the same as above pics, but with max brightness

Realized my camera setting might have been wrong as must people go with the other one instead of RS, even with swapping camera modes, being fully zoomed out, high angle, with max brightness and low transperency still doesn't work (And yes I am following the guide on how to set up for the scripts, as I can make some of them work)

—— smartSetupDrawing(): Succesfully setup SMART drawing
—- Waiting up to 5 minutes for RS to load…
—- 1 minute(s) have passed, client is not ready yet
—- 2 minute(s) have passed, client is not ready yet
—- 3 minute(s) have passed, client is not ready yet
—- 4 minute(s) have passed, client is not ready yet
—- Client is taking too long to load, terminating…
– setupSRL(): False
– Succesfully freed SMART[1792]
Successfully executed.


http://i.imgur.com/GWxbKrP.png

Try OpenGL for a change. Not every script uses DirectX.

theorange

2014-07-28 16:22:52

From: Jeroen
http://i.imgur.com/GWxbKrP.png

Try OpenGL for a change. Not every script uses DirectX.


That would do it.

However now there is a new error message:

[ATTACH=CONFIG]23699[/ATTACH]

Jeroen

2014-07-28 16:45:04

From: theorange
That would do it.

However now there is a new error message:

[ATTACH=CONFIG]23699[/ATTACH]

Refer to this post: https://villavu.com/forum/showthread.php?t=109646&p=1301573#post1301573
Replace actionbar.simba – lines 167-223 located at C:\Simba\Includes\srl-6\lib\interfaces\actionbar.simba

theorange

2014-07-28 17:16:22

From: Jeroen
Refer to this post: https://villavu.com/forum/showthread.php?t=109646&p=1301573#post1301573
Replace actionbar.simba – lines 167-223 located at C:\Simba\Includes\srl-6\lib\interfaces\actionbar.simba


Got it, Thanks!

Brotein

2014-07-28 17:30:35

You should use MouseBox or something random for your mouse coordinates, a little bit scary clicking the same point every go.

Drax

2014-08-06 06:01:20

From: Brotein
You should use MouseBox or something random for your mouse coordinates, a little bit scary clicking the same point every go.



I was thinking the same thing.