SRL Archive - First Scripts

my first script, an autotalker


cocodog13

2007-10-22 13:42:50

hi, heers my very first script, an auto talker, i made this because im trying to learn scar and rid myself of "leacher" status. with my talker you can set any effect/color, the script will also terminate when you open a trade window, this was something missing from all of the autotalkers iv seen, so i put it in. please leave feedback for me.

many thanks to Ares and WhoCares357 for their brill tuts.

cocodog

updated to work with srl4#14 and scar 3.15 becasue iv started playing rs again and i actualy use this script a fair bit… lol

UPDATE

//changed for v2: trade window detection is
//now smaller and faster, types like a human,
//a general tidy of code.

rogeruk

2007-10-22 13:47:47

Not a bad first script, havn't tried it tho.

With your ..
if (use_wave2= true) then

You can simply use
If(use_wave2)then

The vars are pretty long, u can put them like this..

Var
x, y, a, b, c, d, e ,f :Integer;

Good job.

cocodog13

2007-10-22 13:58:18

The vars are pretty long, u can put them like this..

Var
x, y, a, b, c, d, e ,f :Integer;

Good job.

thanks for the tips :) i dident know you could put the vars out next to eachother :P . updated as such

corl455

2007-10-22 14:18:52

the "your message" var is pretty low down, some people will probable miss it

so
up buy your const you can make one more and turn it into somthing like this.
program YOtalker;
const
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\
//SET Message |
//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~/
Your_text='Your message goes here';

then down in config procedure put this:
procedure config;
begin
activateclient;
wait(500)
your_message:= your_text;
end;

do you get what i mean?

cocodog13

2007-10-22 16:01:54

thx corl, updated

corl455

2007-10-22 16:18:14

No problem, i'm glad to help

rogeruk

2007-10-22 16:34:15

Instead of having aload of ..

use_red= true;
etc.

Why don't you use ..

color='red';
etc?