Results 1 to 11 of 11

Thread: what am i doing wrong?

  1. #1
    Join Date
    Dec 2006
    Posts
    354
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    what am i doing wrong?

    Code:
    procedure Walk;
    begin
    Status('Walking from the bank to the Kebab Shop');
     FindNormalRandoms;
     begin
       repeat
          FindSymbol(x, y, 'Kebab shop');
          if (FindSymbol(x, y, 'Kebab shop')) then
           Mouse(x,y,0,0,true);
            until (FindSymbol(x, y, 'Kebab shop'));
           Wait(102+random(20));
          begin
         if FlagPresent then
         Wait(2000+random(20));
        FindNormalRandoms;
        end;
      end;
    end;

    this basicaly just laggs my computer up, a lot, and i dont get any responce. any ideas?


    thanks in advance.

  2. #2
    Join Date
    Feb 2007
    Posts
    211
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Finds the kebab shop symbol
    if it finds the kebab shop symbol then it clicks
    until it finds the kebab shop symbol

    redo

    FindSymbol(x, y, 'Kebab shop');
    if (FindSymbol(x, y, 'Kebab shop')) then
    Mouse(x,y,0,0,true);
    until (FindSymbol(x, y, 'Kebab shop'));


    if(FindSymbol(x, y, 'Kebab shop'))then
    Mouse(x,y,0,0,true);
    end else ~~~~~~~~~

    drop the first find and change the until, dunno if this helped any

  3. #3
    Join Date
    Dec 2006
    Posts
    354
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i understand were you're comming from, but i'm looking for less lagggggg. any ideas anyone?

  4. #4
    Join Date
    Dec 2006
    Posts
    354
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    this is what i now have, with an error, unknow identifyer on the line were end else, is..


    Code:
    procedure Walk;
    begin
    Status('Walking from the bank to the Kebab Shop');
     FindNormalRandoms;
     begin
    
         if(FindSymbol(x, y, 'Kebab shop'))then
         Mouse(x,y,0,0,true);
         end else
    
         if FlagPresent then
         Wait(2000+random(20));
         FindNormalRandoms;
       end;
     end;

  5. #5
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    Begin
     Else
    End

    Try that.

  6. #6
    Join Date
    Dec 2006
    Posts
    354
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    like this?


    procedure Walk;
    begin
    Status('Walking from the bank to the Kebab Shop');
    FindNormalRandoms;
    begin

    if(FindSymbol(x, y, 'Kebab shop'))then
    Mouse(x,y,0,0,true);
    else

    if FlagPresent then
    Wait(2000+random(20));
    FindNormalRandoms;
    end;
    end;


    still gives me the same error.. hmm. any more ideas?

  7. #7
    Join Date
    Dec 2006
    Location
    Third rock from the sun.
    Posts
    2,510
    Mentioned
    4 Post(s)
    Quoted
    1 Post(s)

    Default

    SCAR Code:
    procedure Walk;
    begin
    Status('Walking from the bank to the Kebab Shop');
    FindNormalRandoms;
    begin

    if(FindSymbol(x, y, 'Kebab shop'))then
    Mouse(x,y,0,0,true);
    begin
     Else;
    end

    if FlagPresent then
    Wait(2000+random(20));
    FindNormalRandoms;
    end;
    end;

    More like this. Not sure if it'll work or not. Worth a try.

  8. #8
    Join Date
    Dec 2006
    Posts
    354
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    nope, still dosent work.. hmmm... i'll keep messing with it, but please, keep the ideas comming!



    EDIT.


    hmm, seems to me that no matter what i do i keep getting

    Failed when compiling
    Line 111: [Error] (17772:1): Identifier expected in script

    that error, and it's not because of that procedure, it's because of one before it, because i've moved it around, and it's compiled up to that point... so anyone have any ideas about what could be causing that?

  9. #9
    Join Date
    Jan 2007
    Posts
    248
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Mind PMing your whole script or posting it up? I may help

  10. #10
    Join Date
    Dec 2006
    Posts
    354
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i'll PM you it

  11. #11
    Join Date
    Jan 2007
    Posts
    248
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default All Fixed Man

    I got the PM with your script...
    I fixed your problem [now compiling the way you would like it to]

    Tell me if it functions the way you'd like it to

    Good Luck Scripting

    PM me if you want an explanation of your errors.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. what am i doing wrong ?:P
    By sjlou in forum OSR Help
    Replies: 2
    Last Post: 10-01-2007, 01:52 PM
  2. What am i doing wrong?
    By One Leeter in forum OSR Help
    Replies: 7
    Last Post: 06-15-2007, 10:33 PM
  3. Replies: 8
    Last Post: 03-23-2007, 04:20 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
  •