Results 1 to 4 of 4

Thread: Need help with small part of script!

  1. #1
    Join Date
    Apr 2007
    Posts
    224
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Need help with small part of script!

    Hey guys I'm getting this error everytime:

    SCAR Code:
    Failed when compiling
    Line 989: [Error] (13728:1): Identifier expected in script

    This was going to be one of my good made anti bans ( Still stuff to add )

    I run this part, and i don't see whats wrong with it. Can someone help me or fix it?

    SCAR Code:
    procedure DontGetBanned;
    begin
      if not LoggedIn then
        Exit;
        Status('Performing Antiban');
      case Random(68) of
        0: HoverSkill('FireMaking', False);
       
        1: HoverSkill('Range', false);
       
        2:
          begin
            GameTab(1 + Random(12));
            wait(800 + random(500));
            GameTab(4)
          end;
         
        3: BoredHuman;
       
        4: DoEmote(400 + Random(90));
       
        5:
         begin
          GameTab(8)
          Wait(300 + random(300));
          if FindColor(x, y, 65535, 552, 231, 716, 287) then
          begin
          MoveMouseSmoothEx(x, y+random(4),20,40,45,25,20);
          Wait(200+random(300));
          ClickMouse(x, y, true);
          Wait(300+random(350));
          Case Random(5) of
          0: Typesend('Hey');
          1: Typesend('Hows it going?, and eme im going gwd');
          2: Typesend('I hate alching lol.');
          3: Typesend('Im sooooo bored :(');
          4: Typesend('I might bh later:S');
         end;
         
       6:
         begin
         Writeln('Trying out new anti ban.');
         GameTab(10)
         Wait(200 + random(300));
         MoveMouseSmoothEx(597, 446+random(14),20,40,45,25,20);
         ClickMouse(x, y, true);
         Wait(100+random(350));
         Case Random(4) of
         0: Typesend('zezima');
         1: Typesend('Samc loser');
         2: Typesend('Youbleedred');
         3: Typesend('skychi');
         end;
         begin
         Wait(200 + random(300));
         if FindColor(x, y, 6619135, 551, 269, 717, 389) then
         begin
         MoveMouseSmoothEx(573, 454+random(14),20,40,45,25,20);
         ClickMouse(x, y, true);
         Wait(100+random(350));
         GameTab(4);
        end  else
        begin
        Gametab(4);
        end;
      end;
     end;
    end;


    Oh yer it points out to the 6: but i don't understand why it is.

  2. #2
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it probably means the script needs another 'end' at the end of line 988

    SCAR Code:
    5:
         begin
          GameTab(8)
          Wait(300 + random(300));
          if FindColor(x, y, 65535, 552, 231, 716, 287) then
          begin
          MoveMouseSmoothEx(x, y+random(4),20,40,45,25,20);
          Wait(200+random(300));
          ClickMouse(x, y, true);
          Wait(300+random(350));
          Case Random(5) of
          0: Typesend('Hey');
          1: Typesend('Hows it going?, and eme im going gwd');
          2: Typesend('I hate alching lol.');
          3: Typesend('Im sooooo bored :(');
          4: Typesend('I might bh later:S');
         end;
    end; //<<<<<<<<<<
    Project: Welcome To Rainbow

  3. #3
    Join Date
    Apr 2007
    Posts
    224
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    It works!!!!!!!!!!!!!!!!!! thanks man

  4. #4
    Join Date
    Dec 2007
    Location
    Wizzup?'s boat
    Posts
    1,013
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    your welcome!

    glad i could help
    Project: Welcome To Rainbow

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Part Made Script - Big one
    By HarryJames in forum First Scripts
    Replies: 4
    Last Post: 11-08-2008, 01:48 PM
  2. Problem with the last part of my script
    By Tom_Gower in forum OSR Help
    Replies: 4
    Last Post: 11-07-2008, 10:00 PM
  3. need help with part of script!
    By vikrant60 in forum OSR Help
    Replies: 6
    Last Post: 05-09-2008, 10:52 AM
  4. Part of my first script[Problem]
    By Dude in forum First Scripts
    Replies: 7
    Last Post: 08-20-2007, 05:42 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
  •