Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Notecards to give out when Object Touched

Sydona Thunders
Registered User
Join date: 13 Jun 2006
Posts: 12
09-15-2006 02:30
Okay, this may be dumb, but how does add a script, (or is there a free script available for me to use), so that when a person/avitar, touches or either right clicks on the build/prim, they automatically get one describing the build/object they are looking at to maybe purchase.

Mahalo nui loa!

Sydona Thunders
nimrod Yaffle
Cavemen are people too...
Join date: 15 Nov 2004
Posts: 3,146
09-15-2006 05:07
Hey Sydona, I'll pass you a couple scripts that will let you do this.
_____________________
"People can cry much easier than they can change."
-James Baldwin
Sydona Thunders
Registered User
Join date: 13 Jun 2006
Posts: 12
Many Thanks
09-15-2006 07:41
Thanks, nimrod Yaffle, I appreciated it!
Dimentox Travanti
DCS Coder
Join date: 10 Sep 2006
Posts: 228
09-21-2006 12:54
http://lsl.dimentox.com/snippet.php?sid=4

CODE

default
{
state_entry()
{

}

touch_start(integer total_number)
{
llGiveInventory(llDetectedKey(0), llGetInventoryName(INVENTORY_NOTECARD,0));
}
}
_____________________
LSL Scripting Database - http://lsl.dimentox.com
Dnel DaSilva
Master Xessorizer
Join date: 22 May 2005
Posts: 781
09-21-2006 15:23
To build on Dementox's post I use the folowing script on items that give notecards out:

CODE

default
{
touch_start(integer total_number)
{
llGiveInventory(llDetectedKey(0),(string)llGetInventoryName(INVENTORY_NOTECARD,0));
llInstantMessage(llGetOwner(),(string)llKey2Name(llDetectedKey(0)) + " took a foo notecard");
}
}


Gives the toucher a notecard and IM's you that someone took it and gives you the name. I find it useful to gauge interest in different products.
_____________________
Xessories in Urbane, home of high quality jewelry and accessories.

Coming soon to www.xessories.net

Why accessorize when you can Xessorize?
Erin Talamasca
Registered User
Join date: 18 Sep 2005
Posts: 617
09-21-2006 15:47
If you're selling the object that contains that script, I believe the people who buy it will also end up with an object containing that script - i.e. they buy your nice fountain (or whatever), but forever get spammed with the information notecard when they click on it, and so does anyone else who pokes it. Unless you look into a self-deleting script, to avoid this I'd suggest making sure the object is 'sell contents' and contains a version of itself that doesn't have the notecard script.