ScriptUO
Official ScriptUO EasyUO Scripts => Script Library => Resource Farming => Topic started by: The Ghost on February 13, 2013, 06:03:07 AM
-
Raised Garden Bed Gathering
;=======================================;
; Script Name: Raised Garden Bed Gathering
; Author: The Ghost
; Version: 1.25( Clipping)
; Shard OSI/FS: OSI
; Revision Date: 11 Oct 2013
; Publish : 13 Feb 1013
; Purpose: Gathering Seed and Resources form Raised Garden Bed
; Mods: By EN
; URL: http://www.scriptuo.com/index.php?topic=10887.0
;===========================================================
;===========================================================
; Warning: All your plants need to be 100% mature
; At the moment it doesn't check for maturity level.
;
Since I wasn't able to find a simple script that will gather the resources from Raised Bed, so I put this together. Since I only have 2 beds, this is limited right now to only get seed and resources to your main pack.
To-DO-List (Working in progress)
- want to add trash option
- drop items into secure
- want to add option to replants
Warning: All your plants need to be 100% mature At the moment it doesn't check for maturity level.
Had to revert to version 1.25 - work better with Human/elf and Gargoyles Char.
- No menu, just hit play.
Updated Ver 2.2 Beta - I have test this Ver. and it work better
- Fix a few typo mistake causing to loot
- Add Clipping only. When you are done harvesting, just select clipping.
Known problem
- Still have problem with Harvest only, Won't ignore the last plant harvested .
- Still can't replant
Updated Ver. 2.0 Beta - Rebuild the Menu with 2 modes. This should fix the problem of not all the plants mature.
- Remove the Replants option, wasn't fully tested.
Updated Ver. 1.3 : Added a menu
Added a Replant Sub
Added all Plants Types
Updated Ver. 1.1 (change goto to gosub) Thx EN's
This is a beta release, so please post any feedback, bugs, etc.
-
Thanks! I'll try this out when my next group of beds matures.
-
nice ill give this a whirl.. i have 5 garden beds half empty and half full of resoucres witing for a script to gather them up.
It works well.. but do i hate the way some of that code is written all those gotos errr lol.... i would suggest you add DMC to the end of your click commands ie click x y DMC .. DMC = do not move cursor...
... great little script thanks.
-
Thanks for posting this.
I've give this a try when the next batch is ready to yield.
I have certain plants set up just for gathering seeds of renewal and a separate batch in another house for colored plants.
I'll try and post my Garden Bed Plant Seeds Subs and a Garden Bed Plant Decoration Converter & Cutter subs in a day or so.
I need a another day or two of growth so I can test the subs and changes I made.
-
Finnally new plants in my garden beds...I vote yes for adding in planting a seed and using clippers.
----------------------------------------------------
Not trying to hijack your script... but the gotos got to me so i removed them all and added some more plant types, so it would work for me... and added in mutant plant no seed messages. You can use the code below if you want or not if you dont.. Or just use it as an example of removing gotos... :)
;=======================================;
; Script Name: Raised Garden Bed Gathering
; Author: The Ghost
; Version: 0.1
; Shard OSI/FS: OSI
; Revision Date: 3 Feb 2013
; Purpose: Gathering Seed and Resourses form Raised Garden Bed
; Mods: By EN
;================================================================
set %planttypes MWE_BCF_NTE_BWE_REK
repeat
finditem %planttypes G_5
if #findcnt >= 1
gosub ProcessPlant
until #findcnt = 0
Halt
sub ProcessPlant
gosub harvest
gosub Gather 150 170 no_resources do_not_produce_resources ; Petals
gosub Gather 222 170 no_seeds do_not_produce_seeds ; Seeds
gosub trash
return
; ------------- harvest ---------------
sub harvest
set #lobjectid #findid
event macro 17 0
wait 10
; Open Resource page
set %clickX #contPosX + 80
set %clickY #contPosY + 75
Click %clickX %clickY DMC
wait 10
return
; ------------- Generic Gather ---------------
sub Gather ;Pass: clickx clicky Journalmsg1 JournalMsg2
set !endmsg #false
set %clickX #contPosX + %1
set %clickY #contPosY + %2
repeat
set %ji #jindex
Click %clickX %clickY DMC
wait 10
for %1 %ji #jindex
{
scanjournal %i
set !endmsg !endmsg || %3 in #Journal || %4 in #Journal
}
until !endmsg = #true
return
; ----------------- trash ------------------------
sub trash
set %clickX #contPosX + 220
set %clickY #contPosY + 76
Click %clickX %clickY DMC
wait 10
set %clickX #contPosX + 180
set %clickY #contPosY + 150
Click %clickX %clickY
wait 10
return
-
Now I'm scared to post my subs! ???
What I would look for in a Garden Bed script...an AIO..would be plant the seeds, cross pollinate, extract the seeds or resource, convert the plant to decoration and cut it up.
I have Garden Beds on multiple floors of my 18x18 which seems to cause some conflict with plants being out of reach.
We need..ahem...an OEUO AIO Garden Bed Script! ;)
-
Now I'm scared to post my subs! ???
What I would look for in a Garden Bed script...an AIO..would be plant the seeds, cross pollinate, extract the seeds or resource, convert the plant to decoration and cut it up.
I have Garden Beds on multiple floors of my 18x18 which seems to cause some conflict with plants being out of reach.
We need..ahem...an OEUO AIO Garden Bed Script! ;)
dont be scared post them post them.. if you want i can look them over and spice em up, or ghost will .. or not if you prefer... I agree would be nice to have a script that would search out the different beds on different floors and do all above. To solve the out of reach you can do a y axis check.. post your subs ....
-
Finnally new plants in my garden beds...I vote yes for adding in planting a seed and using clippers.
----------------------------------------------------
Not trying to hijack your script... but the gotos got to me so i removed them all and added some more plant types, so it would work for me... and added in mutant plant no seed messages. You can use the code below if you want or not if you dont.. Or just use it as an example of removing gotos... :)
End Night, you are part of my mentor in UOS (Kali as well), so any suggestion on how to do this better I will try to do. I'm just an old fart trying to learn this. I will see what I can do. I have been work on other script lately.
-
Now I'm scared to post my subs! ???
Nah. EN is very gentle when he's beating you over the head with your coding inefficiencies. I barely even notice it anymore.
;)
-
I'm working on replant sub now. I got all the ID
set %raisebed NOCD_LOCB_ROCB_APCB_XOCB_YOCB_OOCB_MOCB_SOCB.
Now the fun part, wait 7 days before I can try any sub, :( give me time go come up with something good.
-
I'll need to test these out again tomorrow but I believe they will work. Now nobody laugh at this code! I'm sure my syntax breaks all kinds of rules and what not. I piecemealed them together looking at other peoples code. Yes I know it's messy but anything that worked I was happy with being that there are no planting scripts that center around GBs.
Garden Bed Seed Planter
set %gardenbed OOCB_APCB_NOCB_MOCB_XOCB_LOCB_SOCB_YOCB_ROCB
set %seed PDF
Gosub Plant
Sub Plant
finditem %seed C_ , #backpackid
if #findkind = -1
{
display Life's a Garden. Dig it! Your are out of seeds. Grab some more seeds and restart the script.
Halt
}
else
set %lobjectid #findid
set #lobjectid #findid
event macro 17
target
finditem %gardenbed G_4
set #ltargetid #findid
set #ltargetkind 1
event macro 22
ignoreitem #findid
wait 10
repeat
Garden Bed Plant Decoration Converter and Cut Up Sub
set %plant QLI_OLI_BCF_VWE_BWE_UAF_JWE_IWE_EXE_UWE_ICF_BXE_YVE_CCF_NWE_MWE_DXE_TCF_NXE_BKP_ZJP_MKP_AKP_CKP_OKP_NKP_LKP_TXE_ZBF_AIF_GWE_VWE_WTE_ZBF_BWE_BCF_CCF_SVE_IWE_MWE_YVE_REK_QVE_BFK_WTE_FWE_NXE_CYE_JDF_WWE_ISN
set %clippers JFF_KFF
set %wait 20
finditem %plant G_4
set #lobjectid #findid
event macro 17 0
wait %wait
wait 1s
click 100 95
wait %wait
click 241 95
wait %wait
click 200 170
wait %wait
finditem %clippers C_ , #backpackid
if #findkind = -1
Display We need some more clippers to finish the job!$
else
set #lobjectid #findid
event macro 17 0
target
finditem %plant C_ , #backpackid
set #ltargetid #findid
set #ltargetkind 1
event macro 22
wait 5
repeat
-
Version 1.3 is out.
I work on this a bit more tonight, I added a menu option to choice form Harvest, Gather and Replant. I have trial the replant and it work on my side. My beds are not ready to test other options. Let me know how this work for you guy. The Clipping will come soon and the trash option as well.
-
Version 1.3 is out.
I work on this a bit more tonight, I added a menu option to choice form Harvest, Gather and Replant. I have trial the replant and it work on my side. My beds are not ready to test other options. Let me know how this work for you guy. The Clipping will come soon and the trash option as well.
sweet inone week i will test this
-
Believe I'll have a few to test tonight. We'll see. I use fertile dirt and that doesn't always get me the double growth checks.
-
NOOOOO!
I didn't realize that this assumed all your plants were 100% mature. It just set a bunch of 4/8 plants to decorative... =/
Other than that, 1.3 appears to work very well.
-
I was able to test my Subs this morning, made some changes, and they working (for me anyhow)! ;)
Now for a Cross Pollinator!
Currently I'm using KalioLS Cross-Pollinator but I have issues with the Garden Beds being that they are on multiple floors and out of reach.
Ghost looking forward to testing your script come harvest time in another week or so.
-
We are in the same boat, all our bed are in the first week of grow. :) days 4 for me. :)) I'm harassing (mostly been annoying) my friend right now to use his bed. I'm sure if he change the security I can harvest for him.
Sent me your sub for Cross Pollinator so I can add this.
-
I'm using KalioLS Cross-Pollinator which is posted on that other forum. ;)
I just ran KalioLS cross Pollinator all my Garden Beds. I do get a message saying many of my plants are out of reach, however it cycles through them all pretty fast.
I just have to move around my 18X18 to make sure I hit them all.
So there is a working Cross Pollinator for GBs.
-
Have you try to change the raise for G_4 . each floor 5 title maybe that can help. Never try to CP, dont see the point. Maybe I'm missing on some good items. :)
-
Yeah I changed all of the scripts to G_4.
Cross Pollinate allows you to a chance to get mutant seeds i.e. White/Black Seeds.
I have 72 Garden Beds on 3 Floors so part of my problem is there are so many plants the script looks for.
I'm not sure why it says that is out of reach when the script searching a 4 tile radius.
-
I do the Naturalist quest to get Rare seed ( aqua, white,black,red fire) took 8 min on a rail :))
-
The reason you find plants on other floors when you do g_4 is becuase g_4 only looks at x and y not Z
Think about it if your at pos x:y 3434 5656 on the first floor and then walk upstairs to the same spot your still at 3434 5656. what changed your charposz. So if you do a search on g_4 you will get every plant at 3434 5656 on what ever floor its on.
simple fix .. check the Z cord is in the same range as your character. ie Z < #charposz + Maxz and z > #charposz - minz
in code that would be
set %maxz ??
set %minz ??
finditem %plants G_4
for #findindex 1 #findcnt
{
if #findz < #charposz + %maxz && #findz > #charposz - %minz
gosub plantactions #findid
}
-
I'm working a new menu so what happen to NObama (I didn't realize that this assumed all your plants were 100% mature.) doesn't happen again.
-
The reason you find plants on other floors when you do g_4 is becuase g_4 only looks at x and y not Z
Think about it if your at pos x:y 3434 5656 on the first floor and then walk upstairs to the same spot your still at 3434 5656. what changed your charposz. So if you do a search on g_4 you will get every plant at 3434 5656 on what ever floor its on.
simple fix .. check the Z cord is in the same range as your character. ie Z < #charposz + Maxz and z > #charposz - minz
in code that would be
set %maxz ??
set %minz ??
finditem %plants G_4
for #findindex 1 #findcnt
{
if #findz < #charposz + %maxz && #findz > #charposz - %minz
gosub plantactions #findid
}
Thanks for that tidbit EN. I'll try and play with this and see if I can't get it integrated in KalioLS Cross Pollinator.
-
Awesome to see this in production. I will be a loyal tester (well every 14-18 days w/e it takes for the beds to fill). I just got carpels tunnel from emptying all 12 of my beds and replanting. So it'll be two weeks before I can really test it out. I'm not good at writing, but I'm usually pretty good at figuring out where, what and why the code isn't working. Wish I would have seen this not even 2 hours ago :(.
*added*
Someone mentioned setting the access onto the plants, so co-owners/friends could pick the plants? How do you do this? single clicking and I wish to secure doesn't seem to be working for me?
-
You should be able to hover the mouse over the Garden Bed and the context menu for security should appear which you can then select and change the access level.
If not, Shift+Click maybe.
-
I hasn't been able to change security with plant in it. I think the bed required to be M/T for that. 11 more days before I can test that.
-
That's right...I think I remember reading by default only the owners and co-owners can access the GB.
-
Hows this coming along? anything you want me to test? I'll have 8 beds full tomorrow.
-
Sorry, was out of town, for work reason. Only have a few hours on weeks until May. Right now I'm having issue with the replanting seed. it only see the top right corner. I need to figure out how to plant on the 8 other titles.
-
I tried the latest two versions, but it didn't work at all. Then like a newb, I noticed I was on a red thrower -- so that might have been why. I'll test again on a blue (gotta make a blue lol). I still haven't found a way to change the security on the beds, tried everything mentioned earlier, it just wouldn't work.
-
Hi
I have been following this with interest and tried each versions. The last version worked the best for me although it only did three plants south of me on the right side of the garden bed.
I have 11 beds in a U shaped formation but when it has worked it has only worked for a few then says "too far away". The clipping worked perfectly.
For me, the issue is not floors as it is all on the same level (roof of a castle). Any ideas as when it works it is brilliant but the range is limited to south side only and then only a few in a garden bed. Also, the character moves around as if on auto follow or something? Hope this may give you a clue as to the problem.
Thanks for all the hard work.
Starwoman
-
Had to make a blue, and wait for plants to grow:
Ran 2.2(BETA) and it worked like a charm (only did full Harvest).
I did have to move my character around, but I don't consider that to be a big deal. Sometimes it wanted to grab a plant further away, but stopping and restarting fixed that.
Still not sure why a red char, and a gargoyle of either alignment doesn't work?
-
Love the menu.... but function seems to have broken. My char is standing between 2 mature garden beds . When I pick harvest I get a popup saying plant has been processed even thow nothing happened and the menu no longer does anything.
Lots of great potential .. carnt wait to get this moved into the library once its working again.
-
Been busy fixing and upgraded old script.
The more option I add the more is since to bug. Going to try to make time fix/repair it.
-
I reverted to Ver 1.25 I just harvest 4 beds 2 with elf and 2 with Gargoyles.
No menu, nothing fancy for now, Just hit play Enjoy
-
well I finally decided to try this script since I have 12 beds, it worked for the first row in 2 beds and the quit. can't get it to work anymore, would appreciate it if u could get this to work...its a great idea and I'm sure would get used a lot.....plz reconcider coming back and fixing it :)
-
HI Kandie.
would love to help, but I'm in the middle of the ocean. Use version 1.25 with clipper. I have 3 beds in a L shape at my castle and it work fine. I did notice that you can't click other object in game while it running. Hope that help a bit until I return
-
ok thanks, I'll have to wait till I can move mine into a L shape then. right now they run along the South and West walls of my house and a few beds in the middle of the room
-
THe "L" shape allow you to get 3 beds and ensure the are not on deiffrent level, because of the G_5 range. That can be where ur problem is not. Move it to G_3 and stand in the middle of a single bed.
-
Just looking for a status update to this script... any progress since last post.
-
Still the same, haven't figure how to replant the garden bed yet. So the later version the th emost stable for me a this time.
-
say was just looking for 2.2 ver does this work ?
-
No, I had to remove it due to instability. Ver 1.25 is the stable one. I haven't work on this since it does what I need for now. I'm working on having the seeding to work. Right now they are two separate build. I know you were looking to build ur own from what I read on other forum. Hope that will get you started.
-
say to run 1.25 all the seeds have to be done
like 9.
-
Ver 1.25 have no safety. meaning that he doesn't check if the plant is mature. so when u have 8/8 run the script. It will put the plant to deco mode and clip them.
-
so I have 2 seed try to take them the
script did nothing. Just wait till I have 9 ?
-
Yes because if u run it with 2 seeds you will lose 6 days.
-
well I tried with one bed did nothing at all.
Any ideas ?
-
do you have a pair of clipper in ur pack and stand close to the bed
-
got clippers tried this morning still nothing
sometimes I get can't reach that.
can this be done by humans ?
or do I need other char ?
-
Yes Human should work, I use a Elf to do mine. The next cycle I will try all 3 races.
Also, you can try closing all the bag except your mainpack. Need more info on your set tup. This have been trail with 2 beds side by side or 2 beds , one on each floor.
-
I have 4 on west wall with a space in between 2
then one on south wall
-
wow got scrip to work perfect awesome scrip.
-
Sorry I'm 2/8 i my harvesting before I can test anything. Here a pic of where I stand and how are my bed are place in my castle. Each tower have this set up
-
I took 5 beds in a row from east to west next to wall
then skip a tile 5 more beds the same and 5 more
worked perfect. trying it again will let you know
how it works
-
Say can I get a copy of 2.2 I would like to see if I can run it. thx.
-
Warning Ver 2.2 beta is not stable. use at your own risk
Here Gandolf ,
Have fun and let me know if you manage to fix it. I didn't have enough time to tackle this one for now.
-
ok top section works great the full process the part I am working on is Harvest only that I can't get to work?
-
Some macro(option) may had been turn off in the script.
-
well every time I put harvest on it tells me to far away When I press F7
this is the place it keep going over and over
sub harvest
set #lobjectid #findid
event macro 17 0
wait 10
; Open Resource page
set %clickX #contPosX + 80
set %clickY #contPosY + 75
Click %clickX %clickY DMC ; Don't Move Cursor
wait 10
return
; --------------- End Sub ---------
-
ok I think I found it this is the part for Harvesting.
If I take the 1 out it works put one back it doesn.t
Also can't get resources container to work.
; ---------- Process Plant Only ------------------
sub HarvestOnly
Repeat
finditem %planttypes G_5
if #findcnt >= 1
gosub ProcessPlant1
until #findcnt = 0
display Done Processing Plant
Halt
sub ProcessPlant1
gosub harvest
gosub Gather 150 170 no_resources do_not_produce_resources ; Petals
gosub Gather 222 170 no_seeds do_not_produce_seeds ; Seeds
gosub closewindow
return
; --------------- End Sub--------------
-
I only have 4 Beds, so I don't have any of the issue you guy having with the distance. I regroup them by two in each tower. I need to start from old build that work and rebuild the menu and the flow. Right now Ver 1.15 work great to harvest and clip all deco. If you want don't want to clip the deco, just comment out ; gosub Clipping .
I will see if I can find some time and fix the menu.
Gandolf :
sub CheckOption
menu get ProcessPlantbox
if #menures = #true
set %ProcessPlant #true
else
set %ProcessPlant #false <--------- remove one %. it read set %%ProcessPlant #false
-
ok took the % out but still won't work in
Harvest , I wonder can it be in the menu
I don't see plant1 in menu. thx
-
Did u try to new ver I send you
Forget 2.2 it full of problem that why I stop working on it.
-
say I know it is in the menu so I will work on that .maybe I can
get some help from easyuo. without exposing the whole scrip
What do you think?
-
Fill your boot, Did you try Ver 5.
-
May I ask what are you talking about ?
-
In your message I pm you ver 5 for testing
-
Say did you get my message ?
-
Look in your inbox. you will see it.
-
Nothing there
-
Going to posted here.
-
Ok ran scrip collected pedals, but would not go
to next plant
-
Need to wait 5 days before I can harvest my bed. Sorry but you ganna have to wait.
-
can you harvest my beds ?
-
I beleive their are account bound. If you have two account try to change the security and test it. I will try when I get home.
-
ok my icq is 474371121
-
I have four of these beds in my bank box gathering dust, I never took part in seed mania. I'm curious though, are these things remotely profitable or is what they do basically for your own consumption? I see white/black plants selling for an OK amount but those are rare I guess? Petals don't seem to sell at all, or for very little, according to the amounts and prices on vendor search.
What are you planting to make these generate gold?
-
I'm not doing it for generate gold. I do it to gather orange petal and green thorn. I have 4 bed, and if I'm lucky I can gather 6 to 12 seed of reneal. I do also the naturalist quest to get the race colour, but those are mostly for me to get the colour clipping so I can make colour dye. I try the vendor game and spend to much time trying to sell and supply my vendor then playing. So many ppl are go to me that I like returning the favor when I can.
-
I have 65 beds I do for dye and if you cross pollen I can get black and white seeds
plus I can get petals.
-
I have tonns of black and white seeds from doing natrualist quest years ago .. what are they worth these days maybe i should liquidate.
-
I have 65 beds I do for dye and if you cross pollen I can get black and white seeds
plus I can get petals.
Now I understand why Gandolf is pushing the issue. I will ICQ you and try to help you. The only way to access ur bed is if I plant the seed myself. Can I borrow I few bed for testing. I will find some time and see how I can fix the new build.
-
How many you want ?
-
Curious if anyone has time again to play with this script?
It seems like it has a lot of potential just needs to figure out how to grab the plants around the character...
-
I would like to thank you for allowing us to use your Script. I have been using it for a little while and have not had a problem. Thanks once again.
-
Hmm I can only get this to work on a few different spots not all of them. and it will only clip one plant and i have to restart. also the vanilla plant is MSBC. :) Is this still a work in progress ghost?
-
Yes, I did play a bit with this version but was doing the job I wanted. I will look to see what new on my version. Thx for the ID
-
Np, also when I say it works in a few spots I mean just on the single garden bed. It will take only one of the nine portions. Is that how its supposed to work? if not how can I help with this cus ive wanted one of these for ages!
-
it was first build for only 2 bed, since I only had two :) Ver 1.3 should be able to handle 2 floor of bed maybe 3 floors. I have 4 bed now and I can harvest all four from the same location. I will post a pic of my setup.
-
That would be awesome. also i have a keep.
-
Ghost how can I help with this scripting project of yours?
-
Thx valen,
Load up ver 1.3 and see if you have any issue. Like I said I only 4 beds and they ar setup like the pic. When I stand on the middle I can access all 4.
I know that some ppl have their bed on 3 floors. If you stand on the middle floor, it should gt all 6 bed.
-
I will give this a try and see how it works.
-
Ok so ghost. I have a quesetion about 1.3. So it will gather the stuff but whenver it clips something or replants something the gump will always reset. is that supposed to happen?
-
Cant remember. I forget I had 1.3 I had been use 1.25 W/Clipper :) Will have to wait 12 days before I can test again. The gump should reset to the current one. The only I notice the old gump staying is when u touch the mouse. FYI you cant play ontwo client when u runt it.
-
It kept clearing all the checkboxes. I was only doing one account. How does it attempt to locate a plant box? because i can be standing right next to one and it says item is too far away. random question. does this require the old mul files?
-
Not need of the mul files.
the X are the plant, if you stand on the middle of two you are able to reach all 18. If you have 2 floors, just ensure that they are in line. This is how the script should work.
2 Bed 4 Bed
xxx xxx xxx xxx
xxx you xxx xxx xxx
xxx xxx xxx xxx
You
xxx xxx
xxx xxx
xxx xxx
-
Hmm. ill have to try again. you are using the 1.25?
xxx xxx xxx
xxx xxx xxx
xxx xxx xxx
xxx
x xxx
xxx
This is generally how im trying now. doesnt seem to pick up any of them.
-
4 bed is the max you can reach. You will need to move them.
-
I am the single x. There are only 4 beds. I stand where I out the single x and it doesn't ever start picking stuff from the plants. I made sure the plant I'd is in the code too
-
This is how you need to stand. U can only reach 4 titles.
-
Ok I'll give this a go
-
Hi! I have been using 1.25 w/clipping with great success previously, but now with euo 327 and the journal issue, its no longer working. Is there a way to work around the use of journal in the script?
-
I havent look at other way. Wait a few day until cheffe fix the scan journal
-
Ok! Will do! Thanks for answering: Awesome script by the way...hope the journal problem dont take long for Cheffe to fix :)
-
Congratulations your Script has been moved to the Script library
(If you feel the script is in the wrong section please send me a pm.)
Thank you for your submission.
-
Outstanding, thank you for saving my wrists, TRULY!!... :)