Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Looking for landmark script

Rowan Richelieu
Registered User
Join date: 10 Aug 2004
Posts: 6
05-20-2005 10:32
I'm looking for a simple landmark-giver script. I've looked everywhere--the public domain script posted in the script library just doesn't work (granted, I know nothing about scripting and get by on making substitutions in others' scripts, so maybe there's a simple fix for this one I don't know about?). I'd appreciate any help I can get!
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
05-20-2005 12:28
CODE

default
{
touch_start(integer num)
{
llGiveInventory(llDetectedKey(0), llGetInventoryName(INVENTORY_LANDMARK, 0));
}
}

Should do the trick for you. You can make it a bit nicer, for multiple touchers etc. but that will do it, I think.
Keknehv Psaltery
Hacker
Join date: 11 Apr 2005
Posts: 1,185
05-20-2005 14:00
Eloise had it right... Let me just explain some of it with comments, since you don't know a lot about scripting.

CODE

default
{
touch_start(integer num) //When someone clicks on it, run the following code.
{
llGiveInventory( //Give something to someone
llDetectedKey(0), //Give it to the detected clicker
llGetInventoryName(INVENTORY_LANDMARK, 0)); //Give the first landmark found in the inventory
}
}