Results 1 to 2 of 2

Thread: Script Error

  1. #1
    Join Date
    Oct 2007
    Location
    uuuuuuuu
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Script Error

    Code:
    program MiningArdougne;
    
    Var x,y : Integer;
    
    const
      ArdougneArrow = 2386921;
      FoodStall = 7445953;
      BearFurStall = 525709;
      Bank = 9011075;
      Banker = 2371134;
    
    begin
      Repeat
    procedure ; Mining;
      Findcolor(x,y,1449759,5,5,512,330)
      MouseC(x,y,1)
    a:=a+1
    Until(a=28)
      Findcolor(x,y,2386921,5,5,512,330)
      MouseC(x,y,1)
      Wait (13000)
      Findcolor(x,y,7445953,5,5,512,330)
      MouseC(x,y,1)
      Wait (7000)
      Findcolor(x,y,525709,5,5,512,330)
      MouseC(x,y,1)
      Wait (8000)
      Findcolor(x,y,9011075,5,5,512,330)
      MouseC(x,y,1)
      Wait (15000)
      Findcolor(x,y,2371134,5,5,512,330)
      MouseC(x,y,1)
      Wait (2000)
      MouseC(300,452,1)
      Wait (1000)
      MouseC(271,393,1)
      Wait (1000)
      MouseC(577,225,2)
      MouseC(568,298,1)
      Findcolor(x,y,525709,5,5,512,330)
      MouseC(x,y,1)
      Wait (16000)
      MouseC(714,64,1)
      Wait (8000)
      MouseC(693,31,1)
      Wait (7000)
      MouseC(645,13,1)
      Wait (7000)
      MouseC(619,47,1)
      Wait (4000)
    
      End.

    Line 14: [Error] (14:1): Identifier expected in script



  2. #2
    Join Date
    Oct 2006
    Location
    finland, helsinki
    Posts
    2,501
    Mentioned
    3 Post(s)
    Quoted
    2 Post(s)

    Default

    What are you trying to do?

    Made it compile...

    SCAR Code:
    program MiningArdougne;
    {.Include SRL/SRL.Scar}

    Var a,x,y : Integer;

    const
      ArdougneArrow = 2386921;
      FoodStall = 7445953;
      BearFurStall = 525709;
      Bank = 9011075;
      Banker = 2371134;

    Begin
      SetupSRL;
      Repeat
        Findcolor(x,y,1449759,5,5,512,330)
        Mouse(x,y,1,1, true)
        a:=a+1
      Until(a>=28)
      Findcolor(x,y,ArdougneArrow,5,5,512,330)
      Mouse(x,y,1,1, true)
      Wait (13000)
      Findcolor(x,y,FoodStall,5,5,512,330)
      Mouse(x,y,1,1, true)
      Wait (7000)
      Findcolor(x,y,BearFurStall,5,5,512,330)
      Mouse(x,y,1,1, true)
      Wait (8000)
      Findcolor(x,y,Bank,5,5,512,330)
      Mouse(x,y,1,1, true)
      Wait (15000)
      Findcolor(x,y,Banker,5,5,512,330)
      Mouse(x,y,1,1, true)
      Wait (2000)
      Mouse(300,452,1,1, true)
      Wait (1000)
      Mouse(271,393,1,1, true)
      Wait (1000)
      Mouse(577,225,2,1, true)
      Mouse(568,298,1,1, true)
      Findcolor(x,y,525709,5,5,512,330)
      Mouse(x,y,1,1, true)
      Wait (16000)
      Mouse(714,64,1,1, true)
      Wait (8000)
      Mouse(693,31,1,1, true)
      Wait (7000)
      Mouse(645,13,1,1, true)
      Wait (7000)
      Mouse(619,47,1,1, true)
      Wait (4000)
    End.

    What you should do is add If(..)Then statements.

    Code:
    • Narcle: I recall Jukka releasing a bunch of scripts like this before... Its how he rolls I think. rofl
    • Solarwind: Dude, you are like... t3h s3x.
    • Hy71194: JuKKa you're a machine! You released 3 scripts in 10 minutes! :O
    • benjaa: woah.... Jukka is the man Guildminer pwns all
    • NaumanAkhlaQ: And JuKKa Is my Her0!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Line 135: [Error] (14845:1): Syntax error in script
    By AbsTrACt'^.| in forum OSR Help
    Replies: 16
    Last Post: 05-23-2008, 01:14 PM
  2. Replies: 5
    Last Post: 02-26-2008, 04:14 PM
  3. Error: Cannot Fix Script - Error Overgrowth - Begin Headdesking
    By PhantasmalScripter in forum OSR Help
    Replies: 6
    Last Post: 12-23-2006, 12:50 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •