Results 1 to 8 of 8

Thread: Need help with my auto talker...

  1. #1
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help with my auto talker...

    hi, i need help with my script it says:
    Line 28: [Error] (14709:14): Unknown identifier 'x' in script
    can someone help me with this?
    and i need to refine this script. plz help me
    here si the script:
    --------------------------
    SCAR Code:
    {this program talk whatever you want }


    program script;
    {.include SRL/SRL.scar}
    const
    message1='woot';// write here the message you want to say
    procedure Talking;
    begin
    wait(2000)
    Writeln(message1);
    end;
    procedure DoAntiRandoms;
    begin
    FindTalk;
    FindNormalRandoms;
    if (FindFight = true) then
    begin
    RunAwayDirection('N');
    Wait(10000 + random(2000));
    RunBack;
    end;
    end;
    procedure RepeatClicking;
    begin
    SetupSRL;
    repeat
    if(FindColor(x,y,color,coords,coords,coords,coords))then
    MMouse(x,y,0,0);
    wait(100+random(50));
    Mouse(x,y,0,0,true);
    wait(500+random(250));
    end;
    end.
    -------------------
    i need help with this script.

  2. #2
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    You need to declare x ad a variable before you can use it.
    Should look something like this...

    SCAR Code:
    program script;
    {.include SRL/SRL.scar}

    const
    message1='woot';// write here the message you want to say
    color= ;

    var
    x,y : integer

    procedure Talking;
    begin
      wait(2000)
      Writeln(message1);
    end;

    procedure DoAntiRandoms;
    begin
      FindTalk;
      FindNormalRandoms;
      if (FindFight = true) then
      begin
        RunAwayDirection('N');
        Wait(10000 + random(2000));
        RunBack;
      end;
    end;

    procedure RepeatClicking;
    begin
      repeat
      if(FindColor(x,y,color,coords,coords,coords,coords))then
      begin
        MMouse(x,y,0,0);
        wait(100+random(50));
        Mouse(x,y,0,0,true);
        wait(500+random(250));
      end;
    end;

    begin
    SetupSRL;
    end.
    STOP PM'ING ME

  3. #3
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it now says:
    Line 11: [Error] (14692:1): Semicolon (';') expected in script

  4. #4
    Join Date
    Apr 2007
    Location
    Adelaide, Australia
    Posts
    160
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    The
    SCAR Code:
    var
    x,y : integer

    is supposed to be
    SCAR Code:
    var
    x,y : integer;

    That should fix it.

    Tazzie
    Are YOU into things to do with gaming consoles, glitches, mods or just meeting new people?
    Join Se7ensins and learn how to do the above!
    http://www.fenjer.com/adnan/SRLStats/824.png

  5. #5
    Join Date
    Jul 2007
    Posts
    1,055
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    lol yea what they said is right. Anytime you enter something that isnt mentioned in SRL or defualt in Pascal you must identify. x, y: integer; you will come a cross while scripting.

  6. #6
    Join Date
    Feb 2007
    Location
    PA, USA
    Posts
    5,240
    Mentioned
    36 Post(s)
    Quoted
    496 Post(s)

    Default

    Quote Originally Posted by osmm View Post
    lol yea what they said is right. Anytime you enter something that isnt mentioned in SRL or defualt in Pascal you must identify. x, y: integer; you will come a cross while scripting.
    ERR.. you meant Delphi right?

    Anyhow, Try looking around b4 posting stuff like this.. IE:
    http://www.villavu.com/forum/showthread.php?t=6413

  7. #7
    Join Date
    Nov 2007
    Location
    Chile
    Posts
    1,901
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks guys

  8. #8
    Join Date
    Mar 2006
    Posts
    13,241
    Mentioned
    228 Post(s)
    Quoted
    267 Post(s)

    Default

    Quote Originally Posted by footballjds View Post
    ERR.. you meant Delphi right?

    Anyhow, Try looking around b4 posting stuff like this.. IE:
    http://www.villavu.com/forum/showthread.php?t=6413
    Scar is based on Pascal, though I think SCAR the program is written in delphi.

    Scar, pascal and delphi are all very very similar
    STOP PM'ING ME

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. My First Auto Talker
    By jacka scar MASTER in forum First Scripts
    Replies: 5
    Last Post: 05-08-2008, 10:59 PM
  2. Replies: 5
    Last Post: 11-23-2007, 08:45 PM
  3. Help with auto trade/ auto talker script
    By logik in forum OSR Help
    Replies: 5
    Last Post: 03-16-2007, 11:16 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
  •