Thanks for the tut, solid start and nothin too difficult. I wanna hit up a harder tut now...
Thanks for the tut, solid start and nothin too difficult. I wanna hit up a harder tut now...
Thanks for this great tutorial! Now I can't feel like less of a common leech and try to start contributing!
twas really good
Thanks for the great tut, it seems like java only quite a lot simpler
I'll try to make some scripts... lol
Thanks, i just made my first script! But i have a question; what do i need to add when i want to add more messages? Just copy the procedures, but add Message2, etc. ?
example:
Hello world!
Are you oke?
I am fine..
and repeat it
I think i have it.
SCAR Code:program script;
const
Message1='Hello People!';
Message2='How are you people?';
procedure hello;
begin
wait(1000)
Writeln(Message1);
end;
procedure okey;
begin
wait(1000)
Writeln(Message2);
end;
begin
repeat
hello;
okey;
until(false)
end.
But, when i try to name my script My first script, there comes this error:
What am i doing wrong?Code:Line 1: [Error] (1:12): Semicolon (';') expected in script
Are you going to make also a TUT on the other things that are in scar? example the variables , etc.
I love the way how you make TUTs!
When you are making an auto-talker for example, and you want to preset messages for people to fill in. You set 5 preset messages, but the one who uses it ony needs 3 of them. If he doesn't fill in any text at the 2 last one, does there happen soething then? Or is there a special code for thos?
Thank you.
Not quite sure what you are saying....Originally Posted by Mod Mopar
I think you mean this:
If you have a script that has 5 preset constants (const) for a string. If the user of the script only need to fill in 3 of those constants, what do you do?
Well it's simple, say you have the code like this:
SCAR Code:program New;
const
text1='';
text2='';
text3='';
text4='';
text5='';
procedure Talk;
begin
writeln(Text1);
writeln(Text2);
writeln(Text3);
writeln(Text4);
writeln(Text5);
end;
begin
Talk;
end.
Your want it so that if any of the constants are not filled in, then the script will not outpt the result.
This is done here:
SCAR Code:program New;
const
text1='A';
text2='B';
text3='C';
text4='';
text5='';
procedure Talk;
begin
if(not(text1=''))then
writeln(Text1);
if(not(text2=''))then
writeln(Text2);
if(not(text3=''))then
writeln(Text3);
if(not(text4=''))then
writeln(Text4);
if(not(text5=''))then
writeln(Text5);
end;
begin
Talk;
end.
This is using the "if","not" and "then" statements.
Basically it is looking to see if the constants are empty and if they arn't it will disply then, otherwise it won't.
well my auto talker talk in the scar window not in the rs window is it suppose to do that?
Thank you so much! The way you know where i am talking about, and how you explain in a example-script .. I love itPlanning to make a TUT for intermediate's ?
P.S. When i wanna add the " wait(500) " , will i add it like this? :
SCAR Code:if(not(Automessage1=''))then
wait(500)
Writeln(AutoMessage1);
It worked![]()
My progress report :
Code:Successfully compiled 1 2 3 4 5 6 Successfully executed
This is my script now:
SCAR Code:///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
//////// ////////
//////// AutoTalker By Mod Mopar ////////
//////// ////////
//////// Version 1.1 ////////
//////// ////////
//////// First Script Ever! ////////
//////// ////////
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////
program Autotalker;
{.include SRL/SRL.Scar}
const
AutoMessage1='1'; // Typ here what your character needs to say \\
AutoMessage2='2'; // If you don't need the message, don't typ anything in it. \\
AutoMessage3='3';
AutoMessage4='4';
AutoMessage5='5';
AutoMessage6='6';
AutoMessage7='';
AutoMessage8='';
AutoMessage9='';
AutoMessage10='';
AutoMessage11='';
AutoMessage12='';
AutoMessage13='';
AutoMessage14='';
AutoMessage15='';
procedure AutoTalking;
begin
if(not(Automessage1=''))then
wait(500)
TypeSend(AutoMessage1);
if(not(Automessage2=''))then
wait(500)
TypeSend(AutoMessage2);
if(not(Automessage3=''))then
wait(500)
TypeSend(AutoMessage3);
if(not(Automessage4=''))then
wait(500)
TypeSend(AutoMessage4);
if(not(Automessage5=''))then
wait(500)
TypeSend(AutoMessage5);
if(not(Automessage6=''))then
wait(500)
TypeSend(AutoMessage6);
if(not(Automessage7=''))then
wait(500)
TypeSend(AutoMessage7);
if(not(Automessage8=''))then
wait(500)
TypeSend(AutoMessage8);
if(not(Automessage9=''))then
wait(500)
TypeSend(AutoMessage9);
if(not(Automessage10=''))then
wait(500)
TypeSend(AutoMessage10);
if(not(Automessage11=''))then
wait(500)
TypeSend(AutoMessage11);
if(not(Automessage12=''))then
wait(500)
TypeSend(AutoMessage12);
if(not(Automessage13=''))then
wait(500)
TypeSend(AutoMessage13);
if(not(Automessage14=''))then
wait(500)
TypeSend(AutoMessage14);
if(not(Automessage15=''))then
wait(500)
TypeSend(AutoMessage15);
end;
begin
ActivateClient;
repeat
AutoTalking;
until(true)
end.
arr0w told me about the ActivateClient thingie
![]()
Nice script, I just started SCAR today, seems pretty cool.
I have just learned how to work with the F-Keys, and figured out how to make mistakes (manualy set)
but I am not going to post that script here, because its not finished, some things works, other don't.
Glad I can help.![]()
Hi, just wanted to say that the tut is very informative and it has helped me with understanding the concepts. with this new found knowledge, i feel more comfortable to being able to write my own scripts.
Thanks again
![]()
quite confuzing? i dont understand i want to learn but really hard to understand if you will like to teach me please talk on msn
d3st1ny_of_pur3s@hotmail.com
I like the guide. Showed me what I should expect. Looks simpler now.
Thanks for this tutorial.
It is really good
very complete script nice.![]()
If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly.
- put this in your sig
NICE TUT!!!!
wow can u do more? plz?
wow, i understanded it!! (the first one that i was able to follow)
well, wish i could learn more though, could u make another script in this format but with more stuff?
Man thanks!
Even I understood it!
omg thx so much ^^
Does this auto type for runescape? If so,can someone help me because mine don't type anything in the rs window.
There are currently 1 users browsing this thread. (0 members and 1 guests)