SRL Archive - First Scripts

The Chopper of willows in draynor


durza998

2008-03-02 18:42:59

Here's my first script!
I hope y'all like it!(h)




//////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
////////////// The Chopper of Willows in Draynor \\\\\\\\\\\\\\\\\\\\\\\\
/////////////// Script By: Durza998 \\\\\\\\\\\\\\\\\\\\\\\\\
//////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
{
This chops full load of willows and then banks them.
Pickup colors and start in bank or willows.
}
program DraynorWillowChopper;
{.include Srl/Srl/Srl.scar}
const

BankSymbol:= 4768214; //Minimap banksymbol color
FishSymbol:= 14233601; //Minimap fishsymbol color
Willow1:= 2572614; //color of willow
Willow2:= 3637360; //second color of willows

var

x, y: integer;


procedure ToWillows;
begin
MoveMouseSmooth(620,124)
wait(250+random(20))
clickmouse(620,124,true)
flag;
repeat wait(200+random(20))until(findmmcolor(x,y,fishsymbol))
findmmcolor(x,y,FishSymbol)
wait(250+random(20))
MoveMouseSmooth(x,y)
wait(200+random(20))
clickmouse(x,y,true)
flag;
end;

procedure Chop;
begin repeat
if(findcolor(x,y,willow1,0,0,517,340))or(findcolor(x,y,willow2,0,0,517,340))then
wait(800+random(80))
MoveMouseSmooth(x,y)
wait(50+random(5))
clickmouse(x,y,true)
wait(10000+random(1000))
flag;
until(invfull) Writeln('The inventory is full, going to the bank')
end;



procedure GoToBank;
begin
findmmcolor(x,y,banksymbol) if(not(findmmcolor(x,y,banksymbol)))then writeln('Cant find banksymbol.')
MoveMouseSmooth(x,y)
wait(500+random(50))
clickmouse(x,y,true)
flag;
openbank3;
wait(1000+random(100))
fixbank;
deposit(2,28,2);
wait(1000+random(100))
writeln('All willows put into bank')
end;



begin
ToWillows;
Chop;
GoToBank;
end.

Cazax

2008-03-02 18:45:17

Please add scar tags(
 and [*/SCAR](without the *)) or just add an atachement. And use SRL, mmouse and mouse, for example, dont use movemousesmooth and click mouse, you are going to get banned for using it and for using coords.

durza998

2008-03-02 18:58:07

ok, sorry about that…

Where do i put scar tags?

The tutorial i did showed me to use clickmouse and movemousesmooth??? Im confused?? How do you write scripts without using coords??

Cazax

2008-03-03 16:09:41

From: durza998
ok, sorry about that…

Where do i put scar tags?

The tutorial i did showed me to use clickmouse and movemousesmooth??? Im confused?? How do you write scripts without using coords??


Read a better tut…

aksar

2008-03-04 00:25:08

With color detection. But yeah try another TuT. ;)

Richard

2008-03-04 14:13:02

Ok, well with scar tags it prett simple just put theze tags either side of the script area
 and[/scar*] without that last *

Quite simple really

exppo

2008-03-04 14:40:35

Sheez, maybe you shouldn't have posted your 'first script' just yet: keep at it though! If you ever need any help add my MSN: [email]tiny_237@msn.com[/email]

Good Luck ;)

Exppo

Richard

2008-03-04 15:01:23

Just a quick question, have you tested that this actually works, because you don't actually have a main loop because if you don't it would just say
Successfully Compiled
Successfully Excuted

durza998

2008-03-09 20:04:21

Okay, thanks I'll read a better tut and see how it goes. :)

And,lol, i haven't tested this script because i gave up RS for lent so im really not sure if it works.

oh, what is WinRaR and does it have to be downloaded to use srl?

P1nky

2008-03-09 22:38:16

he prob stole that script or something (parts of it)

theres no main loop or anything he needs posts -.-

kingstun

2008-03-10 08:12:55

thanks for the script

durza998

2008-03-12 16:17:03

…srry, but didn't steal it. Is a main loop a part of the script that does all the procedures?

dakisback

2008-03-14 16:06:57

thanks worked better than i thought

Richard

2008-03-14 17:57:02

From: durza998
Okay, thanks I'll read a better tut and see how it goes. :)

And,lol, i haven't tested this script because i gave up RS for lent so im really not sure if it works.

oh, what is WinRaR and does it have to be downloaded to use srl?


Lol gave up RS for lent :), you should give up playing it now, I just go on it to make scripts…

BTW: WinRAR is just a program which you can browse certain folders and files in

durza998

2008-03-15 20:45:03

Ok, thanks i read a tut for setting up srl and it said you had to use WinRaR to move some files and stuff. Apparently its a little outdated tho…

I found out what a main loop is and just finished a beginners tutorial on *just* srl…:)

Also, I would never stop playing RS, its too fun. Do you have to be a junior member to put an avatar by your username?

Richard

2008-03-16 09:45:13

No you have to be a member, basically make a really good script, apply for membership and other members vote whether its good enough.

codenman

2008-03-16 09:49:28

so does this script work or not?

Richard

2008-03-16 11:49:39

Try it and find out instead of posting pointless spam.

durza998

2008-03-21 21:17:43

Ok thanks.. one more question.. I'd like to know the *best* tutorial that teaches everything out there and could get me on my way quickly. I don't want to have to read a separate one for everything there is to do.

I also edited the ToWillows procedure. Here it is… If it's right I'm on the right track :)

//beginning of script

procedure ToWillows;
begin
if FindColorTolerance(x, y, FishSymbol, mmx1, mmy1, mmx2, mmy2, 10) then
Mouse(x, y, 3, 3, true);
wait(1000+random(100))
if FindColorTolerance(x, y, Willow1, msx1, msy1, msx2, msy2, 10) then
Mouse(x, y, 3, 3, true);

//rest of script

begin
SetUpSrl;
ToWillows
//other procedures
end;
end.

jack_nosp

2008-03-21 22:40:29

whats the best proggie? for this??

Richard

2008-03-22 08:19:00

Theres a thread in the tut section that shows the best tuts I think, if not then just search for the things you want to know

durza998

2008-03-25 01:50:10

ok thanks for the help… a proggie is a what?

Also still need feedback on the function i rewrote….

dan bot

2008-03-27 19:40:30

please note that this script has no anti randoms and can easy get you banned!
do not leave unsupervised!

skilld u

2008-03-27 19:44:36

this is his first scipt, it uses coord clicking which i'm sure is way better than anything you have ever made and I bet that he spent alot of time on it. at least he is trying to script unlike you who is posting this useless spam on his thread to get your 10 posts so you can leech ub3r l33t h4x.

Pwnt by Pwnt

2008-03-28 03:18:45

xD Hurray for skilld u! he just skilld u! >_> lol

durza998

2008-03-29 12:27:23

thanks skilld u… but Hannah Montana????

is there a max number of players u can have in a script?

feedback for function i wrote?!?!?

Noob xp1

2008-04-05 17:19:35

I'll test it out

DanteMustDie

2008-04-05 17:36:57

From: jack_nosp
whats the best proggie? for this??


Hey, im new to the forum…i see this 'proggie' word everywhere, what does it stands for? Progress? What about this progress?

pagosapunk

2008-04-07 14:40:51

I think it was a pretty good first attempt . just needs a lil more work

durza998

2008-06-06 15:21:13

my parents grounded me from the computer for multiple months, so i haven't been on in awhile…:( so im gonna completely rewrite a new script and post it! hopefully it'll go well…

Twisted

2008-06-06 15:36:00

Progress Report to see what the script did. Like for example:

  Writeln('=======================================') ;
Writeln(' PS Willower ');
Writeln(' Version: '+Version);
Writeln('BY: Twistedvip50');
Writeln('=======================================') ;
Wait(500);
Writeln('Worked For : '+ (TimeRunning));
If(TotalWillows > 0)then
Writeln('Chopped: ' + IntToStr(TotalWillows) + ' Logs');
If(Banked > 0)then
Writeln('Bank Trips: ' + IntToStr(Banked) + ' Trips Made');
If(EntsAvoided > 0) then
Writeln('Advoided: ' + IntToStr(EntsAvoided) + ' Number Of Ents');
If(AxeBroke > 0) then
Writeln('Broke ' + IntToStr(AxeBroke) + ' Axes.');
If(Dropped > 0) then
Writeln('Dropped ' + IntToStr(Dropped) + ' Loads.');
Writeln('=======================================');
Shows how long it ran, how many logs it cut, trips it made, number of it ents it missed, broken axes, and loads.

BTW, this is from MY script so don't just go copying and pasting…

epichalfblud

2008-06-10 15:51:32

sweetness

shadeslayer

2008-06-12 05:29:42

do this tackle all randoms?

m0n3ym5k3r

2008-06-12 05:31:27

where do i download it?