Page 5 of 9 FirstFirst ... 34567 ... LastLast
Results 101 to 125 of 223

Thread: Script down your first rs tree!

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

    Question

    I have a problem. It's the same exact problem that exilednoob was having. You explained what the problem was but now how to fix it. The problem is when the script compiles and begins to run I get this message.

    Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
    Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.

    Then, my computer mouse gets taken over and I have to fight against the script to open SIMBA and turn off the script.

    Like I said, I now know what the problem is but I don't know how to fix it because I am just starting to script. Please reply!

  2. #102
    Join Date
    Feb 2012
    Location
    UK
    Posts
    64
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    This was great help in understanding the concept, i think actually doing the script helps instead of just reading. Great work

  3. #103
    Join Date
    Feb 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by HRichyRS View Post
    I have a problem. It's the same exact problem that exilednoob was having. You explained what the problem was but now how to fix it. The problem is when the script compiles and begins to run I get this message.

    Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
    Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.

    Then, my computer mouse gets taken over and I have to fight against the script to open SIMBA and turn off the script.

    Like I said, I now know what the problem is but I don't know how to fix it because I am just starting to script. Please reply!
    I'm getting the same problem, anyway to fix this? This is the first script i've tried and have very basic knowledge.

  4. #104
    Join Date
    Feb 2012
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Great tutorial! i learned alot as well as getting to tweak it and make it to my personal desires!!
    this is what every questions' answer here is...
    and this is where its brought me

  5. #105
    Join Date
    Feb 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Awesome tutorial man, really helped me with the basics.

  6. #106
    Join Date
    Feb 2012
    Posts
    38
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Great tutorial thank you

  7. #107
    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 HRichyRS View Post
    I have a problem. It's the same exact problem that exilednoob was having. You explained what the problem was but now how to fix it. The problem is when the script compiles and begins to run I get this message.

    Warning! You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds. Setting the value to 0 for now.
    Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.

    Then, my computer mouse gets taken over and I have to fight against the script to open SIMBA and turn off the script.

    Like I said, I now know what the problem is but I don't know how to fix it because I am just starting to script. Please reply!
    I don't know much about Scripting (up until reading this guide), but I think you have to do what the warning says:
    Simba Code:
    You passed a wrong xs to a finder function: -16. That is below 0, thus out of bounds.
    which is set the value above 0, which shouldn't be out of bounds.


    I think

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

    Default

    There is only one part of this guide in which I am genuinely confused:
    Simba Code:
    procedure AntiBan;
    begin
      if(not(LoggedIn))then
      Exit;
      case Random(8) of
       0:      <---------------------------- HERE
       begin
         HoverSkill('Woodcutting', false);
         wait(2453+Random(432));
       end;
       1: PickUpMouse;
       2:     <----------------------------- HERE
       begin
         MakeCompass('N');
         wait(100+random(133));
         MakeCompass('S');
         wait(50+random(133));
         MakeCompass('N');
       end;
      end;
    end;

    Could you please explain what the 0: means and why there is nothing written after 2:


    That is all, Thanks.

  9. #109
    Join Date
    Feb 2012
    Location
    Bboy Vil
    Posts
    319
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Nice, thank you so much.

  10. #110
    Join Date
    Jan 2012
    Posts
    48
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I'm having a problem it I tried making this for oak trees and I set it up with 'ak' at the one part you said to and I picked a color from the tree but it still cuts other trees sometimes. I picked multiple colors but it still does this. but I think I got everything else right... hopefully :P

  11. #111
    Join Date
    Feb 2012
    Posts
    32
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for this tutorial I followed the whole thing! I retyped it all and everything, learned a lot for my first guide! Sadly it didn't work as it doesn't open the Runescape Window. Here is what I got.

    Code:
    program new;
    {$i srl/srl.simba}
    
    procedure DeclarePlayers;
    begin
      HowManyPlayers := 1;
      NumberOfPlayers(HowManyPlayers);
      CurrentPlayer := 0;
    
    Players[0].Name :='';
    Players[0].Pass :='';
    Players[0].Nick :='chin';
      Players[0].Active:=True;
    end;
    
    procedure AntiBan;
    begin
    if(not(loggedIn))then
    Exit;
    case Random(12) 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(177));
    MakeCompass('N')
    end;
    end;
    end;
    
    procedure ChopTree;
    var x, y: integer;
    begin
    repeat
    FindNormalRandoms;
     if FindObj(x, y, 'hop', 1785912, 35) then
    begin
    mouse(x, y, 0, 0, false);
    chooseoption('hop');
    end;
          repeat
          wait(400+random(250));
          AntiBan;
          Until not IsUpText('ew') or (InvFull);
      until(InvFull);
    end;
    
    
    
    
    
    
    begin
    SetUpSrl;
    ActivateClient;
    DeclarePlayers;
    LoginPlayer;
    ChopTree;
    FindNormalRandoms;
    end.

  12. #112
    Join Date
    Feb 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    ^^ under program new insert

    {$DEFINE SMART}


    PS: Still need help with my problem;

    Warning! You passed a wrong ys to a finder function: -5. That is below 0, thus out of bounds. Setting the value to 0 for now.

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

    Default

    Smart isn't included in the script you made, so just run it in your browser.

    @Abu, there are things written adter the 0 and 2, they just start on the next line. Starting a new line really does absolutely nothing, other than making it look neater.

  14. #114
    Join Date
    Feb 2011
    Location
    Wisconsin
    Posts
    398
    Mentioned
    1 Post(s)
    Quoted
    10 Post(s)

    Default

    I love this tutorial.. helped me get started with scripting

  15. #115
    Join Date
    Feb 2012
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Great tutorial! Helps so much the beginers like me. A few more tutorials and Im ready to start making my very own script

  16. #116
    Join Date
    Feb 2012
    Posts
    33
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wait i dont understand why dont u put antiban in this list:
    begin
    SetUpSRL;
    ActivateClient;
    DeclarePlayers;
    LoginPlayer;
    ChopTree;
    In which case does it go here and when not?

  17. #117
    Join Date
    Dec 2011
    Location
    Berlin
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    I really enjoyed this quide. Hope you will bring some more in future and making this script more specific. As dropping the logs. Would be good cause we could use that dropping for little other scripts too. Keep up that great work!

  18. #118
    Join Date
    Feb 2012
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Great tutorial but it isnt opening up a client for me? Help? :S

  19. #119
    Join Date
    Dec 2011
    Location
    Berlin
    Posts
    795
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Basicly should i let that run to the downloaded Runescape Client or the Web Client? But Great guide so far! Learned a lot with the anti ban section thank you!

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

    Default

    Quote Originally Posted by I am Karma View Post
    Wait i dont understand why dont u put antiban in this list:
    begin
    SetUpSRL;
    ActivateClient;
    DeclarePlayers;
    LoginPlayer;
    ChopTree;
    In which case does it go here and when not?
    Antiban is included in the procedure ChopTree, it isn't directly in the main loop

    And everyone, this doesn't use SMART, you just need to drag the crosshair and use it in your regular web browser. You can add SMART if you want, it's probably in another tutorial. Maybe I'll add it though, people seem to like it XD

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

    Default

    Really good tutorial! Thank you very much! Now I understand the basics of creating a script.

    You could do us all a favor and make a intermediate tutorial continuing this script. My suggestion is to make this for a specific area, add a route to a bank and finally bank and withdraw items. It should cover all the basics functions that everyone who wants to write a script (make a action for certain area, walk to a bank, bank the items or withdraw items).

    Really liked your way of teaching!
    Good work!

  22. #122
    Join Date
    Feb 2012
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for the tutorial! I want to help the community, I think that now at my maturity and age it is possible. From a leecher to a member, lets see what happens, thanks for the tutorial, really good foundation. And please teach us SMART too if you can!

  23. #123
    Join Date
    Feb 2012
    Posts
    22
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Great guide, this helped me alot!
    6M a day

  24. #124
    Join Date
    Dec 2011
    Location
    Nj
    Posts
    2,341
    Mentioned
    1 Post(s)
    Quoted
    18 Post(s)

    Default

    How would you make it search for the object circling around your player, instead of going 1,1 to x,y ?

    For the basics of the basics of pascal, try my TuT. ||Photoshop Editing ||MapleResourceDung Script || Book a flight! BuySellTrip

  25. #125
    Join Date
    Feb 2012
    Posts
    33
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    First of all awesome tutorial, got a lot out of it!! Rep added!

    I got a couple questions maybe someone can help me out. Let me warn you beforehand I may be on terribly wronge lane of logic here, I'm glueless when it comes to scripting though this tut has helped clear some things.

    Now can I set an area for the script to search colors? Because right now it's going haywire all over the screen until it finds the right colors. It would be useful if you know according your position that the trees are down left, so the script wont search the upper right corner for trees.

    Secondly is it possible to make the script take action using the uptext even when the colors are not exactly right, because right now it has went over trees with correct uptext, but it still didn't take action because the colors weren't corrent.

    the last and probably the easiest: if it doesn't find any trees how can I make it rotate the camera and make it search again for trees

    Hopefully someone help me out or at least point me to some other tutorial I've missed..

Page 5 of 9 FirstFirst ... 34567 ... 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
  •