Page 8 of 9 FirstFirst ... 6789 LastLast
Results 176 to 200 of 223

Thread: Script down your first rs tree!

  1. #176
    Join Date
    Feb 2012
    Location
    West Virginia
    Posts
    387
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Omg, wow.. this script helped me understand scripting more than I ever have!
    the only problem I had is that, even if i manually typed everything word for word, letter for letter, instead of just copying and pasting what you had wrote down..... it wouldnt compile.
    Thats right, even if i had exactly what you had, it wouldnt compile if i typed it myself. only if I copy and pasted what you put.

    I know the first thing your thinking is, "well he must have made a typo or forgot a semicolon, or something like that". but this is untrue, literally typed exactly what you did and it wouldnt work unless I copied and pasted. I dont think simba likes me, it wont let it compile when it knows im writing it. lol

  2. #177
    Join Date
    May 2012
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default Olay!

    Thanks you very very much you've taught another complete newb to write a little script.

    I've been promoted from Absolute Newb to Complete Newb

    Thank you very much!

  3. #178
    Join Date
    Feb 2012
    Posts
    49
    Mentioned
    1 Post(s)
    Quoted
    20 Post(s)

    Default

    well. first step on anti-leeching myself Thanks so much!

  4. #179
    Join Date
    Jun 2012
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Griff View Post
    Thanks, glad you liked it, and I didn't waste my time

    999 posts...
    Thank you for the help. First script completed but its poop so im not going to release it just yet lol want to learn how to walk and a few other things before release :-)
    "FLAME ON!!!"

  5. #180
    Join Date
    Aug 2012
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the help. Your tutorials with others are helping me learn to script much faster than I anticipated. Still having trouble dropping, but I'm sure with more research I'll figure it out.

  6. #181
    Join Date
    Apr 2012
    Location
    Vancouver, BC
    Posts
    291
    Mentioned
    1 Post(s)
    Quoted
    84 Post(s)

    Default

    Hey ... quick question ... I am working on my 1st script and want to grab a color ... but when I click the tear drop to select the color and try to find it in runescape either through SMART or in another browser it doesnt seem to find the color. It looks like its just floating in the background not actually in the right window!?!? Am I doing something wrong?

  7. #182
    Join Date
    Jun 2012
    Posts
    2,182
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Can you explain what exactly happens? It doesent matter what the active window is, the color pockets let will pick a color from anywhere on the screen. Is the color it's picking accurate?
    Thx Euphemism and Vinyl for the awesome siggy and avatar!

  8. #183
    Join Date
    Apr 2012
    Location
    Vancouver, BC
    Posts
    291
    Mentioned
    1 Post(s)
    Quoted
    84 Post(s)

    Default

    Its hard to tell ... I am trying to pick a "Brown" but only white appears in the color history. When I scroll my mouse inside SIMBA it shows the color matrix but as soon as it goes into another window is disappears (get stick on the side). It will then take action in the other window. I am not sure thats making sense. I have taken a screen shot essentially the color finder only work in the SIMBA window and gets lost in a new window??


  9. #184
    Join Date
    Feb 2012
    Location
    Somewhere, over the rainbow...
    Posts
    2,272
    Mentioned
    3 Post(s)
    Quoted
    45 Post(s)

    Default

    Quote Originally Posted by digitalninja View Post
    Its hard to tell ... I am trying to pick a "Brown" but only white appears in the color history. When I scroll my mouse inside SIMBA it shows the color matrix but as soon as it goes into another window is disappears (get stick on the side). It will then take action in the other window. I am not sure thats making sense. I have taken a screen shot essentially the color finder only work in the SIMBA window and gets lost in a new window??
    Have you tried selecting the client before picking the colour?

    And with the issue regarding jumping to another window, I guess you'll just have to make sure there are no windows behind Simba.

  10. #185
    Join Date
    Oct 2012
    Location
    England
    Posts
    12
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Great stuff, thanks for this. Now onto bigger and hopefully better things ^_^

  11. #186
    Join Date
    Sep 2012
    Location
    Minnesota
    Posts
    107
    Mentioned
    4 Post(s)
    Quoted
    36 Post(s)

    Default

    I have been trying to make sure i'm not considered a leech in the community and have been trying my hand at scripting by reading some of the beginner tuts and this one really helped me take a huge step into understanding how each function interacts with the game. I learned quite a bit and hope to start my first script thanks to this!!

  12. #187
    Join Date
    Oct 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    weeee it works
    just cut down full inventory of willows at draynor village bank. Now I have to find out how to bank or drop them

  13. #188
    Join Date
    Aug 2007
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Why is it that you have a repeat before "FindNormalRandoms;" in your ChopTree; procedure? Other than that everything else was pretty clear thanks to you

    Also like you asked I'll point out a mistake. You said that you were going to make a function for the antiban but your made it a procedure Unless it's just me that made a mistake
    Last edited by tvain; 12-31-2012 at 11:42 PM.

  14. #189
    Join Date
    Jan 2012
    Location
    127.0.0.1
    Posts
    702
    Mentioned
    11 Post(s)
    Quoted
    76 Post(s)

    Default

    Checks for a random event whist chopping, Redundunt now

  15. #190
    Join Date
    Jun 2012
    Posts
    4,867
    Mentioned
    74 Post(s)
    Quoted
    1663 Post(s)

    Default

    Quote Originally Posted by Enslaved View Post
    Checks for a random event whist chopping, Redundunt now
    You should still use it, it checks for spin ticket in you inventory and stuff like that

  16. #191
    Join Date
    Mar 2007
    Location
    Alberta, Canada
    Posts
    1,780
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    @tvain Pretty much what BMX said, and you are correct good sir about the mistake, I'll change it

  17. #192
    Join Date
    Nov 2011
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Thank you for the guide, it's easy to follow and helpful.
    I had a question in mind, why did you define the procedure AntiBan as an integer?
    Code:
    procedure AntiBan: integer;
    begin
      if(not(LoggedIn))then
      Exit;

  18. #193
    Join Date
    Feb 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Thank you for the guide!!! It really helped me on starting my first script!!

  19. #194
    Join Date
    Mar 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    This is a great tut, it's quite clear and easy to follow. I've applied it with 07 and have been testing around with some things. In regards to antiban, does everything still apply in the same way in 07? Along with that, will the default ani-randoms function correction or are new includes needed?

  20. #195
    Join Date
    Mar 2008
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Quote Originally Posted by psyno View Post
    Thank you for the guide, it's easy to follow and helpful.
    I had a question in mind, why did you define the procedure AntiBan as an integer?
    Code:
    procedure AntiBan: integer;
    begin
      if(not(LoggedIn))then
      Exit;
    If you check out the next section he removes it. I'm not entirely sure about that process but it's what I see.

  21. #196
    Join Date
    Feb 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Great script, solved the anti-leech without too much trouble. My only advice to people trying to solve it is to run the script, see where the line with the error is, and solve it. Look at spelling/punctuation, if you have a basic understanding of srl you'll spot it .

  22. #197
    Join Date
    Nov 2012
    Posts
    2,351
    Mentioned
    55 Post(s)
    Quoted
    603 Post(s)

    Default

    Quote Originally Posted by Tisrok55 View Post
    Great script, solved the anti-leech without too much trouble.
    What? this is a tutorial?


    Programming is like trying keep a wall of shifting sand up, you fix one thing but somewhere else starts crumbling

  23. #198
    Join Date
    Feb 2007
    Location
    Colorado, USA
    Posts
    3,716
    Mentioned
    51 Post(s)
    Quoted
    624 Post(s)

    Default

    well at least he solved a compile error himself
    The only true authority stems from knowledge, not from position.

    You can contact me via matrix protocol: @grats:grats.win or you can email me at the same domain, any user/email address.

  24. #199
    Join Date
    Feb 2013
    Posts
    31
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

    Default

    program new;
    {$DEFINE SMART}
    {$i srl/srl.simba}

    procedure DeclarePlayers;
    begin
    HowManyPlayers := 1;
    NumberOfPlayers(HowManyPlayers);
    CurrentPlayer := 0;

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

    procedure AntiBan;
    begin
    if(not(LoggedIn))then
    Exit;
    case random(8) of
    0:
    begin
    HoverSkill('Woodcutting', false);
    wait (2453+random(432));
    end;
    1: PickUpMouse;
    2:
    begin
    MakeCompass('N');
    wait(100+random(133));
    MakeCompass ('s');
    wait(50+random(133));
    MakeCompass('N');
    FindNormalRandoms
    end;
    end;
    end;

    procedure ChopTree;
    var x, y: integer;
    begin
    repeat
    FindNormalRandoms
    if FindObj (x, y, 'hop', 1848131, 35) then
    Mouse (x, y, 0, 0, false);
    ChooseOption('hop');
    repeat
    wait(400+random(250));
    AntiBan;
    Until not IsUpText('ree') or (InvFull);
    until(InvFull);
    end;

    begin
    SetUpSRL;
    ActivateClient;
    DeclarePlayers;
    LoginPlayer;
    ChopTree;
    end.

    it locates and chops trees fine, but does not change the compass or hover over the skill as it is told to.
    Anyone help?

  25. #200
    Join Date
    Apr 2012
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    [Error] C:\Users\Logan\Documents\Simba\Scripts\Default.sim ba(33:24): comma (',') expected at line 32

    Where do I put the comma at, I have tried everywhere on this line.

Page 8 of 9 FirstFirst ... 6789 LastLast

Thread Information

Users Browsing this Thread

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

Posting Permissions

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