SRL Archive - First Scripts

Simple Autocurser (for the zammy monk in Varrock)


Klaust

2007-09-04 13:49:51

Hello, this is my first script, so please, don't be too harsh.. please give comments and feedback to improve my script… this is just something simple, and I really would like to learn to script more advanced scripts.:)

what is it?
it's a really simple basic autocurser. Nothing special about it, not recommended to use when you're leaving your computer, because I haven't inserted a random solver or proper anti-ban stuff.. please check it out and tell me what you think about it.. :)

here it is…

WT-Fakawi

2007-09-04 14:29:14

Not bad at all, jelle. I see you are trying hard. Some small things:

  • Use MMouse and Mouse as opposed to the SCAR default mouse. They are better, and less detectable.
  • Instead of waiting in your script, better use waiting & finding randoms, since you not doing anything special while waiting. I made a small function FTWait; that does just that. Look it up in the manual, its usefull.
Keep 'm coming, going well :)

rogeruk

2007-09-04 14:32:22

Very nice script, and it actually compiles :).

Cant test it for you, but got some little tips for you..

  • until(i = 10)  // change in amount of times you want to run the script
  • Its always a good idea to set anything the user needs to set at the top of the script, within the const's.
  • As WT-Fakawi has said, using FTWait rather than wait, will be much better since its random finding :)

musicguy

2007-09-04 14:57:54

rogers right anything that the user needs to fill in should be at the top, ill try and see if it compiles for me

o m f g pwnt

2007-09-04 21:55:22

add anti randoms… thoose really help ppl when they try to cheat runescape. :P

trip333333

2007-09-04 22:22:00

yeah, agreed about the anti-randoms

rdk

2007-09-05 08:40:45

does what is ment to do :D welldone

Klaust

2007-09-05 09:45:33

Thnx alot for the positive comments,

To rogeruk: yes I figured that out as well, but still puzzling how to put it there,
can I give it a name for instance? like call it 'd' so d=: ?
To WT-Fakawi: ok, well I still need to read the manual totally. And is it true some commands are changed with srl 4?

and another request, can somebody explain me how to use the scripts that are already written in the srl file, for example the magicskill?

thnx again!

markel

2007-09-05 09:55:25

thx for this script, i get my pure mage up with it, low hp stays:P

kamikeza

2007-09-05 10:57:56

thx for the script maybe it can buy his 0wn bodys in store after he runs out?:P

rogeruk

2007-09-05 13:04:40

From: jellehier0
Thnx alot for the positive comments,

To rogeruk: yes I figured that out as well, but still puzzling how to put it there,
can I give it a name for instance? like call it 'd' so d=: ?
To WT-Fakawi: ok, well I still need to read the manual totally. And is it true some commands are changed with srl 4?

and another request, can somebody explain me how to use the scripts that are already written in the srl file, for example the magicskill?

thnx again!


Yes, you can call it anything you want. You may want to call it something ovbious for easier script editing. Eg, Loads, Runs, Trips etc.

Eg..


var
count:Integer;

const
loads = 5;

begin
SetupSRL;
count:=0
repeat
DoThis;
AndThis;
count:=count+1
until(count>=loads);
end.

Like that.

For using specific SRL files such as Woodcutting, you would simple
{.include SRL/SRL/skill/WoodCutting.scar}

And it would load the WoodCutting. So you have the ability to use FindEnt; etc.

We need as many scripters as we can possibly get. You show you want to learn, so we are here to give a helping hand

Klaust

2007-09-06 10:43:44

ok thnx rogeruks, I understand how to refer to the script, but I just do not understand how to work with the boolean. because for instance in the antirandom script it has a function called findfight. this turns true when you start to fight, right? but how does this help you. can you do it like this =>
program blabla;
{.include SRL\SRL.scar}
{.include SRL/SRL/core/AntiRandoms/Antirandoms.scar}

procedure runaway;
if (FindFight= true) then
begin
MakeCompass ('n')
RunAwayDirection('s');
wait(5000);
RunBack;
end.


in here all the other things, but is that for instance a fightfinder/solver?
and if this is. how can i make a findtalk and solve it then? furthermore, some scripts have a 'dubblecheck' before they click, for instance when they look whether the monster ment to be attacked is really selected?

thnx alot!

rogeruk

2007-09-06 10:50:17

From: jellehier0
ok thnx rogeruks, I understand how to refer to the script, but I just do not understand how to work with the boolean. because for instance in the antirandom script it has a function called findfight. this turns true when you start to fight, right? but how does this help you. can you do it like this =>

in here all the other things, but is that for instance a fightfinder/solver?
and if this is. how can i make a findtalk and solve it then? furthermore, some scripts have a 'dubblecheck' before they click, for instance when they look whether the monster ment to be attacked is really selected?

thnx alot!


Yes, thats exactly how you use it.

procedure fighthandler;
begin
if(FindFight)then
begin
writeln('Fight random detected!');
RunAwayDirection('N');
wait(3000+random(850));
RunBack;
end;
end;

You could always call your banking procedure if you find a fight, so you don't waste a trip running away.

Klaust

2007-09-06 11:03:59

Sorry, still have to check out the real function of ftwait.. lol didn't understand completely what you guys ment with it.. sorry!

Klaust

2007-09-06 11:06:30

From: rogeruk
Yes, thats exactly how you use it.

procedure fighthandler;
begin
if(FindFight)then
begin
writeln('Fight random detected!');
RunAwayDirection('N');
wait(3000+random(850));
RunBack;
end;
end;

You could always call your banking procedure if you find a fight, so you don't waste a trip running away.



Thnx, that was usefull, but what do you mean with a banking procedure?

rogeruk

2007-09-06 11:13:47

Well if you are making a script which banks, you just call the procedure.

Nuclear898

2007-09-06 11:19:15

hey jelle, this script really rocks! ive been using it for 1 day now and it freakin pwns!

Klaust

2007-09-06 11:20:12

oow lol like that, well thats my next goal, let it bank so it can collect runes,,
good idea i gonna insert that after i figured out some more about loops and procedures. thnx alot for helping!

Nuclear898

2007-09-06 11:32:27

if you a piece of script for randoms too, you'd really make my day :D

leverham leverham leverham holladiejee!

Klaust

2007-09-08 06:15:27

i'm going to improve it when ive got some time, im currently working on a cosmic runemaker.. lots of work i think..

ShowerThoughts

2007-09-08 06:33:07

From: WT-Fakawi
Not bad at all, jelle. I see you are trying hard. Some small things:

  • Use MMouse and Mouse as opposed to the SCAR default mouse. They are better, and less detectable.
  • Instead of waiting in your script, better use waiting & finding randoms, since you not doing anything special while waiting. I made a small function FTWait; that does just that. Look it up in the manual, its usefull.
Keep 'm coming, going well :)


if i do ftwait my script just does nothing and then terminates the script it just stops its really strange

Klaust

2007-09-08 07:16:01

i go and see if i can modify the script a bit so it uses more srl functions. like casting a spell by using the magicskill.scar

Klaust

2007-09-08 17:42:54

i have created a new version.. here

Lolanator

2007-09-08 18:56:01

Pretty random script, nice job.

dyles

2007-09-08 19:35:45

Keep up the good work! :)

rsnub6

2007-09-08 22:40:47

this is really great! good first script! i would just like to say, when you train a mage pure you probably bant to attack cows so you can get some hitpoints aswell.

and please dont flame me for being new and FINALLY having 10 posts. we all have to start somewhrere!

ckeboss

2007-09-09 00:56:20

Nice first script. Just make any "ClickMouse" with "Mouse" and any MoveMouseSmoth With MMouse. There just less detectable. Also, I think SendArrowSilentWait is detectable. Also, cant you use like tabs instead of colors of mage book and spell? I'm just a beginner at SCAR myself to.

Klaust

2007-09-09 05:37:15

From: ckeboss
Nice first script. Just make any "ClickMouse" with "Mouse" and any MoveMouseSmoth With MMouse. There just less detectable. Also, I think SendArrowSilentWait is detectable. Also, cant you use like tabs instead of colors of mage book and spell? I'm just a beginner at SCAR myself to.




yes: i have changed it all in my new script, please check that one out. this is em

420 4me

2007-09-18 02:39:54

nice script gonna use it later

scarn00b

2007-09-18 07:44:50

Nice script. Needed a curser and got a curser=)

das terminator

2007-09-22 17:12:22

Woot!, Running smoothly for about 4 hours now, thank you!

damaster

2007-09-22 20:33:22

nice job

petepmaxx

2007-11-26 05:45:00

sweet:D

s p u r m

2007-12-01 20:53:03

nicee script ive used for a while now

Scotas

2007-12-02 06:10:02

Deleted

yazoo

2007-12-02 10:49:37

hey awsome but any idea how to stay logged in??

yazoo

2007-12-02 11:00:45

nvm! got it ty anyways!v:duh: :duh:

cow247

2007-12-02 14:06:12

Great first script runs smoothly

soppa_z

2007-12-03 00:31:09

Keep up the good work

grimy89098

2007-12-06 01:16:08

wow, very nice for a first script!
i'll actually use this! heaps better than the ****load of autotalkers:D