SRL Archive - RS3 Help

help with adding typing procedure on lape


LA LA LA1234

2015-05-23 17:47:42

how do i make my bot type random lines from a preselect few in lape? ive tried the functions in the functionlist and they wont work? btw i know nothing about scripting but if some1 could send a bit of code for a procedure to send messages it wud be well appreciated

adc

2015-05-23 18:56:48

TypeSend('Text here');

Using SRL.

Citrus

2015-05-23 19:13:31


procedure randomTalk();
var
words: string;
begin
case random(4) of
0: words := 'hello';
1: words := 'hi';
2: words := 'hey';
3: words := 'sup';
4: words := 'noob';
end;
typeSend(words, true);
end;

adc

2015-05-23 19:49:02

From: evilcitrus

procedure randomTalk();
var
words: string;
begin
case random(4) of
0: words := 'hello';
1: words := 'hi';
2: words := 'hey';
3: words := 'sup';
4: words := 'noob';
end;
typeSend(words, true);
end;


You don't have to specify "true" in TypeSend; it's default true. You only need to specify the parameter if you don't want it to press enter.

Citrus

2015-05-23 20:03:57

From: adc
You don't have to specify "true" in TypeSend; it's default true. You only need to specify the parameter if you don't want it to press enter.


I know, but as a general rule I fill out every parameter.

LA LA LA1234

2015-05-29 18:58:13

Thanks for the help i tried to use these and it compiles but it doesnt work? whats wrong with it

LA LA LA1234

2015-05-29 19:06:19

wait nvm it seems tht it didnt work in the mainloop but i added to a different procedure and it worked haha thanks guys