Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Inventory Giver Help_Station  

Help_Station

Help Station.lsl

Category: Inventory Giver
By : Anonymous
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for Help_Station
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. Help_Station_1.lsl
1
2 //
3 // Help Station
4 //
5 // Gives a note card to a person clicking on it.
6 //
7 //
8
9 vector touched_color = <1,0,0>; // The color when touched
10 vector normal_color = <1,1,1>; // The normal color (when not touched)
11 string note_name = "Yadni s Domain"; // The name of the notecard you want to give
12
13 default
14 {
16 {
17 llSetColor(normal_color, -1);
18 }
19
20 touch_start(integer total_number)
21 {
22 // Make sound and switch color when touched
23 llPlaySound("Switch", 1.0);
24 llSetColor(touched_color, -1);
25 // Find out who clicked, and give them a note card
26 key giver;
27 giver = llDetectedKey(0);
28 string name = llDetectedName(0);
29 if(giver != NULL_KEY)
30 {
31 llGiveInventory(giver, note_name);
32 //llEmail("philip@lindenlab.com","Yadni s Domain", name);
33 }
34 }
35 touch_end(integer total_number)
36 {
37 // Change the color back when click released
38 llSetColor(normal_color, -1);
39 }
40 }// END //

Back to the Best Free Tools in Second Life and OpenSim.