Logoff

From Second Life Wiki
Revision as of 15:51, 16 May 2010 by Caerus Karu (talk | contribs) (Created page with '{{LSL_Event |event_id |mode=request |func_sleep |func_energy |event=logoff |event_desc= logoff() Sent as a result of the user logging off of Second Life |return_text |spec=Curre...')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

{{LSL_Event |event_id |mode=request |func_sleep |func_energy |event=logoff

|event_desc= logoff() Sent as a result of the user logging off of Second Life |return_text |spec=Currently there is no way to tell if a logs off from Second Life other than a CONSTANT online status check. This impedes the ability of external data services that serve other users as well |caveats=This function would require another few seconds to execute before the client shuts down in order to execute.

|examples= <lsl> default {

       on_rez(integer start_param)
       {
               llResetScript();
       }
       state_entry()
       {
               llHTTPRequest("http://www.example.com/online.php?key="+(string)llGetOwner()+"&online=TRUE",[],"");
       }
       logoff()
       {
               llHTTPRequest("http://www.example.com/online.php?key="+(string)llGetOwner()+"&online=FALSE",[],"");
       }

} </lsl> |helpers |related |also |notes=