Help me with my script please.

Discussion in 'Scar/Simba Help' started by Cymru, Nov 1, 2007.

Help me with my script please.
  1. Unread #1 - Nov 1, 2007 at 2:32 AM
  2. Cymru
    Joined:
    Jan 22, 2007
    Posts:
    693
    Referrals:
    0
    Sythe Gold:
    0

    Cymru Apprentice
    Banned

    Help me with my script please.

    Line 18: [Error] (15046:15): Unknown identifier 'x' in script C:\Program Files\SCAR 3.12\Scripts\Tree Cutter.scar

    program TreeCutter;
    {.include SRL/SRL.scar}
    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, 6922137, 240, 240, 280, 280)) then
    MMouse(x,y,0,0);
    wait(100+random(50));
    Mouse(x,y,0,0,true);
    wait(500+random(250));
    DoAntiRandoms;
    until(InvFull);
    end;
    procedure Drop;
    begin
    DropTo(17,28);
    end;
    begin
    repeat
    RepeatClicking;
    Drop;
    until(false);
    end.

    Can someone tell me what the problem is? I'll be on tomorrow to check for replies. Thanks in advance.
     
  3. Unread #2 - Nov 1, 2007 at 7:01 AM
  4. -------owned-------
    Joined:
    Jan 27, 2007
    Posts:
    1,225
    Referrals:
    0
    Sythe Gold:
    0

    -------owned------- Guru
    Banned

    Help me with my script please.

    X is not declared. However, this will get you banned.
     
  5. Unread #3 - Nov 1, 2007 at 4:41 PM
  6. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    Help me with my script please.

    Increase the randomness in your mouse moves and clicks.
     
  7. Unread #4 - Nov 1, 2007 at 4:55 PM
  8. Cymru
    Joined:
    Jan 22, 2007
    Posts:
    693
    Referrals:
    0
    Sythe Gold:
    0

    Cymru Apprentice
    Banned

    Help me with my script please.

    but how do I fix the error?
     
  9. Unread #5 - Nov 1, 2007 at 5:20 PM
  10. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    Help me with my script please.

    Declare your variables.
     
< Where do I put the scripts | Latest srl >

Users viewing this thread
1 guest


 
 
Adblock breaks this site