SRL Archive - First Scripts

autotalker that needs help


Da Grim Raper

2007-12-23 22:51:27

my first script i used by bebe's tut.
can anyone help me use it on runescape. it wont work even when i select the rs window help plz anyone

program New;

const
message1='this is my first script';
message2='i got this awesome TUT at';
message3='http://www.srl-forums.com/forum/all-one-beginner-t13513p7.html';

procedure lol;
begin
wait(500)
Writeln(message1)
wait(500)
Writeln(message2)
wait(1000)
Writeln(message3)
end;

begin
repeat
lol;
until(false)
end.

minimario13

2007-12-23 23:29:15

this is in the wrong forum, number one. make sure you read rules and forums your posting in. Number two, don't use the "writeln" code to do a typing thing. writeln will type a comment in the debug box. You want a different code to type something. Try a simple autotalker like this, it types 3 messages infinite times. I made it in a couple minutes, and its just what you want (basically) Oh, and make sure you put the ; after the typesend code line.
program autotyper;
{.include srl/srl.scar}
const
waittime=1000;//Time to wait inbetween each message(in milliseconds)
message1='this is my first script';
message2='i got this awesome TUT at';
message3='http://www.srl-forums.com/forum/all-one-beginner-t13513p7.html';
procedure typing; //The typing procedure (duh)

begin

wait(waittime) //Corresponds with line 4
typesend(message1); //corresponds with line 5, use the typesend command
wait(waittime)
typesend(message2);
wait(waittime)
typesend(message3);
end;
begin
setupSRL;
repeat
typing;
until(false)
end.

end.
//you must include the part in line 2 or else its an EPIC FAIL
//and i can't put this in line two because then it would still
//be an EPIC FAIL

Exaligo I

2007-12-24 05:42:48

As minimario quite rightly suggested, don't use writeln (and post in the right place. ;) ).

I also noticed that you don't have an activateclient; line.

This is what makes the program work in the RS window. Using your code (the bottom bit) it should be:

begin
activateclient;
repeat
lol;
until(false)
end.

Also, if you want to use TypeSend (which types out the message letter by letter rather than all in one go. SendKeys types every letter instantly, near enough which is more likely to get you BANNED) then you'll have to include the SRL scripts. To do this, just have this at the top of your script:

program New;
{.include SRL/SRL.scar}

Oh, and you might want to choose a better program name than 'New'. Maybe something like 'Autotalker', 'Autotyper', up to you. But remember it must have:
  • 1 word (or at least looks like one)
  • No spaces (except the one after program)
  • And try to use capitals for the start of each new word.

For an example:

program ThisIsAnExampleWithMoreThanOneWordButNoSpacesAndCapitalsSoYouCanReadIt;

You'd obviously try to make it a little shorter! ;)

Hope that helps.