Results 1 to 15 of 15

Thread: [SRL][OSRS] Falador Flax Spinner

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

    Default [SRL][OSRS] Falador Flax Spinner

    Falador Flax Spinner
    By StickToTheScript
    Version 1.1

    About The Script:
    A fairly simple flax spinner that banks at Falador east bank and spins the flax at the spinning wheel in south Falador.
    This script uses the SRL & RSWalker includes.

    Features:
    - Accurate object finding using a combination of RSWalker and the SRL includes.
    - Antiban (Feel free to customize to your own liking).
    - Multiple breaks to allow the script to be run for days.

    Requirements:
    - The most recent version of the SRL Include
    - The most recent version of the RSWalker Include
    - Simba 1.2 or Higher
    - Make sure to have the 'Falador.png' downloaded from the bottom of this thread and place it in 'C:\Simba\Includes\RSWalker\maps'.

    Setup:
    - Download the script from the bottom of the thread.
    - Be sure to have the 'Falador.png' downloaded and placed in 'C:\Simba\Includes\RSWalker\maps'.
    - Fill out the player info in the script.
    - Make sure to set the brightness to maximum and be zoomed all of the way out.
    - Make sure to locate yourself somewhere between the Falador spinning wheel and the Falador east bank.
    - Have Flax in the right corner of the bank (Slot 7).
    - Start the script.

    Changelog:
    - V1.0: Initial Release
    - V1.1: Added ability to find flax in any visible location in the bank via DTMs.

    Extra Information:
    - I understand this is also a 'Money Making' script, but since I made it to get crafting levels, I decided to place it here.
    - Please use at your own risk. Spinning flax has a fairly high ban rate.
    - If you happen to have any questions, comments, or the bot happens to become outdated, please post here.

    You can find the needed files on the GitHub page, or you can download them below.
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by StickToTheScript; 03-22-2018 at 02:44 AM.

  2. #2
    Join Date
    Jan 2012
    Location
    Sydney, Australia
    Posts
    877
    Mentioned
    12 Post(s)
    Quoted
    368 Post(s)

    Default

    Looks good mate. Very clean.

    Would it be worth changing the slot banking to actively find the DTM?
    Flax is fairly unique and you have already created a DTM for inventory use.
    Could also enable tab banking with this as well if the user didn't want to rearrange their bank.

    Nice work

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

    Default

    Quote Originally Posted by Dan the man View Post
    Looks good mate. Very clean.

    Would it be worth changing the slot banking to actively find the DTM?
    Flax is fairly unique and you have already created a DTM for inventory use.
    Could also enable tab banking with this as well if the user didn't want to rearrange their bank.

    Nice work
    Ha ha. Thanks!

    Those ideas were my initial thoughts, but I had used this to attempt to get the feeling for the include and to see what was all built in and how well it all worked. I'll happily add those to the next version.

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

    Default

    Looks nice. Nice to see my work helped you.
    !No priv. messages please

  5. #5
    Join Date
    Aug 2017
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Nice work man.

    How do you find the map for falador, without all the symbols? I need maps for dwarven mines, which is underground and cant seem to find one with adequate pixels and without symbols.

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

    Default

    Quote Originally Posted by justforfun View Post
    Nice work man.

    How do you find the map for falador, without all the symbols? I need maps for dwarven mines, which is underground and cant seem to find one with adequate pixels and without symbols.
    underground.png is included in RSWalker, which contains the dwarven mine.
    In the map folder you can also find a script, MapGrabber.simba, which you can run to grab 410x410 clean map pieces, which you can then combine into a larger map using what ever image editor you have.

    Tho, just to be clear symbols themself are probably not an issue, in fact at times they can help.
    Last edited by slacky; 03-22-2018 at 09:00 AM.
    !No priv. messages please

  7. #7
    Join Date
    Aug 2017
    Posts
    25
    Mentioned
    0 Post(s)
    Quoted
    9 Post(s)

    Default

    Quote Originally Posted by slacky View Post
    underground.png is included in RSWalker, which contains the dwarven mine.
    In the map folder you can also find a script, MapGrabber.simba, which you can run to grab 410x410 clean map pieces, which you can then combine into a larger map using what ever image editor you have.

    Tho, just to be clear symbols themself are probably not an issue, in fact at times they can help.
    Nice, The script im talknig about is your miner. I used it in mining guild extension and it breaks because the map saved by config is not of the dwarven mines. i have tried it again and again but still doesnt work. So i will save the config and manually update the map to that of dwarven mines.

    If you can try to make a config and see if it works for you, will be helpful.

  8. #8
    Join Date
    Mar 2018
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    I tried this script out. It seemed great, but it gave me error after 15 minutes like this. When I logged in it was near a Spinning wheel. I try again, maybe now works better.
    |- Time Running: 15m 44s
    |- Strings Made: 195
    |- XP Gained: 2925
    |- Strings/Hour: 743
    |- XP/Hour: 11145.1
    |- Time Since Break : 15m 42s
    Terminating script: Could not find bank.
    Successfully executed.

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

    Default

    Quote Originally Posted by Nixes View Post
    I tried this script out. It seemed great, but it gave me error after 15 minutes like this. When I logged in it was near a Spinning wheel. I try again, maybe now works better.
    |- Time Running: 15m 44s
    |- Strings Made: 195
    |- XP Gained: 2925
    |- Strings/Hour: 743
    |- XP/Hour: 11145.1
    |- Time Since Break : 15m 42s
    Terminating script: Could not find bank.
    Successfully executed.
    Interesting. It could be that I didn't have my failsafe for checking its location built into that script. I might push that update.

    Anyways, let me know how it goes. I'd recommend observing it for a while and see if it happens again. I was able to get my initial version running for almost a full day and it only stopped because I forced it, so I cannot say I have come across this problem.

  10. #10
    Join Date
    Mar 2018
    Posts
    34
    Mentioned
    0 Post(s)
    Quoted
    5 Post(s)

    Default

    Quote Originally Posted by StickToTheScript View Post
    Interesting. It could be that I didn't have my failsafe for checking its location built into that script. I might push that update.

    Anyways, let me know how it goes. I'd recommend observing it for a while and see if it happens again. I was able to get my initial version running for almost a full day and it only stopped because I forced it, so I cannot say I have come across this problem.
    I tried running the script once more and it ran for over 45 minutes. I then ran out of flax to spin. So it seemed to be working flawlessly this time around.

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

    Default

    Quote Originally Posted by StickToTheScript View Post
    Interesting. It could be that I didn't have my failsafe for checking its location built into that script. I might push that update.

    Anyways, let me know how it goes. I'd recommend observing it for a while and see if it happens again. I was able to get my initial version running for almost a full day and it only stopped because I forced it, so I cannot say I have come across this problem.
    A trick I at times use is to throw a small loop around the walking like so:
    Simba Code:
    function TRSWalker.WalkPath2(Path: TPointArray; Tries:Int32=3): Boolean;
    begin
      for 1 to Tries do
        if Self.WalkPath(Path) then
          Exit(True)
        else
          Wait(600,900);
    end;

    Now it can be used like:
    Simba Code:
    if not Walk.WalkPath2(pBank) then
      TerminateScript('[pBank] Failed to walk path');

    because, it does happen that walking just fails on a rare occation, but it's able to recover if you just wait a little and retry.

    Edit: I can probably add this directly to RSWalker
    Last edited by slacky; 04-22-2018 at 09:34 AM.
    !No priv. messages please

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

    Default

    Quote Originally Posted by slacky View Post
    A trick I at times use is to throw a small loop around the walking like so:
    Simba Code:
    function TRSWalker.WalkPath2(Path: TPointArray; Tries:Int32=3): Boolean;
    begin
      for 1 to Tries do
        if Self.WalkPath(Path) then
          Exit(True)
        else
          Wait(600,900);
    end;

    Now it can be used like:
    Simba Code:
    if not Walk.WalkPath2(pBank) then
      TerminateScript('[pBank] Failed to walk path');

    because, it does happen that walking just fails on a rare occation, but it's able to recover if you just wait a little and retry.

    Edit: I can probably add this directly to RSWalker
    I wrote this function:

    Simba Code:
    function playerInArea(area : TPointArray): Boolean;
    var
      myPos: TPoint;
      areaBox: TBox;
    begin
      myPos := Walk.GetMyPos();
      areaBox := [area[0].X, area[0].Y, area[1].X, area[1].Y];
      if (myPos.InBox(areaBox)) then
      begin
        writeln('Player is in area!');
        Result := True;
      end else
        Result := False;
    end;

    which can be simplified to:
    Simba Code:
    function playerInArea(area : TPointArray): Boolean;
    var
      myPos: TPoint;
      areaBox: TBox;
    begin
      myPos := Walk.GetMyPos();
      areaBox := [area[0].X, area[0].Y, area[1].X, area[1].Y];
      Result := myPos.InBox(areaBox);
    end;

    Not the cleanest function (the first one is used for debugging purposes), but you pass it a TPointArray of two coordinates and it will check if it is inside the area. It uses your InBox function, but I just wanted to be able to pass TPAs since I dont need to do any conversions when using the path generators.

    I normally use this and a TTimeMarker so that I don't get caught in an infinite loop.

    Quote Originally Posted by Nixes View Post
    I tried running the script once more and it ran for over 45 minutes. I then ran out of flax to spin. So it seemed to be working flawlessly this time around.
    Cool! Good to hear!
    Last edited by StickToTheScript; 04-22-2018 at 09:48 AM.

  13. #13
    Join Date
    Oct 2011
    Location
    VA
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Anyone try this for a longer run recently, considering using this on an alt, but considering the last post was a year ago I'm a little leery

  14. #14
    Join Date
    Feb 2013
    Posts
    465
    Mentioned
    6 Post(s)
    Quoted
    221 Post(s)

    Default

    It's using up to date includes so should be fine, give it a go

  15. #15
    Join Date
    Apr 2012
    Posts
    108
    Mentioned
    1 Post(s)
    Quoted
    21 Post(s)

    Default

    Quote Originally Posted by bab22 View Post
    Anyone try this for a longer run recently, considering using this on an alt, but considering the last post was a year ago I'm a little leery
    I gave it a go on a throwaway a few months back and was permed the day after using it, ran for an hour or two so don't use it on an alt you're bothered about

Thread Information

Users Browsing this Thread

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

Tags for this Thread

Posting Permissions

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