REALLY Lazy Gardener (Modified) by wolfgeist

Description: UPDATED: Now searches for large wooden plant boxes, small wooden plant boxes, and the huge clay pot from NPC vendor. Warns if your watering can isn't full and if you're below 100 soil. Also closes the main gump at the end of the script.

This script is based off of the "Lazy Gardener" script by SINGsingFan. The only thing it does differently is check for a nearby "trough" type 28987 and a nearby "flower pot" type 6330 (as those are the 2 primary types of potting plants that I use) and automatically dclick or double click them and then fulfill their needs. if you use a different plant vessel you will need to use the >info command in game to determine the id of your vessels and adjust the script to your needs. This checks 8 times (for loop) for any of your planting vessels within 2 tiles of your character. So if you have more than 8 planting vessels within 2 tiles you should adjust the "for" loop to however many your max amount is.

With this script you don't even need to double click your plant vessels, this will do so automatically to large wooden boxes, small wooden boxes, and the largest plant vase you can buy from NPCs within a 2 tile range of your character it will automatically toil and set ideal water and soil values for all of them.

I've also set to refill your water can at the beginning and end of script.

I also removed the taste id bit but you could easily add it in by copying and pasting from the original Lazy Gardener script.

1clearignore
2if findtype 'watering can' backpack as water
3    dclick water
4    pause 250
5    getlabel water wlabel
6    if '250/250' in wlabel
7        pause 5
8    else
9        overhead 'Low on water!' 38
10        pause 1000
11    endif
12endif    
13    
14if counttype 'dirt patch' backpack < 100
15    overhead 'Low on dirt!' 38
16    pause 1000
17endif
18
19//large wooden planter box
20while findtype 'planter' ground 0 0 2 as 'plant'
21        dclick 'plant'
22        pause 350
23        
24        //Set Soil
25        gumpresponse 2 3224608375
26        waitfortarget 300
27        targettype "dirt patch" backpack
28        wait 450
29        gumpresponse 2 4024474571
30        wait 450
31        gumpclose 4024474571
32        wait 450
33
34        //Set Water
35        gumpresponse 2 3224608375
36        waitfortarget 300
37        targettype "watering can" backpack
38        wait 450
39        gumpresponse 2 3929333591
40        wait 450
41        gumpclose 3929333591
42        wait 450
43        dclicktype "watering can"
44
45        //Toil
46        gumpresponse 2 3224608375
47        waitfortarget 300
48        targettype "spade"
49        wait 450
50        gumpresponse 6 1429840072
51        wait 450
52        gumpclose 1429840072
53        wait 450
54        ignore 'plant'
55        pause 250
56        gumpclose 
57endwhile
58
59while findtype 'trough' ground 0 0 2 as 'plant'
60        dclick 'plant'
61        pause 350
62        
63        //Set Soil
64        gumpresponse 2 3224608375
65        waitfortarget 300
66        targettype "dirt patch" backpack
67        wait 450
68        gumpresponse 2 4024474571
69        wait 450
70        gumpclose 4024474571
71        wait 450
72
73        //Set Water
74        gumpresponse 2 3224608375
75        waitfortarget 300
76        targettype "watering can" backpack
77        wait 450
78        gumpresponse 2 3929333591
79        wait 450
80        gumpclose 3929333591
81        wait 450
82        dclicktype "watering can"
83
84        //Toil
85        gumpresponse 2 3224608375
86        waitfortarget 300
87        targettype "spade"
88        wait 450
89        gumpresponse 6 1429840072
90        wait 450
91        gumpclose 1429840072
92        wait 450
93        ignore 'plant'
94        pause 250
95        gumpclose 
96endwhile
97pause 100
98
99//huge clay plant bowl
100while findtype '6330' ground 0 0 2 as 'plant'
101    pause 250
102        dclick 'plant'
103        pause 350
104        
105        //Set Soil
106        gumpresponse 2 3224608375
107        waitfortarget 300
108        targettype 2323 backpack
109        wait 450
110        gumpresponse 2 4024474571
111        wait 450
112        gumpclose 4024474571
113        wait 450
114
115        //Set Water
116        gumpresponse 2 3224608375
117        waitfortarget 300
118        targettype "watering can" backpack
119        wait 450
120        gumpresponse 2 3929333591
121        wait 450
122        gumpclose 3929333591
123        wait 450
124   
125
126        //Toil
127        gumpresponse 2 3224608375
128        waitfortarget 300
129        targettype "spade"
130        wait 450
131        gumpresponse 6 1429840072
132        wait 450
133        gumpclose 1429840072
134        wait 450
135        gumpclose
136        ignore 'plant'
137        pause 250
138        gumpclose 
139endwhile  
140
141//small wooden planter
142while findtype 'trough' ground 0 0 2 as 'plant'
143        dclick 'plant'
144        pause 350
145        
146        //Set Soil
147        gumpresponse 2 3224608375
148        waitfortarget 300
149        targettype "dirt patch" backpack
150        wait 450
151        gumpresponse 2 4024474571
152        wait 450
153        gumpclose 4024474571
154        wait 450
155
156        //Set Water
157        gumpresponse 2 3224608375
158        waitfortarget 300
159        targettype "watering can" backpack
160        wait 450
161        gumpresponse 2 3929333591
162        wait 450
163        gumpclose 3929333591
164        wait 450
165        dclicktype "watering can"
166
167        //Toil
168        gumpresponse 2 3224608375
169        waitfortarget 300
170        targettype "spade"
171        wait 450
172        gumpresponse 6 1429840072
173        wait 450
174        gumpclose 1429840072
175        wait 450
176        ignore 'plant'
177        pause 250
178        gumpclose 
179endwhile
180
181pause 250
182gumpclose 3224608375
183
184if findtype 'watering can' backpack as water
185    dclick water
186    pause 250
187    getlabel water wlabel
188    if '250/250' in wlabel
189        pause 5
190    else
191        overhead 'Low on water!' 38
192    endif
193endif    
194
195overhead 'My work here is done, lets check the other plants.'