HOME PRODUCTS HELP FREEBIES SCRIPTS TUTORIALS NEWS CONTACT
  Teleport to Store in-world!    |     Links  
Main Menu
Alicia's Raffle
Who's Online
13 user(s) are online (2 user(s) are browsing Free Scripts)

Members: 0
Guests: 13

more...
Admin Login
Username:

Password:


Lost Password?

Register now!
SL Books


Sites of Interest
Published Date: 2006/12/15 3:02:56
Views : 6046
Agent/Avatar

I made the following script for my store. It tells the Owner how many Landmarks have been given away when the owner Touches the object.
(It will not give the owner a Landmark, 'cause that would get annoying everytime you checked the tally.)

integer given;

default
{
    on_rez(integer start_param)
    {
        llResetScript();
    }
    
    state_entry()
    {
        given = 0;
        llOwnerSay("Be sure to only have one landmark in the inventory.");
        llOwnerSay("Touch at any time to see how many Landmarks have been given away!");
        llSetText("Touch for a Landmark", <0.90196, 0.72549, 0.35294>, 1.0);
    }

    touch_start(integer total_number)
    {
        if ( llDetectedKey(0) != llGetOwner() )
        {
            given = given + 1;
            llGiveInventory(llDetectedKey(0), llGetInventoryName(INVENTORY_LANDMARK, 0));
        }
        else if ( llDetectedKey(0) == llGetOwner() )
        {
            llOwnerSay((string)given + " landmarks have been given away since this object was rezzed.");
        }
    }
}

0
|  Links 
Printer Friendly Page Send this Script to a Friend
Visit ASD Studios Hollywood
Product Spotlight
Alicia's Universe
Recent Scripts
Suggested Reading
Top Free Scripts

© 2006-2010 Alicia Stella | ASD Affiliate Programs | Policies | News | Help
Second Life®, Xstreet & the inSL logo are registered trademarks of Linden Research, Inc.
Alicia Stella Design is not affiliated with Second Life. No infringement is intended.