diff options
Diffstat (limited to '')
-rw-r--r-- | LuaSL/src/constants.lsl | 111 |
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 | ||
67 | integer OBJECT_UNKNOWN_DETAIL = -1; | 67 | integer OBJECT_UNKNOWN_DETAIL = -1; |
68 | 68 | ||
69 | integer PRIM_BUMP_SHINY = 19; | ||
70 | integer PRIM_COLOR = 18; | ||
71 | integer PRIM_FLEXIBLE = 21; | ||
72 | integer PRIM_FULLBRIGHT = 20; | ||
73 | integer PRIM_GLOW = 25; | ||
74 | integer PRIM_MATERIAL = 2; | ||
75 | integer PRIM_PHANTOM = 5; | ||
76 | integer PRIM_PHYSICS = 3; | ||
77 | integer PRIM_POINT_LIGHT = 23; | ||
78 | integer PRIM_POSITION = 6; | ||
79 | integer PRIM_ROTATION = 8; | ||
80 | integer PRIM_SIZE = 7; | ||
81 | integer PRIM_TEMP_ON_REZ = 4; | ||
82 | integer PRIM_TYPE = 9; | ||
83 | integer PRIM_TYPE_OLD = 1; | ||
84 | integer PRIM_TEXGEN = 22; | ||
85 | integer PRIM_TEXTURE = 17; | ||
86 | integer PRIM_TEXT = 26; | ||
87 | |||
88 | integer PRIM_BUMP_NONE = 0; | ||
89 | integer PRIM_BUMP_BRIGHT = 1; | ||
90 | integer PRIM_BUMP_DARK = 2; | ||
91 | integer PRIM_BUMP_WOOD = 3; | ||
92 | integer PRIM_BUMP_BARK = 4; | ||
93 | integer PRIM_BUMP_BRICKS = 5; | ||
94 | integer PRIM_BUMP_CHECKER = 6; | ||
95 | integer PRIM_BUMP_CONCRETE = 7; | ||
96 | integer PRIM_BUMP_TILE = 8; | ||
97 | integer PRIM_BUMP_STONE = 9; | ||
98 | integer PRIM_BUMP_DISKS = 10; | ||
99 | integer PRIM_BUMP_GRAVEL = 11; | ||
100 | integer PRIM_BUMP_BLOBS = 12; | ||
101 | integer PRIM_BUMP_SIDING = 13; | ||
102 | integer PRIM_BUMP_LARGETILE = 14; | ||
103 | integer PRIM_BUMP_STUCCO = 15; | ||
104 | integer PRIM_BUMP_SUCTION = 16; | ||
105 | integer PRIM_BUMP_WEAVE = 17; | ||
106 | |||
107 | integer PRIM_HOLE_DEFAULT = 0; | ||
108 | integer PRIM_HOLE_CIRCLE = 16; | ||
109 | integer PRIM_HOLE_SQUARE = 32; | ||
110 | integer PRIM_HOLE_TRIANGLE = 48; | ||
111 | |||
112 | integer PRIM_MATERIAL_STONE = 0; | ||
113 | integer PRIM_MATERIAL_METAL = 1; | ||
114 | integer PRIM_MATERIAL_GLASS = 2; | ||
115 | integer PRIM_MATERIAL_WOOD = 3; | ||
116 | integer PRIM_MATERIAL_FLESH = 4; | ||
117 | integer PRIM_MATERIAL_PLASTIC = 5; | ||
118 | integer PRIM_MATERIAL_RUBBER = 6; | ||
119 | integer PRIM_MATERIAL_LIGHT = 7; | ||
120 | |||
121 | integer PRIM_SCULPT_TYPE_SPHERE = 1; | ||
122 | integer PRIM_SCULPT_TYPE_TORUS = 2; | ||
123 | integer PRIM_SCULPT_TYPE_PLANE = 3; | ||
124 | integer PRIM_SCULPT_TYPE_CYLINDER = 4; | ||
125 | integer PRIM_SCULPT_TYPE_MESH = 5; | ||
126 | integer PRIM_SCULPT_TYPE_MIMESH = 6; | ||
127 | |||
128 | integer PRIM_SHINY_NONE = 0; | ||
129 | integer PRIM_SHINY_LOW = 1; | ||
130 | integer PRIM_SHINY_MEDIUM = 2; | ||
131 | integer PRIM_SHINY_HIGH = 3; | ||
132 | |||
133 | integer PRIM_TYPE_BOX = 0; | ||
134 | integer PRIM_TYPE_CYLINDER = 1; | ||
135 | integer PRIM_TYPE_PRISM = 2; | ||
136 | integer PRIM_TYPE_SPHERE = 3; | ||
137 | integer PRIM_TYPE_TORUS = 4; | ||
138 | integer PRIM_TYPE_TUBE = 5; | ||
139 | integer PRIM_TYPE_RING = 6; | ||
140 | integer PRIM_TYPE_SCULPT = 7; | ||
141 | |||
142 | integer STRING_TRIM = 3; | ||
143 | integer STRING_TRIM_HEAD = 1; | ||
144 | integer STRING_TRIM_TAIL = 2; | ||
145 | |||
69 | integer TRUE = 1; | 146 | integer TRUE = 1; |
70 | integer FALSE = 0; | 147 | integer FALSE = 0; |
71 | 148 | ||
149 | integer TYPE_INTEGER = 1; | ||
150 | integer TYPE_FLOAT = 2; | ||
151 | integer TYPE_STRING = 3; | ||
152 | integer TYPE_KEY = 4; | ||
153 | integer TYPE_VECTOR = 5; | ||
154 | integer TYPE_ROTATION = 6; | ||
155 | integer TYPE_INVALID = 0; | ||
156 | |||
72 | string NULL_KEY = "00000000-0000-0000-0000-000000000000"; | 157 | string NULL_KEY = "00000000-0000-0000-0000-000000000000"; |
73 | string EOF = "\n\n\n"; | 158 | string 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 | ||
80 | float llPow(float number, float places){} | 165 | float llPow(float number, float places){} |
166 | float llFrand(float max){} | ||
81 | integer llRound(float number){} | 167 | integer llRound(float number){} |
82 | 168 | ||
83 | key llDetectedKey(integer index){} | 169 | key llDetectedKey(integer index){} |
@@ -86,6 +172,13 @@ key llSameGroup(key avatar){} | |||
86 | 172 | ||
87 | float llGetAlpha(integer side){} | 173 | float 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 | |||
89 | integer llGetLinkNumber(){} | 182 | integer llGetLinkNumber(){} |
90 | string llGetObjectDesc(){} | 183 | string llGetObjectDesc(){} |
91 | llSetObjectDesc(string text){} | 184 | llSetObjectDesc(string text){} |
@@ -97,6 +190,7 @@ integer llGetInventoryNumber(integer type){} | |||
97 | integer llGetInventoryType(string name){} | 190 | integer llGetInventoryType(string name){} |
98 | key llGetNotecardLine(string name, integer index){} | 191 | key llGetNotecardLine(string name, integer index){} |
99 | 192 | ||
193 | llDie(){} | ||
100 | integer llGetFreeMemory(){} | 194 | integer llGetFreeMemory(){} |
101 | string llGetScriptName(){} | 195 | string llGetScriptName(){} |
102 | float llGetTime(){} | 196 | float 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 | ||
112 | vector llGetPos(){} | 208 | vector llGetPos(){} |
209 | llSetPos(vector pos){} | ||
113 | rotation llGetRot(){} | 210 | rotation llGetRot(){} |
211 | llSetRot(rotation rot){} | ||
114 | 212 | ||
115 | rotation llEuler2Rot(vector vec){} | 213 | rotation llEuler2Rot(vector vec){} |
116 | vector llRot2Euler(rotation rot){} | 214 | vector llRot2Euler(rotation rot){} |
117 | 215 | ||
118 | string llGetSubString(string text, integer start, integer end){} | 216 | string llGetSubString(string text, integer start, integer end){} |
217 | integer llStringLength(string text){} | ||
218 | string llStringTrim(string text, integer type){} | ||
119 | integer llSubStringIndex(string text, string sub){} | 219 | integer llSubStringIndex(string text, string sub){} |
120 | list llParseString2List(string in, list l, list l1){} | 220 | list llParseString2List(string in, list l, list l1){} |
121 | list llParseStringKeepNulls(string in, list l, list l1){} | 221 | list llParseStringKeepNulls(string in, list l, list l1){} |
122 | 222 | ||
123 | list llCSV2List(string text){} | 223 | list llCSV2List(string text){} |
124 | list llDeleteSubList(list l, integer start, integer end){} | 224 | list llDeleteSubList(list l, integer start, integer end){} |
225 | string llDumpList2String(list l, string separator){} | ||
125 | string llList2CSV(list l){} | 226 | string llList2CSV(list l){} |
126 | float llList2Float(list l, integer index){} | 227 | float llList2Float(list l, integer index){} |
127 | integer llList2Integer(list l, integer index){} | 228 | integer llList2Integer(list l, integer index){} |
@@ -130,10 +231,13 @@ list llList2List(list l, integer start, integer end){} | |||
130 | string llList2String(list l, integer index){} | 231 | string llList2String(list l, integer index){} |
131 | rotation llList2Rotation(list l, integer index){} | 232 | rotation llList2Rotation(list l, integer index){} |
132 | vector llList2Vector(list l, integer index){} | 233 | vector llList2Vector(list l, integer index){} |
234 | integer llListFindList(list l, list l1){} | ||
235 | list llListInsertList(list l, list l1, integer index){} | ||
133 | integer llGetListLength(list l){} | 236 | integer llGetListLength(list l){} |
134 | list llListReplaceList(list l, list part, integer start, integer end){} | 237 | list llListReplaceList(list l, list part, integer start, integer end){} |
135 | list llListSort(list l, integer stride, integer ascending){} | 238 | list llListSort(list l, integer stride, integer ascending){} |
136 | 239 | ||
240 | key llAvatarOnSitTarget(){} | ||
137 | list llGetAnimationList(key id){} | 241 | list llGetAnimationList(key id){} |
138 | key llGetKey(){} | 242 | key llGetKey(){} |
139 | key llGetOwner(){} | 243 | key 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){} | 254 | integer 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){} |