Results 1 to 4 of 4

Thread: Help with my Fight procedure

  1. #1
    Join Date
    Sep 2007
    Posts
    638
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help with my Fight procedure

    I'm currently working on an Auto fighter script. It will be my first script that will be public...(other ones were just simple auto talker/casters).

    anyways I have a problem with my procedure
    SCAR Code:
    Procedure Fight;
       var
       x,y : Integer;
       InFight : boolean;
       begin
        repeat
         if FindObjCustom(x,y,[CreatureName],[CreatureColor1],10) then
          begin
           AntiBan;
           AntiRandoms;
           Mouse(x,y,5,5,False);
            if IsUpText(CreatureName) then
             begin
              ChooseOption('ttack');
             repeat
               Wait(800 + random(200));
             until(InFight = False);
             end;
         end;
      end;

    [Error] (16284:1): Identifier expected in script
    the error is on the last end; line

    Here is the rest of the script but it is far from complete



    also any suggestions would be great

  2. #2
    Join Date
    Sep 2006
    Posts
    5,219
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    2 repeats, 1 until. Proper indenting makes it easier to find problems.

  3. #3
    Join Date
    Nov 2008
    Location
    elyria
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    u should use propper indenting

  4. #4
    Join Date
    Sep 2007
    Posts
    638
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you Boreas. I should have caught that.

    ...sorry about the indenting but it makes it easier for me to read.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Fight Procedure help
    By drizzt in forum OSR Help
    Replies: 2
    Last Post: 02-17-2008, 03:42 PM
  2. hlp wit fight
    By Lt Mays in forum OSR Help
    Replies: 4
    Last Post: 01-27-2008, 02:28 AM
  3. Procedure TypeSendRandom & Procedure AutoResponder!
    By Ultra in forum Research & Development Lounge
    Replies: 12
    Last Post: 01-08-2008, 07:04 PM
  4. Replies: 8
    Last Post: 05-24-2007, 11:57 PM
  5. Procedure that calls random procedure?
    By Secet in forum OSR Help
    Replies: 2
    Last Post: 03-03-2007, 03:56 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
  •