New Event: EVENT_CAMPED
I think it would be quite a nice feature to have as at the moment I've integrated various player leaderboards on my website, and I couldn't find a way to detect if a player is online or not.
You can use EVENT_CONNECT to see the player is on, however EVENT_DISCONNECT is only on actual disconnects and not camping. So on EVENT_CONNECT I set a qglobal to say they are online, but it doesn't always get removed, only if a disconnect happens. Unless there's another workaround I'm missing? :D Thanks. |
it looks as though it's because Client::OnDisconnect (which is where the parsing of that event happens) is only called if the client is a GM.
Code:
void Client::Handle_OP_Camp(const EQApplicationPacket *app) { |
@ line 210 of zone/client_process.cpp, you can try to add the lines in red
Code:
if (camp_timer.Check()) { |
Just added it, works great. Thanks!
Don't suppose the need is great enough to get this added into main code? I think it's quite useful, could be a good way to clear certain qglobals on logout etc. |
All times are GMT -4. The time now is 05:59 PM. |
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.