SRL Archive - RS3 Outdated / Broken Scripts

The miller


kanah

2011-08-22 06:25:13

WORKING AS OF 6/30/12

This script grinds grain near lumbridge and makes flour; it works at about 108 flour/hr. (uses 120 pots an hour)

Please check it out, send me feedback.

WELCOME TO PROJECT STOP WORLD HUNGER
* THE MILLER *
* THE POT MAKER *
* THE LUMBRDIGE CHEF *
This is the first script in solving the hunger problem

THE MILLER:

INSTRUCTIONS:
* make sure player is either near beefy bill or grain field
* Have all the potnotes you will need in inventory
* Set up your player information and SRL Stats info
* Enter how many loads u want to do (in Const section)
* You can adjust the type of anti as well (in Const section)
* If the script fails it will create a bitmap of the failure
in the current directory
(This is optional, look in const TAKEPICTURE)
* YOU CAN ADJUST HOW LONG IS TOO LONG TO BE DOING A SINGLE TASK
adjust the TIMEOUT variable
* This is a stable release, multiple back up systems ensure no infinite loops
and time marking forces some production within a specified time
* SPS IS REQUIRED!
* Optional random fact generation

Revision Log:
Rev18 - SRL5 update

Rev17 - Updated SPS locations
- by-passed coin pouch problem (I count coins when selling pots)
- Updated LadderDTMs
- Even faster grinding now!! (I removed some randomness to help with miss clicks)

Rev16 - SRL Stats Added
- Added additional colors to mill and bill's cart records
- bug noticed: Sometimes pote notes are detected as small pots
(I think jagex got rid of the item size bug) No longer checking for
SmallPotDTM
- Made random fact generation and crash screen capture optional
- Changed how grinding is done

Rev15 - Bot Nuke updates

Rev14 - Added forced angle change in verifylocation
- Changed how middle ladder in mill is found


Rev13 - Top of mill detection made broader
- Another revision to buy pots, now it also tracks the coin gained during selling pots
- Extra click removed from pick grain!!
- Extra Failsafes added to collect flour (a loop counter and fixing pot dtm)
- Added Extra Step in walking to bill to force character to be on south side (can see door there)
- Finding bill's cart now clicks to the left of the cart

Rev12 - Minor bug fixes
- Check Screen Angle during every attempt to grind grain
- Revised buy pots to make sure 20 pots get purchased
- Double Checking in location Check if lost
- Collecting flower now looks for empty pots
- Script Checks for lack of pots in note form, if you run out it logs out
Rev11 - Changed some movement to SPS

Rev10 - Added more backups for getting into grain field
- Findobj now used for picking
- FindObjDTM for grinding now grinding

Rev9 - Added extra step to Walk2Bill (Sometimes the screen doesnt show the second dtm)
- Fine tuned the tolerances to improve reliability
- THIS VERSION PASSED THE ENDURANCE TESTS (consistantly operated successfully for an hour)


Rev8 - Multiplayer
- Breaking;
- Fixed WalkBill2Mill bug (Sometimes it walks around the river lum)
- Fixed Empty Pot bug
- Added more reliable climbing, backup location verification

Rev7.1 - fixed grinding bug

Rev7 - TIMING FAILSAFE!!!
- Progress Reports
- Adjusted some tolerances and LeverDTM
- Add Randomness to all wait calls
- Add randomness to Mouse
- Replace MoveMouse with MMouse

Rev6 - PUBLIC RELEASE 8/22/2011
- AntiBan and AntiRandom
- code cleaned up (erased old unused code)
- Additional Retries on getting to locations


—- Kanah —-

masterBB

2011-08-22 07:19:56

Wow, looks awesome! Fully color, I love it. Just one little thing, you used MoveMouse. This one is very detectable. Use MMouse(x,y,rx,ry) instead.

Will test this script tomorrow.

E: after looking some more at the code I can only see that this is an epic first script. Very cool. The only thing you should really improve is the randomness, which is pretty low. Jagex does keep track of it, so try to use a random wait at every wait call. But still awesome bro. Rep++

e: e:
If your curious about writing on scar I suggest to read Srl/srl/misc/Smart_Paint.scar. It got a few handy functions, to write text you can get the text tpa with LoadTextTPA(text,'StatChars',height). Useable fonts are 'Upchars','LowChars' and 'StatChars'.

procedure ProggieAddText(text:String;var bmp:Integer;x,y:Integer);
var
height:Integer;
TextPoints:TPointArray;
begin
TextPoints := LoadTextTPA(text,'StatChars',height);
OffsetTPA(TextPoints,Point(x,y));
DrawTPABitmap(bmp,TextPoints,1);
end;

procedure Proggie;
var
bmp:Integer;
begin
bmp := BitmapFromString(415,128, '');
RectangleBitmap(bmp,IntToBox(0,0,414,127),9746890);
ProggieAddText('Magic tree raper',bmp,5,5);
ProggieAddText('Current action: ' + Action,bmp,5,25);
ProggieAddText('Running for: ' + MsToTime(getSystemTime-ScriptTimer, Time_Bare),bmp,5,45);
ProggieAddText('Loads done: ' + IntToStr(Loads) + '(' + Int64ToStr((Loads * 60 * 60 )/((getSystemTime-ScriptTimer)/1000)) + 'an hour)',bmp,5,65);
ProggieAddText('Logs banked: ' + IntToStr(Logs) + '(' + Int64ToStr((Logs * 60 * 60 )/((getSystemTime-ScriptTimer)/1000)) + 'an hour)',bmp,5,85);
DrawBitmap(bmp,SMART_Canvas.canvas,8,345);
FreeBitmap(bmp);
end;
This is what I used in one my scripts.

Dynamite

2011-08-22 08:16:10

Wait wait wait.. You have a 2000 line grain grinder?






<3

Smarter Child

2011-08-22 08:21:22

From: Dynamite
Wait wait wait.. You have a 2000 line grain grinder?


You'd be surprised, its all coded pretty well ;)

Echo_

2011-08-22 08:21:25

This may be the greatest first script of all time!

Great work man, repped

Flight

2011-08-22 08:36:49

1 post and you came out with a all color script this big/complex? Am I the only curious one about this?

BraK

2011-08-22 08:39:10

It's being looked into already. ;)

~BraK

Dynamite

2011-08-22 08:42:14

He was on IRC, pretty sure it's not you know who ;)

-Boom

euphemism

2011-08-22 09:13:06

I would like to vouch for Kanah, as I sat next to him as he wrote every line of this script. He's got a masters in electrical engineering, and some programming background. So Flight, and Brak, I think you can lay your fears to rest. Good job on the release, Kanah.

Edit: Smarter_Child, you didn't quote Dynamite's whole post:

Wait wait wait.. You have a 2000 line grain grinder?






<3

kanah

2011-08-22 09:20:40

Euphemism: When are you going to post your first script?

MasterBB: Thanks for the heads up on MMouse(), and adding randomness to my waits.

To all: Thanks for taking the time to look at my script. I look forward to seeing bot armies combing through the grain field. BTW the hardest part of testing this script was getting enough pots. NO ONE sells pots on the GE. So if anyone has pots, sell em.

E: Also, where do yall get those cool profile pics/Avatars.

E:E: A pot maker is planned for my next script as part of the series stated above. But which is better to make pots at, the barbarian village or the crafting guild?

euphemism

2011-08-22 09:21:45

When I get it finished, of course. We definitely need to find a source for pots.

Harry

2011-08-22 09:27:03

From: kanah
Also, where do yall get those cool profile pics/Avatars.

SRL Members get access to them.
From: euphemism
When I get it finished, of course. We definitely need to find a source for pots.

I'm pretty sure you can make them on F2P at the Barbarian Village. Mine the clay there, use it on the well there, and then fry it. Hey, that'd be a good idea for your script, no requirements and could make some money (though not sure about how many bots currently do that on F2P) ;)

Wonderful looking script though, keep it up.

bolshak25

2011-08-22 11:02:30

quick question, being i have 17k pots, and am going to be adding 27k to that, how fast would this script fill these pots?

kanah

2011-08-22 11:54:18

From: bolshak25
quick question, being i have 17k pots, and am going to be adding 27k to that, how fast would this script fill these pots?


Well this is the first release of the script so I have not yet added a calculation to see how fast it will fill those pots. Also the longest I've gotten Rev6 to run is 10 loads of flour which i believe took an hour. It will be a fairly slow process; a rough guess is about 200/hr, but after bill takes his cut you'll be banking 180/hr.

E: You'll be looking at 135 hours at this rough guess; but the best part about grinding grain is the lack of skill requirement so if you have a bot army you can mow through that pretty quickly.

E: E: At 180 flour/hr becomes 11,520 coin/hr profit at the current market price of flour after buying pots at ge.

EEE: Now with Rev9, a timer allows better caluculation of speed, sigh it is pretty slow, a new estimate is 108 flour per hour (about 6 complete cycles)

Jakkle

2011-08-22 13:34:04

For your first script this is absolutely amazing. You are going to get places fast ;) if you were to apply for members with this script you would be 100% in, in my eyes. I love how you comment pretty much everything, that will help many people understand what your script is doing and what the functions/procedures are doing, so easier to learn scripting in colour.

I really can't wait to see your next script keep up the AMAZING work :D

Echo_

2011-08-22 15:30:03

From: kanah
E:E: A pot maker is planned for my next script as part of the series stated above. But which is better to make pots at, the barbarian village or the crafting guild?


Draynor Village has a spinning wheel and pottery furnace, I'm pretty sure it's faster crafting pots there than at Barbarian Village.

Home

2011-08-22 15:33:52

This is kinda offtopic but I love your Draw Star Function :)!


~Home

Coh3n

2011-08-23 01:02:28

Very very nice to see a 100% color script. You don't see too many of those now-a-days. ;)

euphemism

2011-08-23 09:24:51

From: Coh3n
Very very nice to see a 100% color script. You don't see too many of those now-a-days. ;)


See? What did I tell you, kanah? Everyone appreciates a color script.

Main

2011-08-23 09:53:27

From: Jakkle
if you were to apply for members with this script you would be 100% in

Got my vote too, heck lets just make this guy mem right now :P


BTW, you should try to be more active in this community, try some of other people's scripts and comment on them. Get a variety of knowledge:)

King of the Nites

2011-08-23 22:12:57

There is also a pottery wheel and oven right by the Varrock East bank. There's also a well so if you wanted you could buy the clay, soften it in the well and then craft it and heat it and bank. Also, I'll buy all pots of flour (Its hard to buy on GE :()!!!

~King of the Nites

bolshak25

2011-08-23 23:05:53

yeah id suggest varrock east bank to the pottery house to make things, really fast. ill probably test this out if nobody buys my 35k pots.

im also interested in buying pots of flour

repahu

2011-09-03 19:01:58

Really nice script containing all the coding standards.
Just a few advices:
Use Inc(a) instead of a:=a+1;, it is more comfortable. a:=a+x; >> IncEx(a,x)
(MMX2+MMX1)/2 is equivalent with MMCX, same with Y
Your DistanceToDTM function seems to fail when map is rotated(even in small angles), cause it has no support for rotated map, you should use FindDTMRotated here as in your other functions. Better if you check more DTM-s for locating on MM cause one will sometimes fail.
I hope that i helped a bit.

kanah

2011-10-28 11:36:32

OMG FINALLY DONE WITH THIS SCRIPT!!! Now I'm applying for SRL membership!

I got really depressed when my laptop got stolen and I had to redo allot of my work (I lost all work that wasnt already on SRL) btw my stolen computer is a 16in macbook pro serial number W88129SMYJX, just in case you find it.

litoris

2011-10-28 11:51:48

From: kanah
OMG FINALLY DONE WITH THIS SCRIPT!!! Now I'm applying for SRL membership!

I got really depressed when my laptop got stolen and I had to redo allot of my work (I lost all work that wasnt already on SRL) btw my stolen computer is a 16in macbook pro serial number W88129SMYJX, just in case you find it.


gf 2000$=4 bil

Hope to see more scripts from you!

kanah

2011-12-17 04:46:14

Updated with the recent SPS paths and coin pouch.

YoHoJo

2011-12-17 04:48:28

Moved On Request. Enjoy.

kanah

2011-12-17 04:49:50

whoops during the move I double posted

funnyman9292

2011-12-18 11:31:01

Mad props on the world hunger series, everything works close to flawless!

VastlySuperior

2012-06-29 15:57:10

Hi kanah

I`m brand new to scripting and srl and simba as a whole. I was looking through the scripts available for download and I found your potter and Miller and it was something I could really use. I downloaded it and started to try and execute it but apparently there were a new version released of simba and srl. So a lot of the code gives errors, I tried to fix them but I just don`t know enough.

Is there a possibility that you will update these scripts.

Thanks in advance.

kanah

2012-06-29 17:42:47

From: VastlySuperior
Hi kanah

I`m brand new to scripting and srl and simba as a whole. I was looking through the scripts available for download and I found your potter and Miller and it was something I could really use. I downloaded it and started to try and execute it but apparently there were a new version released of simba and srl. So a lot of the code gives errors, I tried to fix them but I just don`t know enough.

Is there a possibility that you will update these scripts.

Thanks in advance.


Yes it should be a simple fix; I'll work on it and send you a pm when I've updated the script. I haven't been scripting much since i switched to linux.

VastlySuperior

2012-06-30 03:44:36

From: kanah
Yes it should be a simple fix; I'll work on it and send you a pm when I've updated the script. I haven't been scripting much since i switched to linux.


Thanks for your time and effort. Will appreciate the pm.

kanah

2012-06-30 23:03:34

LOL they moved the levers around in the grinding area

And they got rid of the annoying gate that gave me the most trouble when writing this script

kanah

2012-07-01 00:35:41

Updated to SRL5!!! I only did an hour of testing; there are some problems with buying and selling of pots but it shouldn't crash the program. Sometimes he'll just try to buy more than he needs.

Also there's some errors in location detection: so start in the grain field.