removed useless _ folders
This commit is contained in:
3
Access_List/Access_List.sol
Normal file
3
Access_List/Access_List.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="Access_List">
|
||||
<Project name="Access_List" path="Access_List\Access_List.prj" active="true"/>
|
||||
</Solution>
|
||||
6
Access_List/Access_List/Access_List.prj
Normal file
6
Access_List/Access_List/Access_List.prj
Normal file
@@ -0,0 +1,6 @@
|
||||
<Project name="Access_List" guid="D7E8F518-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D7E8F618-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Access_List_1.lsl" guid="D7E91E0E-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
106
Access_List/Access_List/Object/Access_List_1.lsl
Normal file
106
Access_List/Access_List/Object/Access_List_1.lsl
Normal file
@@ -0,0 +1,106 @@
|
||||
// :CATEGORY:Access List
|
||||
// :NAME:Access_List
|
||||
// :AUTHOR:Shine Renoir
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:38:47
|
||||
// :ID:12
|
||||
// :NUM:17
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Place this script in a platform. Then you can add and delete user names from an internal access list (see source code comments). If an avatar is not on the access list, it will be pushed back on entering the platform.
|
||||
//
|
||||
// This script demonstrates some of the list functions and the access list feature could be useful for other applications as well.
|
||||
// :CODE:
|
||||
// access list script
|
||||
|
||||
// 2007 Copyright by Shine Renoir (fb@frank-buss.de)
|
||||
|
||||
// Use it for whatever you want, but keep this copyright notice
|
||||
|
||||
// and credit my name in notecards etc., if you use it in
|
||||
|
||||
// closed source objects
|
||||
|
||||
//
|
||||
|
||||
// usage: say /1 add Avatar for adding a name to the access list
|
||||
|
||||
// and say /1 del Avatar for removing a name
|
||||
|
||||
|
||||
|
||||
// reflection multiplicator, useful values: 1 .. 100
|
||||
|
||||
float pushPower = 5.0;
|
||||
|
||||
|
||||
|
||||
// current access list
|
||||
|
||||
list accessList = [];
|
||||
|
||||
|
||||
|
||||
// show access list to owner, comma separated
|
||||
|
||||
dumpAccessList()
|
||||
|
||||
{
|
||||
|
||||
llOwnerSay("current access list: " + llDumpList2String(accessList, ", "));
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
default
|
||||
|
||||
{
|
||||
|
||||
state_entry()
|
||||
|
||||
{
|
||||
|
||||
// register handler on chat channel 1
|
||||
|
||||
llListen(1, "", NULL_KEY, "");
|
||||
|
||||
|
||||
|
||||
// clean accessList
|
||||
|
||||
accessList = [];
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
collision_start(integer detected)
|
||||
|
||||
{
|
||||
|
||||
// get owner UUID and from avatar who entered the platform
|
||||
|
||||
key ownerKey = llGetOwner();
|
||||
|
||||
key detectedKey = llDetectedKey(0);
|
||||
|
||||
|
||||
|
||||
// get names
|
||||
|
||||
string owner = llKey2Name(ownerKey);
|
||||
|
||||
string avatar = llKey2Name(detectedKey);
|
||||
|
||||
|
||||
|
||||
// test, if in access list. Owner is always allowed to enter the platform
|
||||
|
||||
if (llListFindList(accessList, [avatar]) < 0 && detectedKey != ownerKey) {
|
||||
|
||||
// say something
|
||||
|
||||
llWhisper(0, "you are not on the access list, ask " + owner + " if you would like to visit this place");
|
||||
|
||||
Reference in New Issue
Block a user