Log in

View Full Version : My First Script



spanky2
11-03-2006, 11:36 PM
Hello guys this is my first basic script... tell me wat yall think about it...i just made this so can learn to make scripts..welll try it out if u want...u dont have to all u have to do is look at the codeing and u can tell if its good or not.. lol LEAVE PROGRESS REPORTS! lol j/k

NOT RESPONSIBLE IF U GET BANNeD NOT JOKEING

{********Hello this is SQUEANCY'S SCRIPT
I made this with the help in the tutorial page.
as u see its a basic script for me to start with and soon I
will start makeing bigger and betters scripts..well enjoy!******}




program First;


const
Message1='Yay i made my first scriipt =)';

procedure hello;
begin
wait(1000)
Writeln(Message1);
end;

begin
Repeat
hello;
until(false)



end.

c0de
11-03-2006, 11:51 PM
Try to avoid endless loops ;-)

spanky2
11-03-2006, 11:54 PM
how do u make them go on and on??

Boreas
11-04-2006, 12:24 AM
It is going on and on. The point is to make it not go on and on.

Replace false with

isfkeydown(12)

That will make it stop when you press F12.

spanky2
11-04-2006, 04:30 AM
oh i c...so basically i made my own auto spammer. just got to slow it down and it will work great..

Hey321
11-11-2006, 01:18 PM
Also if you wanted to be able to specify how many times you wanted to send the message you would do this:


Put MessagesTyped: or whatever as a variable by typing
Var
MessagesTyped:

Put NumLoops=1; in your const

And until(MessagesTyped = NumLoops); in your man loop (bottom of script where you call on procedures)

da_professa
11-12-2006, 09:08 AM
or this is what you can do .. Sorry abt the quote..too laggy to go to advance

var written: Integer;//put this at the top of the script
after writeln(message1); put written := written + 1;
and then at the end where u put until(false) replace false with until(written =5 //or wht ever number u want);

Hey321
11-12-2006, 12:12 PM
I just noticed. This isn't an auto-spammer :P. What it does is sends the message to the debug box. Try using this if your going to make an auto talker.:

Your Version


{********Hello this is SQUEANCY'S SCRIPT
I made this with the help in the tutorial page.
as u see its a basic script for me to start with and soon I
will start makeing bigger and betters scripts..well enjoy!******}




program First;


const
Message1='Yay i made my first scriipt =)';

procedure hello;
begin
wait(1000)
Writeln(Message1);
end;

begin Repeat
hello;
until(false)



end.


The Actual Talker


{********Hello this is SQUEANCY'S SCRIPT
I made this with the help in the tutorial page.
as u see its a basic script for me to start with and soon I
will start makeing bigger and betters scripts..well enjoy!******}




program First;
{.include SRL/SRL.scar)

var
MessagesTyped: Integer;

const
Message1='Yay i made my first scriipt =)';
NumLoops=10
TimeToWait=1000

procedure hello;
begin
TypeSend(Message1);
end;

begin Repeat
hello;
sleep(TimeToWait+random(100)
until(MessagesTyped=NumLoops)



end.