Jump to content

Checking whether avatars have a particular attachment


LissomePrey
 Share

You are about to reply to a thread that has been inactive for 3387 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

If it's a mask you supply to them, you can include an identifier script in each. Then you need a server script somewhere in the parcel to ping the masks every now and then to see if they're all there.

The most efficient way would probably be to just set the server script to count the numebr of responses and compare to the number of avatars in the area first. Then if and only if the two numbers don't match, it can run a routine to identify who's mask is missing.

  • Like 1
Link to comment
Share on other sites

Put a script in the mask and then ping all masks with a llRegionSay to see who responds when you ask the masks to send you llGetOwnerKey().  Match the responses you get against the results from llGetAgentList.  Anyone who is on the parcel's agent list but is not on the list you get from your ping is not wearing the mask.

  • Like 2
Link to comment
Share on other sites


Rolig Loon wrote:

Put a script in the mask and then ping all masks with a
llRegionSay
to see who responds when you ask the masks to send you
llGetOwnerKey
().  Match the responses you get against the results from
llGetAgentList
.  Anyone who is on the parcel's agent list but is not on the list you get from your ping is not wearing the mask.

What do you think of my suggestion of doing a simple head count first and only run a full agent check if the numbers didn't match? Would it be just an unnecessary complication or is it likely it could reduce the scripts' server load?

Link to comment
Share on other sites

You take the chance that the numbers may only match because the same number of new people arrived as left, so it's probably not the best way to do it.  It would save doing a list comparison every time the scripter's timer fires, but I doubt that's much of a problem with a simple script like this anyway.  There are situations when you really don't need to do a full scan, though, so I can see some merit in your approach in general.

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3387 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...