Treasure Plugin

Automatic treasure collection, with alerts on your phone.

01

What the plugin does

Automatically detects shovels (excavations) and treasures on the map. When a shovel is confirmed, the bot joins and spam-clicks to maximize collection. If you turned on the "Shovel or drone in progress" alert in the LwFarmBot app, you get notified on your phone.

The plugin only works if the Last War window is visible and not minimized.

02

Notify only

The bot spots shovels and notifies you (phone alert if turned on) without sending a team: useful if you handle the shovel yourself. This option also applies to shovels spotted through the network.

03

Alert on your phone

Notifications are set in the LwFarmBot app (lwfarmbot.com added to your home screen), "Notifications" menu: turn on the device, then the "Shovel or drone in progress" switch. They replace the former group notifications: everyone gets alerts for their own bot.

Detailed setup: see the Notifications page of the docs.

04

Scan interval

Defines how often the bot scans the map to spot a shovel. Default: 10s. • Lower (5s): faster detection, more CPU usage • Higher (15-20s): saves resources, but may miss short shovels

05

How it works under the hood

The bot scans the map. When a shovel is confirmed, the alert goes out to your devices, then the bot navigates to the shovel, joins the excavation and spam-clicks as long as the shovel icon is visible. As soon as it disappears (= dig done), the bot collects the gift and goes back to waiting.

The bot has a safety net: if someone else completes the shovel and a reward appears later, it still picks it up on the next tick.