Official ScriptUO EasyUO Scripts > Resource Farming

neo's Horticulturist v1.2 out 09/22/2011 Get your own seeds of renewal! :)

(1/45) > >>

Neo:
Ok, so I decided to start plantgrowing again. However, the scripts I used weren't working so great for me, and this has been in my plans for some time now... So, here it is:


--- Code: ---;=======================================================================
; Script Name: neo's Horticulturist
; Author: neo
; Version: 1.2
; Client Tested With: 7.0.16.3
; EUO version tested with: 1.50 199
; Shard OSI / FS: OSI
; Revision Date: 09/22/2011
; Public Release: 08/18/2011
; Purpose: Will tend to plants and gather resources from them. Also has a tools menu
;          to help out with other functions related to plant growing.
;--------------------------------------------------------------------------------
; Url:     http://www.scriptuo.com/index.php?topic=8268.0
;================================================================================
; Thank you goes to:
; TM for his Journal Handle subs which I used here
; Cedryk for writing the tutorial on easyuo on how to test pixels.
;----------------------------------------------------------------------------------
; Version     1.2   - Added wait time. Thank you dxrom for this info. Tell me if it
;                     works properly for you now! :)
;                   - The check boxes for gathering seeds and resources were switched.
;                     Fixed that now.
;                   - A few minor changes (I think)
;----------------------------------------------------------------------------------
; Version     1.1   - Changed wait time after each dirt fill (thx Cerveza)
;----------------------------------------------------------------------------------
; Version     1.0   - Script has gone turbo. :) Everything is (A LOT) faster now
;                   - Fixed 'fill bowl with dirt' sub
;                   - In the mass growing section, if the box you're transfering
;                     plants to gets full, it will automatically select the next box
;                   - Added tool to just gather resources/seeds without tending
;                   - Added tool to unlock and trash all plants. For now it will
;                     trash EVERY plant you have, USE WITH CAUTION
;                   - Added pause button
;                   - Fixed resources issue
;                   - Fixed 'Plant Security' counter issue
;                   - Several minor fixes
;------------------------------------------------------------------------------------
; Version     0.5.1 - Fixed issue that would cause plant that's not really a plant
;                     to break the script.
;-------------------------------------------------------------------------------------
; Version     0.5.0 - Added mass production section to the tools menu. A tutorial
;                     on how to do this and explanation on what this means can be found
;                     here: http://www.scriptuo.com/index.php?topic=8300.0
;------------------------------------------------------------------------------------
; Version     0.4.2 - Fixed set plant security sub. Also changed the click position
;                     slightly to avoid clicking your menu bar, if you use yours at the
;                     top of the screen.
;-----------------------------------------------------------------------------------
; Version     0.4.1 - Fixed water bowls and plant seeds sub. Thanks again MeWonUo. :)
;------------------------------------------------------------------------------------
; Version     0.4.0 - Fixed the tools menu. Thank you MeWonUo for telling me about this.
;                   - Tending sub should be FULLY functional right now. I rewrote how
;                     the gump checks work, there should be no more skipping plants of
;                     any kind now.
;
;                     I'm looking for tips on how to update this any further... If you
;                     have any ideas, please tell me about them, and I'll try and update
;                     the script with it and you will receive credit for it. Thank you! :)
;----------------------------------------------------------------------------------------
; Version     0.3.0 - Fixed issue that was only tending to 1 condition per plant.
;                   - I rewrote the check water sub, and most of the tending code too.
;                     It should be stable enough to give your plants a go.
;                   - Fixed gumpwait sub (I know)
;                   - Added "C2's bowl filler sub" to the tools section
;                   - Added "C2's lockdown all plants" sub to the tools section
;                   Thank you C2 for letting me use your stuff. I appreciate it! :)
;------------------------------------------------------------------------------------
; Version     0.2.1 Added "focus to gump" security to Water Bowl tool.
;                   This may be needed for the tend part as well, I'll test it out
;                   as soon as I get my first grow check.
;----------------------------------------------------------------------------------
; Version     0.2 Features:
;             Added the following "Tools":
;                 - Water bowls and plant seeds in them. Will use OCR for this,
;                 and grab seeds from chosen secure.
;                 - Move bowls to breakable box. It will only move bowls that have
;                   seeds planted in them, so if any bowl was missed during the
;                   'plant seeds' session, they will keep in your backpack.
;                 - Set plant security. I used my old Plant Security script and modified
;                   it a little and added it here. Will set security to plants locked
;                   down around you to your given choice.
;              Also some few minor changes. I'll get to test this with 1500 plants after
;              growth check, and will make adjustments I see fit for v0.3
;-------------------------------------------------------------------------------------------
;             Remember: For OCR things, it's recommended you don't wave your mouse around,
;                       because it will mess up the gump checks, and things can go bad.
;-------------------------------------------------------------------------------------------
; Version     0.1 Features:
;                 - Will water and potion plants, according to the need. Uses
;                   OCR to check the needs of the plant.
;                 - Will gather seeds and resources from plants. I use no OCR for this,
;                   just journal scanning, so I recommend you leaving this for the last
;                   day. It will save you plenty of time. It will recognize and put
;                   away seeds, seeds of renewal, orange petals, green thorns and red
;                   leaves. So any other resources won't be moved to the secure and
;                   just stay in your bag. (I currently don't have the types of those
;                   "peculiar" resources.
;                 - Won't move mouse! :)
;-------------------------------------------------------------------------------------
;                 Things that will be added soon!
;                 - Tools menu. This will have several tool scripts related to plantgrowing.
;                 - Pause option.
;                 - Save settings (secure containers and such)
;                 - Cooler menu! I'll ask Guadah for some pointers! :)
;                 - Suggestions? Any nice suggestions users may have.
;--------------------------------------------------------------------------------------
; Instructions:   - You must have a secure container for you potions, resources and seeds.
;                 Potions must be inside your potion container, and the container must be
;                 within your reach.
;                 - You must have a pitcher of water INSIDE your backpack, preferably an
;                 endless decanter of water.
;                 - You must have a Water Trough near you!
;                 - Plants must be locked down and within 2 tiles of you.
;                 Use the setup menu to set your stuff, and hit Start. The script will
;                 (should) do the rest.
;-----------------------------------------------------------------------------------------

--- End code ---
Special thanks to 12timesOver. Version 1.0 uses 12x's Weight Check sub!
Thank you for sharing that man! :)

I wrote the OCR stuff, using Cedryk's tutorial over at easyuo. The code I wrote is pretty simple, but efficient as far as I'm concerned... However, OCR is used for tending only, as of now. Resource gathering is done with journal scanning!

If this works for you, or not, please let me know! I'll definitely keep upgrading this constantly, until it's nice and pretty! :)

Neo

3.1.0 stats pic


WARNING: YOU SHOULDN'T HAVE ANY POTIONS IN YOUR BACKPACK, ONLY IN YOUR POTION SECURE. The water pitcher, on the other hand, should always be inside your backpack!

You can find a tutorial on how to use the mass plantgrowing feature of version 0.5 here:
http://www.scriptuo.com/index.php?topic=8300.0


Hope you find this useful!
:)

I found an issue that sometimes there are plants that aren't plants ( I know ) and this would cause the script to break... This should be fixed in version 0.5.1!

MeWonUo:
Sheesh Neo.. Talk about being on a serious roll here.  I'll give it a swing with a few plants this afternoon.

Neo:

--- Quote from: MeWonUo on August 18, 2011, 01:07:45 PM ---Sheesh Neo.. Talk about being on a serious roll here.  I'll give it a swing with a few plants this afternoon.

--- End quote ---
Great... Tell me how it goes after! :)

neo

Neo:
V 0.2 out... Added a few tools!

V 0.2.1 Added security chk for correct gump

MeWonUo:
Water Bowls and plant Seeds = Working perfectly
Move Bowls = Works great
Plant Security = Not working.  Mouse just flashes like it is trying to click something, but nothing happens.

Ran the tender with 50 plants.  Other than a little lag spike that I had, and the fact that I forgot about the OCR, it worked quite well so far.

EDIT:  I see what it's doing with the plant security.  I had your menu covering my map so I wasn't able to see that the script was clicking the map button on the top of the page over and over and over.  I moved the bar and it works fine.  Might pick a different contpos to open that first gump.

Navigation

[0] Message Index

[#] Next page

Go to full version