Donation Box

Expired

//Keknehv Psaltery Updated Version of DONATION BOX By jean cook, ama omega, and nada epoch Debugged by YadNi Monde (LoL) Yea, that s a Bunch O Peeps =)

//Summary: The following script will make an object accept donations on your behalf.
//Usage: stick it on any object you own(my favorite is a top hat), and it will promptly display:
//"'s donation hat.
//Donate if you are so inclined."
//at which point anyone can right click on it and give you a tip. also, the script tells the donator thanks, and then tells you who donated how much
//also shows the total amount donated



integer totaldonated;
string owner;

default
{
    on_rez( integer sparam )
    {
        llResetScript();
    }
    state_entry()
    {
        owner = llKey2Name( llGetOwner() );
        llSetText( owner + "'s Tip Jar.\nPlease tip if you are so inclined!\n$L0 Donated so far",<.25,1,.65>,1);
    }

    money(key id, integer amount)
    {
        totaldonated += amount;
        llSetText( owner + "'s Tip Jar.\nPlease tip if you are so inclined!\n$L" + (string)amount + " Was donated last!\n" + "$L" + (string)totaldonated + " Donated so far",<.25,1,.65>,1);
        llInstantMessage(id,"Thanks for the tip!  I really appreciate it.");
        llInstantMessage(llGetOwner(),(string)llKey2Name(id)+" donated $" + (string)amount);
    }
} 

 

Bartender Script

Expired

integer doorSteps = 4;
integer reversed  = FALSE;

rotateDoor(integer Open)
{
    rotation rot = llGetRot();
    rotation delta;
    integer  x;
    
    if (reversed) {Open = !Open;};

    if (Open)
    {
        delta = llEuler2Rot(<0, 0, PI/(doorSteps * 2)>);
    }
    else
    {
        delta = llEuler2Rot(<0, 0, -PI/(doorSteps * 2)>);
    }
    
    for (x = 0; x 

 

Box Emptier Script

Expired

//Free box emptier. This script is provided free as in beer. If you paid for it, please contact Eloise Pasteur to tell her.

//Usage: Name the box something suitable for the contents, e.g. Class notes for Integral Calculus. Put whatever you want in the box you choose (you can texture it etc. as you like). This script will 1) automatically put hovertext over the prim saying touch me for notes about... and the name of the object. When the users touch it, they get all the items (except this script) you put in the object, in a folder called whatever you call the box. If you want to force the name to update after a change, just change the inventory - renaming this script for example.


list contents;

buildList()
{
    contents=[];
    integer i;
    integer num=llGetInventoryNumber(INVENTORY_ALL);
    while(i, 1.0);
    }

    touch_start(integer num)
    {
        integer i;
        while(i

Another Floting Text Script

Expired

//Script by Deevyde Maelstrom of the Brainiacs
//Feel free to do whatever you want with it, but keep this header please :)

default //A simple explanation of SetText
{
    state_entry()
    {
        llSetText("", <0,1,1>,1); //Use \n to go down a line in the text. The <1 ,1,1> designates colour, composed of a % red green and blue. The last number is the alpha, how visible it is, % from 0 (invisible) to 1 (opaque)
    }
}