Results 1 to 9 of 9

Thread: First Script On SCAR

  1. #1
    Join Date
    Oct 2008
    Posts
    0
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default First Script On SCAR

    Hi this is my very first script what it does is logs you in teleports you to lumby and then logs out can some1 plz try to tell me if i did good on my very first script? Thank you.

    Here is the script All you need to edit is line 12 and 14 for your password.
    Please Reply And Rate for first script

  2. #2
    Join Date
    Oct 2008
    Location
    I Forgot
    Posts
    193
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yes its good but it needs alot of work Why dont u make it Loop teles and maybe add how many telles you want to do then log out?

  3. #3
    Join Date
    Sep 2008
    Location
    Not here.
    Posts
    5,422
    Mentioned
    13 Post(s)
    Quoted
    242 Post(s)

    Default

    i think it uses home tele...

  4. #4
    Join Date
    Oct 2008
    Posts
    0
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hey can u plz help me with that like loop and stuff cuz i dont understand on tuts

  5. #5
    Join Date
    Sep 2007
    Posts
    638
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Help with the loop stuff attempt

    a loop has scar repeat stuff as many times as defined (told to)

    it is included within a procedure

    SCAR Code:
    program TheLoop;
    begin
     repeat //this starts the loop everything after will be repeated
      TypeSend('ABCDEF');
     until(false); // this ends the loop

    This loop will endlessly TypeSend the string ABCDEF because
    there is nothing to be defined as false
    basically everything between repeat and end will be looped

    this is a bad idea because you eventually want it to end so you need a way
    to make it end eventually or when it has done something a number of times
    this is done with variables

    SCAR Code:
    program TheLoop;
    var //defines there will be a variable following
    x: = Integer; //Says that x will be an integer
                   // an integer is a number
                   //so x might = 1,7, or 182081 ect.

    begin
     x: = 0 //defined x as 0
     repeat //this starts the loop everything after will be repeated
      x: = x + 1; //This makes x = x + 1, so [x = 0 + 1], when it repeats it
                  //will be [x = 1 + 1] because the first time you added 1 to x
      TypeSend('ABCDEF');
     until(x > 4); //now it will check if x is greater than 4
                   {The first time x will equal 1. 1 is less than 4 so it will
                   keep repeating. Then when it checks again x will = 2 which is
                   still less than 4 so it will continue and so on}

                   
     {Once x = 5, because it is not [x=4], it will stop}

    Did that help?
    If not then post here or pm me and I will try to do better

  6. #6
    Join Date
    Nov 2008
    Location
    elyria
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    h): u need to work on it but it is pretty good

  7. #7
    Join Date
    Oct 2006
    Location
    United States
    Posts
    672
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it would use up less space if you used CastSpell(1); in your tele procedure instead of what you have, might be more reliable, and you could use your current procedure as a failsafe.

  8. #8
    Join Date
    Oct 2008
    Posts
    0
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks for the replys will be making new script which logs you in then you stand near willows at rimmington and it will cut willows for you and then drop them extra fast i just need help with the detecting trees

  9. #9
    Join Date
    Sep 2006
    Posts
    199
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Aser View Post
    Help with the loop stuff attempt

    a loop has scar repeat stuff as many times as defined (told to)

    it is included within a procedure

    SCAR Code:
    program TheLoop;
    begin
     repeat //this starts the loop everything after will be repeated
      TypeSend('ABCDEF');
     until(false); // this ends the loop

    This loop will endlessly TypeSend the string ABCDEF because
    there is nothing to be defined as false
    basically everything between repeat and end will be looped

    this is a bad idea because you eventually want it to end so you need a way
    to make it end eventually or when it has done something a number of times
    this is done with variables

    SCAR Code:
    program TheLoop;
    var //defines there will be a variable following
    x: = Integer; //Says that x will be an integer
                   // an integer is a number
                   //so x might = 1,7, or 182081 ect.

    begin
     x: = 0 //defined x as 0
     repeat //this starts the loop everything after will be repeated
      x: = x + 1; //This makes x = x + 1, so [x = 0 + 1], when it repeats it
                  //will be [x = 1 + 1] because the first time you added 1 to x
      TypeSend('ABCDEF');
     until(x > 4); //now it will check if x is greater than 4
                   {The first time x will equal 1. 1 is less than 4 so it will
                   keep repeating. Then when it checks again x will = 2 which is
                   still less than 4 so it will continue and so on}

                   
     {Once x = 5, because it is not [x=4], it will stop}

    Did that help?
    If not then post here or pm me and I will try to do better
    Wow, you really helped me understand stuff there!

    Any chance you could maybe give me a break down guide to finding trees and cutting them down, for learning purposes you seem to be good at explaining!

    Thanks in advance.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. My First Scar Script!
    By Vivoxity in forum First Scripts
    Replies: 16
    Last Post: 06-04-2008, 11:21 PM
  2. Replies: 2
    Last Post: 03-02-2008, 09:26 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
  •