SRL Archive - First Scripts

my first script ever! bone burrier


asddsa

2008-01-27 16:20:28

It's not much and it is not good but here it is.

If you want to try it you should be in warrock east bank infront of the third
bank booth from west and have the compass pointed north.



program Bone burrier;

procedure bank;
begin
movemouse(249, 207);
wait(100);
clickmouse(249, 207, false);
wait(100);
movemouse(179, 242);
clickmouse(179, 242, true);
wait(100);
movemouse(93, 75);
wait(4000);
clickmouse(93, 75, false);
wait(500);
movemouse(96, 140);
wait(300);
clickmouse(96, 140,true);
wait(1300);
movemouse(482, 48);
wait(1000)
clickmouse(482, 48,false);
wait(700)
movemouse(443, 73)
wait(700)
clickmouse(443, 73,true)
end;
Procedure Burry;
begin
movemouse(579,230)
wait(1500)
ClickMouse(579,230,true);
wait(100)
movemouse(620,230)
wait(1500)
ClickMouse(620,230,true);
wait(100)
movemouse(667,230)
wait(2000)
ClickMouse(667,230,true);
wait(100)
movemouse(704,230)
wait(1500)
ClickMouse(704,230,true);
wait(100)
movemouse(590,260)
wait(2000)
ClickMouse(590,260,true);
wait(2000)
movemouse(620,260)
wait(100)
ClickMouse(620,260,true);
wait(2000)
movemouse(667,260)
wait(100)
ClickMouse(667,260,true);
wait(2000)
movemouse(704,260)
wait(100)
ClickMouse(704,260,true);
wait(2000)
movemouse(590,300)
wait(100)
ClickMouse(590,300,true);
wait(2000)
movemouse(620,300)
wait(100)
ClickMouse(620,300,true);
wait(2000)
movemouse(667,300)
wait(100)
ClickMouse(667,300,true);
wait(2000)
movemouse(704,300)
wait(100)
ClickMouse(704,300,true);
wait(2000)
movemouse(590,340)
wait(100)
ClickMouse(590,340,true);
wait(2000)
movemouse(620,340)
wait(100)
ClickMouse(620,340,true);
wait(2000)
movemouse(667,340)
wait(100)
ClickMouse(667,340,true);
wait(2000)
movemouse(704,340)
wait(100)
ClickMouse(704,340,true);
wait(2000)
movemouse(590,370)
wait(100)
ClickMouse(590,370,true);
wait(2000)
movemouse(620,370)
wait(100)
ClickMouse(620,370,true);
wait(2000)
movemouse(667,370)
wait(100)
ClickMouse(667,370,true);
wait(2000)
movemouse(704,370)
wait(100)
ClickMouse(704,370,true);
wait(2000)
movemouse(590,410)
wait(100)
ClickMouse(590,410,true);
wait(2000)
movemouse(620,410)
wait(100)
ClickMouse(620,410,true);
wait(2000)
movemouse(667,410)
wait(100)
ClickMouse(667,410,true);
wait(2000)
movemouse(704,410)
wait(100)
ClickMouse(704,410,true);
wait(2000)
movemouse(590,437)
wait(100)
ClickMouse(590,437,true);
wait(2000)
movemouse(620,437)
wait(100)
ClickMouse(620,437,true);
wait(2000)
movemouse(667,437)
wait(100)
ClickMouse(667,437,true);
wait(2000)
movemouse(704,437)
wait(100)
ClickMouse(704,437,true);
wait(500)
end;
begin;
repeat
bank
wait(500);
Burry;
until(false)
end.

JAD

2008-01-27 17:13:52

Learn standards now. Better to develop good habits now.

Read my tutorial (first chapter (links in sig)) Things the beginner tuts don't teach you. That will teach you the undetectable (for the most part) srl mouse moving and clicking commands that wouln't get your account banned like this script will.

You need randomness on those waits too.

You shouldn't put ";"'s on your begins either.

In your main loop you should have a ";" on the end of your bank call. Good habits should start now! :)

Call for activate client in the main loop :)


It's a good try, but right now it will get you banned if you use it. So go learn srl, standards, and just read read read, study study study (other people's scripts), and learn learn learn and your on your way to becoming an srl member :)

Keep it up, and good luck!

Pure1993

2008-01-27 17:17:12

My very first deperate try to make script looked just like this, but the only thing that counts is that you gave it your best shot! :)
Well, anyway, I have a few suggestions for you :D :
Use "Mouse" instead of MoveMouse and ClickMouse, it is saver and it is shorter. This is how to use it:

Mouse(x,y,0,0,true/fals)
x and y is the location where to click, 0 and 0 is how many pixels the mouse can vary from x and y, and lastly true = left click, flase = right click. :)
Another hint: use OpenBankQuiet to open the bank, it's very precise and easy to use:

OpenBankQuiet('veb');
This would open the bank in Varrock east, here are all of the valid arguments:

'feb' (Falador East Bank)
'fwb' (Falador West Bank)
'veb' (Varrock East Bank)
'vwb' (Varrock West Bank)
'db' (Draynor Bank)
'eb' (Edgeville Bank)
'akb' (Al-Kharid Bank)

For selecting the bones, I would personally use DTMs, they are unbelieveable easyust check out Yoho's thread on them, you won't believe just how eeasy they are. Now, all you have to do is put {.include SRL/SRL.scar} under the program name, and it will work like a charm. I would suggest reading some tuts on variables and constants and other mouse movements… How about you check out this thread, i is a bit confusing, but i found it quite helpful. :)
http://www.villavu.com/forum/showthread.php?t=20934
Hope I helped you out a bit, oh yeah, and in case i forgot to mention it: not a bad start, try making a new one after reading a few tuts, I am sure you will do a great job. :D

Faelstorm

2008-01-29 10:55:09

yeah, I agree with both of them ^^

Also, you could use FindObjCustom for any banks not included in the OpenBank command. Other than that, nice job!