ScriptUO

Official ScriptUO EasyUO Scripts => Script Library => Resource Farming => Topic started by: The Ghost on February 13, 2013, 06:03:07 AM

Title: Garden Bed Gathering
Post by: The Ghost on February 13, 2013, 06:03:07 AM
 Raised Garden Bed Gathering
Code: [Select]
;=======================================;
; 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.
Title: Re: Garden Bed Gathering
Post by: NObama on February 13, 2013, 06:15:15 AM
Thanks!  I'll try this out when my next group of beds matures. 
Title: Re: Garden Bed Gathering
Post by: Endless Night on February 13, 2013, 09:38:03 AM
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.
Title: Re: Garden Bed Gathering
Post by: Ultima on February 13, 2013, 10:42:17 AM
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.
Title: Re: Garden Bed Gathering
Post by: Endless Night on February 13, 2013, 10:51:57 AM
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... :)

Code: [Select]
;=======================================;
; 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


 

Title: Re: Garden Bed Gathering
Post by: Ultima on February 13, 2013, 10:56:43 AM
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! ;)
Title: Re: Garden Bed Gathering
Post by: Endless Night on February 13, 2013, 11:11:26 AM
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 ....
Title: Re: Garden Bed Gathering
Post by: The Ghost on February 13, 2013, 11:16:19 AM
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.   
Title: Re: Garden Bed Gathering
Post by: NObama on February 13, 2013, 04:51:53 PM
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.

 ;)
Title: Re: Garden Bed Gathering
Post by: The Ghost on February 13, 2013, 05:37:32 PM
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.
Title: Re: Garden Bed Gathering
Post by: Ultima on February 13, 2013, 07:30:21 PM
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
Code: [Select]
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
Code: [Select]
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
Title: Re: Garden Bed Gathering
Post by: The Ghost on February 13, 2013, 09:23:10 PM
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.
Title: Re: Garden Bed Gathering
Post by: Endless Night on February 14, 2013, 07:09:26 AM
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
Title: Re: Garden Bed Gathering
Post by: NObama on February 15, 2013, 08:55:03 AM
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.

Title: Re: Garden Bed Gathering
Post by: NObama on February 16, 2013, 02:54:51 AM
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.
Title: Re: Garden Bed Gathering
Post by: Ultima on February 16, 2013, 08:18:52 AM
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.
Title: Re: Garden Bed Gathering
Post by: The Ghost on February 16, 2013, 09:05:56 AM
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.
Title: Re: Garden Bed Gathering
Post by: Ultima on February 16, 2013, 09:33:02 AM
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.
Title: Re: Garden Bed Gathering
Post by: The Ghost on February 16, 2013, 09:50:07 AM
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. :)
Title: Re: Garden Bed Gathering
Post by: Ultima on February 16, 2013, 10:21:04 AM
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.
Title: Re: Garden Bed Gathering
Post by: The Ghost on February 16, 2013, 12:21:53 PM
I do the Naturalist quest to get Rare seed ( aqua, white,black,red fire)  took 8 min on a rail :))
Title: Re: Garden Bed Gathering
Post by: Endless Night on February 16, 2013, 08:26:08 PM
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
Code: [Select]
set %maxz ??
set %minz ??
finditem %plants G_4
for #findindex 1 #findcnt
  {
  if #findz < #charposz + %maxz && #findz > #charposz - %minz
      gosub plantactions #findid
    }

Title: Re: Garden Bed Gathering
Post by: The Ghost on February 17, 2013, 08:15:52 AM
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. 
Title: Re: Garden Bed Gathering
Post by: Ultima on February 18, 2013, 09:58:27 AM
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
Code: [Select]
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.
Title: Re: Garden Bed Gathering
Post by: alonzo104 on February 19, 2013, 12:13:52 AM
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?
Title: Re: Garden Bed Gathering
Post by: Ultima on February 19, 2013, 08:51:47 AM
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.
Title: Re: Garden Bed Gathering
Post by: The Ghost on February 19, 2013, 05:33:14 PM
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.
Title: Re: Garden Bed Gathering
Post by: Ultima on February 19, 2013, 07:54:49 PM
That's right...I think I remember reading by default only the owners and co-owners can access the GB.
Title: Re: Garden Bed Gathering
Post by: alonzo104 on March 07, 2013, 01:03:45 PM
Hows this coming along?  anything you want me to test?  I'll have 8 beds full tomorrow.
Title: Re: Garden Bed Gathering
Post by: The Ghost on March 08, 2013, 02:29:46 PM
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.
Title: Re: Garden Bed Gathering
Post by: alonzo104 on March 12, 2013, 07:39:01 PM
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.
Title: Re: Garden Bed Gathering
Post by: StarWoman on March 17, 2013, 12:51:06 PM
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
Title: Re: Garden Bed Gathering
Post by: alonzo104 on April 14, 2013, 10:46:01 PM
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? 
Title: Re: Garden Bed Gathering
Post by: Endless Night on October 08, 2013, 08:19:10 AM
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.
Title: Re: Garden Bed Gathering
Post by: The Ghost on October 08, 2013, 04:02:12 PM
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.
Title: Re: Garden Bed Gathering
Post by: The Ghost on October 11, 2013, 03:31:51 PM
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
Title: Re: Garden Bed Gathering
Post by: Kandie on July 08, 2014, 01:46:51 PM
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 :)
Title: Re: Garden Bed Gathering
Post by: The Ghost on July 09, 2014, 05:10:25 AM
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
Title: Re: Garden Bed Gathering
Post by: Kandie on July 09, 2014, 07:06:46 AM
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
Title: Re: Garden Bed Gathering
Post by: The Ghost on July 10, 2014, 03:18:41 AM
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.
Title: Re: Garden Bed Gathering
Post by: Endless Night on April 07, 2015, 09:49:58 AM
Just looking for a status update to this script... any progress since last post.
Title: Re: Garden Bed Gathering
Post by: The Ghost on April 07, 2015, 11:09:22 AM
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.
Title: Re: Garden Bed Gathering
Post by: Gandolf on September 17, 2015, 01:03:30 PM
say was just looking for 2.2 ver does this work ?
Title: Re: Garden Bed Gathering
Post by: The Ghost on September 17, 2015, 03:27:12 PM
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. 
Title: Re: Garden Bed Gathering
Post by: Gandolf on September 27, 2015, 08:03:45 AM
say to run 1.25 all the seeds have to be done
like 9.
Title: Re: Garden Bed Gathering
Post by: The Ghost on September 27, 2015, 09:38:18 AM
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.     
Title: Re: Garden Bed Gathering
Post by: Gandolf on September 27, 2015, 02:58:41 PM
so I have 2 seed try to take them the
script did nothing. Just wait till I have 9 ?
Title: Re: Garden Bed Gathering
Post by: The Ghost on September 27, 2015, 05:31:23 PM
Yes because if u run it with 2 seeds  you will lose 6 days.
Title: Re: Garden Bed Gathering
Post by: Gandolf on September 27, 2015, 06:24:28 PM
well I tried with one bed did nothing at all.
Any ideas ?
Title: Re: Garden Bed Gathering
Post by: The Ghost on September 28, 2015, 02:51:40 AM
do you have a pair of clipper in ur pack and stand close to the bed
Title: Re: Garden Bed Gathering
Post by: Gandolf on September 28, 2015, 06:27:19 AM
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 ?
Title: Re: Garden Bed Gathering
Post by: The Ghost on September 28, 2015, 07:28:11 AM
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. 
Title: Re: Garden Bed Gathering
Post by: Gandolf on September 28, 2015, 09:07:10 AM
I have 4 on west wall with a space in between 2
then one on  south wall
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 01, 2015, 11:50:36 AM
wow got scrip to work perfect awesome scrip.
Title: Re: Garden Bed Gathering
Post by: The Ghost on October 01, 2015, 04:18:30 PM
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
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 01, 2015, 06:06:12 PM
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
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 13, 2015, 06:01:36 AM
Say can I get a copy of 2.2 I would like to see if I can run it. thx.
Title: Re: Garden Bed Gathering
Post by: The Ghost on October 13, 2015, 09:22:07 AM
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.
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 16, 2015, 07:06:54 AM
ok top section works great the full process the part I am working on is Harvest only that I can't get to work?
Title: Re: Garden Bed Gathering
Post by: The Ghost on October 16, 2015, 07:12:09 AM
Some macro(option) may had been turn off in the script. 
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 16, 2015, 07:35:57 AM
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 ---------
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 16, 2015, 10:32:44 AM
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--------------
Title: Re: Garden Bed Gathering
Post by: The Ghost on October 16, 2015, 03:06:54 PM
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 :
Code: [Select]
sub CheckOption
menu get ProcessPlantbox
    if #menures = #true
       set %ProcessPlant #true
    else
        set %ProcessPlant #false   <---------  remove one %.   it read set %%ProcessPlant #false
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 17, 2015, 10:43:41 AM
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



Title: Re: Garden Bed Gathering
Post by: The Ghost on October 17, 2015, 11:35:45 AM
Did u try to new ver I send you

Forget 2.2  it full of problem that why I stop working on it. 
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 18, 2015, 09:32:22 AM
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?
Title: Re: Garden Bed Gathering
Post by: The Ghost on October 18, 2015, 10:34:07 AM
Fill your boot,  Did you try Ver 5.
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 18, 2015, 11:09:13 AM
May I ask what are you talking about ?
Title: Re: Garden Bed Gathering
Post by: The Ghost on October 18, 2015, 11:58:54 AM
In your message I pm you ver 5 for testing
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 19, 2015, 06:18:16 AM
Say did you get my message ?
Title: Re: Garden Bed Gathering
Post by: The Ghost on October 19, 2015, 08:20:56 AM
Look in your inbox.  you will see it.
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 19, 2015, 03:22:43 PM
Nothing there
Title: Re: Garden Bed Gathering
Post by: The Ghost on October 19, 2015, 06:29:20 PM
Going to posted here.
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 20, 2015, 04:21:48 AM
Ok ran scrip collected pedals, but would not go
to next plant
Title: Re: Garden Bed Gathering
Post by: The Ghost on October 20, 2015, 06:29:28 AM
Need to wait 5 days before I can harvest my bed. Sorry but you ganna have to wait. 
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 20, 2015, 08:02:06 AM
can you harvest my beds ?
Title: Re: Garden Bed Gathering
Post by: The Ghost on October 20, 2015, 08:23:54 AM
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.
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 20, 2015, 08:40:06 AM
ok my icq is 474371121
Title: Re: Garden Bed Gathering
Post by: Gemviper on October 20, 2015, 07:52:39 PM
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?
Title: Re: Garden Bed Gathering
Post by: The Ghost on October 21, 2015, 04:19:50 AM
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.
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 21, 2015, 04:26:00 PM
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.
Title: Re: Garden Bed Gathering
Post by: Endless Night on October 22, 2015, 06:06:50 AM
I have tonns of black and white seeds from doing natrualist quest years ago .. what are they worth these days maybe i should liquidate.
Title: Re: Garden Bed Gathering
Post by: The Ghost on October 22, 2015, 08:15:20 AM
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.
Title: Re: Garden Bed Gathering
Post by: Gandolf on October 22, 2015, 04:23:57 PM
How many you want ?
Title: Re: Garden Bed Gathering
Post by: Wyst on December 18, 2016, 09:57:08 AM
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...
Title: Re: Garden Bed Gathering
Post by: REEFHAWK on January 21, 2017, 05:52:09 AM
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. 
Title: Re: Garden Bed Gathering
Post by: valen2.0 on January 26, 2017, 09:20:19 PM
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?
Title: Re: Garden Bed Gathering
Post by: The Ghost on January 27, 2017, 03:52:23 AM
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
Title: Re: Garden Bed Gathering
Post by: valen2.0 on January 27, 2017, 03:45:01 PM
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!
Title: Re: Garden Bed Gathering
Post by: The Ghost on January 27, 2017, 06:55:21 PM
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.
Title: Re: Garden Bed Gathering
Post by: valen2.0 on January 27, 2017, 07:43:32 PM
That would be awesome. also i have a keep.
Title: Re: Garden Bed Gathering
Post by: valen2.0 on January 29, 2017, 11:39:32 AM
Ghost how can I help with this scripting project of yours?
Title: Re: Garden Bed Gathering
Post by: The Ghost on January 29, 2017, 02:00:56 PM
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.     
Title: Re: Garden Bed Gathering
Post by: valen2.0 on January 29, 2017, 02:43:35 PM
I will give this a try and see how it works.
Title: Re: Garden Bed Gathering
Post by: valen2.0 on January 30, 2017, 08:55:28 PM
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?
Title: Re: Garden Bed Gathering
Post by: The Ghost on January 31, 2017, 02:58:08 AM
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. 
Title: Re: Garden Bed Gathering
Post by: valen2.0 on January 31, 2017, 07:12:18 AM
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?
Title: Re: Garden Bed Gathering
Post by: The Ghost on January 31, 2017, 08:46:17 AM
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 
Title: Re: Garden Bed Gathering
Post by: valen2.0 on January 31, 2017, 10:30:50 AM
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.
Title: Re: Garden Bed Gathering
Post by: The Ghost on January 31, 2017, 12:54:45 PM
4 bed is the max you can reach.  You will need to move them.
Title: Re: Garden Bed Gathering
Post by: valen2.0 on January 31, 2017, 02:30:32 PM
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
Title: Re: Garden Bed Gathering
Post by: The Ghost on January 31, 2017, 02:54:41 PM
This is how you need to stand.  U can only reach 4 titles.
Title: Re: Garden Bed Gathering
Post by: valen2.0 on February 01, 2017, 10:37:23 PM
Ok I'll give this a go
Title: Re: Garden Bed Gathering
Post by: Hrafn on April 03, 2018, 09:40:31 AM
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?
Title: Re: Garden Bed Gathering
Post by: The Ghost on April 03, 2018, 11:07:04 AM
I havent look at other way.  Wait a few day until cheffe fix the scan journal
Title: Re: Garden Bed Gathering
Post by: Hrafn on April 03, 2018, 11:28:13 AM
Ok! Will do! Thanks for answering: Awesome script by the way...hope the journal problem dont take long for Cheffe to fix :)
Title: Re: Garden Bed Gathering
Post by: Endless Night on November 15, 2019, 08:53:48 PM
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.
Title: Re: Garden Bed Gathering
Post by: crashtestdummy on March 11, 2024, 06:34:29 AM
Outstanding, thank you for saving my wrists, TRULY!!...  :)