Page 9 of 9 FirstFirst ... 789
Results 201 to 223 of 223

Thread: Script down your first rs tree!

  1. #201
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by sprunt View Post
    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?
    Thats because it does it randomly

    Simba Code:
    case random(8) of
    here means it rolls a number between 1-7 and here

    [simba]1: PickUpMouse;
    2:
    begin
    MakeCompass('N');
    wait(100+random(133));
    MakeCompass ('s');
    wait(50+random(133));
    MakeCompass('N');
    FindNormalRandoms
    end;/simba]

    if 1 is picked it picks up mouse, if 2 is picked it will make the compass north


    you also never called the procedure in your script, the main loop is here

    Simba Code:
    begin
    SetUpSRL;
    ActivateClient;
    DeclarePlayers;
    LoginPlayer;
    ChopTree;
    end.

    this tells the script what to do, you should make it like this

    Simba Code:
    begin
    SetUpSRL;
    ActivateClient;
    DeclarePlayers;
    LoginPlayer;
    ChopTree;
    Antiban;
    end.

    so it calls the anti ban procedure (see here its called antiban

    Simba Code:
    procedure AntiBan;

  2. #202
    Join Date
    Mar 2013
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    if i put smart only it give me a parameters ERROR.
    if i change it to SMART8 though it bots the 2013 client not the 07 client... How can i fix this? @rjj95

    Quote Originally Posted by RJJ95 View Post
    deleted the inside lol

  3. #203
    Join Date
    Sep 2010
    Posts
    5,762
    Mentioned
    136 Post(s)
    Quoted
    2739 Post(s)

    Default

    Quote Originally Posted by lolhippl View Post
    if i put smart only it give me a parameters ERROR.
    if i change it to SMART8 though it bots the 2013 client not the 07 client... How can i fix this? @rjj95
    Code:
      *mention* */mention*
    replace * with []

    to notify somebody

    http://www.youtube.com/watch?v=0N-RWHwHHAY

    to load 07 in smart

  4. #204
    Join Date
    Feb 2012
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for this dude, helped me to understand simba a bit better .

    The only thing is there are a couple of times where the script you give during the tutorial doesn't quite match that of the finished product (or in other places of the tutorial), which can result in compiling errors. Such as missing an end after "ChooseOption('hop');" in one part but having the required end in every other example. Or declaring the procedure AntiBan as an integer in one part but not anywhere else. Not sure if these are intentional or not, but they get you reading the code and trying to logically understand what is wrong anyway, so they may not be such a bad thing.

    Overall great guide! Great next step up after making scripts for other flash games .

  5. #205
    Join Date
    Mar 2013
    Posts
    59
    Mentioned
    0 Post(s)
    Quoted
    14 Post(s)

    Default

    Very many thanks for this awesome guide... Helped me to make my first script for oldschool rs

  6. #206
    Join Date
    Apr 2013
    Posts
    5
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Thanks for this Griff, it was really helpful. Looks like we don't need the FindNormalRandoms anymore though on EOC thankfully

  7. #207
    Join Date
    Sep 2012
    Location
    Here.
    Posts
    2,007
    Mentioned
    88 Post(s)
    Quoted
    1014 Post(s)

    Default

    Quote Originally Posted by Veresi View Post
    Thanks for this Griff, it was really helpful. Looks like we don't need the FindNormalRandoms anymore though on EOC thankfully
    FindNormalRandoms is still useful for other things though besides Randoms. It also handles certain popups (like the one telling you to get members when you hit lvl 10 in a f2p skill), it hops worlds if a mod is detected, and it can shut down the script if it detects death occurred (or you can change the setting to not do that).

  8. #208
    Join Date
    Feb 2013
    Posts
    43
    Mentioned
    0 Post(s)
    Quoted
    22 Post(s)

    Default

    not workin for me =| do i need to completely finish this before running it to open smart? i'd rather script it using colors taken from SMART, and test to make sure each function works.

  9. #209
    Join Date
    May 2012
    Location
    Arizona
    Posts
    52
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

    Wonderful, amazing... easy to follow, worked like a charm. There are some spots where it gets confusing but I read abit forward and then jumped back and was able to get the finished prouduct to completely cut down my magic tree in Fally :-P
    I came to cheat
    I stayed to learn

  10. #210
    Join Date
    Apr 2013
    Posts
    4
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Helped me a lot trying to make my own script

  11. #211
    Join Date
    Dec 2011
    Location
    Vancouver, Canada
    Posts
    74
    Mentioned
    0 Post(s)
    Quoted
    8 Post(s)

    Default

    FindObj, doesn't work anymore, Any other replacements?

    Alot of the functions listed here seem to no longer work, For a noob like me, Is there any way to learn about the new functions and how to use them? Things like TBox etc etc. It's so intimidating and i can't get anything happening on the RS client.

  12. #212
    Join Date
    Jun 2007
    Posts
    532
    Mentioned
    1 Post(s)
    Quoted
    68 Post(s)

    Default

    Quote Originally Posted by CreaShun View Post
    FindObj, doesn't work anymore, Any other replacements?

    Alot of the functions listed here seem to no longer work, For a noob like me, Is there any way to learn about the new functions and how to use them? Things like TBox etc etc. It's so intimidating and i can't get anything happening on the RS client.

    Check out this....http://docs.villavu.com/srl-6/

    That should explain everything in SRL 6 and what they do and most if not all have an example use.
    Finished B.S. Program in Radiology!!

    Projects: A big one! Total secret! hehe

  13. #213
    Join Date
    Nov 2013
    Posts
    10
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks alot for the guide man, helped me quite a bit.

  14. #214
    Join Date
    Dec 2013
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Exception in Script: File "srl/srl.simba" not found at line 3, column 5

    when i try to compile or run i alway's get this error :s

  15. #215
    Join Date
    Nov 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    17 Post(s)

    Default

    Try changing "srl/srl.simba" to

    Code:
    {$I SRL-OSR/SRL.SIMBA}

  16. #216
    Join Date
    Dec 2013
    Posts
    19
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    ok got it compiled now,but when i try to run it for checking it works it doesnt run..

    i typed my user + pass & set nick to the first 4 letters from my account but it just stops everytime :/ i dont get it hounestly

    socket disconnected; unpairing

  17. #217
    Join Date
    Mar 2013
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Thanks for the tutorial, looking into it now

  18. #218
    Join Date
    Jul 2014
    Posts
    125
    Mentioned
    0 Post(s)
    Quoted
    31 Post(s)

    Default

    This may be nearly 5 years old but a good guide none the less. Thanks for spending the time back then to educate us all

  19. #219
    Join Date
    Sep 2014
    Posts
    8
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    tutorial was a major help,a fter a lot of tracking back and fourth over the info given, I was able to write the same script here myself, but pick up a lot of knowledge doing so.
    how ever,
    hwo could I add a change world unfction? because as default runescape loads a members world in rs07, so I would like to make some code to tell tell simba the first thing to do is to "change to a free world".
    I should imagine if I either insert a certain world inparticular would work, or even if I inserted a script to randomly select between multiple worlds.

    can some body help me please? I think it would also be useful to include in this tutorial
    thanks guys

  20. #220
    Join Date
    Aug 2012
    Posts
    31
    Mentioned
    1 Post(s)
    Quoted
    14 Post(s)

    Default

    at the very beginning after I type in the SRL setup and press run I get this error...

    Error: File "srl/srl.simba" not found at line 2
    Compiling failed.

  21. #221
    Join Date
    Feb 2012
    Location
    Norway
    Posts
    995
    Mentioned
    145 Post(s)
    Quoted
    596 Post(s)

    Default

    Quote Originally Posted by HippestTrip View Post
    at the very beginning after I type in the SRL setup and press run I get this error...

    Error: File "srl/srl.simba" not found at line 2
    Compiling failed.
    6-7 year old thread, not expected to work out of the box. There is little valuable information in this thread, and any and all code is outdated.
    Last edited by slacky; 03-27-2016 at 12:32 AM.
    !No priv. messages please

  22. #222
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    269
    Mentioned
    17 Post(s)
    Quoted
    161 Post(s)

    Default

    Quote Originally Posted by slacky View Post
    6-7 year old thread, not expected to work out of the box. There is little valuable information in this thread, and any and all code is outdated.
    Maybe it's time for a new OSR-tutorial?

  23. #223
    Join Date
    Nov 2011
    Posts
    79
    Mentioned
    0 Post(s)
    Quoted
    25 Post(s)

    Default

    Quote Originally Posted by kristi View Post
    Maybe it's time for a new OSR-tutorial?
    Yes please, something step by step with a practical example would be wonderful for the modern day.

    I'm having a very hard time following the guides available

Page 9 of 9 FirstFirst ... 789

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
  •