Official ScriptUO EasyUO Scripts > Resource Farming

Garden Bed Gathering

(1/22) > >>

The Ghost:
 Raised Garden Bed Gathering

--- Code: ---;=======================================;
; 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.
;                
--- End code ---

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.

NObama:
Thanks!  I'll try this out when my next group of beds matures. 

Endless Night:
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.

Ultima:
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.

Endless Night:
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: ---;=======================================;
; 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



--- End code ---
 

Navigation

[0] Message Index

[#] Next page

Go to full version