Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

avatar activity logger?

Keiko Doji
Registered User
Join date: 30 Jul 2006
Posts: 23
03-03-2008 13:19
hi all

is there a way to make a script that records the log on/off tp in/out of avatars coming into proximity of the scripted prim, for use as a kinda local traffic tracker.

if its possible could someone point me in the right direction or sugguest how it might be done

thanks all
Void Singer
Int vSelf = Sing(void);
Join date: 24 Sep 2005
Posts: 6,973
03-03-2008 19:19
grab their key and feed it to llRequestAgentData on a schedule.... obviously if they are detected, they are online, this would tell you when they log off. this will take alot of processing though, since you need to save the agent key, the request key (to be sure you're getting them in order), plus any associated log on/off times...

the request key might not be mandatory, since you could loop through your list of av's one at a time, like a notecard reader, but considering the constant polling it's more likely to fail from a timed out request the longer it runs.
_____________________
|
| . "Cat-Like Typing Detected"
| . This post may contain errors in logic, spelling, and
| . grammar known to the SL populace to cause confusion
|
| - Please Use PHP tags when posting scripts/code, Thanks.
| - Can't See PHP or URL Tags Correctly? Check Out This Link...
| -
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
03-03-2008 19:53
A sensor to detect avatars to begin with, then something like llGetObjectDetails() to see if they are still in the sim or vicinity. If not, the above llRequestAgentData() could differentiate between a TP/move away and a logout. As for whether the avatar "teleports" or "crosses a sim boundary", you'd probably have to monitor position and velocity to make some kind of guess.