I initially did exactly that. Using event_connect and event_disconnect (or enterzone) you can get the character ip, write it to a custom table via perl DBI, then just query that table. The downside to this is performance implications at scale and that I do not believe event_disconnect is triggered on server shutdown (I wasn't willing to test this live, haha). Of course you could always purge the table on startup.
|