Results 1 to 7 of 7

Thread: My First Script - Errors?

  1. #1
    Join Date
    Jun 2007
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    My First Script - Errors?

    Hey all, I'm new. And this is my first script
    Code:
    program AutoTyperTrader;
    /////////////////////////////////////////////
    //   Types a designated message until      //
    //   someone tries to trade with you, then //
    //   accepts the trade and exits the       //
    //   script.                               //
    /////////////////////////////////////////////
    {.include SRL/SRL.scar}
    {.include SRL/SRL/misc/trade.scar}
    
    const SellingMessage = 'Flash1:Wave2:Selling 4k ess 30ea!! -- Chicken Kllr';
    
    procedure FoundTrade;
    begin
        If SomeoneTrades Then //Someone tries to trade with you.
           begin
                AcceptTrade;  //Accepts the trade.
                Exit;         //Exits The Script.
           end;
    end;
    
    procedure Talk(MessageToSay:String; //Like TypeSend, but waits a random
                                        //time before typing. Also I like
                                        //using the word 'talk' better. :)
    begin
         Wait(2000 + random(1000));
         TypeSend(MessageToSay);
    end;
    
    begin
         if (Not LoggedIn) then Exit;               //Exits it not logged in.
         repeat
               if SomeoneTrades Then FoundTrade;    //If someones trying to trade, do
                                                    //the procedure.
               Wait(1000 + random(2000);            //Waits a little before typing..
               Talk(SellingMessage);
         until(False);
    end.
    But I'm getting errors?
    Please, I need your help!

    -jbrauman (h)

  2. #2
    Join Date
    Jun 2007
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Bump.

  3. #3
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    You have:
    If SomeoneTrades
    Scar doesn't know what SomeoneTrades is..you have to make a procedure/function
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  4. #4
    Join Date
    Jun 2007
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Isn't SomeoneTrades in {.include SRL/SRL/misc/trade.scar} this?

  5. #5
    Join Date
    Nov 2006
    Location
    NSW, Australia
    Posts
    3,487
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Meh..I'll look again...script is messy so I'll format for you...
    [CENTER][img]http://signatures.mylivesignature.com/54486/113/4539C8FAAF3EAB109A3CC1811EF0941B.png[/img][/CENTER]
    [CENTER][BANANA]TSN ~ Vacation! ~ says :I Love Santy[/BANANA][/CENTER]

    [CENTER][BANANA]Raymond - Oh rilie? says :Your smart[/BANANA][/CENTER]

  6. #6
    Join Date
    Jun 2006
    Location
    New Zealand
    Posts
    285
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    procedure Talk(MessageToSay:String;
    Change it into a function and add a close bracket.
    Huehuehuehuehue

  7. #7
    Join Date
    Jun 2007
    Posts
    26
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks Guys.

    -jbrauman

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Errors with my script...
    By Runescapian321 in forum OSR Help
    Replies: 4
    Last Post: 01-06-2008, 04:04 PM
  2. First Script/with errors.
    By hihi12340 in forum OSR Help
    Replies: 21
    Last Post: 06-19-2007, 02: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
  •