Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

There is Probably a really easy answer - - - but I can't find it!!!

Nikky Beat
Registered User
Join date: 2 Oct 2006
Posts: 2
11-13-2006 13:39
HI ALL!

I have made an item that I want to sell in SL.

Its not the first I have made to sell.
But it is the first item I want to have open a note card as soon as people left click on the item.

I want to find the right script - but as much as I search - I cant!!!!

Please can someone help!!

So to recap - I know how to sell - thats not the problem
I want people to get a note card that I have already made, as soon as they click, have the notecard open in front of them - before they buy!!!

If someone can help I will be really gratefull!

Thanks

Hugs from Nikky
Doubledown Tandino
ADULT on the Mainland!
Join date: 9 Mar 2006
Posts: 1,020
11-13-2006 13:41
Look for the "give all contents - set to anyone" script... It's usually always in the freebie script boxes.... then, copy that script text, and create new script, then paste that text into your new script (so all the contents of your item are 100% created by you)
_____________________
http://djdoubledown.blogspot.com
Ilianexsi Sojourner
Chick with Horns
Join date: 11 Jul 2004
Posts: 1,707
11-13-2006 13:50
If you just want to have an object give out a notecard when people click it, there's also a really simple 'notecard giver' script in the script forum. You should be able to find it easily by using those words in a search. You just put the script in the object, plug the name of your notecard into the script, drop the card into the object as well, and presto. I use this a lot, sometimes with a hovertext script added to let people know what info the object is giving out.
_____________________
Everything's impossible,'till it ain't. --Ben Hawkins, Carnivale

Help build a Utopian Playland-- www.doctorsteel.com. Music, robots, fun times!
Strife Onizuka
Moonchild
Join date: 3 Mar 2004
Posts: 5,887
11-13-2006 14:02
CODE

//keep the quotes
string notecard = "notecard name here";

default
{
touch_start(integer a)
{
llGiveInventory(llDetectedKey(0), notecard);
}
}
_____________________
Truth is a river that is always splitting up into arms that reunite. Islanded between the arms, the inhabitants argue for a lifetime as to which is the main river.
- Cyril Connolly

Without the political will to find common ground, the continual friction of tactic and counter tactic, only creates suspicion and hatred and vengeance, and perpetuates the cycle of violence.
- James Nachtwey
Jopsy Pendragon
Perpetual Outsider
Join date: 15 Jan 2004
Posts: 1,906
11-13-2006 14:09
Or, if you're really lazy, just...

CODE

default {
touch_start(integer a) {
llGiveInventory( llDetectedKey(0),
llGetInventoryName( INVENTORY_NOTECARD, 0) );
}
on_rez(integer n) {
// remove this script after purchase
if ( llGetOwner() != llGetCreator() ) {
llRemoveInventory( llGetScriptName() );
}
}
}
_____________________
* The Particle Laboratory * - One of SecondLife's Oldest Learning Resources.
Free particle, control and targetting scripts. Numerous in-depth visual demonstrations, and multiple sandbox areas.
-
Stop by and try out Jopsy's new "Porgan 1800" an advanced steampunk styled 'particle organ' and the new particle texture store!