Results 1 to 6 of 6

Thread: Identifier Expected Help!

  1. #1
    Join Date
    Mar 2007
    Location
    Cincinnati Ohio (513)!
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Identifier Expected Help!

    SCAR Code:
    program New;
    {.include SRL\SRL.Scar}
    const
    dc=1714792;
    dn='esser';
    procedure Death;
    begin
    if (FindColor(x,y,dc,5,5,5,5))
    then
    begin
    MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
    Wait(100+random(10));
    ClickMouse(x,y,false);
    PopUp('Attack')
    GameTab(5)
    GameTab(7)
    begin
    SetUpSRL;
    repeat
    wait(10)
    Death;
    until(false)
    end.

    Failed when compiling
    [Error] (17684:4): Identifier expected


    im making this script to shut people up in script requests lol
    help plz

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

    Default

    That will get you/people banned... but yeah:
    SCAR Code:
    program New;
    {.include SRL\SRL.Scar}
    const
    dc=1714792;
    dn='esser';

    procedure Death;
    begin
      if (FindColor(x,y,dc,5,5,5,5))then
      begin
        MoveMouseSmoothEx(x,y +random(0),20,40,45,25,20);
        Wait(100+random(10));
        ClickMouse(x,y,false);
        PopUp('Attack')
        GameTab(5)
        GameTab(7)
      end;
    end;

    begin
      SetUpSRL;
      repeat
        wait(10)
        Death;
      until(false)
    end.
    Huehuehuehuehue

  3. #3
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    You were missing an end, always try an indent scripts so as show above you can identify if each begin has an end and each repeat has an until and what not

  4. #4
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You know, there is a tutorial which I heard is really awesome for fixing these common errors. Some genius/really good scripter/awesome guy wrote it. Forgot his name.. Oh wait, I remember now. The best scripter/tutorial writer ever JAD Wrote a tutorial for fixing errors Links in sig, always check that and see if that helps you before posting. And to learn about using MMouse and Mouse to be much less detectable to runescape, things the beginner tuts don't teach you can help you with that, links in sig for both tuts

  5. #5
    Join Date
    Mar 2007
    Location
    Cincinnati Ohio (513)!
    Posts
    66
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i used mmouse and mouse lol i changed to movemouthsmoothe because i thought it was the safe command is there anything else i can do to make this more safe? gotta add randoms and antiban :-P but is this a good first script?

  6. #6
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Good first script if you take out movesmousesmoothex and clickmouse. What you should do though is make it wait longer after attacking whatever you are making it attack, and put comments in the constants so the user knows what to set things to. but yes, good first script, you'll learn

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Identifier Expected
    By Torrent of Flame in forum OSR Help
    Replies: 9
    Last Post: 02-23-2008, 01:21 PM
  2. Identifier expected
    By badandymitch in forum OSR Help
    Replies: 4
    Last Post: 05-31-2007, 11:57 PM
  3. Identifier Expected
    By PwNZoRNooB in forum OSR Help
    Replies: 5
    Last Post: 05-03-2007, 07:05 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
  •