Results 1 to 23 of 23

Thread: I need some help learning this please!

  1. #1
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    I need some help learning this please!

    Ok, so ive been trying to work on my own script, but every tutorial ive looked explains it, but not if it doesnt compile or something. im trying to get RW and RRW down, but every function i make, doesnt compile, and when i try to fix it something else pops up. I'm in need of some professional help, please. Anyone that will guide me on the journey.

    Edit: sorry, didnt think think about the JuKKa
    here is my walk function, dont know if it right or not, but this is the way its pushing me.
    please don't laugh at me

    SCAR Code:
    function RadialWalk(TheColor: Integer; StartRadial, EndRadial: Integer Radius: Integer; Xmod, Ymod: Integer): Boolean;
    begin
    function FindSymbol(var rx, ry: Integer; Name: String): Boolean;
     end;
    begin
      RadialWalk(1718365, 270, 50, 50, 0, 0);
     until FindSymbol(x, y, 'tree');
    end.

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

    Default

    Post the script and we might be able to help u a little better.

    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!

  3. #3
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    SCAR Code:
    procedure Test;
    begin
      repeat
        RadialWalk(1718365, 270, 50, 50, 0, 0);
      until FindSymbol(x, y, 'tree');
    end;

    A procedure should look like this:

    SCAR Code:
    procedure NAME;
    begin
    end; //no . just a ;
    Hup Holland Hup!

  4. #4
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default ??

    thanx nielsie

    im still getting
    SCAR Code:
    Failed when compiling
    Line 1: [Error] (1:72): Semicolon (';') expected in script

    it looks like this:

    SCAR Code:
    function RadialWalk(TheColor: Integer; StartRadial, EndRadial: Integer Radius: Integer; Xmod, Ymod: Integer): Boolean;
     begin
      function FindSymbol(var rx, ry: Integer; Name: String): Boolean;
     end;
    procedure Test;
    begin
      repeat
        RadialWalk(1718365, 270, 50, 50, 0, 0);
      until FindSymbol(x, y, 'tree');
    end;

  5. #5
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    SCAR Code:
    procedure Test;
    begin
      repeat
        RadialWalk(1718365, 270, 50, 50, 0, 0);
      until FindSymbol(x, y, 'tree');
    end;

    Just keep it at this. No need to declare FindSymbol and RadialWalk. SRL does that for you.

    Your total script now should look similar to this:

    SCAR Code:
    program New;
    {.Include SRL\SRL.scar}

    procedure Test;
    begin
      repeat
        RadialWalk(1718365, 270, 50, 50, 0, 0);
      until FindSymbol(x, y, 'tree');
    end;

    begin
      Test;
    end.
    Hup Holland Hup!

  6. #6
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default grrr

    Quote Originally Posted by nielsie95 View Post

    Your total script now should look similar to this:

    SCAR Code:
    program New;
    {.Include SRL\SRL.scar}

    procedure Test;
    begin
      repeat
        RadialWalk(1718365, 270, 50, 50, 0, 0);
      until FindSymbol(x, y, 'tree');
    end;

    begin
      Test;
    end.
    now i get an other error, man, i think im hopeless lol, cant get any of this right.

    SCAR Code:
    Failed when compiling
    Line 8: [Error] (15097:18): Unknown identifier 'x' in script

  7. #7
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    You need to declare x and y as variables in your script. In the script below, look for where I declared x and y variables. You should do the same for other variables. You could change your script to look like this:

    SCAR Code:
    program New;
    {.Include SRL\SRL.scar}

    var
      x, y: Integer;
     
    procedure Test;
    begin
      repeat
        RadialWalk(1718365, 270, 50, 50, 0, 0);
      until FindSymbol(x, y, 'tree');
    end;
     
    begin
      Test;
    end.
    :-)

  8. #8
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanx method, that did it

    SCAR Code:
    Successfully compiled

    really appreciate the help guys

  9. #9
    Join Date
    Dec 2006
    Location
    Program TEXAS home of AUTOERS
    Posts
    7,934
    Mentioned
    26 Post(s)
    Quoted
    237 Post(s)

    Default

    looks like this job is done =( wish i could help bfore lol dam niel =D

    jk
    ok yeah just remember findsymbol( x , y 'fish' );

  10. #10
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Oh yes, forgot the x and y variables.
    Hup Holland Hup!

  11. #11
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by p1nky View Post
    ok yeah just remember findsymbol( x , y 'fish' );
    yea, it says that i need the right symbol name, is fish the only one that works?

  12. #12
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    Check in Symbol.scar for the right names. 'tree' should work, as should 'rare trees'.
    :-)

  13. #13
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ok, it keeps telling me this:

    SCAR Code:
    Successfully compiled
    Please Enter a Valid Symbol Name!
    Successfully executed

    ???

  14. #14
    Join Date
    Mar 2007
    Posts
    3,042
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    What are you trying to locate? Post your script here.
    :-)

  15. #15
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    program New;
    {.Include SRL\SRL.scar}

    var
      x, y: Integer;

    procedure Test;
    begin
       MakeCompass('N');
      repeat
        RadialWalk(1718365, 270, 50, 50, 0, 0);
      until FindSymbol(x, y, 'tree');
    end;

    begin
      Test;
    end.

    im trying to get it to radialwalk from cammy bank to the maples behind it.

  16. #16
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    Call SetupSRL at the beginning of you script:

    SCAR Code:
    program New;
    {.Include SRL\SRL.scar}
     
    var
      x, y: Integer;
     
    procedure Test;
    begin
       MakeCompass('N');
      repeat
        RadialWalk(1718365, 270, 50, 50, 0, 0);
      until FindSymbol(x, y, 'tree');
    end;
     
    begin
      SetupSRL;
      Test;
    end.
    Hup Holland Hup!

  17. #17
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    kk, thanx nielsie

    now that it compiles and stuff

    it just sits there, and when i go back into scar, it says successfully executed.

    what is going on lol?

  18. #18
    Join Date
    Sep 2006
    Posts
    6,089
    Mentioned
    77 Post(s)
    Quoted
    43 Post(s)

    Default

    I guess it has found the symbol, so it stopped walking.

    To be more sure:

    SCAR Code:
    program New;
    {.Include SRL\SRL.scar}
     
    var
      x, y: Integer;
     
    procedure Test;
    begin
      WriteLn('Starting procedure Test;');
      WriteLn('Making compass North');
      MakeCompass('N');
      repeat
        WriteLn('In loop, trying to radialwalk.');
        RadialWalk(1718365, 270, 50, 50, 0, 0);
        WriteLn('RadialWalk done, trying to find the TreeSymbol.');
      until FindSymbol(x, y, 'tree');
      WriteLn('TreeSymbol found, procedure Test is done!');
    end;
     
    begin
      SetupSRL;
      WriteLn('Activating client');
      ActivateClient; //To make sure the client gets activated.
      WriteLn('Client activated');
      Test;
    end.

    I added some WriteLns to debug what the script is doing.
    Hup Holland Hup!

  19. #19
    Join Date
    Dec 2007
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    i cant help but i think this script will own if you get it to work
    and btw plz pm me if you manage to fix it?
    common sense ain't so common these days

    why dont you

    well said my little, green, sort of scary looking friend

    http://www.fenjer.com/adnan/SRLStats/pro2.png

  20. #20
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanx nielsie, that debug really helped me, i just changed the radius and for some reason it works, so, i really appreciate it

    Edit: one more thing, whats up with this?

    SCAR Code:
    Failed when compiling
    Line 4: [Error] (4:14): colon (':') expected in script

    SCAR Code:
    program New;

    var
      x, y, Integer;
     
    procedure DeclarePlayers;
      begin
       Players[0].Name := 'Username';
       Players[0].Pass := 'Password';
       Players[0].Nick := 'erna'; //3-4 letters of your username, NO CAPPED LETTERS.
       Players[0].Active := True; //true to use this player, false to not

     { Players[1].Name := '';
       Players[1].Pass := '';
       Players[1].Nick := '';
       Players[1].Active := True;
       
       Players[2].Name := '';
       Players[2].Pass := '';
       Players[2].Nick := '';
       Players[2].Active := True;
       
       Players[3].Name := '';
       Players[3].Pass := '';
       Players[3].Nick := '';
       Players[3].Active := True;}


     //welcome to add more players if you would like to.just put the correct number.
      end;
     begin
      SetupSRL;
      Disguise('Windows Live Messenger');
      DeclarePlayers;
    end.

  21. #21
    Join Date
    Oct 2006
    Location
    I'm also from Michigan!
    Posts
    563
    Mentioned
    3 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    var
      x, y: integer;



    EDIT: also you forgot to include srl
    SCAR Code:
    program new;
    {.include srl/srl.scar}

  22. #22
    Join Date
    Jul 2007
    Location
    Missouri
    Posts
    318
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanx munk, i did that to, i put the colon in there and i was like, nah, ill wait so i dont make a fool myself, and yea, i meant to put include scar, i did as soon as i posted that last one.

  23. #23
    Join Date
    Dec 2007
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    sorry, disregard, I was looking at old post.
    Here Rests
    in Honored Glory
    an American Soldier
    Know but to God.

    http://www.stats.srl-forums.com/sigs/3815.png

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Learning C++
    By Riffe in forum C/C++ Help and Tutorials
    Replies: 11
    Last Post: 01-14-2009, 01:52 PM
  2. Learning C/C++
    By 0wn 4 skill in forum C/C++ Help and Tutorials
    Replies: 7
    Last Post: 11-11-2008, 06:37 PM
  3. Learning forms
    By Rich in forum OSR Help
    Replies: 22
    Last Post: 09-04-2008, 01:20 PM
  4. Woo Actually Learning Java!!!
    By Rs-Gp-4U in forum Java Help and Tutorials
    Replies: 13
    Last Post: 03-09-2008, 06:21 PM
  5. Need help learning php
    By dialeyj2 in forum Web Development
    Replies: 8
    Last Post: 11-21-2007, 06:41 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
  •