This code will, basically, show if the currently playing track has been scrobbled to Last.fm or not, and if not, then how many seconds is left until the scrobble. It is not related to the Last.fm service at all however, so any errors or such will not be notified of. Does not need any other plugins to work, either.
Not playing = Play to start Last.fm scrobble
Track shorter than 30 seconds / internet stream = Unable to scrobble current track
49% - 51% played = Scrobbling...
Under 50% played = Last.fm scrobble in X seconds
Over 50% played = Scrobbled to Last.fm
Works completely without *any* foobar plugins at all, it doesn't even matter if you use foo_audioscrobbler or the official Last.fm scrobbler.
Play to start Last.fm scrobble:
Last.fm scrobble in X seconds: