Difference between revisions of "LlEjectFromLand"

From Second Life Wiki
Jump to navigation Jump to search
m
Line 2: Line 2:
|func_id=213|func_sleep=0.0|func_energy=10.0
|func_id=213|func_sleep=0.0|func_energy=10.0
|func=llEjectFromLand|p1_type=key|p1_name=pest
|func=llEjectFromLand|p1_type=key|p1_name=pest
|func_footnote=
|func_footnote=If the land is deeded to a group, then the object must be deeded to the same group.
 
|func_desc=Ejects avatar '''pest''' from the parcel.
|func_desc=
 
Ejects '''pest''' from land that you own. If the land is set to group, then the object must be deeded to the group.
|return_text
|return_text
|spec
|spec
Line 50: Line 47:
         for (;i<n;++i)
         for (;i<n;++i)
         {
         {
             if (~llSubStringIndex(llToLower(llDetectedName(i)), name))
             if (llOverMyLand(llDetectedKey(i)))
             {
             {
                 llOwnerSay("ejecting " + llDetectedName(i));
                 if (~llSubStringIndex(llToLower(llDetectedName(i)), name))
                llEjectFromLand(llDetectedKey(i));
                {
                    llOwnerSay("ejecting " + llDetectedName(i));
                    llEjectFromLand(llDetectedKey(i));
                }
             }
             }
         }
         }
Line 69: Line 69:
|also_articles
|also_articles
|notes
|notes
|permission
|negative_index
|cat1=Security
|cat1=Security
|cat2=Parcel
|cat2=Parcel

Revision as of 14:35, 26 November 2007

Summary

Function: llEjectFromLand( key pest );

Ejects avatar pest from the parcel.

• key pest

If the land is deeded to a group, then the object must be deeded to the same group.

Examples

// Here a script done by shenanigan oh

//It's a easy script that I came up with. When I worked for a carnage I put this script in a computer that was
//attached to me. The carnage it self was a pvp sims so it was alot easier and fast to eject some this way
//then running after them and clicking on them. The way this work is by trying eject and half type plays name.
//Example: /1 eject shenan

//Warning if you type someone name in short be careful of other plays with same name!
string msg;
string name;
default
{
    on_rez(integer n)
    {
        llResetScript();
    }
    
    state_entry()
    {
        llListen(1, "", llGetOwner(), "");
        llListen(0, "", llGetOwner(), "");
    }

    listen(integer n, string m, key k, string msg)
    {
        if (llGetSubString(msg, 0, 5) == "eject ")
        {
            name = llToLower(llStringTrim(llDeleteSubString(msg, 0, 5), STRING_TRIM));
            llSensor("", "", AGENT, 96, PI);
        }
    }
    
    sensor(integer n)
    {
        integer i = 0;
        for (;i<n;++i)
        {
            if (llOverMyLand(llDetectedKey(i)))
            {
                if (~llSubStringIndex(llToLower(llDetectedName(i)), name))
                {
                    llOwnerSay("ejecting " + llDetectedName(i));
                    llEjectFromLand(llDetectedKey(i));
                }
            }
        }
    }
    no_sensor()
    {
        llOwnerSay("Avatar not found.");
    }
} 

Deep Notes

Search JIRA for related Issues

Signature

function void llEjectFromLand( key pest );