Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Event raised on log off

Nathalia Woyseck
Registered User
Join date: 8 Sep 2005
Posts: 3
03-01-2007 03:18
Hi,

is there any event raised on log off? I have an attachment sending an email to a server when it is attached and detached for an update list. Unfortunately the attach event is not raised on log off so the ID of my attachment does not get removed from the update list in the server. There would be the way of polling all attachments sl wide using email, but that would be a pain and causes probably some lag if there are alot people wearing the attachment. So i would rather do it that it sends the remove message when people are logging off.
Jeff Kelley
Registered User
Join date: 8 Nov 2006
Posts: 223
03-01-2007 10:21
No, you have to query the online status through llRequestAgentData. Of course you can't do it within the attachment. You may link an in-world object in your database so that the off-line signal from the in-world object would clear the ID. Or have the attachment poll the server every hour, and have the server drop the ID on timeout.