SRL Archive - RS3 Script Requests

A question!


Enigmatic

2015-02-05 13:38:34

In Junior+ or the above ranked forums, is there a pest control script?`
I am thinking about making one because I was playing it and noticed that it's very easy and free xp, in skills such as Prayer and Summoning which is sometimes an unfavourable skill to train. :norris:

So if this would be a thing I would totally dedicate my time to make a simple script.

3Garrett3

2015-02-05 13:43:01

Last time this was asked (a month ago) was here: https://villavu.com/forum/showthread.php?t=110854&p=1321258#post1321258

@Obscurity apparently was working on one. I haven't seen it in the higher boards yet though. I encourage you to work on making one, since I know he's very busy IRL. It would be a great first project for you. If you needed help you can always ask around and people will be willing to give you a hand!


Off Topic:

Since I already mentioned him, this seems like a good enough time to ask Obscurity how the OGL tutorial is coming.

Enigmatic

2015-02-05 13:46:19

From: 3Garrett3
Last time this was asked (a month ago) was here: https://villavu.com/forum/showthread.php?t=110854&p=1321258#post1321258

@Obscurity apparently was working on one. I haven't seen it in the higher boards yet though. I encourage you to work on making one, since I know he's very busy IRL. It would be a great first project for you. If you needed help you can always ask around and people will be willing to give you a hand!


Off Topic:

Since I already mentioned him, this seems like a good enough time to ask Obscurity how the OGL tutorial is coming.


Alright thank you!
Well I wrote down in notepad what would be required.
I could either
1. Make a script that runs to the eastern portal and afks and clicks the portal when it's attackable and that would add up to 5k dmg which is required to receive points.
or
2. Make a script that picks up 10 logs from the pile and runs and repairs barricades for 5k attack dmg (Each repair gives you 500 attack dmg registered)

I would need a hand I think because I am very noob :D
But I'll start working on it and would it be ok for me to PM you with the progress when I get stuck for a helping hand?

Enigmatic

2015-02-05 14:12:08

Seems like this is a little too complex for me sadly, I didn't think that it would be that complex since the minigame is pretty much afk-able.. but for someone with skills this script is easily made!
I am passing it on to someone more experienced.. (Sad)

3Garrett3

2015-02-05 14:37:43

From: Enigmatic
Alright thank you!
Well I wrote down in notepad what would be required.
I could either
1. Make a script that runs to the eastern portal and afks and clicks the portal when it's attackable and that would add up to 5k dmg which is required to receive points.
or
2. Make a script that picks up 10 logs from the pile and runs and repairs barricades for 5k attack dmg (Each repair gives you 500 attack dmg registered)

I would need a hand I think because I am very noob :D
But I'll start working on it and would it be ok for me to PM you with the progress when I get stuck for a helping hand?


I feel like the first idea would be pretty simple, although I have no idea how pest control really works. I assume you could just hover the portal and the uptext changes? It might be a challenge as a first script, but it would be a fun thing to work on once you got the hang of the basics.

Until you feel up to the challenge of doing this, I'd suggest going through the tutorials by The Mayor and writing along with them. Make something simple, a chopper or miner or something like that. With that experience you'd probably be ready to tackle this project. You're always free to PM me if you have specific questions, although asking on IRC or the forums will typically get you a more immediate response.

Enigmatic

2015-02-05 14:48:57

From: 3Garrett3
I feel like the first idea would be pretty simple, although I have no idea how pest control really works. I assume you could just hover the portal and the uptext changes? It might be a challenge as a first script, but it would be a fun thing to work on once you got the hang of the basics.

Until you feel up to the challenge of doing this, I'd suggest going through the tutorials by The Mayor and writing along with them. Make something simple, a chopper or miner or something like that. With that experience you'd probably be ready to tackle this project. You're always free to PM me if you have specific questions, although asking on IRC or the forums will typically get you a more immediate response.


Alright thanks man, I'll see if I can takle this project anyway since I found out that it's easier to right click log pile take 10 logs at one time and then run to east side repair the barricade (it spawns half-broken) and then run to south side and repair that it's the same as first barricade.

And after that you afk until it exits the game.

3Garrett3

2015-02-05 15:02:35

From: Enigmatic
Alright thanks man, I'll see if I can takle this project anyway since I found out that it's easier to right click log pile take 10 logs at one time and then run to east side repair the barricade (it spawns half-broken) and then run to south side and repair that it's the same as first barricade.

And after that you afk until it exits the game.


That seems like a really good idea for a first script. It should be pretty straight forward to lay out the tasks 1->2->3 in a logical order like The Mayor's tutorial suggests, and to code up the sections.

Best of luck!

Enigmatic

2015-02-05 15:09:25

From: 3Garrett3
That seems like a really good idea for a first script. It should be pretty straight forward to lay out the tasks 1->2->3 in a logical order like The Mayor's tutorial suggests, and to code up the sections.

Best of luck!


Is it possible to have the mouse hover over a certain coordinate and if the option to 'epair' comes up it clicks it?

Obscurity

2015-02-05 16:01:45

The Pest Control bot is in my application. :-P. It follows the crowds of people around, attacking what ever it comes across in the process. It's great for the "scan & react" botting method that you'll see described by Clarity and myself soon. It's easy enough to design…

If you see a gangplank and no Pest Control flag, cross the gangplank.
If you see the Pest Control flag, wait - you're in the boat.
If you see the Squire's chat head, start the game by walking south.
Follow the crowds around, attacking everything.

As for the tutorial - it's great so far and nearly done. However, as I mentioned in SRL chat, I got busy the past two nights. A family member was recently arrested for stabbing a 7 month pregnant woman to death and "disposing" of her by burning her house down.

I might have enough time tonight.

Enigmatic

2015-02-05 17:03:32

From: Obscurity
The Pest Control bot is in my application. :-P. It follows the crowds of people around, attacking what ever it comes across in the process. It's great for the "scan & react" botting method that you'll see described by Clarity and myself soon. It's easy enough to design…

If you see a gangplank and no Pest Control flag, cross the gangplank.
If you see the Pest Control flag, wait - you're in the boat.
If you see the Squire's chat head, start the game by walking south.
Follow the crowds around, attacking everything.

As for the tutorial - it's great so far and nearly done. However, as I mentioned in SRL chat, I got busy the past two nights. A family member was recently arrested for stabbing a 7 month pregnant woman to death and "disposing" of her by burning her house down.

I might have enough time tonight.


@Obscurity
Damn so my past hour is wasted, mind sharing the script with me? I was going to run it over night..
Here's my noobish script so far and I need to sleep.


program enigmaticPestControlReker;

{$DEFINE SMART} // Always have this to load smart
{$I SRL-6/SRL.simba} // To load the SRL include files
{$I SPS/lib/SPS-RS3.Simba} // To load the SPS include files

procedure declarePlayers();
begin
setLength(players, 1);
with players[0] do
begin
loginName := 'username';
password := 'password';
isActive := true;
isMember := true;
end
currentPlayer := 0;
end;

procedure findPlank();
var
x, y ,u: integer;
begin
if not isLoggedIn() then
exit;
minimap.setAngle(MM_DIRECTION_SOUTH);
mainScreen.setAngle(MS_ANGLE_HIGH);


mainscreen.findObject(x, y, 3298158, 3, colorSetting(2, 0.08, 1.91), mainscreen.playerPoint, 6, 10, 9, ['ross', 'angplank'], MOUSE_LEFT);
wait(randomRange(2000, 3000));
end;

procedure collectLogs();
var
pathToLogs: TPointArray;
x, y ,u: integer;
begin
if not IsLoggedIn() then
exit;

minimap.setAngle(MM_DIRECTION_SOUTH);
mainScreen.setAngle(MS_ANGLE_HIGH);

pathToLogs := [Point(159, 171), Point(156, 157), Point(138, 149)]

if SPS.walkPath(pathToLogs) then
minimap.waitPlayerMoving()

else
writeLn('Damn no logs for you, sadly..')

if
mainscreen.findObject(x, y, 1713710, 9, colorSetting(2, 0.22, 0.71), mainscreen.playerPoint, 13, 18, 17, ['og', 'stockpile'], MOUSE_RIGHT) then
writeLn('We found the logs, omg!');
chooseOption.select(['ake 10']);
wait(randomRange(2000, 3000));



end;

procedure runEast();
var
pathToBarrE: TPointArray;
begin
if not isLoggedIn() then
exit;
minimap.setAngle(MM_DIRECTION_SOUTH);
mainScreen.setAngle(MS_ANGLE_HIGH);
pathToBarrE := [Point(138, 149), Point(105, 106), Point(84, 77)]

if SPS.walkPath(pathToBarrE) then
minimap.waitPlayerMoving()

else
writeLn('Damn I could not go to that darn barricade..')

end;

procedure findBarrE();
var
x, y, u: integer;
begin
minimap.setAngle(MM_DIRECTION_SOUTH);
mainScreen.setAngle(MS_ANGLE_HIGH);
if
mainscreen.findObject(x, y, 4153454, 4, colorSetting(2, 0.14, 1.55), mainscreen.playerPoint, 5, 5, 4, ['epair', 'arricade'], MOUSE_RIGHT) then
repeat
writeLn('Repairing barricade sergeant awesome');
chooseOption.select(['epair', 'arricade']);
wait(randomRange(1000, 3000));
until false;
end;

procedure findWaitingFlag();
var
x, y ,u: integer;

begin
if
mainscreen.findObject(x, y, 4153454, 4, colorSetting(2, 0.14, 1.55), mainscreen.playerPoint, 1, 10, 8, ['layers', 'eady'])then
repeat
writeLn('Still waiting for game to start, hype');
wait(randomRange(3000, 13000));
until false;

end;

// main loop
begin
clearDebug(); // Clear the debug box
smartEnableDrawing := true; // So we can draw on SMART
setupSRL(); // Load the SRL include files
declarePlayers(); // Set up your username/pass

if not isLoggedIn() then // If player isn't logged in then
begin
players[currentPlayer].login(); // Log them in
exitTreasure(); // Exit treasure hunter
minimap.setAngle(MM_DIRECTION_SOUTH); // Make compass north and angle high
mainScreen.setAngle(MS_ANGLE_HIGH);
end;

repeat
findPlank();
findWaitingFlag();
collectLogs();
runEast();
findBarrE();
until false;
end.