gg.alert("🌱 Dragon City Auto Farm Script\n\nStarting...
")
gg.setVisible(false)
-- Step 1: Search for the food production timer (example: 300 seconds = 5 min)
-- Adjust based on the crop you're planting (e.g., Blueberry, Rainbow)
gg.searchNumber("300", gg.TYPE_DWORD)
gg.toast("Searching for 300s production timers...")
gg.refineNumber("300", gg.TYPE_DWORD)
local results = gg.getResults(50) -- Gets top 50 matching timers
if #results == 0 then
gg.alert("❌ No matching timers found. Try planting crops manually first.")
os.exit()
end
-- Step 2: Set all to 30 seconds
gg.editAll("30", gg.TYPE_DWORD)
gg.toast("✅ Timers changed to 30 seconds!")
-- Step 3: Wait for 31 seconds to ensure plants are ready
gg.sleep(31000)
-- Step 4: Notify user to collect
gg.alert("🌾 All crops should now be ready to collect.\nTap each farm to harvest!")
gg.clearResults()