SRL Archive - First Scripts

NoobieTanner


noobielul

2008-03-09 18:17:20

Hi everyone,

This is my first script ever i know it crashes and stuff but it is only my first scrip … :p

get all coins needed in first inv slot
and all cowhides in first bank slot

and fill in setup

`Jett

2008-03-09 19:50:08

If i had Cow Hides id test it but ive looked over it and it looks pretty nice :P

noobielul

2008-03-10 02:40:55

Thanks, it was just first thing that came up to me.
A tanner :p

GoF

2008-03-10 10:11:02

Walking looks a bit tricky.. And failsafes, pweeaze?


repeat
FindColor(x,y,KebabColor,mmx1,mmy1,mmx2,mmy2);
Wait(502+random(120));
Mouse(x,y,1,1,true);
until (FindColor(x,y,KebabColor,mmx1,mmy1,mmx2,mmy2));

What if it never finds it? Then it'll just go on and on and on.. Plus findcolor isn't that good, I suggest FindColorTolerance or FindColorSpiralTolerance (sorry if i spelt one of the two wrong)… And that goes for other parts in the script too, not just this procedure.

Now after reading it more I noticed other things…


procedure DepositLeather;
begin
Mouse(620,228,5,5,true);
Mouse(665,227,5,5,false);
ClickOption('All', 2);
Wait(1000+random(150));
end;

I suggest first finding a leather in the inventory with for example a DTM, as what if there'd be for example a item from a random event in that spot, it wouldn't bank the leathers… And just generally coordinate clicking is not good (goes to other places in the script too).

The TerminateScript; in the end isn't really needed as it'll end anyways. And once again, failsafes. I also suggest adding multiplayer to the script.

Quite good for a first script, but it still lacks some things.

Torrent of Flame

2008-03-10 14:06:39

Basic, but it works and compiles.

Just it would be endless. And instead of letting them pick colours, if the colours are always the same you can pick it for them :]

ninjamaste89

2008-03-11 22:56:56

I thought it worked pretty well. Good job.

im not expert on scripts, so i can't figure out certain problems.

Flamez

2008-03-12 23:38:05

Worked for me :)