SRL Archive - First Scripts

simple auto talker


m4r1us

2008-11-26 14:29:46

Hello all

i'm created my simple auto talker

it's isint good script because it is very simple


Thanks

Romey

2008-12-02 20:38:08

That seems godo for a first script well done, if you want come check out mine. It is pretty good and the tips i got for it in my thread were really important for making it more efficient, go have a look and read the posts talk to you soon and good work

D1zl3

2008-12-02 22:22:20

From: m4r1us

it's isint good script because it is very simple

Well think of it as the glass half full, it works flawlessly!
And you could do something like
const
WhatToSay = 'Buying Scimmy!';
WhatToSay2 = 'Buying Dagger!';

procedure Talk;
begin
wait(1000)
typesend(WhatToSay);
Wait(500+Random(500)); // Waits 500 and another random number between 1 and 500.
typesend(WhatToSay2);
end;

Also dont forget to put ; at the end of each line except when your doing stuff like:
if WhatToSay then // notice that there is no " ; "
Wait(1000);