Author Topic: neo's Horticulturist v1.2 out 09/22/2011 Get your own seeds of renewal! :)  (Read 88833 times)

0 Members and 1 Guest are viewing this topic.

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
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: [Select]
;=======================================================================
; 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.
;-----------------------------------------------------------------------------------------
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!

There are 6 attachment(s) in this post. You must register and post an acceptable introduction to download
horticulturist_suo_0.5.1.txt
horticulturist_suo_0.5.2.txt
horticulturist_suo_0.5.txt
horticulturist_suo_1.0.txt
horticulturist_suo_1.1.txt
horticulturist_suo_1.2.txt
« Last Edit: September 22, 2011, 04:12:36 PM by Neo »
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline MeWonUo

  • Hero Member
  • *
  • Posts: 913
  • Activity:
    0%
  • Reputation Power: 11
  • MeWonUo barely matters.MeWonUo barely matters.
  • Gender: Male
  • Respect: +85
  • Referrals: 1
    • View Profile
Re: frneo's Horticulturist v0.1 out 08/18
« Reply #1 on: August 18, 2011, 01:07:45 PM »
+1
Sheesh Neo.. Talk about being on a serious roll here.  I'll give it a swing with a few plants this afternoon.

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: frneo's Horticulturist v0.1 out 08/18
« Reply #2 on: August 18, 2011, 04:31:02 PM »
+1
Sheesh Neo.. Talk about being on a serious roll here.  I'll give it a swing with a few plants this afternoon.
Great... Tell me how it goes after! :)

neo
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: frneo's Horticulturist v0.2 out 08/18
« Reply #3 on: August 18, 2011, 07:10:02 PM »
+1
V 0.2 out... Added a few tools!

V 0.2.1 Added security chk for correct gump
« Last Edit: August 18, 2011, 08:08:46 PM by frneo »
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline MeWonUo

  • Hero Member
  • *
  • Posts: 913
  • Activity:
    0%
  • Reputation Power: 11
  • MeWonUo barely matters.MeWonUo barely matters.
  • Gender: Male
  • Respect: +85
  • Referrals: 1
    • View Profile
Re: frneo's Horticulturist v0.2.1 out 08/18
« Reply #4 on: August 18, 2011, 11:58:36 PM »
+1
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.
« Last Edit: August 19, 2011, 12:50:48 AM by MeWonUo »

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: frneo's Horticulturist v0.2.1 out 08/18
« Reply #5 on: August 19, 2011, 03:07:35 AM »
+1
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.
Yeah, I forgot to mention it:

Plants security can't have that menu bar on top... I'll try and find a way through this.... Just contpos won't work for this kind of gump...


Thanks for the feedback, I appreciate it...

neo

edit: I forgot to ask, which version? 0.2.1 ?

cheers
« Last Edit: August 19, 2011, 03:11:04 AM by frneo »
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline MeWonUo

  • Hero Member
  • *
  • Posts: 913
  • Activity:
    0%
  • Reputation Power: 11
  • MeWonUo barely matters.MeWonUo barely matters.
  • Gender: Male
  • Respect: +85
  • Referrals: 1
    • View Profile
Re: frneo's Horticulturist v0.2.1 out 08/18
« Reply #6 on: August 19, 2011, 11:23:30 AM »
+1
Yes, using 0.2.1.  Just waiting for another growth cycle so I can give it another run.

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: frneo's Horticulturist v0.2.1 out 08/18
« Reply #7 on: August 19, 2011, 11:57:43 AM »
+1
Yes, using 0.2.1.  Just waiting for another growth cycle so I can give it another run.
I missed last night's growth check :( I'll only get one tonight I guess...

Thanks for giving this a go!

Neo
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: frneo's Horticulturist v0.2.1 out 08/18
« Reply #8 on: August 20, 2011, 06:21:53 AM »
+1
Ok, just got my first plant batch ready to try this out... I will give it a go, and fix the possible issues, and also add some new stuff, and later today, I'll upload v 0.3...

neo
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline camotbik

  • Sr. Member
  • *
  • Posts: 349
  • Activity:
    0%
  • Reputation Power: 3
  • camotbik has no influence.
  • Gender: Male
  • Hello! I'm a UO addict.
  • Respect: +38
  • Referrals: 0
    • View Profile
Re: frneo's Horticulturist v0.2.1 out 08/18
« Reply #9 on: August 20, 2011, 08:23:16 AM »
+1
My friend is a plant addict, she has a house with 3 or 4 floors and all stuffed with plants. Can't wait to tell her about this one and hoping soon you will release the version with more manageable plants.
What you witness -- is whatver..
uogamers hybrid.

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: frneo's Horticulturist v0.2.1 out 08/18
« Reply #10 on: August 20, 2011, 08:42:57 AM »
+1
My friend is a plant addict, she has a house with 3 or 4 floors and all stuffed with plants. Can't wait to tell her about this one and hoping soon you will release the version with more manageable plants.
Nice.

I didn't quite get what you mean by "more manageable plants". Can you explain better to me?

Thanks.

Neo
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline camotbik

  • Sr. Member
  • *
  • Posts: 349
  • Activity:
    0%
  • Reputation Power: 3
  • camotbik has no influence.
  • Gender: Male
  • Hello! I'm a UO addict.
  • Respect: +38
  • Referrals: 0
    • View Profile
Re: frneo's Horticulturist v0.2.1 out 08/18
« Reply #11 on: August 20, 2011, 08:51:51 AM »
+1
Well if i get this right, now you can only manage those plants which are in 2 tiles from you. Just an idea, but if you would preform a search from 1 tile to 16 and go to that found plant to do whatever you are doing with it( i have never managed any plants so i don't really know what you do there with them). e.g.
well it's just a thought..
« Last Edit: August 20, 2011, 09:14:53 AM by camotbik »
What you witness -- is whatver..
uogamers hybrid.

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: frneo's Horticulturist v0.2.1 out 08/18
« Reply #12 on: August 20, 2011, 10:14:01 AM »
+1
Well if i get this right, now you can only manage those plants which are in 2 tiles from you. Just an idea, but if you would preform a search from 1 tile to 16 and go to that found plant to do whatever you are doing with it( i have never managed any plants so i don't really know what you do there with them). e.g.
well it's just a thought..
Well, the way this setup works, you need to be close to your secure container to tend to plants...

However, you can set up as many plants as you'd like in 1 or 2 tiles away from you... There's a tutorial on how to do this in the tutorial session...

Neo
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Offline MeWonUo

  • Hero Member
  • *
  • Posts: 913
  • Activity:
    0%
  • Reputation Power: 11
  • MeWonUo barely matters.MeWonUo barely matters.
  • Gender: Male
  • Respect: +85
  • Referrals: 1
    • View Profile
Re: frneo's Horticulturist v0.2.1 out 08/18
« Reply #13 on: August 20, 2011, 10:34:35 AM »
+1
Hey Neo,

Finally had another growth on the plants I'm testing with, so I ran this again. 

Today, I noticed something.  Script is only performing one action per plant.  If a plant needs watered, greater poison, and greater heal...it is only applying the poison and then moving on to the next one.  Second time I ran through it would apply the heal.  Third time run it watered. 

Thinking ya just need to cycle back through your plant check after applying something to a plant to make sure there isn't anything else that it needs.

MeWon

Offline NeoTopic starter

  • Prime Program
  • Elite
  • *
  • *
  • Posts: 821
  • Activity:
    0%
  • Reputation Power: 13
  • Neo barely matters.Neo barely matters.
  • Respect: +155
  • Referrals: 3
    • View Profile
Re: frneo's Horticulturist v0.2.1 out 08/18
« Reply #14 on: August 20, 2011, 11:18:04 AM »
+1
Hey Neo,

Finally had another growth on the plants I'm testing with, so I ran this again. 

Today, I noticed something.  Script is only performing one action per plant.  If a plant needs watered, greater poison, and greater heal...it is only applying the poison and then moving on to the next one.  Second time I ran through it would apply the heal.  Third time run it watered. 

Thinking ya just need to cycle back through your plant check after applying something to a plant to make sure there isn't anything else that it needs.

MeWon
Yes, I've noticed this to... I've already fixed this for v 0.3... Now I just need to fix an issue with it stopping to work when targetting a potion inside the potion container... In a few I'll post up v0.3 with some fixes and new stuff :)

Thx for the feedback MeWon
Never refuse an invitation.
Never resist the unfamiliar.
Never fail to be polite.
And never outstay your welcome.

Tags: