# Thread: [AeroLib] Master Farmer Thiever (1st script)

1. ## [AeroLib] Master Farmer Thiever (1st script)

Master Farmer Thiever

Background

This script is really just a compilation of what I have learned over the past couple weeks (really starting to get into learning how to script). Please leave positive feedback and constructive criticism. If you know a better way on how to go about a certain script procedure please do not hesitate to tell me, I love to learn.

What it does

- Pickpockets the Master Farmer in draynor village for seeds and xp
- Eats food (supports lobster, tuna, swordfish, trout, salmon, and shark)
- Banks
- Usually knows when stunned and waits
- Decent Anti Ban

Requirements

- 38 Thieving

Instructions

- Start script at draynor bank
- *Important* do not wear anything yellow (interferes with stun detection)
- *Important* make sure withdraw-x is set to withdraw-8, and make sure food is visible in bank

Credits

- Hoodz for letting me use his eating procedure
- Jelknab's script for inspiring me to make my own working one (and borrowing some pick pocketing logic from his)

To do

- Proggy
- Better Stun detection
- Even more Randomized walking

2. SRL Junior Member
Join Date
Mar 2013
Location
Earth some place
Posts
108
Mentioned
2 Post(s)
Quoted
66 Post(s)
Nice release man! I'll give her a shot later and see how it is running. Good to see a thieving script :] good work man.

3. And I just made my silk stealer... I'll be using this Congratulations on your first release!

4. SRL Junior Member
Join Date
Apr 2013
Posts
680
Mentioned
13 Post(s)
Quoted
341 Post(s)
Good Job on the Release. Will give this a go.

5. SRL Junior Member
Join Date
Oct 2006
Posts
313
Mentioned
0 Post(s)
Quoted
13 Post(s)
tested out this script, works great. noticed though a few times it could not find the bank and was hovering around the poll booth, script terminated due to unable to find bank. other than that works pretty well.

6. Originally Posted by sk80rdie76
tested out this script, works great. noticed though a few times it could not find the bank and was hovering around the poll booth, script terminated due to unable to find bank. other than that works pretty well.
Ah yeah that happened sometimes, the colors on it must have been similiar. You could increase the termination time to like 30 seconds instead of 10 to see if that helps, but if it keeps hovering the same object that isnt the bank then that wont help

7. Registered User
Join Date
Jul 2015
Posts
1
Mentioned
0 Post(s)
Quoted
1 Post(s)
It works very well for me. It ran for 2 hours and I stopped it myself. You should add a progress report to the script so we can post results here.

8. Originally Posted by rugby44
It works very well for me. It ran for 2 hours and I stopped it myself. You should add a progress report to the script so we can post results here.
extremely glad to hear that it helped someone, that means a lot to me. I plan on adding a progress report and maybe a seed counter when I get back from vacation, cheers

9. SRL Junior Member
Join Date
Apr 2014
Posts
321
Mentioned
0 Post(s)
Quoted
131 Post(s)
It's working really well. I've got it running for 4 or so hours atm. A break feature would complete this script nicely.

Here is a DTM for monkfish.

10. SRL Junior Member
Join Date
Feb 2013
Location
Vatican City
Posts
42
Mentioned
0 Post(s)
Quoted
17 Post(s)
Working great! Thanks a bundle!

11. Registered User
Join Date
Nov 2014
Posts
7
Mentioned
0 Post(s)
Quoted
3 Post(s)
+++Best working script ever :P

12. SRL Junior Member
Join Date
Apr 2014
Posts
321
Mentioned
0 Post(s)
Quoted
131 Post(s)
careful guys, I got a ban while using this script

4deacfca62222fc828e9f9b81e562273.png

The script itself, I don't think is detectable however...

I had the script running yesterday and i came back to it to find that one of the guards was attacking me while my character was trying to pickpocket the farmer. Incase you don't know, you cant pickpocket when being attacked. I think what happened was that the script miss clicked on a stall and the guard saw me. I'm not sure if I got reported or that the script was detected somehow by this event.

13. wow guys I am glad this is getting some use.. haven't been on the forums in a while, really want to update/improve my scripts but can't promise anything... Still want to add a seed counter and paint for this. Also maybe an in fight failsafe

14. Originally Posted by jstemper
wow guys I am glad this is getting some use.. haven't been on the forums in a while, really want to update/improve my scripts but can't promise anything... Still want to add a seed counter and paint for this. Also maybe an in fight failsafe
If you want to add some paint to this bad boy in Aerolib look at this post: https://villavu.com/forum/showthread...01#post1359301

I couldn't figure out how to do it (what the commands were) and Anth_ was nice enough to answer it for me.

15. Originally Posted by Dan the man
If you want to add some paint to this bad boy in Aerolib look at this post: https://villavu.com/forum/showthread...01#post1359301

I couldn't figure out how to do it (what the commands were) and Anth_ was nice enough to answer it for me.
that paint was made by me which anth edited hehe

16. Originally Posted by jstemper
that paint was made by me which anth edited hehe
Ahh very nice

It works a treat!

17. Registered User
Join Date
Nov 2015
Posts
8
Mentioned
0 Post(s)
Quoted
5 Post(s)
will use, just need to get the thieving level required lol

18. Registered User
Join Date
Dec 2015
Posts
10
Mentioned
0 Post(s)
Quoted
2 Post(s)
brilliant

19. SRL Junior Member
Join Date
Jan 2012
Location
Sweden
Posts
32
Mentioned
0 Post(s)
Quoted
20 Post(s)
Thank you very much for this script!

There were some problems, and I've made some really dirty quick fixes for a couple of them. The first problem was that the script wouldn't withdraw my sharks properly, so I used aerolib's withdrawItem function instead like this:

Code:
procedure sharkFix(); //Declare this wherever you want, eg. in SetUp

begin
sharks.Name := 'Shark';
sharks.DTM := DTMFromString('mlwAAAHicY2dgYDjPxMBwDIhPAvENIL4DZd8E4lmMDAzLgXgyEE8B4sVAPJsRIp4VZM2wpD0PTIe6WTHUpIcw9JXGM0yvTmOQBJqLCzPiwVAAAIfiEzQ=');
end;
Usage further down:

Code:
if FindDTM(FoodDTMs[z], x, y, msx1, msy1, msx2, msy2) then // <-- problem occurs here I think
begin
//HumanMMouse(Point(x, y), 4, 3);
//if WaitUpTextMulti(['Withdraw', '5'], 400) then
//fastClick(Mouse_Right);
//waitOption('Withdraw-8', 250);
WithdrawItem(sharks, 5);
break(); //stops the itteration if food is found and withrew.
end else if z=high(FoodDTMs) then
There was also a rather serious bug (actually a direct consequence of failing to withdraw food) causing the script to constantly click the deposit-all button. A simple condition to check if the inventory is empty or not should fix that:

Code:
if not(isInvEmpty) then
quickDeposit('inventory');
end;
Edit:

There is also a serious issue where the script will find the poll booth instead of the bank booth, and just spam right click it. The dirty solution to this would be to just rotate the screen so that the poll booth is not visible before banking, and I'm looking into how to achieve this atm.

Edit2: adding setAngle(1) right before the banking should do the job for now. This really needs a fix, though, as it's bannable behaviour. If you add this in the banking procedure, you'll probably also want to add setAngle(0) somewhere else, like in ToMarket.
Last edited by Heterodox; 02-21-2016 at 12:00 AM.

20. Registered User
Join Date
Jan 2016
Posts
1
Mentioned
0 Post(s)
Quoted
0 Post(s)
I can not understand why in all the existing scripts and for having shown me this error and I can not solve
https://gyazo.com/ec15bd2a52b4fae9cf7b1904d677af1c

21. SRL Junior Member
Join Date
May 2013
Posts
204
Mentioned
1 Post(s)
Quoted
85 Post(s)
good script can be a bit better with the antiban i think

22. I really need to update this

23. Registered User
Join Date
Nov 2015
Posts
3
Mentioned
0 Post(s)
Quoted
3 Post(s)
When i press play i get
"Error: Expected variable of type "Int32", got "AnsiString" at line 510, column 13 at line 510"

24. Registered User
Join Date
Feb 2017
Posts
2
Mentioned
0 Post(s)
Quoted
0 Post(s)
Same. Would be great to see this fixed/update^

25. Registered User
Join Date
Aug 2017
Posts
7
Mentioned
0 Post(s)
Quoted
1 Post(s)
Tested, seems to be going ok so far!