SRL Archive - First Scripts

First Script Autotyper


Xemnas

2008-01-04 17:32:55

This is my first script. I know it is a crappy one.

Please give me advice on how I can improve it.

skatemore40

2008-01-04 17:41:07

how do i make my own thread?? plz tell me !!

P1nky

2008-01-04 17:47:03

skate press the button for New Topic…
and xemas please try to make something else so many make the same code for autotalkers….

but if you like it than just add some anti ban and randoms

Xemnas

2008-01-04 17:49:42

From: p1nky

and xemas please try to make something else so many make the same code for autotalkers….

but if you like it than just add some anti ban and randoms

I'll add some things and then move on to something else.

Tazzie 02

2008-01-04 19:03:53

Looks good. I wouldn't usually put anti-randoms and anti-ban in an auto talker. I would just sit there watching it and pausing it on trades. It also depends what you are using it for though. Good job though. I made a coin flipper as my first real script. It's in my sig. :) Try something different next time. Maybe a powerchopper or something.

Tazzie

gamer 5

2008-01-04 19:10:58

//This is my first script.

program Autotyper;
{.include srl/srl.scar}
const
message1='Peter Piper picked a peck of pickled peppers.'; //First message that it types.
message2='So give me gp.'; //Second message that it types.

procedure autotyping;

begin

wait(1001 + Random(2001)) //The time that it waits after message2.
typesend(message1);
wait(2001 + Random(1001)) //The time that it waits after message1.
typesend(message2);
end;

begin
setupSRL;
repeat
until(false)
end.

end.

Okay this was your script, its doesn't do anything. Ill tell you why.

In the last begin.. end. of the script what ever is in between there its what scar is acctually perform.
Its like the main loop.

To actually make it work you just have to add the procedure to the main loop like I put it here>>>
//This is my first script.

program Autotyper;
{.include srl/srl.scar}
const
message1='Peter Piper picked a peck of pickled peppers.'; //First message that it types.
message2='So give me gp.'; //Second message that it types.

procedure autotyping;

begin

wait(1001 + Random(2001)) //The time that it waits after message2.
typesend(message1);
wait(2001 + Random(1001)) //The time that it waits after message1.
typesend(message2);
end;

begin
setupSRL;
repeat
autotyping;
until(false)
end.



Very minor mistakes like this can mess you up trust me i know from personal experience!


Edit: There is also no need to add a double
end.


Edit:
how do i make my own thread?? plz tell me !!

OFF TOPIC LOL NOOBS!

Xemnas

2008-01-04 19:33:24

From: gamer 5
//This is my first script.

program Autotyper;
{.include srl/srl.scar}
const
message1='Peter Piper picked a peck of pickled peppers.'; //First message that it types.
message2='So give me gp.'; //Second message that it types.

procedure autotyping;

begin

wait(1001 + Random(2001)) //The time that it waits after message2.
typesend(message1);
wait(2001 + Random(1001)) //The time that it waits after message1.
typesend(message2);
end;

begin
setupSRL;
repeat
until(false)
end.

end.

Okay this was your script, its doesn't do anything. Ill tell you why.

In the last begin.. end. of the script what ever is in between there its what scar is acctually perform.
Its like the main loop.

To actually make it work you just have to add the procedure to the main loop like I put it here>>>
//This is my first script.

program Autotyper;
{.include srl/srl.scar}
const
message1='Peter Piper picked a peck of pickled peppers.'; //First message that it types.
message2='So give me gp.'; //Second message that it types.

procedure autotyping;

begin

wait(1001 + Random(2001)) //The time that it waits after message2.
typesend(message1);
wait(2001 + Random(1001)) //The time that it waits after message1.
typesend(message2);
end;

begin
setupSRL;
repeat
autotyping;
until(false)
end.



Very minor mistakes like this can mess you up trust me i know from personal experience!


Edit: There is also no need to add a double
end.

I was sure that I added that. I probably accidentally deleted it:duh:

I'll be making a powerchopper next.