Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

llGiveInventory

Max Pitre
Registered User
Join date: 19 Jul 2006
Posts: 370
06-18-2007 22:04
What do I need to do to get this script to give out a notecard upon rezzing our wedding invitation?

CODE

default
{
on_rez(integer start_param)
{
llSay(0, "Please accept our invitation to this beautiful moment in our lives. Evo and Max");
llGiveInventory(llDetectedKey(0),"Max and Evolvings wedding");
}
}
BamBam Sachertorte
floral engineer
Join date: 12 Jul 2005
Posts: 228
06-18-2007 22:11
Replace llDetectedKey(0) with llGetOwner(). And congratulations!
Dnel DaSilva
Master Xessorizer
Join date: 22 May 2005
Posts: 781
06-19-2007 21:19
The reason being is that there is no key to detect, detected key would be used in something like a touch, where it detects the avatar touching.
_____________________
Xessories in Urbane, home of high quality jewelry and accessories.

Coming soon to www.xessories.net

Why accessorize when you can Xessorize?