1. ## [SRL][OSRS] Falador Flax Spinner

By StickToTheScript
Version 1.1

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.
Last edited by StickToTheScript; 03-22-2018 at 02:44 AM.

2. 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. Originally Posted by Dan the man
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. Looks nice. Nice to see my work helped you.

5. Registered User
Join Date
Aug 2017
Posts
25
Mentioned
0 Post(s)
Quoted
9 Post(s)
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. Originally Posted by justforfun
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.

7. Registered User
Join Date
Aug 2017
Posts
25
Mentioned
0 Post(s)
Quoted
9 Post(s)
Originally Posted by slacky
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. Registered User
Join Date
Mar 2018
Posts
27
Mentioned
0 Post(s)
Quoted
4 Post(s)
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. Originally Posted by Nixes
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. Registered User
Join Date
Mar 2018
Posts
27
Mentioned
0 Post(s)
Quoted
4 Post(s)
Originally Posted by StickToTheScript
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. Originally Posted by StickToTheScript
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.

12. Originally Posted by slacky
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.

Originally Posted by Nixes
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. Registered User
Join Date
Oct 2011
Location
VA
Posts
14
Mentioned
0 Post(s)
Quoted
1 Post(s)
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. SRL Junior Member
Join Date
Feb 2013
Posts
463
Mentioned
5 Post(s)
Quoted
219 Post(s)
It's using up to date includes so should be fine, give it a go

15. SRL Junior Member
Join Date
Apr 2012
Posts
108
Mentioned
1 Post(s)
Quoted
21 Post(s)
Originally Posted by bab22
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

##### 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
•