SRL Archive - RS Scripts

My Auto Talke V1.0


HarryJames

2007-02-25 19:42:23

Here ya go its very simple
is it any good for a little expansion of a tut that i hav jut started SCAR?:f:



// Made by 05hartor and Junkj
// Use the const aorb to swap between two diffrent sentences



program talk;

const
aorb=(''); // a=Text1 b=Text2

procedure Hello;
begin
if(aorb=('a'))then
begin
wait(1000)
writeln('Text1')
end;
end;

procedure Hello2;
begin
if(aorb=('b'))then
begin
wait(1000)
writeln('Text2!')
end;
end;

begin
repeat
hello;
hello2;
until(false)
end.

i would just like a little feadback please

Hey321

2007-02-25 19:54:12

Good job. The one thing is it won't type. Change WriteLn with SendKeys. DONT USE SENDKEYS FOR RS THOUGH! You have been warned :P.

HarryJames

2007-02-25 19:56:06

oh yeah course, althouh it will still auto type, jusy in that debug box thingy

why not sendkeys?

JAD

2007-02-27 14:56:43

well, send keys are detectable by runescape, and it WILL ban you. here I'll change the script up and show you, read the comments i put in it:

// Made by 05hartor and Junkj
// Use the const aorb to swap between two diffrent sentences



program talk;
{.include SRL/SRL.scar} //you need to include SRL to use TypeSend.
const
aorb=(''); // a=Text1 b=Text2

procedure Hello;
begin
if(aorb=('a'))then
begin
wait(1000)
TypeSend('Text1') //this sends the keys and presses enter undetectable by runescape.
end;
end;

procedure Hello2;
begin
if(aorb=('b'))then
begin
wait(1000)
TypeSend('Text2!') //same as above ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
end;
end;

begin
SetupSRL; //you need to setup SRL in main loop, but you don't want it to repeat it so put
repeat //it before the repeat like I did.
hello;
hello2;
until(false)
end.
and that should get the job done :) good first script though, keep it up.

HarryJames

2007-02-27 15:12:27

well i ony made it out of scar, is srl just plugins?

and can you look at my new thread?