Results 1 to 4 of 4

Thread: New to scripting help me with my powerchopper

  1. #1
    Join Date
    Aug 2007
    Posts
    146
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default New to scripting help me with my powerchopper

    SCAR Code:
    program New;
    {.include SRL/SRL.scar}

    const
      LoadsPerPlayer = 10; //Amounts of loads per player before switching.
      TreeColor = 4285531; //Tree color goes here.
      WaitPerTree = 5000;  //How long we wait while we're chopping the tree in milliseconds remember 1 second = 1000 milliseconds.
    procedure DeclarePlayers;
    begin
      SetupPlayers;

      Players[0].Name := '';
      Players[0].Pass := '';
      Players[0].Nick := '';
      Players[0].Active := True;

      Players[1].Name := '';
      Players[1].Pass := '';
      Players[1].Nick := '';
      Players[1].Active := True;

      LoadPlayerArray;
    end;

    procedure ChopTree;
    var
      x, y, MyMark : integer;
    begin
      if not Loggedin then Exit;
      MarkTime(MyMark);
      repeat
        if FindObj(x, y, 'hop', TreeColor, 30) then
        begin
          Mouse(x, y 0, 0, False);
          if ChooseOption('hop') then
          begin
         
          end;
        end;
        if TimeFromMark(MyMark) > (2 * 60 * 100)) then
        begin
          Logout;
          Exit;
        end;
      until false
    end;

    begin
      SetupSRL;
      DeclarePlayers;
      if LoggedIn then Logout;
      LoginPlayer;
      repeat
        ChopTree;
        if InvFull then
        begin
          DropToPosition(2, 28);
          Inc(Players[CurrentPlayer].Banked);
          if Players[CurrentPlayer].Banked mod LoadsPerPlayer = 0 then
          begin
            NextPlayer(True);
          end;
        end;
        if not Loggedin then NextPlayer(False);
      until false
    end.


    I have made this script by looking at various tutorials on this website i know all the basic stuff and i've been trying to put it all together to make a simple power chopper but i keep getting this error when i try to compile it.

    Line 10: [Error] (15099:1): Unknown identifier 'SetupPlayers' in script C:\Program Files\SCAR 3.12\Scripts\SupaCutter 0.1.scar

    It's probably something simple/stupid so can anyone tell me what i've done/what's wrong?

    EDIT: just so you know i am using scar 3.13 with newest version of SRL
    http://www.fenjer.com/adnan/SRLStats/2976.png

    http://card.mygamercard.net/sol1d+sniper.png

    98% Of teens have signatures starting with 98% of teens. If you agree put this in your sig.

    700+ Hours of autoing!

    http://bux.to/?r=supadude
    ^^^^^^
    Sign up here to start earning cash instantly with Bux.to recieve $0.01 per ad clicked and a $0.05 signup bonus!

  2. #2
    Join Date
    Nov 2007
    Location
    SCAR central
    Posts
    116
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    hmm i dont no but NEVER EVER put until (false)... its stupid.. you want something like

    until(Loads);

    that means it stops until the char has done loads.. that then is a perfect time to switch players

    you shoud't have this

    mouse(x,y,0,0,true)

    make it something like this

    mouse(x,y,2,2,true) or more... the 2,2 is the area the mouse can click from the x,y co-ordinates
    Click here for Rora's Power Woodcutter!
    Testers needed!
    |
    |
    |
    |
    V



    http://www.fenjer.com/adnan/SRL//100...Woodcutter.png

    http://photos33.flickr.com/38918814_8370ddb570_m.jpg




    If I see you autoing with level 3/default clothes/crap name I WILL report you. Auto Correctly. - put this in your sig.

  3. #3
    Join Date
    Dec 2007
    Posts
    193
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    You Might Have To Have SetUpPlayers?
    ~ Rs-Gp-4U
    _____________________________________________

    Bux.To! Sign Up Easy Money!

  4. #4
    Join Date
    Jul 2007
    Location
    Right now? Chair.
    Posts
    8,488
    Mentioned
    3 Post(s)
    Quoted
    12 Post(s)

    Default

    Quote Originally Posted by Rs-Gp-4U View Post
    You Might Have To Have SetUpPlayers?
    Nah that's jsut making it look beautiful.
    The thing is your calling for a procedure (SetupPlayers) that doesn't exist. I'm guessing you copied your Declare players procedure from someone's script and just took out what you didn't need? well in the script you took iffrom there must've been a SetupPlayers procedure.

    take out Setup Players and LoadPlayer array, and then fix a little mistake on like 32 and one on 38 and it should compile.

    Rasta Magician

    I & I know Zion. It is in the spirit, body and mind of every one of us
    RMouse(obj: TMSIObject): boolean;

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Powerchopper
    By TViYH in forum RS3 Outdated / Broken Scripts
    Replies: 6
    Last Post: 06-04-2008, 03:24 AM
  2. srs powerchopper help
    By catman817 in forum OSR Help
    Replies: 1
    Last Post: 02-17-2008, 07:45 PM
  3. [REQ] PowerChopper
    By Jhoox in forum RS3 Outdated / Broken Scripts
    Replies: 3
    Last Post: 11-15-2007, 05:32 PM
  4. My First PowerChopper
    By i like mauls in forum First Scripts
    Replies: 2
    Last Post: 06-19-2007, 04:35 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
  •