Created: 09/15/2023
Last Updated: almost 2 years ago
Description from the author: 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.
clearignore
if findtype 'watering can' backpack as water
dclick water
pause 250
getlabel water wlabel
if '250/250' in wlabel
pause 5
else
overhead 'Low on water!' 38
pause 1000
endif
endif
if counttype 'dirt patch' backpack < 100
overhead 'Low on dirt!' 38
pause 1000
endif
//large wooden planter box
while findtype 'planter' ground 0 0 2 as 'plant'
dclick 'plant'
pause 350
//Set Soil
gumpresponse 2 3224608375
waitfortarget 300
targettype "dirt patch" backpack
wait 450
gumpresponse 2 4024474571
wait 450
gumpclose 4024474571
wait 450
//Set Water
gumpresponse 2 3224608375
waitfortarget 300
targettype "watering can" backpack
wait 450
gumpresponse 2 3929333591
wait 450
gumpclose 3929333591
wait 450
dclicktype "watering can"
//Toil
gumpresponse 2 3224608375
waitfortarget 300
targettype "spade"
wait 450
gumpresponse 6 1429840072
wait 450
gumpclose 1429840072
wait 450
ignore 'plant'
pause 250
gumpclose
endwhile
while findtype 'trough' ground 0 0 2 as 'plant'
dclick 'plant'
pause 350
//Set Soil
gumpresponse 2 3224608375
waitfortarget 300
targettype "dirt patch" backpack
wait 450
gumpresponse 2 4024474571
wait 450
gumpclose 4024474571
wait 450
//Set Water
gumpresponse 2 3224608375
waitfortarget 300
targettype "watering can" backpack
wait 450
gumpresponse 2 3929333591
wait 450
gumpclose 3929333591
wait 450
dclicktype "watering can"
//Toil
gumpresponse 2 3224608375
waitfortarget 300
targettype "spade"
wait 450
gumpresponse 6 1429840072
wait 450
gumpclose 1429840072
wait 450
ignore 'plant'
pause 250
gumpclose
endwhile
pause 100
//huge clay plant bowl
while findtype '6330' ground 0 0 2 as 'plant'
pause 250
dclick 'plant'
pause 350
//Set Soil
gumpresponse 2 3224608375
waitfortarget 300
targettype 2323 backpack
wait 450
gumpresponse 2 4024474571
wait 450
gumpclose 4024474571
wait 450
//Set Water
gumpresponse 2 3224608375
waitfortarget 300
targettype "watering can" backpack
wait 450
gumpresponse 2 3929333591
wait 450
gumpclose 3929333591
wait 450
//Toil
gumpresponse 2 3224608375
waitfortarget 300
targettype "spade"
wait 450
gumpresponse 6 1429840072
wait 450
gumpclose 1429840072
wait 450
gumpclose
ignore 'plant'
pause 250
gumpclose
endwhile
//small wooden planter
while findtype 'trough' ground 0 0 2 as 'plant'
dclick 'plant'
pause 350
//Set Soil
gumpresponse 2 3224608375
waitfortarget 300
targettype "dirt patch" backpack
wait 450
gumpresponse 2 4024474571
wait 450
gumpclose 4024474571
wait 450
//Set Water
gumpresponse 2 3224608375
waitfortarget 300
targettype "watering can" backpack
wait 450
gumpresponse 2 3929333591
wait 450
gumpclose 3929333591
wait 450
dclicktype "watering can"
//Toil
gumpresponse 2 3224608375
waitfortarget 300
targettype "spade"
wait 450
gumpresponse 6 1429840072
wait 450
gumpclose 1429840072
wait 450
ignore 'plant'
pause 250
gumpclose
endwhile
pause 250
gumpclose 3224608375
if findtype 'watering can' backpack as water
dclick water
pause 250
getlabel water wlabel
if '250/250' in wlabel
pause 5
else
overhead 'Low on water!' 38
endif
endif
overhead 'My work here is done, lets check the other plants.'