Results 1 to 7 of 7

Thread: Identifier expected in script

  1. #1
    Join Date
    Aug 2007
    Posts
    984
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Identifier expected in script

    SCAR Code:
    procedure Setup;
    begin
      SRLId := YourSRLId;
      SRLPassword:= YourSRLPassword;
      SetupSRL;
      SetupSmart;
      ScriptID:= '---';
      DeclarePlayers;
      ActivateClient;
      Wait(475);
      LoginPlayer;
    end;

    procedure MainLoop;
      Begin
        Repeat
          CheckForRandoms;
          FindCakeStall;
            If InvFull then
              Wait(50);
               CheckForRandoms;
                DropCake;
    end;   //<<< Identifier expected in script



    Begin
      Setup;
      MainLoop;
    end.

    any ideas? First time script maker.
    SRL > Runescape

    Quote Originally Posted by brent8900 View Post
    when i download it its a FAWG.rar how to i get it to FAWG.exe

  2. #2
    Join Date
    Aug 2007
    Location
    Georgia, U.S.
    Posts
    890
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    you need to add an until w/e because you have a repeat but you dont tell it how long to repeat.

  3. #3
    Join Date
    Jun 2007
    Location
    Wednesday
    Posts
    2,446
    Mentioned
    3 Post(s)
    Quoted
    1 Post(s)

    Default

    you have a Repeat and every Repeat needs an Until(). Inside the Until you need false to have it run forever/until you end the script or put in a statement like you would in an if e.g. Repeat blah; Until(LoadsDone >= LoadsToDo) which will run until LoadsDone is bigger than (>) or equal to (=) LoadsToDo. Hope this helps. Also, with your if() then, you have to add a begin after it to make it run multiple lines of code, otherwise it runs a single line, then add an end after the code you want to run
    By reading this signature you agree that mixster is superior to you in each and every way except the bad ways but including the really bad ways.

  4. #4
    Join Date
    Aug 2007
    Posts
    984
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Okay. Thanks i am trying to get it to steal cakes get full inventory then drop repeat.

    SCAR Code:
    procedure MainLoop;
    Begin
        Repeat
          CheckForRandoms;
          FindCakeStall;
            If InvFull then
              Wait(50);
               CheckForRandoms;
                DropCake;
                 Until(false)
    end;

    should that be fine?
    SRL > Runescape

    Quote Originally Posted by brent8900 View Post
    when i download it its a FAWG.rar how to i get it to FAWG.exe

  5. #5
    Join Date
    Aug 2007
    Location
    Hawaii
    Posts
    3,880
    Mentioned
    7 Post(s)
    Quoted
    152 Post(s)

    Default

    Quote Originally Posted by Becks View Post
    Okay. Thanks i am trying to get it to steal cakes get full inventory then drop repeat.

    SCAR Code:
    procedure MainLoop;
    Begin
        Repeat
          CheckForRandoms;
          FindCakeStall;
            If InvFull then
              Wait(50);
               CheckForRandoms;
                DropCake;
                 Until(false)
    end;

    should that be fine?
    Untill (false) for what? Is it so that when all the cakes are dropped, cakes = false or something? If not then add it to something else like :
    SCAR Code:
    Until not findCake
    or something.
    Faith is an oasis in the heart which will never be reached by the caravan of thinking.

  6. #6
    Join Date
    Apr 2007
    Posts
    994
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    And after

    If (invfull) then,

    you need a begin and a end, or it will just run the first line of code.
    [QUOTE]<GoF`> oh no its Raymooond
    <Raymooond> Heya
    <GoF`> is it ray or some other ray?
    <LeeLokHin> No idea
    <LeeLokHin> Raymond, what's the game you like the most?
    <Raymooond> Runescape
    <-- LeeLokHin has kicked Raymooond from #srl (Faker.)[/QUOTE]

  7. #7
    Join Date
    Mar 2007
    Posts
    4,810
    Mentioned
    3 Post(s)
    Quoted
    3 Post(s)

    Default

    Make it

    SCAR Code:
    Until (not(FindDtm(Cake,x,y,mix1,miy1,mix2,miy2)))


Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Identifier expected in script...But Why?
    By Macrosoft in forum OSR Help
    Replies: 10
    Last Post: 01-27-2012, 06:33 AM
  2. Bah!! Identifier Expected in Script.
    By siroober in forum OSR Help
    Replies: 3
    Last Post: 05-03-2008, 11:46 PM
  3. Identifier expected in script
    By StrikerX in forum OSR Help
    Replies: 2
    Last Post: 04-11-2008, 12:21 PM
  4. Identifier expected in script
    By wasapiguy2 in forum OSR Help
    Replies: 2
    Last Post: 03-25-2008, 09:57 AM
  5. Identifier expected in script?
    By steth1010 in forum OSR Help
    Replies: 6
    Last Post: 05-06-2007, 09:03 PM

Posting Permissions

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