Page 1 of 2 12 LastLast
Results 1 to 25 of 34

Thread: The miller

  1. #1
    Join Date
    Mar 2011
    Location
    Oklahoma
    Posts
    98
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default The miller

    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 ----
    Last edited by kanah; 07-01-2012 at 04:33 AM.

  2. #2
    Join Date
    Oct 2006
    Location
    Netherlands
    Posts
    3,285
    Mentioned
    105 Post(s)
    Quoted
    494 Post(s)

    Default

    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'.

    Simba Code:
    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.
    Last edited by masterBB; 08-22-2011 at 11:34 AM.
    Working on: Tithe Farmer

  3. #3
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

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






    <3

  4. #4
    Join Date
    Jul 2008
    Location
    Canada
    Posts
    1,612
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Dynamite View Post
    Wait wait wait.. You have a 2000 line grain grinder?
    You'd be surprised, its all coded pretty well

  5. #5
    Join Date
    Jan 2011
    Location
    Denver, CO
    Posts
    1,351
    Mentioned
    2 Post(s)
    Quoted
    72 Post(s)

    Default

    This may be the greatest first script of all time!

    Great work man, repped

  6. #6
    Join Date
    Aug 2007
    Location
    Colorado
    Posts
    7,421
    Mentioned
    268 Post(s)
    Quoted
    1442 Post(s)

    Default

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

    Current projects:
    [ AeroGuardians (GotR minigame), Motherlode Miner, Blast furnace ]

    "I won't fall in your gravity. Open your eyes,
    you're the Earth and I'm the sky..."


  7. #7
    Join Date
    Mar 2006
    Location
    Behind you
    Posts
    3,193
    Mentioned
    61 Post(s)
    Quoted
    63 Post(s)

    Default

    It's being looked into already.

    ~BraK

    "Sometimes User's don't need the Answer spelled out with Code. Sometimes all they need is guidance and explanation of the logic to get where they are going."

  8. #8
    Join Date
    May 2007
    Location
    UK
    Posts
    4,007
    Mentioned
    1 Post(s)
    Quoted
    12 Post(s)

    Default

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

    -Boom

  9. #9
    Join Date
    Jun 2008
    Location
    United States
    Posts
    818
    Mentioned
    60 Post(s)
    Quoted
    90 Post(s)

    Default

    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
    Last edited by euphemism; 08-22-2011 at 01:15 PM.

  10. #10
    Join Date
    Mar 2011
    Location
    Oklahoma
    Posts
    98
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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?
    Last edited by kanah; 08-22-2011 at 01:29 PM.

  11. #11
    Join Date
    Jun 2008
    Location
    United States
    Posts
    818
    Mentioned
    60 Post(s)
    Quoted
    90 Post(s)

    Default

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

  12. #12
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Quote Originally Posted by kanah View Post
    Also, where do yall get those cool profile pics/Avatars.
    SRL Members get access to them.
    Quote Originally Posted by euphemism View Post
    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.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  13. #13
    Join Date
    Jul 2010
    Posts
    1,115
    Mentioned
    1 Post(s)
    Quoted
    10 Post(s)

    Default

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

  14. #14
    Join Date
    Mar 2011
    Location
    Oklahoma
    Posts
    98
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by bolshak25 View Post
    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)
    Last edited by kanah; 08-24-2011 at 09:59 PM.
    ---- Kanah ----

    “If God did not exist then surely man would create him" - Voltiare

  15. #15
    Join Date
    Aug 2007
    Location
    England
    Posts
    1,038
    Mentioned
    0 Post(s)
    Quoted
    6 Post(s)

    Default

    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
    Today is the first day of the rest of your life

  16. #16
    Join Date
    Jan 2011
    Location
    Denver, CO
    Posts
    1,351
    Mentioned
    2 Post(s)
    Quoted
    72 Post(s)

    Default

    Quote Originally Posted by kanah View Post
    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.

  17. #17
    Join Date
    Feb 2006
    Posts
    3,044
    Mentioned
    4 Post(s)
    Quoted
    21 Post(s)

    Default

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


    ~Home

  18. #18
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

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

  19. #19
    Join Date
    Jun 2008
    Location
    United States
    Posts
    818
    Mentioned
    60 Post(s)
    Quoted
    90 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    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.
    Last edited by euphemism; 08-23-2011 at 01:25 PM. Reason: Incorrect capitalization

  20. #20
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Jakkle View Post
    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
    Last edited by Main; 08-23-2011 at 01:57 PM.
    Oh Hai Dar

  21. #21
    Join Date
    Jul 2007
    Location
    Ohio
    Posts
    1,103
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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

  22. #22
    Join Date
    Jul 2010
    Posts
    1,115
    Mentioned
    1 Post(s)
    Quoted
    10 Post(s)

    Default

    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

  23. #23
    Join Date
    Aug 2011
    Posts
    14
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    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.

  24. #24
    Join Date
    Mar 2011
    Location
    Oklahoma
    Posts
    98
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    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.
    ---- Kanah ----

    “If God did not exist then surely man would create him" - Voltiare

  25. #25
    Join Date
    Jul 2011
    Location
    /home/litoris
    Posts
    2,226
    Mentioned
    0 Post(s)
    Quoted
    159 Post(s)

    Default

    Quote Originally Posted by kanah View Post
    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!

Page 1 of 2 12 LastLast

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
  •