SRL Archive - RS3 Outdated / Broken Scripts

Clean Script.


awesom

2007-11-08 04:14:18

I am wondering if anyone has a script that is for woodcutting (or anything simple) but its like totally clean and empty so its easy to learn from and edit.

I believe you learn a lot from editing things and thats what I want to do with a simple script.

Thanks.

Eicca

2007-11-08 06:52:58

What do you mean by clean? I think you learn most from making completely own script, because then you have to read what every function does and how it is used.

I'd suggest you to start making your own script, but that is just my opinion.

awesom

2007-11-08 06:55:54

I mean as in a simple script that just cuts logs and drops (or something) and is very easy to understand by the way its made.

I think you learn most from making completely own script

True for some, but for me I seem to learn a lot better by going over other peoples work when it is put simply.

rogeruk

2007-11-08 09:18:24

Goto the tutorial island.

awesom

2007-11-08 09:26:22

I have looked there but I learn better when I see what things are and what they do and can edit them and if I get errors I figure how to fix em myself..

rogeruk

2007-11-08 09:45:35

Then look at the scripts in the Free for All section.

Pentti

2007-11-08 09:52:02

From: awesom
I think you learn most from making completely own script

I totally agree with that! I have needed tutorials nowhere (no offense to tutorial makers. Tutorials of course help most of people to get started).

If you know some simple SCAR functions (mouse, colors, finding objects) and how to use them, then just go and start making your script, one function after one, like make woodcutting part, then dropping part and maybe then progress report etc. when one function works, then start making new function. And then just add new stuff etc, and you have a good script there. :D

EDIT:
Any help of this? Made it very fast.
{.include SRL/SRL.scar}

const
TreeColor = 00000; //CTRL + P to pick color

Function FindTree: Boolean;
begin
if FindObj(x, y, 'Chop', TreeColor, 30) then //Find tree
Result := True;
end;

Procedure CutTree;
begin
GetMousePos(x, y);
Mouse(x, y, 5, 5, True); //Click on tree
end;

Procedure DropThem;
begin
DropTo(2, 28); //Drops from inventory slot 2 to 28
end;

begin
SetUpSRL;
repeat
repeat
if FindTree then
CutTree
until InvFull //Cuts tree until inventory is full.
DropThem;
until False;
end.

rogeruk

2007-11-08 09:57:56

From: Pentti
I totally agree with that! I have needed tutorials nowhere (no offense to tutorial makers. Tutorials of course help most of people to get started).

If you know some simple SCAR functions (mouse, colors, finding objects) and how to use them, then just go and start making your script, one function after one, like make woodcutting part, then dropping part and maybe then progress report etc. when one function works, then start making new function. And then just add new stuff etc, and you have a good script there. :D

EDIT:
Any help of this? Made it very fast.
{.include SRL/SRL.scar}

const
TreeColor = 00000; //CTRL + P to pick color

Function FindTree: Boolean;
begin
if FindObj(x, y, 'Chop', TreeColor, 30) then //Find tree
Result := True;
end;

Procedure CutTree;
begin
GetMousePos(x, y);
Mouse(x, y, 5, 5, True); //Click on tree
end;

Procedure DropThem;
begin
DropTo(2, 28); //Drops from inventory slot 2 to 28
end;

begin
SetUpSRL;
repeat
repeat
if FindTree then
CutTree
until InvFull //Cuts tree until inventory is full.
DropThem;
until False;
end.


Exactly, start from the base.. work up, each time it works add to it. Make it click a tree, make it check if the tree is an oak, check for ent etc

awesom

2007-11-08 10:02:55

Thanks guys, you've given me some good ideas.

If you know some simple SCAR functions


I don't know many but the script you posted is exactly the sort of thing I was looking for like a completed one but that will help thanks.

s33 teh pain

2007-11-08 10:03:07

Eicca u said the best way to learn is making self 1, but where can i find all the tags or codes n what they do? so that i can read the codes n try to put 1 together ?..

Pentti

2007-11-08 10:05:27

From: awesom
Thanks guys, you've given me some good ideas.



I don't know many but the script you posted is exactly the sort of thing I was looking for like a completed one but that will help thanks.

Thats nice to hear.
Btw, if you test it on RuneScape now, and it cuts tree.. You will see it keeps clicking on the same tree all the time.
Do you know how to fix that? :D

awesom

2007-11-08 10:09:07

No idea :P have not tested it either just looked at the code but I plan on studying it hard tomorrow :)

s33 teh pain

2007-11-08 10:17:23

Eicca u said the best way to learn is making self 1, but where can i find all the tags or codes n what they do? so that i can read the codes n try to put 1 together ?.. Can some1 anwser :D?

Pentti

2007-11-08 10:18:38

From: s33 teh pain
Eicca u said the best way to learn is making self 1, but where can i find all the tags or codes n what they do? so that i can read the codes n try to put 1 together ?.. Can some1 anwser :D?

You already asked a few minutes ago, dont spam. Alright?
And you can use your own brains to understand what like command "ClickMouse(50,50,True" do.
Also, SCAR manual: Open SCAR -> Press F1
SRL functions are explained on SRL manual.

s33 teh pain

2007-11-08 10:20:02

yeai know but i thought, if there are newer posts they wont read mine (A) so i dont know if people were still watching every post from this topic or just the newest

awesom

2007-11-08 10:21:21

Usually people read all the posts… And people are probably less likely to answer you since you hijacked my topic a little maybe make your own ?

Pentti

2007-11-08 10:22:43

From: s33 teh pain
yeai know but i thought, if there are newer posts they wont read mine (A) so i dont know if people were still watching every post from this topic or just the newest

Btw, i answered to your post.
And what kind of forum would this be if everyone think same way like you? :D

s33 teh pain

2007-11-08 10:25:00

why hijacked.. u wanted to learn how to script.. same here so just asked a question on howto learn it ( where cna i find codes for scar n what they do )
that is something like ur question i think.. but anyway thx for trying to help..

awesom

2007-11-08 10:26:58

Yeah I know but maybe people will see my question and answer it and not think of yours because they are trying to answer mine :P

Pentti

2007-11-08 10:27:50

From: s33 teh pain
why hijacked.. u wanted to learn how to script.. same here so just asked a question on howto learn it ( where cna i find codes for scar n what they do )
that is something like ur question i think.. but anyway thx for trying to help..

Hehe…
* awesom got he's SCAR script template.
* s33 teh pain, you got told where to find the function/procedure list and what they do.

No one lose nothing. ..Except me, I lose my useless time. :D

awesom

2007-11-08 10:31:37

Well your useless time got me started with something I can work with ;)

I'm wasting my time right now.. I should have my Woodcutter running and be in bed lol.

Pentti

2007-11-08 10:35:06

From: awesom
Well your useless time got me started with something I can work with ;)

I'm wasting my time right now.. I should have my Woodcutter running and be in bed lol.

Well, now go sleep, and then tomorrow start scripting. You get noting done if its late and you are tired, dont even try it or you will get angry and then you wont get sleep and then everyhing is fucked up etc… :D

awesom

2007-11-08 10:37:21

Hahaha yeah I know man thats why I have not tested or anything yet but I am totally doing it all tomorrow but I fully am going to bed as soon as this download is finished….