Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Unsit/eject script help

Kator Bergson
I'm freakin out man!
Join date: 24 Nov 2005
Posts: 125
11-07-2006 11:50
Originally posted by Kokiri Saarinen I was wondering about this script
CODE

integer range = 20; //Approzimate size of parcel. Its possible to get very exact by using other means, but I find a sensor with an approximate range is good enough.
list accepted = ["Me","My Friend1","My Friend2"]; //adjust list for people you want allowed in
default
{
state_entry()
{
llSensorRepeat("","",AGENT,range,PI,1);
}
sensor(integer num)
{
integer index;
for (index = 0;index<num;index++)
{
if (llListFindList(accepted,[llDetectedName(index)])== -1)
{
llUnSit(llDetectedKey(index));
llEjectFromLand(llDetectedKey(index));
}
}
}


}

Is there possibly a way to edit this so I can just input a name on a private channel and it unsits and ejects the person from the parcel?
Also need it to work on group owned land as well... not sure if its possible.
[edit]correction, ok, it does work on group owned land even if not deeded.... ouchie... My dumbass was too tired and forgot to put names in the list... harder than hell trying to raise my view distance, rez a prim in the room and stay in build mode moving my mouse around trying to catch the prim before it kicked me again... >.< but is there a way to add enemies instead of friends to the list and make it work that way? [/edit]
_____________________
Joannah Cramer
Registered User
Join date: 12 Apr 2006
Posts: 1,539
11-07-2006 11:59
/invalid_link.html

replace llTeleportAgentHome() with llEjectFromLand() (and add unsit() right before)
Kator Bergson
I'm freakin out man!
Join date: 24 Nov 2005
Posts: 125
11-07-2006 12:45
Ok, I've discovered a real good use for this script, thing is I want to make all avatars in the same group as the object Safe from the script. How would I go about that?
_____________________
Llauren Mandelbrot
Twenty-Four Weeks Old.
Join date: 26 Apr 2006
Posts: 665
11-07-2006 13:34
llSameGroup(), perhaps?
_____________________
  1. ninjafoo Ng Says:
    November 4th, 2006 at 7:27 am
    We all love secondlife so much and were afraid that the magic will end, nothing this good can ever last…. can it?