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
Rezzers CaseInsensitiveListenRezzer  

CaseInsensitiveListenRezzer

CaseInsensitive-Listen-Rezzer.lsl

Category: Rezzers
By : Chasingred3 Ixtab
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for CaseInsensitiveListenRezzer
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. CaseInsensitiveListenRezzer_1.lsl
1
2
3 //Deluxe Listen Rezzer
4 //Created By : Chasingred3 Ixtab
5 //Created For : Zippo Nabob
6 //No need to type in the right CaSe to make your
7 //Commands to work :)
8
9 integer channel = 0;//What channel you want it to listen on
10
11 ////////////////////////////////////////////////////////////////////////////
12 /////////////////////////////////1st Object Info////////////////////////////
13 ////////////////////////////////////////////////////////////////////////////
14 string object1command = "rez object1"; /////////////////////////////////
15 string object1Name = "Object1";//First objects name/////////////////////
16 vector object1Pos = <0,0,0>;//First Objects Position Cordanates////////
17 rotation object1rotation = <0,0,0,1>;//First Objects Rotation///////////
18 ////////////////////////////////////////////////////////////////////////////
19
20 //==========================================================================
21
22 ////////////////////////////////////////////////////////////////////////////
23 /////////////////////////////////2nd Object Info////////////////////////////
24 ////////////////////////////////////////////////////////////////////////////
25 string object2command = "rez object2"; /////////////////////////////////
26 string object2Name = "Object1";//Objects name/////////////////////
27 vector object2Pos = <0,0,0>;//Objects Position - Cordanates////////
28 rotation object2rotation = <0,0,0,1>;//Objects Rotation///////////
29 ///////////////////////////////////////////////////////////////////////
30
31 //==========================================================================
32
33 ////////////////////////////////////////////////////////////////////////////
34 /////////////////////////////////3nd Object Info////////////////////////////
35 ////////////////////////////////////////////////////////////////////////////
36 string object3command = "rez object3"; /////////////////////////////////
37 string object3Name = "Object3";//Objects name/////////////////////
38 vector object3Pos = <0,0,0>;//Objects Position - Cordanates////////
39 rotation object3rotation = <0,0,0,1>;//Objects Rotation///////////
40 ///////////////////////////////////////////////////////////////////////
41
42 //==========================================================================
43
44 ////////////////////////////////////////////////////////////////////////////
45 /////////////////////////////////4th Object Info////////////////////////////
46 ////////////////////////////////////////////////////////////////////////////
47 string object4command = "rez object4"; /////////////////////////////////
48 string object4Name = "Object4";//objects name/////////////////////
49 vector object4Pos = <0,0,0>;//Objects Position - Cordanates////////
50 rotation object4rotation = <0,0,0,1>;//Objects Rotation///////////
51 ///////////////////////////////////////////////////////////////////////
52
53 //==========================================================================
54
55 ////////////////////////////////////////////////////////////////////////////
56 /////////////////////////////////5th Object Info////////////////////////////
57 ////////////////////////////////////////////////////////////////////////////
58 string object5command = "rez object5"; /////////////////////////////////
59 string object5Name = "Object5";//Objects name/////////////////////
60 vector object5Pos = <0,0,0>;//Objects Position - Cordanates////////
61 rotation object5rotation = <0,0,0,1>;//Objects Rotation///////////
62 ///////////////////////////////////////////////////////////////////////
63
64 //==========================================================================
65
66 //Please, Dont touch anything down here :P
67
68 //==========================================================================
69 //==========================================================================
70 //==========================================================================
71 string obj1 = "";
72 string obj2 = "";
73 string obj3 = "";
74 string obj4 = "";
75 string obj5 = "";
76
77 default
78 {
80 {//llGetOwner --- NULL_KEY
81 llListen(channel, "", llGetOwner(), "");
82 string obj1 = llToLower(object1command);
83 string obj2 = llToLower(object2command);//Changes all commands to
84 string obj3 = llToLower(object3command);//lower case
85 string obj4 = llToLower(object4command);
86 string obj5 = llToLower(object5command);
87 }
88
89 listen(integer channel, string name, key id, string message)
90 {
91 string cmd;
92 cmd = llToLower(message);//Turnes what YOU say to lower
93 //case letters
94 if(cmd == obj1)
95 {
96 llRezObject(object1Name, object1Pos, ZERO_VECTOR, object1rotation, 42);
97
98 }
99
100 if(cmd == obj2)
101 {
102 llRezObject(object2Name, object2Pos, ZERO_VECTOR, object2rotation, 42);
103 }
104
105 if(cmd == obj3)
106 {
107 llRezObject(object3Name, object3Pos, ZERO_VECTOR, object3rotation, 42);
108 }
109
110 if(cmd == obj4)
111 {
112 llRezObject(object4Name, object4Pos, ZERO_VECTOR, object4rotation, 42);
113 }
114
115 if(cmd == obj5)
116 {
117 llRezObject(object5Name, object5Pos, ZERO_VECTOR, object5rotation, 42);
118 }
119 }
120 } // end

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