aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/constants.lsl
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--LuaSL/src/constants.lsl111
1 files changed, 108 insertions, 3 deletions
diff --git a/LuaSL/src/constants.lsl b/LuaSL/src/constants.lsl
index ddda654..cdaa3f6 100644
--- a/LuaSL/src/constants.lsl
+++ b/LuaSL/src/constants.lsl
@@ -66,9 +66,94 @@ integer SCRIPTED = 0x08;
66 66
67integer OBJECT_UNKNOWN_DETAIL = -1; 67integer OBJECT_UNKNOWN_DETAIL = -1;
68 68
69integer PRIM_BUMP_SHINY = 19;
70integer PRIM_COLOR = 18;
71integer PRIM_FLEXIBLE = 21;
72integer PRIM_FULLBRIGHT = 20;
73integer PRIM_GLOW = 25;
74integer PRIM_MATERIAL = 2;
75integer PRIM_PHANTOM = 5;
76integer PRIM_PHYSICS = 3;
77integer PRIM_POINT_LIGHT = 23;
78integer PRIM_POSITION = 6;
79integer PRIM_ROTATION = 8;
80integer PRIM_SIZE = 7;
81integer PRIM_TEMP_ON_REZ = 4;
82integer PRIM_TYPE = 9;
83integer PRIM_TYPE_OLD = 1;
84integer PRIM_TEXGEN = 22;
85integer PRIM_TEXTURE = 17;
86integer PRIM_TEXT = 26;
87
88integer PRIM_BUMP_NONE = 0;
89integer PRIM_BUMP_BRIGHT = 1;
90integer PRIM_BUMP_DARK = 2;
91integer PRIM_BUMP_WOOD = 3;
92integer PRIM_BUMP_BARK = 4;
93integer PRIM_BUMP_BRICKS = 5;
94integer PRIM_BUMP_CHECKER = 6;
95integer PRIM_BUMP_CONCRETE = 7;
96integer PRIM_BUMP_TILE = 8;
97integer PRIM_BUMP_STONE = 9;
98integer PRIM_BUMP_DISKS = 10;
99integer PRIM_BUMP_GRAVEL = 11;
100integer PRIM_BUMP_BLOBS = 12;
101integer PRIM_BUMP_SIDING = 13;
102integer PRIM_BUMP_LARGETILE = 14;
103integer PRIM_BUMP_STUCCO = 15;
104integer PRIM_BUMP_SUCTION = 16;
105integer PRIM_BUMP_WEAVE = 17;
106
107integer PRIM_HOLE_DEFAULT = 0;
108integer PRIM_HOLE_CIRCLE = 16;
109integer PRIM_HOLE_SQUARE = 32;
110integer PRIM_HOLE_TRIANGLE = 48;
111
112integer PRIM_MATERIAL_STONE = 0;
113integer PRIM_MATERIAL_METAL = 1;
114integer PRIM_MATERIAL_GLASS = 2;
115integer PRIM_MATERIAL_WOOD = 3;
116integer PRIM_MATERIAL_FLESH = 4;
117integer PRIM_MATERIAL_PLASTIC = 5;
118integer PRIM_MATERIAL_RUBBER = 6;
119integer PRIM_MATERIAL_LIGHT = 7;
120
121integer PRIM_SCULPT_TYPE_SPHERE = 1;
122integer PRIM_SCULPT_TYPE_TORUS = 2;
123integer PRIM_SCULPT_TYPE_PLANE = 3;
124integer PRIM_SCULPT_TYPE_CYLINDER = 4;
125integer PRIM_SCULPT_TYPE_MESH = 5;
126integer PRIM_SCULPT_TYPE_MIMESH = 6;
127
128integer PRIM_SHINY_NONE = 0;
129integer PRIM_SHINY_LOW = 1;
130integer PRIM_SHINY_MEDIUM = 2;
131integer PRIM_SHINY_HIGH = 3;
132
133integer PRIM_TYPE_BOX = 0;
134integer PRIM_TYPE_CYLINDER = 1;
135integer PRIM_TYPE_PRISM = 2;
136integer PRIM_TYPE_SPHERE = 3;
137integer PRIM_TYPE_TORUS = 4;
138integer PRIM_TYPE_TUBE = 5;
139integer PRIM_TYPE_RING = 6;
140integer PRIM_TYPE_SCULPT = 7;
141
142integer STRING_TRIM = 3;
143integer STRING_TRIM_HEAD = 1;
144integer STRING_TRIM_TAIL = 2;
145
69integer TRUE = 1; 146integer TRUE = 1;
70integer FALSE = 0; 147integer FALSE = 0;
71 148
149integer TYPE_INTEGER = 1;
150integer TYPE_FLOAT = 2;
151integer TYPE_STRING = 3;
152integer TYPE_KEY = 4;
153integer TYPE_VECTOR = 5;
154integer TYPE_ROTATION = 6;
155integer TYPE_INVALID = 0;
156
72string NULL_KEY = "00000000-0000-0000-0000-000000000000"; 157string NULL_KEY = "00000000-0000-0000-0000-000000000000";
73string EOF = "\n\n\n"; 158string EOF = "\n\n\n";
74 159
@@ -78,6 +163,7 @@ vector ZERO_VECTOR = <0.0, 0.0, 0.0>;
78// Functions. 163// Functions.
79 164
80float llPow(float number, float places){} 165float llPow(float number, float places){}
166float llFrand(float max){}
81integer llRound(float number){} 167integer llRound(float number){}
82 168
83key llDetectedKey(integer index){} 169key llDetectedKey(integer index){}
@@ -86,6 +172,13 @@ key llSameGroup(key avatar){}
86 172
87float llGetAlpha(integer side){} 173float llGetAlpha(integer side){}
88 llSetAlpha(float alpha, integer side){} 174 llSetAlpha(float alpha, integer side){}
175 llSetColor(vector colour, integer side){}
176 llSetPrimitiveParams(list params){}
177 llSetScale(vector scale){}
178 llSetSitText(string text){}
179 llSetText(string text, vector colour, float alpha){}
180 llSitTarget(vector pos, rotation rot){}
181
89integer llGetLinkNumber(){} 182integer llGetLinkNumber(){}
90string llGetObjectDesc(){} 183string llGetObjectDesc(){}
91 llSetObjectDesc(string text){} 184 llSetObjectDesc(string text){}
@@ -97,6 +190,7 @@ integer llGetInventoryNumber(integer type){}
97integer llGetInventoryType(string name){} 190integer llGetInventoryType(string name){}
98key llGetNotecardLine(string name, integer index){} 191key llGetNotecardLine(string name, integer index){}
99 192
193 llDie(){}
100integer llGetFreeMemory(){} 194integer llGetFreeMemory(){}
101string llGetScriptName(){} 195string llGetScriptName(){}
102float llGetTime(){} 196float llGetTime(){}
@@ -105,23 +199,30 @@ float llGetTime(){}
105 llResetTime(){} 199 llResetTime(){}
106 llSetScriptState(string name, integer running){} 200 llSetScriptState(string name, integer running){}
107 llSetTimerEvent(float seconds){} 201 llSetTimerEvent(float seconds){}
202 llSleep(float seconds){}
108 203
109 llPlaySound(string name, float volume){} 204 llPlaySound(string name, float volume){}
110 llRezObject(string name, vector position, vector velocity, rotation rot, integer channel); 205 llRezObject(string name, vector position, vector velocity, rotation rot, integer channel){}
206 llRezAtRoot(string name, vector position, vector velocity, rotation rot, integer channel){}
111 207
112vector llGetPos(){} 208vector llGetPos(){}
209 llSetPos(vector pos){}
113rotation llGetRot(){} 210rotation llGetRot(){}
211 llSetRot(rotation rot){}
114 212
115rotation llEuler2Rot(vector vec){} 213rotation llEuler2Rot(vector vec){}
116vector llRot2Euler(rotation rot){} 214vector llRot2Euler(rotation rot){}
117 215
118string llGetSubString(string text, integer start, integer end){} 216string llGetSubString(string text, integer start, integer end){}
217integer llStringLength(string text){}
218string llStringTrim(string text, integer type){}
119integer llSubStringIndex(string text, string sub){} 219integer llSubStringIndex(string text, string sub){}
120list llParseString2List(string in, list l, list l1){} 220list llParseString2List(string in, list l, list l1){}
121list llParseStringKeepNulls(string in, list l, list l1){} 221list llParseStringKeepNulls(string in, list l, list l1){}
122 222
123list llCSV2List(string text){} 223list llCSV2List(string text){}
124list llDeleteSubList(list l, integer start, integer end){} 224list llDeleteSubList(list l, integer start, integer end){}
225string llDumpList2String(list l, string separator){}
125string llList2CSV(list l){} 226string llList2CSV(list l){}
126float llList2Float(list l, integer index){} 227float llList2Float(list l, integer index){}
127integer llList2Integer(list l, integer index){} 228integer llList2Integer(list l, integer index){}
@@ -130,10 +231,13 @@ list llList2List(list l, integer start, integer end){}
130string llList2String(list l, integer index){} 231string llList2String(list l, integer index){}
131rotation llList2Rotation(list l, integer index){} 232rotation llList2Rotation(list l, integer index){}
132vector llList2Vector(list l, integer index){} 233vector llList2Vector(list l, integer index){}
234integer llListFindList(list l, list l1){}
235list llListInsertList(list l, list l1, integer index){}
133integer llGetListLength(list l){} 236integer llGetListLength(list l){}
134list llListReplaceList(list l, list part, integer start, integer end){} 237list llListReplaceList(list l, list part, integer start, integer end){}
135list llListSort(list l, integer stride, integer ascending){} 238list llListSort(list l, integer stride, integer ascending){}
136 239
240key llAvatarOnSitTarget(){}
137list llGetAnimationList(key id){} 241list llGetAnimationList(key id){}
138key llGetKey(){} 242key llGetKey(){}
139key llGetOwner(){} 243key llGetOwner(){}
@@ -143,11 +247,12 @@ string llKey2Name(key avatar){}
143 llRequestPermissions(key avatar, integer perms){} 247 llRequestPermissions(key avatar, integer perms){}
144 llStartAnimation(string anim){} 248 llStartAnimation(string anim){}
145 llStopAnimation(string anim){} 249 llStopAnimation(string anim){}
250 llUnSit(key avatar){}
146 251
147 llSleep(float seconds){}
148 252
149 llDialog(key avatar, string caption, list arseBackwardsMenu, integer channel){} 253 llDialog(key avatar, string caption, list arseBackwardsMenu, integer channel){}
150 llListen(integer channel, string name, key id, string msg){} 254integer llListen(integer channel, string name, key id, string msg){}
255 llListenRemove(integer handle){}
151 llOwnerSay(string text){} 256 llOwnerSay(string text){}
152 llSay(integer channel, string text){} 257 llSay(integer channel, string text){}
153 llShout(integer channel, string text){} 258 llShout(integer channel, string text){}