Greeting Script

Expired

//VERY SIMPLE GREETING Script by Jester Knox
 
//rez a prim, dont make it phantom or anything, put it across the door of your shop or
//cover the shop flooe with a cube, make the texture one that is only alpha so it cant be
//seen. whenever someone walks through it it will trigger the say and greet them
 
default
{
    state_entry()
    {
   llVolumeDetect(TRUE);
    }
   collision_start(integer num_detected) {
        llSay(0, llDetectedName(0) + " welcome to this prim ;-p"); // put whatever you want the greeting to be in here
    }
}

 

Give Item To Active Group Tag

Expired

//Gives inventory only to agents with the same active group
 
// Author: unknown
// Retrieved from Free SL Scripts on http://www.gendersquare.org/sl
 
default
{
    touch_start(integer total_number)
    {
        integer number = 0;
        do
        {
            if (llDetectedGroup(number)) //same as llSameGroup(llDetectedKey(0)) (with llSameGroup, detected must be in the sim)
                llGiveInventory(llDetectedKey(number), llGetInventoryName(INVENTORY_OBJECT,0));
            else
                llSay(0, "Wrong active group!");
        }while(total_number > ++number);
    }
}

 

Pay Roll Tool

Expired

//Here's a handy little script I wrote up to exchange money with people who are either far away or offline. Since the only other way to pay someone is in person by the pie chart, this can come in very handy. Especially for payroll of employees, hence the name.
 
//The only catch is you need the persons key but this can be acquired several different ways; make them touch a scripted object and log it, use a sensor on them, use a sensor on their in world objects if they're offline, etc. I can post several scripts to get keys if people need.
 
//IM me in game if you'd like a copy of the script without having to cut and paste it.
 
// payroll.ll by Rathe Underthorn "00aa39a8-f6a4-45be-991e-b1e1fca8fe5b"
// say @pay   to pay a user on your payroll list.
 
float fVersion = 1.0;
 
list lsPeople =
[
// ADD PEOPLE HERE AS "NICKNAME", "KEY",
 
"Arthur", "62091005-826d-44cd-ab80-0a6b96915b44", // Arthur Money
"Carrera", "e6b0b6e9-0dee-4e6e-bfb9-c725d0db3f01", // Carrera LeFay
"Darwin", "3e722bd8-028c-713f-e4f7-2e9b680855c8", // Darwin Appleby
"Kaylis", "16f627e1-ab89-4b1f-827f-63bd7bd3a7b9", // Kaylis LeFay
"Rathe", "00aa39a8-f6a4-45be-991e-b1e1fca8fe5b", // Rathe Underthorn
"Si", "117274fd-3902-4a07-b411-09bdc79f0fad", // Si Money
"Yuki", "3e8a2608-661d-ca16-0492-9233c77d3d1c", // Yuki Sunshine
 
// DO NOT REMOVE THIS END ROW
 
"END", "END"
];
 
integer nPublicChannel = 0;
integer nPublicId = 0;
string szTarget = "";
integer nAmount = 0;
key kTarget = NULL_KEY;
 
init_listen()
{
llListenRemove(nPublicId);
nPublicId = llListen(nPublicChannel, "", NULL_KEY, "");
}
 
key target_to_key(string szTarget)
{
integer i;
integer nListSize = llGetListLength(lsPeople) - 2;
 
for (i = 0; i 

 

Give Object And Play Sound

Expired

// This script will give out a object from Inventory and play sound file when click on.
 
string object_name = "object";
integer i;
 
default
{
    state_entry()
    {
        llPreloadSound(llGetInventoryName(INVENTORY_SOUND, 0));
 
    }
     touch_start(integer total_number)
    {
         integer i;
        key giver;
        // add a wave that is name sound.wav
        llPlaySound("pour", 1.0);
        giver = llDetectedKey(0);
        string name = llDetectedName(0);
        if (giver != NULL_KEY)
        {
            llGiveInventory(giver, object_name);
        }
 }
}