Page 8 of 8 FirstFirst ... 678
Results 176 to 200 of 200

Thread: All-In-One RS3 and SRL6 Scripting Tutorial!

  1. #176
    Join Date
    Oct 2015
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Even though this guide looks great, It hasn't been updated in more than 8 months. Does that still make it relevant or no? RS3 had lots of changes since this guide was last updated, such as the new loot system.

  2. #177
    Join Date
    Feb 2012
    Location
    Canada
    Posts
    1,164
    Mentioned
    26 Post(s)
    Quoted
    433 Post(s)

    Default

    Quote Originally Posted by Officer View Post
    Even though this guide looks great, It hasn't been updated in more than 8 months. Does that still make it relevant or no? RS3 had lots of changes since this guide was last updated, such as the new loot system.
    Its all still good!

  3. #178
    Join Date
    Dec 2011
    Posts
    2,147
    Mentioned
    221 Post(s)
    Quoted
    1068 Post(s)

    Default

    Quote Originally Posted by Officer View Post
    Even though this guide looks great, It hasn't been updated in more than 8 months. Does that still make it relevant or no? RS3 had lots of changes since this guide was last updated, such as the new loot system.
    SRL-6 has been constantly updated for any changes to RS3, and everything taught in this guide is still very current

  4. #179
    Join Date
    May 2013
    Posts
    30
    Mentioned
    0 Post(s)
    Quoted
    10 Post(s)

    Default

    Thank you for the tutorial. I am currently working on a script of my own.

  5. #180
    Join Date
    Dec 2015
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Click Extensions -> View -> Enable DTM Editor. Then click Tools -> DTM editor.

    It should be Click View -> Extensions -> Enable DTM Editor

  6. #181
    Join Date
    Dec 2015
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Sorry to keep bugging but to find the matching DTM , it should be Image -> Show Matchig DTMs, not Click DTM -> Show matching DTMs

  7. #182
    Join Date
    Dec 2015
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    The thing that I am most confused about is finding the height and width of the Deposit box. I know that you have the height as 50 pixel and width as 30 pixel but I used the DTM in Simba to get the TPoints of the top and bottom, and used a calculator so calculate the distance between two coordinate, and I did it similarly for the width as well, and my height and width were 40ish and 19ish respectively. Is there any other way to calculate it since my calculation seems to be off than what you have.

  8. #183
    Join Date
    Feb 2015
    Posts
    422
    Mentioned
    41 Post(s)
    Quoted
    226 Post(s)

    Default

    Quote Originally Posted by jcbird View Post
    The thing that I am most confused about is finding the height and width of the Deposit box. I know that you have the height as 50 pixel and width as 30 pixel but I used the DTM in Simba to get the TPoints of the top and bottom, and used a calculator so calculate the distance between two coordinate, and I did it similarly for the width as well, and my height and width were 40ish and 19ish respectively. Is there any other way to calculate it since my calculation seems to be off than what you have.
    Hey, so when thinking about 'object' width and height, you have to think of it like this. These dimensions are not the dimensions that simba will look for, but when simba finds all the pixels that match the colors you have selected and groups them, it will group them to boxes a maximum dimension of what you decided. so lets say you set it 50x50, but simba ONLY finds the colors in an area that is 20x20 then the box that you will click will only be 20x20. However, if simba finds the colors everywhere around the screen, then it will group all that are a maximum of 50x50 pixels from the first point with the color detected from the TOP LEFT of the screen. The whole point is, the purpose of the height and the width arent for the exact height and width of the object, it is the maximum dimensions you want simba to cut off neighboring matching colors and create new "click boxes". if set too small, it might detect alot of tiny click boxes to look through, and if set too big, the object you're looking for might be grouped with other irrelevant neighboring matching colors, and you end up with a false negative.

    This all has to do with TPAs and ATPAs, and there are other ways to sort this kind of stuff. If you want me to go into more detail, feel free to add me on skype and I'll try and help you understand as much as I can.

    If you would rather ask here, then also feel free to do so, but make sure you quote me so I get a notification!

    Also, Welcome to Villavu!!!

  9. #184
    Join Date
    Dec 2015
    Posts
    9
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by fady View Post
    Hey, so when thinking about 'object' width and height, you have to think of it like this. These dimensions are not the dimensions that simba will look for, but when simba finds all the pixels that match the colors you have selected and groups them, it will group them to boxes a maximum dimension of what you decided. so lets say you set it 50x50, but simba ONLY finds the colors in an area that is 20x20 then the box that you will click will only be 20x20. However, if simba finds the colors everywhere around the screen, then it will group all that are a maximum of 50x50 pixels from the first point with the color detected from the TOP LEFT of the screen. The whole point is, the purpose of the height and the width arent for the exact height and width of the object, it is the maximum dimensions you want simba to cut off neighboring matching colors and create new "click boxes". if set too small, it might detect alot of tiny click boxes to look through, and if set too big, the object you're looking for might be grouped with other irrelevant neighboring matching colors, and you end up with a false negative.

    This all has to do with TPAs and ATPAs, and there are other ways to sort this kind of stuff. If you want me to go into more detail, feel free to add me on skype and I'll try and help you understand as much as I can.

    If you would rather ask here, then also feel free to do so, but make sure you quote me so I get a notification!

    Also, Welcome to Villavu!!!
    Thank you for the info! I got the general idea from your info. I am still doing the tutorial so, if i need anything, i will definitely let you know. I have added you as a friend and will send you the Skype details when i get more advanced.
    Last edited by jcbird; 12-26-2015 at 06:51 AM.

  10. #185
    Join Date
    Dec 2011
    Location
    GODKasi's cave.
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Thanks a lot for this guide! Finally I'll be able to start scripting. :')

  11. #186
    Join Date
    Mar 2016
    Posts
    2
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help

    I'm very new to this and Im using ur guide to try and make my simple bot.
    its a clanwars bot all i need it to do is walk in and when it dies it repeats. So far i've did the path thing for both clanwars lobby and actual clanwars i also just did the dtm, but my issue is i keep getting a error as soon as my character enters saying "------ TRSLobby.findPlayButton(): result = False"
    it starts of with a true and then it keeps saying false. How do i fix this?

    Thankyou

  12. #187
    Join Date
    Apr 2016
    Posts
    1
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thanks for this guide mate. This would be my first venture into programming anything.( I did some CE scripts for a couple of games but that's it).

    Followed the guide, though not for mining Clay* but to do red chins in feldip hills. Had a couple of hiccups but after an hour and a half I figured most of it out.

    I have to say that I'm having a lot of fun doing this. I'll venture out and try to do more scripts for myself. Maybe a Seren harp script if it's at all feasable.

    I'll ask around if I need any help though. Catch ya'll laters. Off to try some stuff \o/
    Last edited by Manthur; 04-16-2016 at 09:49 PM.

  13. #188
    Join Date
    Oct 2016
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    I got what i consider a serious problem . i can't make the map pathing system work at all.. i choose a okay path but it does always end up like 1-2minimaps away? >.<

  14. #189
    Join Date
    Oct 2016
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    This is a picture of where my character ended up (i stopped him before he moved any further..)
    xo9ana.png

  15. #190
    Join Date
    Oct 2016
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    These are images of my character position ( stopped him before he moved even further away) and my SPS map ..

    1btuos.png
    xo9ana.png


    Close to giving up sadly.. i would enjoy this insanely to create my own shit but guess i'll have to stick to leeching for now ... can't really be arsed i struggled with it for like 2-3hours now can't figure out what im doing wrong , tried with like 400 dots on the map or larger distances between, new pictures etc.. none worked =(
    Last edited by Dequality; 10-22-2016 at 03:30 PM.

  16. #191
    Join Date
    Oct 2012
    Posts
    1,258
    Mentioned
    40 Post(s)
    Quoted
    588 Post(s)

    Default

    Quote Originally Posted by Dequality View Post
    These are images of my character position ( stopped him before he moved even further away) and my SPS map ..

    1btuos.png
    xo9ana.png
    try out a larger SPS map

  17. #192
    Join Date
    Oct 2016
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by acow View Post
    try out a larger SPS map
    Just tried this .. didnt work =(
    iV2jhO.png


    Also tried this now
    http://imageshack.com/a/img923/4640/oezqhg.gif
    Last edited by Dequality; 10-22-2016 at 03:44 PM.

  18. #193
    Join Date
    Oct 2012
    Posts
    1,258
    Mentioned
    40 Post(s)
    Quoted
    588 Post(s)

    Default

    @Justin; is the forum software hiding posts? Second time in a few days now that I got notifications w/ no new post to check out.

    Just now on this thread:
    http://i.imgur.com/OZq01kL.png
    http://i.imgur.com/nchqmc0.png

    2 days ago:
    http://i.imgur.com/D1wjO05.png
    http://i.imgur.com/qsEZE0k.png

    Seems like something needs to be fixed on the forums auto moderating ^^

    e: a user to check out https://villavu.com/forum/member.php?u=162347

  19. #194
    Join Date
    Oct 2016
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Tried this now.. ( doing the Clay one now... ) made the deposit box work but can't make this work -_-'

    d0hsL69.png

  20. #195
    Join Date
    Oct 2016
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Yet another fail try.. someone please help me .. i made a huge SPS but still not reaching the point.. =(

    g3chNDk.png

  21. #196
    Join Date
    Oct 2016
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Question is it really that important the SPS size?I mean I tried both bigger and smaller but none gets me to the spot i actually chose as end point in SPS



    EDIT: Was thinking is it possible to just open up the world map and take a snapshot from there and use it or? Ain't home so can't test it just came to my mind
    Last edited by Dequality; 10-22-2016 at 06:24 PM.

  22. #197
    Join Date
    Oct 2016
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Okay, so i made the SPS' work, and rest of it worked as well, is it possible someone will check my script through can't seem to find the error? it wont walk to the deposit box.

    QVh6peG.png


    Code:
    program scriptTemplate;
    
    {$DEFINE SMART}              // Always have this to load smart
    {$I SRL-6/SRL.simba}         // To load the SRL include files
    {$I SPS/lib/SPS-RS3.Simba}   // To load the SPS include files
    
    procedure declarePlayers();
    begin
      setLength(players, 1);
      with players[0] do
      begin
        loginName := 'USER';
        password := 'PASS';
        isActive := true;
        isMember := false;
      end
      currentPlayer := 0;
    end;
    
    procedure tpToVarrock();
    var
     p: TPoint;
    begin
    if not isLoggedIn() Then
        exit;
      repeat
        lodestoneScreen.teleportTo(LOCATION_PORT_SARIM);
        wait(randomRange(14500, 16000));
    
      until (not isLoggedIn()) or minimap.findSymbol(p,MM_SYMBOL_SHOP_FISHING, minimap.getBounds());
    end;
    
    procedure runToClay
    var
      pathToMine: TPointArray;
    
    begin
      if not isLoggedIn() Then
        exit;
      pathToMine := [[213, 225], [198, 183], [189, 124], [172, 87], [130, 69], [78, 59], [40, 70], [47, 108], [70, 118], [80, 123]];
    
      if SPS.walkPath(pathToMine) Then
        minimap.waitPlayerMoving()
      else
        writeLn('We failed to walk to the clay');
    end;
    
    procedure mineRocks();
    var
      x, y, i: Integer;
      TPA: TPointArray;
      ATPA: T2DPointArray;
      mineTimer: TTimeMarker;
    begin
      if not isLoggedIn() Then
        exit;
      mineTimer.start();
    
      repeat
    
        findColorsSpiralTolerance(x, y, TPA, 4298938, mainScreen.getBounds(), 6, colorSetting(2, 0.48, 1.38));
    
        if (Length(TPA) < 1) then
          exit;
    
          ATPA := TPA.toATPA(30, 30);
          ATPA.filterBetween(0, 10); //I added this line
          ATPA.sortFromMidPoint(mainscreen.playerPoint);
          smartImage.debugATPA(ATPA);
    
          for i := 0 to high(ATPA) do
        begin
          mouse(middleTPA(ATPA[i]), MOUSE_MOVE);
          if isMouseOverText(['Clay', 'lay'], 500) Then
          Begin
            fastClick(MOUSE_LEFT);
            smartImage.clear;
            break;
          end;
        end;
        tabBackpack.waitForShift(5000);
        claimSpinTicket();
      until tabBackpack.isFull() or (mineTimer.getTime() > 30000);
    end;
    
    procedure tpToPortSarim();
    var
      pathToDepositBox: TPointArray;
      p: TPoint;
    begin
      if not isLoggedIn() Then
        exit;
      repeat
        lodestoneScreen.teleportTo(LOCATION_PORT_SARIM);
        wait(randomRange(16000, 19000));
    
      until (not isLoggedIn()) or minimap.findSymbol(p,MM_SYMBOL_SHOP_FISHING, minimap.getBounds());
    
       pathToDepositBox := [[212, 224], [247, 222], [278, 207], [279, 171], [281, 136], [326, 134], [369, 137]];
    
      if SPS.walkPath(pathToDepositBox) Then
        minimap.waitPlayerMoving()
      else
        writeLn('We failed to walk to the deposit box =(');
    end;
    
    procedure depositClay();
    var
      bankTimer: TTimeMarker;
    
    begin
      if not isLoggedIn() then
        exit;
    
      if depositBox.isOpen() then
      begin
    
        bankTimer.start();
    
        repeat
          if (depositBox.count > 0) then
          begin
            depositBox.quickDeposit(QUICK_DEPOSITBOX_INVENTORY);
            wait(gaussRangeInt(500, 750));
          end;
        until(depositBox.isEmpty()) or (not isLoggedIn()) or (bankTimer.getTime() > 10000);
    
      end;
    
      depositBox.close();
    
    end;
    
    procedure findDepositBox();
    var
      x, y, i: Integer;
    begin
      if not isLoggedIn() Then
        exit;
      repeat
        mainscreen.findObject(x, y, 4411742, 7, colorSetting(2, 0.22, 1.75), mainscreen.playerPoint, 30, 50, 50, ['eposit', 'box'], MOUSE_LEFT); // 4872552, 5, colorSetting(2, 1.50, 0.34)
        wait(randomRange(1000, 2500));
        inc(i);
      until depositBox.isOpen() or (i >= 15);
    end;
    
    // main loop
    begin
      clearDebug();               // Clear the debug box
      smartEnableDrawing := true; // So we can draw on SMART
      setupSRL();                   // Load the SRL include files
      declarePlayers();             // Set up your username/pass
    
      //SPS.setup('PORT_SARIM', RUNESCAPE_OTHER); // My SPS Map for Clay
      SPS.setup('PORT_SARIM_MAP', RUNESCAPE_OTHER); // My SPS Map for Clay
      repeat
        if not isLoggedIn() then             // If player isn't logged in then
      begin
        players[currentPlayer].login();   // Log them in
        exitTreasure();            // Exit treasure hunter
        minimap.setAngle(MM_DIRECTION_NORTH);  // Make compass north and angle high
        mainScreen.setAngle(MS_ANGLE_HIGH);
      end;
      if tabBackpack.isFull() then
       begin
        tpToPortSarim();
        findDepositBox();
        depositClay();
       end;
    
        tpToVarrock();
        runToClay();
        mineRocks();
       until(false);
    end.

    If i aint allowed to post it here lmk just thought it would be easiest as the creator of the tutorial is here lol

    Dequality

  23. #198
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default

    Quote Originally Posted by acow View Post
    @Justin; is the forum software hiding posts? Second time in a few days now that I got notifications w/ no new post to check out.

    Just now on this thread:
    http://i.imgur.com/OZq01kL.png
    http://i.imgur.com/nchqmc0.png

    2 days ago:
    http://i.imgur.com/D1wjO05.png
    http://i.imgur.com/qsEZE0k.png

    Seems like something needs to be fixed on the forums auto moderating ^^

    e: a user to check out https://villavu.com/forum/member.php?u=162347
    The spam filter was picking them up as spam. I've set 2 users bypass this filter.

    Forum account issues? Please send me a PM

  24. #199
    Join Date
    Oct 2016
    Posts
    18
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

    Quote Originally Posted by Justin View Post
    The spam filter was picking them up as spam. I've set 2 users bypass this filter.
    Sorry if it was spam like

  25. #200
    Join Date
    Dec 2016
    Posts
    6
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Thx for this great tutorial!

Page 8 of 8 FirstFirst ... 678

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
  •