Code:
Ammo = "spear" -- The ammo you are using
LootBelowAmmo = 10 -- Looting below this amount of ammo
Module.New('LootBelowAmmo', function(module)
if Self.ItemCount(Ammo) < LootBelowAmmo then
if not Looter.IsEnabled() then
Looter.Start()
end
else
if Looter.IsEnabled() then
Looter.Stop()
end
module:Delay(500)
end
end)