ScriptUO

Official ScriptUO EasyUO Scripts => Scripting Chat => Topic started by: OMGBurgers on January 16, 2011, 10:31:44 AM

Title: Plant script
Post by: OMGBurgers on January 16, 2011, 10:31:44 AM
I'm working on a plant script, tending, collecting, all the good stuff.  Debating on how far to really go with it, or where to draw the line.  Go all the way, or half way.

A simple one to run every so often when I run out of renewal seeds would be nice, but gosh the setup can be a pain.

Obviously the easy parts that i'll include:
Filling all bowls with dirt
Locking all plants down
Moving plants to the chopable container
Watering the bowls of dirt
Seeding the bows
Tending plants
Collecting resources

I honestly don't wana buy the bowls and go around from NPC to NPC so I'm most likely going to pull the subs out from my shopper, and make it automatically buy/fill the bowls and dropping them off at home after I get the other crap working.

I've got the tending part half way done, just trying to make a few things happen to my plants to write the remaining checks/subs.  All the other subs are simple loops, so I'll do them when I'm ready to test in bulk & need them to prepare.

Anyone have any ideas on what else would be useful?  I think that's about it for the most part.  I'm still reading up information on plants themselves, and any tactics players may have in the whole tending thing to consider into the script.

I know some players already have this, but I'm writing it for some friends that are tired of doing all the bowl collecting, filling, seed planting, watering, locking down, making/buying pots, getting an account to do it on so that someone they know who has a script, can press play for them to tend their plants, and then take the majority of their seeds for their 'services'.  The most annoying part is knowing that some obtained what they shouldn't have, and being the way they are to their 'friends/guild'.  Yes this script will be posted, and freely sent out.  Hopefully once it's done I won't need to maintain it & the public can maintain it, since I lose interest as most know lol...  I'll post my progress once I get the tending part finished, and update from there.

If anyone would like to share ideas feel free.  If anyone actually tends plants and knows some good ways to tend them feel free to enlighten me.  Right now it seems pretty basic.  Find the -/+, apply the correct amount of potions.  Strength potions I don't see where they come in.  I'm thinking apply them only when a plant didn't grow at it's growth cycle?  Maybe a bad fungi/infestation combination?  If anyone has any good links to cover that too, that would be great.

So far I'm grabbing information from:
http://vboards.stratics.com/uo-botany-nutrition/95422-gardening-faq-last-updated-8-15-2008-a.html
http://www.uoguide.com/Gardening

Title: Re: Plant script
Post by: Khameleon on January 16, 2011, 11:06:44 AM
Twinkle McNugget pretty much has the tending section perfected. tends plants, pulls resources when available, and waits till day 16 to pull all seeds, cuts them up and stores for the most part.. might want to ask him for permissions to his private library.

I like your idea about recalling around and collecting bowls.

I have a few subs I use to fill bowls with dirt, move bowls around, water and seed, ect.
Title: Re: Plant script
Post by: Scrripty on January 16, 2011, 11:22:03 AM
I have faith that OMG can write one just as good as mine.  You can use my poor man's ocr sub and Kal In Ex has some plant tending subs that are REALLY nice to use with a little updating.  You can pretty much make his tend whole crops with minimal work.
Title: Re: Plant script
Post by: Oracle on January 16, 2011, 11:33:52 AM
I was really into doing plants for the Resources some time back, but got frustrated when I could not get Hort-O-Matic to work the way I wanted it to, plus it was so slow.  I helped beta test Coragin's Script, which I think went to Twinkle McNugget, but that Script went Private and/or Elite?  If you need help testing and/or breaking the Script, I would be more than happy to help OMG...

Title: Re: Plant script
Post by: Khameleon on January 16, 2011, 11:34:51 AM
I agree with you.... Your wheel is damned well pretty rounded already.
Title: Re: Plant script
Post by: Scrripty on January 16, 2011, 12:31:06 PM
I was really into doing plants for the Resources some time back, but got frustrated when I could not get Hort-O-Matic to work the way I wanted it to, plus it was so slow.  I helped beta test Coragin's Script, which I think went to Twinkle McNugget, but that Script went Private and/or Elite?  If you need help testing and/or breaking the Script, I would be more than happy to help OMG...

That script was in horrible shape when I came on board.  After months of no one updating or helping, I scrapped that version and rewrote my own from scratch.  It's 100 percent and done.  It tends with no errors, picks all resources, clips all plants, makes dyes if resources are available, logs in and out to tend, buys bowls and dirts them, locks them down in house and rinse/repeats.  But I kept the final version private as it's just too much to hand out to anyone.  It would spread like wildfire and ruin the market.
Title: Re: Plant script
Post by: Oracle on January 16, 2011, 12:48:55 PM
That script was in horrible shape when I came on board.  After months of no one updating or helping, I scrapped that version and rewrote my own from scratch.  It's 100 percent and done.  It tends with no errors, picks all resources, clips all plants, makes dyes if resources are available, logs in and out to tend, buys bowls and dirts them, locks them down in house and rinse/repeats.  But I kept the final version private as it's just too much to hand out to anyone.  It would spread like wildfire and ruin the market.

I fully understand Twinkle McNugget the reasoning that you went private with it.  I was helping test the original one and sent in plenty of bugs and errors.  I just felt left out that I was not included in the next project and since then have not done any Gardening.  Your Script sounds great!  Everything I am looking for to do plants again.  That's what a good Gardening Script should have! Sure, would be nice to have something to do plants again...!   ;D
Title: Re: Plant script
Post by: Dixie Wrecked on January 16, 2011, 03:06:55 PM
I honestly don't wana buy the bowls and go around from NPC to NPC so I'm most likely going to pull the subs out from my shopper, and make it automatically buy/fill the bowls and dropping them off at home after I get the other crap working.

Anyone have any ideas on what else would be useful?  I think that's about it for the most part.  I'm still reading up information on plants themselves, and any tactics players may have in the whole tending thing to consider into the script.

If anyone would like to share ideas feel free.  If anyone actually tends plants and knows some good ways to tend them feel free to enlighten me.  Right now it seems pretty basic.  Find the -/+, apply the correct amount of potions.  Strength potions I don't see where they come in.  I'm thinking apply them only when a plant didn't grow at it's growth cycle?  Maybe a bad fungi/infestation combination?  If anyone has any good links to cover that too, that would be great.

One idea for the bowls is that if you don't want the clippings, you can always empty the bowls after they finish growing instead of turning the plant decorative.  That would save a little time for buying bowls, but it's all in the preference (the script I wrote for tending, which uses Kal in Ex's plant OCR script) has an option to go decorative or to empty, since I like to packrat anything I can get and a friend just reuses the bowls.

As for the strength potions, I find that they mainly help when something causes a plant to not be tended and it gets a red '-' or when it is less than "vibrant". 

Those are just a couple things off the top of my head, but I am sure I can offer more as needed!
Title: Re: Plant script
Post by: Scrripty on January 16, 2011, 03:22:54 PM
That script was in horrible shape when I came on board.  After months of no one updating or helping, I scrapped that version and rewrote my own from scratch.  It's 100 percent and done.  It tends with no errors, picks all resources, clips all plants, makes dyes if resources are available, logs in and out to tend, buys bowls and dirts them, locks them down in house and rinse/repeats.  But I kept the final version private as it's just too much to hand out to anyone.  It would spread like wildfire and ruin the market.

I fully understand Twinkle McNugget the reasoning that you went private with it.  I was helping test the original one and sent in plenty of bugs and errors.  I just felt left out that I was not included in the next project and since then have not done any Gardening.  Your Script sounds great!  Everything I am looking for to do plants again.  That's what a good Gardening Script should have! Sure, would be nice to have something to do plants again...!   ;D

Who sent you the old one?  I don't remember you sending me any bug reports...?  Point me to a link of what you're referring to plz.
Title: Re: Plant script
Post by: NObama on January 16, 2011, 03:33:19 PM
It would spread like wildfire and ruin the market.

*cough* POF *cough*

Same reason I'm keeping my fish questor on the DL for a while longer.  

That, and the fact that navigation is still a bastard.  And the fact that i've yet to get a Single.  Stinking.  Powerscroll.  Curse you, RNG!
Title: Re: Plant script
Post by: Khameleon on January 16, 2011, 04:02:54 PM
That script was in horrible shape when I came on board.  After months of no one updating or helping, I scrapped that version and rewrote my own from scratch.  It's 100 percent and done.  It tends with no errors, picks all resources, clips all plants, makes dyes if resources are available, logs in and out to tend, buys bowls and dirts them, locks them down in house and rinse/repeats.  But I kept the final version private as it's just too much to hand out to anyone.  It would spread like wildfire and ruin the market.

I fully understand Twinkle McNugget the reasoning that you went private with it.  I was helping test the original one and sent in plenty of bugs and errors.  I just felt left out that I was not included in the next project and since then have not done any Gardening.  Your Script sounds great!  Everything I am looking for to do plants again.  That's what a good Gardening Script should have! Sure, would be nice to have something to do plants again...!   ;D

Who sent you the old one?  I don't remember you sending me any bug reports...?  Point me to a link of what you're referring to plz.

I think he was referring to the Hort-SUO script... not the one you revamped...
Title: Re: Plant script
Post by: OMGBurgers on January 17, 2011, 07:29:22 AM
Twinkle McNugget pretty much has the tending section perfected. tends plants, pulls resources when available, and waits till day 16 to pull all seeds, cuts them up and stores for the most part.. might want to ask him for permissions to his private library.

I like your idea about recalling around and collecting bowls.

I have a few subs I use to fill bowls with dirt, move bowls around, water and seed, ect.

I've got the updated one from here.  I'm creating one I can pass around to whoever may want it.  If it was one specifically for my use, I would use that one. :P
Title: Re: Plant script
Post by: OMGBurgers on January 17, 2011, 07:31:28 AM
I have faith that OMG can write one just as good as mine.  You can use my poor man's ocr sub and Kal In Ex has some plant tending subs that are REALLY nice to use with a little updating.  You can pretty much make his tend whole crops with minimal work.

Yeah I'm really just going to use simple pixcol commands for the gump recognition.  So far it's working great.  As the days go by on my plants I'm just adding in some simple pixel recognition as available.
Title: Re: Plant script
Post by: OMGBurgers on January 17, 2011, 07:36:54 AM
I was really into doing plants for the Resources some time back, but got frustrated when I could not get Hort-O-Matic to work the way I wanted it to, plus it was so slow.  I helped beta test Coragin's Script, which I think went to Twinkle McNugget, but that Script went Private and/or Elite?  If you need help testing and/or breaking the Script, I would be more than happy to help OMG...



Sure thing.  It'll be available publicly for testing/use.  I'm really going to rely on others input/testing on this but it should be simple.  So far it's tended all of my plants yesterday.  All 4 of them that are alive LOL.  I actually forgot about them for a few days and a few were still shugging along... slowly!  I'm going to plant about 20 or so today for testing purposes without overwhelming myself.

I'll have something posted as soon as I code in some anti over potion applying failsafe, and tweak the fungi/infestation subs.  They work now, but I don't want it to go out killing plants on accident.  :P
Title: Re: Plant script
Post by: OMGBurgers on January 17, 2011, 07:39:57 AM
I honestly don't wana buy the bowls and go around from NPC to NPC so I'm most likely going to pull the subs out from my shopper, and make it automatically buy/fill the bowls and dropping them off at home after I get the other crap working.

Anyone have any ideas on what else would be useful?  I think that's about it for the most part.  I'm still reading up information on plants themselves, and any tactics players may have in the whole tending thing to consider into the script.

If anyone would like to share ideas feel free.  If anyone actually tends plants and knows some good ways to tend them feel free to enlighten me.  Right now it seems pretty basic.  Find the -/+, apply the correct amount of potions.  Strength potions I don't see where they come in.  I'm thinking apply them only when a plant didn't grow at it's growth cycle?  Maybe a bad fungi/infestation combination?  If anyone has any good links to cover that too, that would be great.

One idea for the bowls is that if you don't want the clippings, you can always empty the bowls after they finish growing instead of turning the plant decorative.  That would save a little time for buying bowls, but it's all in the preference (the script I wrote for tending, which uses Kal in Ex's plant OCR script) has an option to go decorative or to empty, since I like to packrat anything I can get and a friend just reuses the bowls.

As for the strength potions, I find that they mainly help when something causes a plant to not be tended and it gets a red '-' or when it is less than "vibrant". 

Those are just a couple things off the top of my head, but I am sure I can offer more as needed!

Thanks!

Would you recommend one greater strength potion or two?  Or should it scale on how unhealty it is maybe?

The bowl thing is a great idea.  I never knew that.
Title: Re: Plant script
Post by: gimlet on January 17, 2011, 07:48:19 AM
OK - you guys now have me interested in growing plants-I start today.

First Question Lockdown on roof or in a secure?

Title: Re: Plant script
Post by: OMGBurgers on January 17, 2011, 07:53:52 AM
OK - you guys now have me interested in growing plants-I start today.

First Question Lockdown on roof or in a secure?



I believe they can't grow in a container, unless it's your backpack, or within your backpack.

Typical way is to throw a ton in a small crate, then chop it, so  they are all contained within one tile.
Title: Re: Plant script
Post by: gimlet on January 17, 2011, 08:49:05 AM
I am missing something here - won't they just decay?

I thought i use to grow stuff in the bank
Title: Re: Plant script
Post by: OMGBurgers on January 17, 2011, 10:14:10 AM
I am missing something here - won't they just decay?

I thought i use to grow stuff in the bank

You lock them down silly!
Title: Re: Plant script
Post by: MeWonUo on January 17, 2011, 10:44:28 AM
OMG:

Just wanted to say thanks ahead of time for working on a new script for plants.

There are 3 "I wish I could get my hands on that script someday" here on this site that I'm aware of.  And plant tending was one of them.

So again.. Thank you! 

Look forward to giving it a whirl, I'll start piling up some seeds!
Title: Re: Plant script
Post by: OMGBurgers on January 17, 2011, 10:53:52 AM
OMG:

Just wanted to say thanks ahead of time for working on a new script for plants.

There are 3 "I wish I could get my hands on that script someday" here on this site that I'm aware of.  And plant tending was one of them.

So again.. Thank you! 

Look forward to giving it a whirl, I'll start piling up some seeds!

What are the other two?
Title: Re: Plant script
Post by: Dixie Wrecked on January 17, 2011, 11:12:02 AM

Thanks!

Would you recommend one greater strength potion or two?  Or should it scale on how unhealty it is maybe?

The bowl thing is a great idea.  I never knew that.

Since I don't have to use the strength pots too often, and because I have such a nice stock of all pots due to C2's potion factory, I usually just let it use 2 pots to be safe, although healthy plants should only need 1 (wilted definitely need 2 and dying plants I'm still torn on whether they are worth the effort to try saving).

And I'm glad I could share the info on re-using the plant bowls, as I didn't realize they could be saved once the graphic changed to a plant either until my friend asked for that option in my script!
Title: Re: Plant script
Post by: Dixie Wrecked on January 17, 2011, 11:17:33 AM
OK - you guys now have me interested in growing plants-I start today.

First Question Lockdown on roof or in a secure?

I believe they can't grow in a container, unless it's your backpack, or within your backpack.

Typical way is to throw a ton in a small crate, then chop it, so  they are all contained within one tile.

Plants will grow in a character's backpack, in a character's bank, and in a beetle's backpack (or within containers contained in/on any of those), but only upon login of that character and only if the growth cycle has passed for each plant.  Before having the lockdowns to use for locking a large amount of plants down using the chopped container method, i used to grow either 240-360 plants on each unused character, depending on whether i wanted to use their bank or not.  I still grow them in character backpacks at times (mainly when i am growing a new seed type and want to get my stocks up so i can lockdown the same type in one stack). 
Title: Re: Plant script
Post by: OMGBurgers on January 17, 2011, 11:30:26 AM
Since I don't have to use the strength pots too often, and because I have such a nice stock of all pots due to C2's potion factory, I usually just let it use 2 pots to be safe, although healthy plants should only need 1 (wilted definitely need 2 and dying plants I'm still torn on whether they are worth the effort to try saving).

I see.

Maybe I should place in an option to discard or save plants once they hit a dying stage.  I think all but one of my plants are wilted (lol) and I've applied two greater strength potions.  I'll see if that worked today when I get home.

Thanks a bunch for your advice!
Title: Re: Plant script
Post by: OMGBurgers on January 17, 2011, 06:22:55 PM
I went ahead and wrote subs to identify the health state of the plant, and the day in it's growth cycle today.  So far the tending sub has yet again been flawless, I'm actually beginning to feel comfortable with it somewhat.

Tomorrow I'm going to add in some subs to identify what potions are currently applied to the plants.  I know people should really check IF their plants have completed their growth cycle and are ready for tending, but just incase this won't 'over tend' them applying heal/cure/poisons that are already applied.  One of my reasonings for this is because my friend & I will both be tending our plants in a joint effort & splitting all seeds & resources.  This way we can both run it just to be safe w/o having to contact the other person to see if they ran it or not, or really having to bother using your brain to look!

As far as resources/seeds go, is it typical to gather them only on day X (when they have 8/8)?  Is there any downside to gathering the resources/seeds daily that anyone knows of?

I plan to have it log resources used, and resources harvested after running each cycle so players can keep track of their "investment".  I'll have it also log in seconds how long their tending cycle took.  An option to log out when finished will be added, even though it really don't matter.  I also assume you can do this all while hidden.

Progress may end up going a little slow just because of the time it looks like it takes for plants to grow.  In a few days it's going to be all about waiting for the next day in the cycle for another test run, and getting a few more ocr values.

I'm also currently pretty tied up in my interest on a few new templates & my daily shenanigans!  What a maniac I can be when it comes to ideas for 'playing' uo.
Title: Re: Plant script
Post by: Scrripty on January 17, 2011, 06:37:07 PM
I recommend gathering daily if you're going to be doing any real numbers of plants.  Cause on the last day of tending, if you do not, it can take up to 5 hours to finish tending 3k plants. :)  Take it from experience.  Daily harvesting cuts down on your time at the end by a large factor.
Title: Re: Plant script
Post by: OMGBurgers on January 17, 2011, 07:08:39 PM
I recommend gathering daily if you're going to be doing any real numbers of plants.  Cause on the last day of tending, if you do not, it can take up to 5 hours to finish tending 3k plants. :)  Take it from experience.  Daily harvesting cuts down on your time at the end by a large factor.

Very good idea.

So if growth day > X check for resources/seeds.

I didn't know if there was a drawback of collecting them earlier, but I see what you're saying.  I suppose when they produce all 8 that you can't gather 8 at once, but rather have to do 16 clicks per plants? lol.  that would totally be lame.

thanks!  i never thought i'd get back into a script like this again... lol.
Title: Re: Plant script
Post by: OMGBurgers on January 18, 2011, 03:05:33 PM
Today I went ahead and got the pixel codes for slight infestation/fungi levels from my plants, added those into the code to tend them properly.  It now tends all levels of water, infestation, fungi.  I still need to not water one a few days to get a very dry, I suppose red + to make it deal with that haha.

I also have it scan for currently applied cure/poison before applying more.  That way if they were already tended, it won't over tend them.

Updated the sub to check health level of plant;  vibrant.  Yes, I finally have a vibrant plant!  I cheated!  I JUST PLANTED it! :D lol...  I'm so bad at tending...  Will people really want to trust this script?!  I'm not sure if this part of the sub is useful, but whatever, it's updated or almost done.  It can be an unused so if needed.

Updated the growth checker.  Still applies str pots if your plant did NOT grow due to unhealthy conditions, and tells it to continue tending.  If healthy tells plant to continue tending.  If no growth occurred, tells it to stop tending the plant.

Updated plant day wanabeocr.

Phew.  Now I can play!
Title: Re: Plant script
Post by: Cerveza on January 18, 2011, 03:57:24 PM
Didn't Kal have an OCR that did plant info already? Might be easier to use that for scanning.
Title: Re: Plant script
Post by: OMGBurgers on January 18, 2011, 04:59:12 PM
Didn't Kal have an OCR that did plant info already? Might be easier to use that for scanning.

I thought about that.  But went ahead and just wanted to code it all myself.  Last time I wrote a script to do the footstool quest over and over my friends were so confused on setting up the kalocr file in the same stupid location as easyuo & the script. lol
Title: Re: Plant script
Post by: Kherkus on January 20, 2011, 09:02:07 AM
I'm looking forward to this one because I'm currently using Hort and it is such a pain in the......

A few ideas I had for you:

1:  Hort will retire plants, but it will not move the bowls to a designated container.  Instead, it will drop them all on your character and then to the ground once your backpack is full.  Perhaps there is a way that it can be coded into the script to drop said bowls onto a bag and ask for a new bag when the current one is full.

2:  Hort is capable of gathering seeds and resources, but it has a problem that I've noticed.  It tends to retire your plants (if selected) when the seed count reaches 0 on the plant, not how many are left for the plant to produce.  Example:  it will retire plants with a seed/resource count like this 0/2, 0/1, etc.  I didn't try to retire any plants prior to 2 seeds left, but some of my plants were at 0/0.

3:  Hort gives you the health statistics and potion use statistics for your pants, but it will not do the same stack over without being restarted.  Also, I believe that it would be helpful to many users to see where their plant growth is.  If there could be a chart that tells us which stage are plants are in, I think it can help a lot of people.  Perhaps in two sections, mature and immature plant.  Immature plants range from stage 1 to stage 9 and mature plants range from 1 resource to 8 resources.

4:  I know that this one should probably be a separate script, but I feel I should mention it.  An add-on to cross pollinate certain plants only.  Have a drop down menu to select your first plant and another drop down menu to select you second plant.  Then, it finds said plants and crosses them.  It does this for as many plants are available.  I know that this one would very complex and difficult to produce and if I could write scripts, believe me, I'd be helping you as much as I could.

Anyway, that's all I've got for now.  Hope to see this bad-ass up and running cause I'm getting really frustrated with Hort. (As if you couldn't tell)
Title: Re: Plant script
Post by: MeWonUo on January 20, 2011, 11:04:33 AM
OMG:

Just wanted to say thanks ahead of time for working on a new script for plants.

There are 3 "I wish I could get my hands on that script someday" here on this site that I'm aware of.  And plant tending was one of them.

So again.. Thank you! 

Look forward to giving it a whirl, I'll start piling up some seeds!

What are the other two?

SuperSlayer's World Traveler (where's the drool smiley?), and Twinkle McNugget's new PVM Sampire/Dexer Kill everything that gets in your path script. (when it's finished of course..lol) 

Those were all I wanted for Christmas. :D 
Title: Re: Plant script
Post by: OMGBurgers on January 20, 2011, 02:30:44 PM
Ran the script last night w/ 12 plants.  Flawless w/ the exception of a type on the water count so it overwatered 2 until I fixed it.

I need to get pots & work on making it keep restocking potions/dropping empties I suppose.  From there it's waiting a bit longer then I'll need testing.
Title: Re: Plant script
Post by: Scrripty on January 20, 2011, 02:35:13 PM
Dont even bother thinking about supporting kegs.  Stick with stacks of pots and bottles.  Much simpler.  I supported both and it was a gigantic waste of time/energy. :)  You can have stacks of 60k pots making it much more efficient, and no need to use the slow event property to figure out which keg is which. :(
Title: Re: Plant script
Post by: OMGBurgers on January 20, 2011, 03:58:27 PM
Dont even bother thinking about supporting kegs.  Stick with stacks of pots and bottles.  Much simpler.  I supported both and it was a gigantic waste of time/energy. :)  You can have stacks of 60k pots making it much more efficient, and no need to use the slow event property to figure out which keg is which. :(

haha yeah i hate kegs.  even if asked i wouldnt support em :P
Title: Re: Plant script
Post by: Scrripty on January 20, 2011, 06:01:08 PM
And since you're writing it for private use, why not just use Kal's subs. :)  They are so easy and so nice.  I used some actually cause I got sick of writing down all the gump stuff I needed to do my own scans.  I've got half my code, half his code. :)
Title: Re: Plant script
Post by: OMGBurgers on January 21, 2011, 05:41:31 AM
And since you're writing it for private use, why not just use Kal's subs. :)  They are so easy and so nice.  I used some actually cause I got sick of writing down all the gump stuff I needed to do my own scans.  I've got half my code, half his code. :)

Well I've got the subs for every scan already done, with the exception of the day count which I'm updating as the days go by, and the resources/seeds part.  I figure I can just get the pix code for the 0/8 on resources & seeds, which should be all I need.  If I scan the days I should be able to tell if it's producing or not.  I'd just like to do a quick check to make sure resource/seed is 0/8 before cutting.

BTW is there an easy way to make the gumps stay in one spot lol.  I move them to 0/0 or wherever and click something and they go back to wherever.  I tried setting 0/0 then clicking randomly on the gump to simulate a normal click but it dont work.  If I move it to 0/0, pause, manually click the plant gump, they ALL stay 0/0 afterwards.  This is something I never really did figure out because I always just did gump ofset caculations, for pixel scanning it would be nice to set it and forget it, yes I stole that phrase and this has nothing to do with food! lol.

Title: Re: Plant script
Post by: Cerveza on January 21, 2011, 05:45:05 AM
Can't you pixel scan offset?
Title: Re: Plant script
Post by: Scrripty on January 21, 2011, 10:24:57 AM
They naturally bounce to 20/20 I thought?  I do pixel offset and let it bouce to the default 20/20 for plant gump.
Title: Re: Plant script
Post by: OMGBurgers on January 21, 2011, 01:20:57 PM
Can't you pixel scan offset?

I could, but I was trying to make it in the top left most for if someone wants to do other things while that's in the background like browse the internet.  I suppose I'll have it move each one to a negative value so it's way up there on the top left, then scan, then do all actions.

all my pixel scanning is already done via a sub that takes container x/y into consideration if called in %1 %2, like a normal offset for gump clicking.  I'd never hardcode it to not offset just for if some reason it did fail to move.
Title: Re: Plant script
Post by: Scrripty on January 21, 2011, 01:49:26 PM
Can't you pixel scan offset?

I could, but I was trying to make it in the top left most for if someone wants to do other things while that's in the background like browse the internet.  I suppose I'll have it move each one to a negative value so it's way up there on the top left, then scan, then do all actions.

all my pixel scanning is already done via a sub that takes container x/y into consideration if called in %1 %2, like a normal offset for gump clicking.  I'd never hardcode it to not offset just for if some reason it did fail to move.

In case you missed it above, I believe the plant gumps bouce to 20/20 naturally.  There's no need to contpos them anywhere.  They already contpos themselves to 20/20.  Just offset scan them.  No need to do any contpos moving at all except maybe for the initial gump to get it in a good position.
Title: Re: Plant script
Post by: OMGBurgers on January 21, 2011, 02:08:18 PM
Can't you pixel scan offset?

I could, but I was trying to make it in the top left most for if someone wants to do other things while that's in the background like browse the internet.  I suppose I'll have it move each one to a negative value so it's way up there on the top left, then scan, then do all actions.

all my pixel scanning is already done via a sub that takes container x/y into consideration if called in %1 %2, like a normal offset for gump clicking.  I'd never hardcode it to not offset just for if some reason it did fail to move.

In case you missed it above, I believe the plant gumps bouce to 20/20 naturally.  There's no need to contpos them anywhere.  They already contpos themselves to 20/20.  Just offset scan them.  No need to do any contpos moving at all except maybe for the initial gump to get it in a good position.

Yeah I know that.  But It's still wasting room to the left & top.  I added a check to call a sub that will adjust the plant gump to a negative value permanently as seen in attached picture.
Title: Re: Plant script
Post by: Oracle on January 21, 2011, 02:32:17 PM
Looking good OMG!  You are making amazing progress. 

I was wondering if it is easier to use an Endless Pitcher to water the Plants, as I know in previous Plant Scripts a Water Trough had to be placed within 2 tiles of the Toon.  An Endless Water Pitcher would allow the Water Trough to be anywhere and it could even be hidden (for those people that are into Deco).

Title: Re: Plant script
Post by: Scrripty on January 21, 2011, 03:03:51 PM
Ok let me explain this in a way that will make much more sense.  Over the course of 1000 plants, which if you're doing this for seeds, you're going to want to grow, you definately will not want to waste time doing a contpos of the gump, cause you're gonna have to put a wait 5 in front or behind it at least, and that's going to extend your tending by a LONG ASS TIME. :)  That make more sense? heh  My script is blazing fast, I dont think you can improve on it's speed really at all, but it still takes 3-5 hours on the last day of tending 3k plants.  Add a contpos to all those, that's 30 mins to an hour probly extra. :)
Title: Re: Plant script
Post by: Kherkus on February 13, 2011, 07:47:49 AM
I'm just wondering if anyone out there in TV land is still alive or not.  We've not heard one word in over a month as far this is progressing or any other news for that matter.  Hope you all aren't working too hard.

See you in game.
Title: Re: Plant script
Post by: OMGBurgers on February 13, 2011, 08:54:37 AM
It's about 90% done I'd say.  Every part of the script works, with the exception of the main loop for tending, and stocking of potions which is easy, just never got around to.  Kinda lost interest in it since seed prices have dropped a little on my shard to the point I'd rather just buy them.  My friends tending plants in 3 of my houses, so maybe when the script he's using pisses him off enough i'll finish it.
Title: Re: Plant script
Post by: Oracle on February 16, 2011, 11:08:51 AM
On Pacific, Seeds of Renewal are still rather pricey and in short supply.  At least a couple of times a day, someone is 'spamming' general chat asking to buy the Seeds. 
Title: Re: Plant script
Post by: Scrripty on February 16, 2011, 11:31:20 AM
I can't wait to see it released too after all the talk in my thread about it.  Gonna be soon I hope? :)  There's a ton of people waiting for it.
Title: Re: Plant script
Post by: TrailMyx on February 16, 2011, 11:34:45 AM
Funny.  4 pages of people talking about a mythical script.  heheh.
Title: Re: Plant script
Post by: OMGBurgers on February 16, 2011, 12:46:01 PM
Mythical?

Are you trying to imply something?
Title: Re: Plant script
Post by: Scrripty on February 16, 2011, 01:23:08 PM
Yes.  We're implying that at 1.25 to 1.5 mil per 10 seeds they don't exist.  Why on earth would you release such a script and ruin a good thing?  That's half the prolem with the market already.  Scripts that allow every noob and their brother to farm every resource available.
Title: Re: Plant script
Post by: OMGBurgers on February 16, 2011, 02:47:36 PM
Yes.  We're implying that at 1.25 to 1.5 mil per 10 seeds they don't exist.  Why on earth would you release such a script and ruin a good thing?  That's half the prolem with the market already.  Scripts that allow every noob and their brother to farm every resource available.

Honestly with what you have to go through to grow & farm the seeds, I'd rather let "every noob" do it for me, and pay them the gold for them, at a cheaper rate than current.  I'd also like to not that "every noob" is our potential community.  Who knows what script could inspire someone to actually learn to write their own, and share as we do.

But that wouldn't be why I would release it.  I started scripting & posting them in communities like here, not for my personal gain/profit, but to help others, and have a general place to place my scripts, where my friends can easily download them.  I don't look at it as "ruining" something that people have this thought that it is should be exclusive to select ultima players, because it's not.  I post to share my work with others, if I don't think they should have it, I don't mention it.

As far as the plant script its self goes, I'm in no rush to throw it up here without good stability & failsafe testing.  Thousands of plants ruined by a buggy script would be frustrating to a debugger or general user of our community.  In fact my friend is stuck tending 3 houses with a script that often screws up, not tending plants correctly at times.  Right now he's gota deal with it though lol.

But as for the mythical script, I've attached where I'm currently at.  It does absolutely nothing, but contains subs to check plant conditions and tend.  I left off addressing all fail sales that i implemented, and really looping it, etc and working on making all those buttons "turn".

Typically I rename my scripts for my board alias, but I don't care these days.

When I ever feel a desire to complete/finish it, I'll do so, and post a working version as promised.  I'm pretty sidetracked in other things that have my interest :)
Title: Re: Plant script
Post by: Kherkus on March 01, 2011, 09:59:19 AM
I know I've mentioned this before, but I currently use Hort to tend to 1600 plants.  The last run I did was 1200 and I got around 400 seeds of renewal from it.  I sold 320 of them on the market and made 32 mil.  Just because I flooded the marker with that many seeds, does not mean that their value is going to go down.  Take into account how long it takes to grow that many plants.  Even if nothing goes wrong and you don;t have to sure them, it takes 17 days to complete a plant cycle.  Then there is the cleanup and the resetting of everything for the next run.  It often takes me a week to reset all of my gear and get all of my seeds planted for the next run.  Also, if there is a delay because of a client update, I have break all of my plants down and store them until Easyuo can run again. 

Trust me when I say this.  Using a macro or a script to tend to plants is not going to increase the amount of seeds out so drastically that the prices are going to plummet.  I know this because I'm one of only a handful of people who actually grows in large quantity on my shard.  The average price for 10 seeds on my shard is 1.2 million gold or higher depending on the supply and who is growing them.

In short, I'm all for this new script and would be very interested in testing it to the fullest extent.

I posted in a previously that I'd like to see a feature installed or released somewhere that enables users to cross pollinate only the plants selected.  I also just thought of another addition that can be made.  In the event of a client update, I think it would be wise to incorporate a system to unlock your plants and then store them into a designated container.  This script already contains the sub for moving plants to a designated container.  All it needs now is the sub to unlock the plants for moving.

I going to start studying this scripting stuff in hopes that someday I'll understand how it works so that I can eventually start helping people with things like this.  Right now I just don;t have the time to spare for studying scripting.

Hope to hear some good news soon Burger.

Don't work too hard.
Title: Re: Plant script
Post by: Scrripty on March 01, 2011, 10:36:12 AM
Just because I flooded the marker with that many seeds, does not mean that their value is going to go down.  Take into account how long it takes to grow that many plants.  Even if nothing goes wrong and you don;t have to sure them, it takes 17 days to complete a plant cycle.  Then there is the cleanup and the resetting of everything for the next run.  It often takes me a week to reset all of my gear and get all of my seeds planted for the next run.  Also, if there is a delay because of a client update, I have break all of my plants down and store them until Easyuo can run again.

I'm going to respond to this portion of your post.  You're assuming that everyone uses Hort, and that no one has a script that makes it easier than Hort does.  I can, and have planted upwards of 3000 plants and tended them all without touching a single button on my keyboard.  Yes it takes a while, hours to tend that many actually, but does that mean that because I can everyone should?  I'm not putting you down for your efforts, congrats, but just because it's possible, doesn't mean everyone should have that ability.  I can name 20 scripts off the top of my head I'm sure that are great scripts, but have had a hand in ruining parts of the economy that would probly have been better left unscripted, or at least private scripts for the authors only.  I understand you want it to be easier, but just because you do, doesn't mean it should be. heh  I know you understand my point, but I'm guessing that you're not a scripter, and would really really LOVE to have a script that does all this for you... am I right? :)  I'll never again release the version of the script I have privately because it's just too good.  And there is such a thing.  I'm sure there are people here who would agree.  Even OMGBurgers. :)  If another good plant script is released, the economy for SORs will die.  It's inevitable.
Title: Re: Plant script
Post by: Kherkus on March 04, 2011, 02:36:06 PM
I do understand where you are coming from and I respect that opinion.  You are also quite right in your assumption of my wanting/needing something that is a little bit faster and little bit more capable than Hort.  I will not say I hate Hort or even dislike.  However, my wife, who also wants to use this computer, has another opinion of its capabilities.  So far, I've gotten into the habit of running Hort in a virtual machine so that she can run whatever she wants on the base machine without interfering with my operation.

As for the numbers I grow, believe me, I know what it's like to grow a massive amount of plants and not have something to help you.  It gets very tiring and very painful on the hands to sit here and click away at a screen on 1000 plants for almost a month.

I agree that some macros should not be spread because of their sheer power.  I believe that scripts that powerful will ruin the game for honest people.  I may use macros and scripts to do certain things in the game, but I prefer to think of myself as one of these honest people who does not hose people for the fun of it, but rather provides a service to the entire community of players.  Growing my plants is my way of serving the people of the game.  Needless to say, my services do have their expenditures.  Reagents for potions, plant bowls, tools, time, etc.

I may not be a script writer, but I do plan on learning be one in the near future.  As soon as I am able to set aside enough free time to seriously study this fine art, I'll be contributing back to this community.

Until then, keep it as real as possible.
Title: Re: Plant script
Post by: Scrripty on March 04, 2011, 02:52:12 PM
My suggestion is to learn to script.  And by the time you get to the point where you can effortlessly write your own plant script that does it just the way you want, you'll completely understand my point of vew on this. :)  It's really not as hard as you think it is.  I agree with sharing with the community too, but it has to be responsibly.  There's people on this very site now that are upset because a script was released publicly and now their own prices on the very same materials they scripted are dropping like crazy.  If you release a good script that makes it easy for everyone to get the resource, you're just killing your own market...  Yes I'm talking about crabbing... :)   Well... yea.... :)  If I can get the same amount of resources as you, I can also beat your price by as much as I want too... heh

EDIT:  Removed references to elite posts in public forum
Title: Re: Plant script
Post by: _C2_ on March 04, 2011, 03:16:43 PM
My suggestion is to learn to script.  And by the time you get to the point where you can effortlessly write your own plant script that does it just the way you want, you'll completely understand my point of vew on this. :)  It's really not as hard as you think it is.  I agree with sharing with the community too, but it has to be responsibly.  There's people on this very site now that are upset because a script was released publicly and now their own prices on the very same materials they scripted are dropping like crazy.  If you release a good script that makes it easy for everyone to get the resource, you're just killing your own market...  Yes I'm talking about crabbing... :)    Well... yea.... :)  If I can get the same amount of resources as you, I can also beat your price by as much as I want too... heh

umm... the thing is that the author who released it is not upset.  he is glad that people are enjoying UO despite sales starting to drop off  ;D.  that was a perk of selling off my testing crabs.  Crabbing was such a miserable activity that I wrote the script with the intent to help others.  I didn't even use it outside of testing the first four or so months.  There are some folks that were making a lot on it that are finally seeing sales cool off as the base of users grows.  Oh well - sorry guys and gals.

come to think about it... tending plants is miserable too!  I have kept certain scripts to myself in the past for gold making or just the fact that they did certain things that you couldnt have multiple people doing on the same shard or it would look ridiculous.  the money you make off seeds is insaneo and certainly worth keeping a script off the shelves especially if the purpose was to gather seeds for making gold.  i cannot hate on that for sure.  I am still keeping one of my fishing scripts private for that reason.  it will go public eventually but for now that was for me to make a little gold for the time sink and work out some final features.

if as many peeps used Twinkle McNugget's plant tender as the crabber... well seeds would be around 400k per 10 within a month and then even lower.  at that point, why even write the darn thing.  unless it was to support a scripting community for something that EA put out that was so ridiculous that you wanted everyone to script it.  The crabber was part grudge towards EA and part favor for a friend.  It irritated me to no end that EA would make that type of process to acquire crabs unless they were catoring to scripters.  My friend was enjoying it so much that I decided to share it.  If i kept it private, I could of made billions on it for sure.  so what, there are a million other ways to make gold.

Twinkle McNugget is right though.  It all depends on your motivation for each particular script.  For most scripters there is a blend of scripting for the community and scripting for themselves.  The themselves part is usually on the down low and not heard about but most have it.  If it is public, you cannot control how folks use it.  There will always be someone that farms just as much or more and will always price lower if the motivation is gold!


Title: Re: Plant script
Post by: Kherkus on March 05, 2011, 07:40:31 AM
Well said C2.  And Twinkle McNugget, I'll let you know my progress when I start studying script writing.  Right now, things are quite chaotic because me and my wife are planning on moving back to our home state.  We're trying to do this without my old man knowing about it.  Unfortunately I still live with him due to circumstance.  He runs his own company and needs my help, in exchange, I get a roof over our heads.  Once were free, I'll start studying as hard as possible.

In the meantime, I'll just continue to contribute to my shard with what I have and wait patiently until something better comes along.
Title: Re: Plant script
Post by: Scrripty on March 05, 2011, 09:45:06 AM
Someone wants to buy me high seas I'll script the hell out of boats/crabs. :)  Until then, aint happenin.