I tried this and many other macros and I don't think that being disconnected is read as having less or equal to 0 health points. Or maybe these functions: BBot.TogglePause(), Bot.Pause() cannot be executed while being not connected.
Anyway, even if this macro would work - the character wouldn't reconnect if it was kicked because of another problem, connection issue for example.
Anyway, even if this macro would work - the character wouldn't reconnect if it was kicked because of another problem, connection issue for example.