Detects avatars in the area and sends the script owner a message.
//FREE SCRIPTS - TESTED AND WORKING ON KITELY // If you paid for this script, you were ripped off. // You may use in your creations. // You may not sell it as a script or in a script collection. integer switch=0; key name; default { state_entry() { if(llGetObjectDesc() == "<disable>") return; llWhisper(0,"Alert Script Active"); name = llGetOwner(); } touch_start(integer total_number) { if(switch==0) { switch=1; llSensorRepeat("","",AGENT,90.0,PI,20.0); llWhisper(0,"Alert on"); } else if(switch==1) { switch=0; llSensorRemove(); llWhisper(0,"Alert off"); } } sensor(integer total_number) { vector pos = llGetPos(); integer j; integer count = total_number; for (j = 0; j < count; j++) { if(llDetectedKey(j) != name) { float diff = llVecDist(pos,llDetectedPos(j)); integer dist = llRound(diff); string result = (llDetectedName(j)) + " " + ((string)dist) + "m"; llWhisper(0,result); } } } no_sensor() { llWhisper(0,"Nothing Found"); } }