Results 1 to 5 of 5

Thread: First script(powerchopper) help

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

    First script(powerchopper) help

    Hi,
    This is my first script I have made. I read a few tutorials and decided to try to test my self and make a powerchopper. So I go and make my powerchopper and finished it in about 2 days( I was confused along the way). Now I try testing it out on on of my noobier accounts. And of course, IT DOES NOT WORK. Well I am like ow well. So if you could take a quick scan at it and see what I did wrong. Thanks. Also:

    The error I kept on getting was:

    Line 32: [Error] (17746:11): Syntax error in script

    Well if you could reply if you know what is wrong that would be great.

    Update: I left my password and account name left in oops.

  2. #2
    Join Date
    Jan 2007
    Location
    new zealand
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok first of you should go and read jads tut on fixing those annoying errors
    http://uberbroproductions.net/forums/viewtopic.php?t=11 You also have lots more things that are wrong add me to msn if you have Phonokin@hotmail.com and ill be happy to help you.

  3. #3
    Join Date
    Dec 2006
    Location
    Australia
    Posts
    698
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Ok the syntax error was because their wasnt numbers in the const
    Solution const TreeColor= 00;//Tree Color

    You then got a Duplicate identifier 'PLAYERS'
    SCAR Code:
    procedure DeclarePlayers;
    begin
         HowManyPlayers:= 1;//Dont change, only one player anyway.
         NumberOfPlayers(HowManyPlayers);
         CurrentPlayer:= 0;

         Players[0].Name :='josh rpg313';//RS2 username
         Players[0].Pass :='josh456';//Your character's password
         Players[0].Nick :='shrp';//3-4 or your character's username
         Players[0].Active :=True;//Is He/She active?True or False.

    End;

    than you got expected 'BEGIN', inoticed you had a login procedure, scraped it.

    You than got Duplicate identifier 'ROTATEEVERY' i noticed you didnt call it so i scraped it

    Once again another begin
    SCAR Code:
    procedure AntiRandoms;
    begin
    FindTalk;
    FindNormalRandoms;
    if (FindFight = True) then
    begin
    RunAwayDirection('S');
    Wait(10000+random(3000));
    end;
    end;

    finished repaired verison, 11 errors fixed. remeber all procedures need a begin and an end

    SCAR Code:
    program TreeChopper;
    {===================================}
    {         Macho TreeChopper         }
    {      -By: Macho Man67             }
    {===================================}
    {             Setup                 }
    {  1) Set Client Window             }
    {  2) Set Tree Colors               }
    {  3) Have your axe unwielded first }
    {   slot                            }
    {  4) Start logged in/out           }
    {===================================}
    {        Comments                   }
    {  This is my first script so it's  }
    {  going to be buggy. Please post   }
    {  comments or suggestions on my    }
    {  thread.                          }
    {===================================}
    {         Credits:                  }
    {-SRL Community for SRL             }
    {-WhoCares357 for his tutorial      }
    {-JAD for his tutorial(s)           }
    {-Stupid3ooo for his procedure      }
    {===================================}

    {.include SRL\SRL.scar}
    {.include SRL\SRL\skill\Woodcutting.scar}

    {==============Setup================}

    const TreeColor= 00;//Tree Color

    {========End=Of=Setup===============}

    procedure DeclarePlayers;
    begin
         HowManyPlayers:= 1;//Dont change, only one player anyway.
         NumberOfPlayers(HowManyPlayers);
         CurrentPlayer:= 0;

         Players[0].Name :='josh rpg313';//RS2 username
         Players[0].Pass :='josh456';//Your character's password
         Players[0].Nick :='shrp';//3-4 or your character's username
         Players[0].Active :=True;//Is He/She active?True or False.

    End;


    procedure AntiRandoms;
    begin
    FindTalk;
    FindNormalRandoms;
    if (FindFight = True) then
    begin
    RunAwayDirection('S');
    Wait(10000+random(3000));
    end;
    end;

    procedure MoreRandoms;
    begin
    case Random(10) of
     2: MouseBox(MSx1, MSy1, MSx2, MSy2, 3);
     4: HoverSkill('Woodcutting', False)
     6: MouseBox(MIx1, MIy1, MIx2, MIy2, 3);
     9: BoredHuman;
     10: PickUpMouse;
    end;
    end;

    procedure TreeFinder;
    begin
    repeat
    if(FindColor(x,y,Treecolor,MSX1,MSY1,MSX2,MSY2))then
    MMouse(x,y,0,0);
    wait(100+random(50));
    Mouse(x,y,0,0,true);
    wait(500+random(255));
    AntiRandoms;
    Wait(100+random(50));
    MoreRandoms;
    until(InvFull);
    end;

    procedure DropMyLogs;
    begin
    GameTab(4);
    DropItem(2-28);
    Wait(1000+random(200));
    end;


    begin
    SetUpSRL;
    DeclarePlayers;
    LoginPlayer;
      repeat
      TreeFinder;
      DropMyLogs;
    until(false)
    end.

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

    Default

    Thank you guys for all your help. Also phonokin if I ever need help Ill contact you!

  5. #5
    Join Date
    Feb 2007
    Posts
    3,616
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    But before asking for help, always remember the JADsters ultimate is there 24/7 to help you out, and saves other people time if it can help you

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. First PowerChopper
    By omgnomorenames in forum First Scripts
    Replies: 10
    Last Post: 03-20-2008, 01:30 AM
  2. My First Script, A PowerChopper!(no bank)
    By HyperSecret in forum First Scripts
    Replies: 4
    Last Post: 10-07-2007, 07:21 AM
  3. Powerchopper
    By the scar noob in forum RS3 Outdated / Broken Scripts
    Replies: 24
    Last Post: 01-17-2007, 06:18 PM
  4. Error in PowerChopper script
    By AlexandrSN in forum OSR Help
    Replies: 15
    Last Post: 11-08-2006, 09:34 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
  •