Post by crowface28 on Jul 27, 2020 13:35:11 GMT
Plants a 3-high row of plants, starting west and heading east.
Required setup:
Required setup:
- Shovels in backpack, set as default to garden (right-click on shovel to set it)
- All required materials... enriching material, water, potions if needed, seeds, etc...
- plantButtonId set up at the top. I *think* the seed buttons start at 25 and go to 52.
- columns set up at the top. 5 will plant 5 columns of 3 plants. Modify as much as you need
- Be standing at the northwestern spot of your garden... it'll walk east as it goes.
plantButtonId = "35"
columns = 5
function MoveEx(x,y,z)
count = 0
repeat
count = count + 1
Move(x,y,z)
sleep(300)
until ((tonumber(CHARPOSX) == x) and (tonumber(CHARPOSZ) == z)) or count > 30
end
function spotFull(x,y,z)
currSpot = currSpot + 1
FindItem("shovel", tonumber(BACKPACKID))
shovelId = FINDITEMID[1]
UseSelected(shovelId)
TargetLoc(x, y, z, 0)
sleep(1000)
pileId = findPile(currSpot)
SayCustom(".x use " .. pileId .. " Cultivate Soil")
sleep(5000)
SayCustom(".x use " .. pileId .. " Enrich Soil")
sleep(2000)
SayCustom(".x use " .. pileId .. " Add Fertilizer")
sleep(2000)
SayCustom(".x use " .. pileId .. " Plant Seeds")
sleep(2000)
ClickButton("GardenUI", plantButtonId)
sleep(2000)
SayCustom(".x use " .. pileId .. " Water Plant")
sleep(2000)
SayCustom(".x use " .. pileId .. " Add Potion")
sleep(2000)
end
function findPile(count)
FindItem("messy")
counter = 0
piles = {}
for id in FINDITEMID do
counter = counter + 1
piles[counter] = id
end
return piles[count]
end
currSpot = 0
for i=0,columns do
spotFull(tonumber(CHARPOSX)-1.5, CHARPOSY, CHARPOSZ)
spotFull(tonumber(CHARPOSX)-1.5, CHARPOSY, tonumber(CHARPOSZ)+1.3)
spotFull(tonumber(CHARPOSX)-1.5, CHARPOSY, tonumber(CHARPOSZ)-1.3)
Move(tonumber(CHARPOSX)+1.3, CHARPOSY, CHARPOSZ)
sleep(1000)
end