Page 3 of 8 FirstFirst 12345 ... LastLast
Results 51 to 75 of 200

Thread: How to create your first script

  1. #51
    Join Date
    Oct 2006
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the tut, solid start and nothin too difficult. I wanna hit up a harder tut now...

  2. #52
    Join Date
    Oct 2006
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for this great tutorial! Now I can't feel like less of a common leech and try to start contributing!

  3. #53
    Join Date
    Nov 2006
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default leg

    twas really good

  4. #54
    Join Date
    Nov 2006
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Thanks :)

    Thanks for the great tut, it seems like java only quite a lot simpler

    I'll try to make some scripts... lol

  5. #55
    Join Date
    Nov 2006
    Location
    Belgium
    Posts
    110
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  6. #56
    Join Date
    Nov 2006
    Location
    Belgium
    Posts
    110
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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:
    Code:
    Line 1: [Error] (1:12): Semicolon (';') expected in script
    What am i doing wrong?

  7. #57
    Join Date
    Nov 2006
    Location
    Belgium
    Posts
    110
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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!

  8. #58
    Join Date
    Nov 2006
    Location
    Belgium
    Posts
    110
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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?

  9. #59
    Join Date
    Feb 2006
    Location
    Pennsylvania
    Posts
    1,524
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by Mod Mopar View Post
    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!
    Thank you.


    Quote Originally Posted by Mod Mopar
    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?
    Not quite sure what you are saying....

    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.

  10. #60
    Join Date
    Nov 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    well my auto talker talk in the scar window not in the rs window is it suppose to do that?

  11. #61
    Join Date
    Nov 2006
    Location
    Belgium
    Posts
    110
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Bebemycat2 View Post
    Thank you.



    Not quite sure what you are saying....

    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.
    Thank you so much! The way you know where i am talking about, and how you explain in a example-script .. I love it Planning 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);

  12. #62
    Join Date
    Nov 2006
    Location
    Belgium
    Posts
    110
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  13. #63
    Join Date
    Oct 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nice script, I just started SCAR today, seems pretty cool.

  14. #64
    Join Date
    Nov 2006
    Location
    Belgium
    Posts
    110
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.

  15. #65
    Join Date
    Feb 2006
    Location
    Pennsylvania
    Posts
    1,524
    Mentioned
    2 Post(s)
    Quoted
    1 Post(s)

    Default

    Glad I can help.

  16. #66
    Join Date
    Dec 2006
    Posts
    249
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Very Nice

    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

  17. #67
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    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

  18. #68
    Join Date
    Dec 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I like the guide. Showed me what I should expect. Looks simpler now.

  19. #69
    Join Date
    Dec 2006
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for this tutorial.
    It is really good

  20. #70
    Join Date
    Nov 2006
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  21. #71
    Join Date
    Dec 2006
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    NICE TUT!!!!

    wow can u do more? plz?

  22. #72
    Join Date
    Dec 2006
    Posts
    84
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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?

  23. #73
    Join Date
    Dec 2006
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Man thanks!
    Even I understood it!

  24. #74
    Join Date
    Jan 2007
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    omg thx so much ^^

  25. #75
    Join Date
    Jan 2007
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Does this auto type for runescape? If so,can someone help me because mine don't type anything in the rs window.

Page 3 of 8 FirstFirst 12345 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. create short script...
    By supersayian2224 in forum OSR Help
    Replies: 6
    Last Post: 01-16-2009, 03:30 AM
  2. For all that want to create a first script
    By Spiritualowl in forum OSR Help
    Replies: 3
    Last Post: 03-16-2008, 02:49 AM
  3. Someone help me create first script?
    By Immortal_DemiGod in forum OSR Help
    Replies: 13
    Last Post: 12-23-2007, 03:22 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •