diff options
Diffstat (limited to '')
-rw-r--r-- | lib/LSL.lua | 746 |
1 files changed, 676 insertions, 70 deletions
diff --git a/lib/LSL.lua b/lib/LSL.lua index 1fadb65..94d2417 100644 --- a/lib/LSL.lua +++ b/lib/LSL.lua | |||
@@ -235,6 +235,15 @@ local constants = | |||
235 | newConst("float", "RAD_TO_DEG", 180.0 / LSL.PI), -- 57.2957795131 | 235 | newConst("float", "RAD_TO_DEG", 180.0 / LSL.PI), -- 57.2957795131 |
236 | newConst("float", "SQRT2", 1.4142135623730950488016887242097), | 236 | newConst("float", "SQRT2", 1.4142135623730950488016887242097), |
237 | 237 | ||
238 | newConst("integer", "AGENT", 0x0001), | ||
239 | newConst("integer", "AGENT_BY_LEGACY_NAME", 0x0001), | ||
240 | newConst("integer", "ACTIVE", 0x0002), | ||
241 | newConst("integer", "PASSIVE", 0x0004), | ||
242 | newConst("integer", "SCRIPTED", 0x0008), | ||
243 | newConst("integer", "AGENT_BY_USERNAME", 0x0010), | ||
244 | newConst("integer", "NPC", 0x0020), | ||
245 | newConst("integer", "OS_NPC", 0x01000000), | ||
246 | |||
238 | newConst("integer", "AGENT_FLYING", 0x0001), | 247 | newConst("integer", "AGENT_FLYING", 0x0001), |
239 | newConst("integer", "AGENT_ATTACHMENTS", 0x0002), | 248 | newConst("integer", "AGENT_ATTACHMENTS", 0x0002), |
240 | newConst("integer", "AGENT_SCRIPTED", 0x0004), | 249 | newConst("integer", "AGENT_SCRIPTED", 0x0004), |
@@ -249,6 +258,18 @@ local constants = | |||
249 | newConst("integer", "AGENT_BUSY", 0x0800), | 258 | newConst("integer", "AGENT_BUSY", 0x0800), |
250 | newConst("integer", "AGENT_ALWAYS_RUN", 0x1000), | 259 | newConst("integer", "AGENT_ALWAYS_RUN", 0x1000), |
251 | 260 | ||
261 | newConst("integer", "AGENT_LIST_PARCEL", 0x0001), | ||
262 | newConst("integer", "AGENT_LIST_PARCEL_OWNER",0x0002), | ||
263 | newConst("integer", "AGENT_LIST_REGION", 0x0004), | ||
264 | |||
265 | newConst("integer", "ANIM_ON", 0x0001), | ||
266 | newConst("integer", "LOOP", 0x0002), | ||
267 | newConst("integer", "REVERSE", 0x0004), | ||
268 | newConst("integer", "PING_PONG", 0x0008), | ||
269 | newConst("integer", "SMOOTH", 0x0010), | ||
270 | newConst("integer", "ROTATE", 0x0020), | ||
271 | newConst("integer", "SCALE", 0x0040), | ||
272 | |||
252 | newConst("integer", "ATTACH_CHEST", 1), | 273 | newConst("integer", "ATTACH_CHEST", 1), |
253 | newConst("integer", "ATTACH_HEAD", 2), | 274 | newConst("integer", "ATTACH_HEAD", 2), |
254 | newConst("integer", "ATTACH_LSHOULDER", 3), | 275 | newConst("integer", "ATTACH_LSHOULDER", 3), |
@@ -278,7 +299,9 @@ local constants = | |||
278 | newConst("integer", "ATTACH_LLLEG", 27), | 299 | newConst("integer", "ATTACH_LLLEG", 27), |
279 | newConst("integer", "ATTACH_BELLY", 28), | 300 | newConst("integer", "ATTACH_BELLY", 28), |
280 | newConst("integer", "ATTACH_RPEC", 29), | 301 | newConst("integer", "ATTACH_RPEC", 29), |
302 | newConst("integer", "ATTACH_RIGHT_PEC", 29), | ||
281 | newConst("integer", "ATTACH_LPEC", 30), | 303 | newConst("integer", "ATTACH_LPEC", 30), |
304 | newConst("integer", "ATTACH_LEFT_PEC", 30), | ||
282 | newConst("integer", "ATTACH_HUD_CENTER_2", 31), | 305 | newConst("integer", "ATTACH_HUD_CENTER_2", 31), |
283 | newConst("integer", "ATTACH_HUD_TOP_RIGHT", 32), | 306 | newConst("integer", "ATTACH_HUD_TOP_RIGHT", 32), |
284 | newConst("integer", "ATTACH_HUD_TOP_CENTER", 33), | 307 | newConst("integer", "ATTACH_HUD_TOP_CENTER", 33), |
@@ -322,8 +345,10 @@ local constants = | |||
322 | newConst("integer", "CHANGED_OWNER", 0x0080), | 345 | newConst("integer", "CHANGED_OWNER", 0x0080), |
323 | newConst("integer", "CHANGED_REGION", 0x0100), | 346 | newConst("integer", "CHANGED_REGION", 0x0100), |
324 | newConst("integer", "CHANGED_TELEPORT", 0x0200), | 347 | newConst("integer", "CHANGED_TELEPORT", 0x0200), |
348 | newConst("integer", "CHANGED_REGION_RESTART", 0x0400), | ||
325 | newConst("integer", "CHANGED_REGION_START", 0x0400), | 349 | newConst("integer", "CHANGED_REGION_START", 0x0400), |
326 | newConst("integer", "CHANGED_MEDIA", 0x0800), | 350 | newConst("integer", "CHANGED_MEDIA", 0x0800), |
351 | newConst("integer", "CHANGED_ANIMATION", 0x4000), | ||
327 | 352 | ||
328 | newConst("integer", "CLICK_ACTION_NONE", 0), | 353 | newConst("integer", "CLICK_ACTION_NONE", 0), |
329 | newConst("integer", "CLICK_ACTION_TOUCH", 0), | 354 | newConst("integer", "CLICK_ACTION_TOUCH", 0), |
@@ -333,6 +358,7 @@ local constants = | |||
333 | newConst("integer", "CLICK_ACTION_OPEN", 4), | 358 | newConst("integer", "CLICK_ACTION_OPEN", 4), |
334 | newConst("integer", "CLICK_ACTION_PLAY", 5), | 359 | newConst("integer", "CLICK_ACTION_PLAY", 5), |
335 | newConst("integer", "CLICK_ACTION_OPEN_MEDIA",6), | 360 | newConst("integer", "CLICK_ACTION_OPEN_MEDIA",6), |
361 | newConst("integer", "CLICK_ACTION_ZOOM", 7), | ||
336 | 362 | ||
337 | newConst("integer", "CONTROL_FWD", 0x0001), | 363 | newConst("integer", "CONTROL_FWD", 0x0001), |
338 | newConst("integer", "CONTROL_BACK", 0x0002), | 364 | newConst("integer", "CONTROL_BACK", 0x0002), |
@@ -358,6 +384,13 @@ local constants = | |||
358 | newConst("integer", "DEBUG_CHANNEL", 2147483647), | 384 | newConst("integer", "DEBUG_CHANNEL", 2147483647), |
359 | newConst("integer", "PUBLIC_CHANNEL", 0), | 385 | newConst("integer", "PUBLIC_CHANNEL", 0), |
360 | 386 | ||
387 | newConst("integer", "ESTATE_ACCESS_ALLOWED_AGENT_ADD", 0), | ||
388 | newConst("integer", "ESTATE_ACCESS_ALLOWED_AGENT_REMOVE", 1), | ||
389 | newConst("integer", "ESTATE_ACCESS_ALLOWED_GROUP_ADD", 2), | ||
390 | newConst("integer", "ESTATE_ACCESS_ALLOWED_GROUP_REMOVE", 3), | ||
391 | newConst("integer", "ESTATE_ACCESS_BANNED_AGENT_ADD", 4), | ||
392 | newConst("integer", "ESTATE_ACCESS_BANNED_AGENT_REMOVE", 5), | ||
393 | |||
361 | newConst("integer", "HTTP_METHOD", 0), | 394 | newConst("integer", "HTTP_METHOD", 0), |
362 | newConst("integer", "HTTP_MIMETYPE", 1), | 395 | newConst("integer", "HTTP_MIMETYPE", 1), |
363 | newConst("integer", "HTTP_BODY_MAXLENGTH", 2), | 396 | newConst("integer", "HTTP_BODY_MAXLENGTH", 2), |
@@ -388,8 +421,8 @@ local constants = | |||
388 | newConst("integer", "LAND_LARGE_BRUSH", 3), | 421 | newConst("integer", "LAND_LARGE_BRUSH", 3), |
389 | 422 | ||
390 | newConst("integer", "ALL_SIDES", -1), | 423 | newConst("integer", "ALL_SIDES", -1), |
391 | newConst("integer", "LINK_SET", -1), | ||
392 | newConst("integer", "LINK_ROOT", 1), | 424 | newConst("integer", "LINK_ROOT", 1), |
425 | newConst("integer", "LINK_SET", -1), | ||
393 | newConst("integer", "LINK_ALL_OTHERS", -2), | 426 | newConst("integer", "LINK_ALL_OTHERS", -2), |
394 | newConst("integer", "LINK_ALL_CHILDREN", -3), | 427 | newConst("integer", "LINK_ALL_CHILDREN", -3), |
395 | newConst("integer", "LINK_THIS", -4), | 428 | newConst("integer", "LINK_THIS", -4), |
@@ -406,19 +439,29 @@ local constants = | |||
406 | newConst("integer", "LIST_STAT_GEOMETRIC_MEAN", 9), | 439 | newConst("integer", "LIST_STAT_GEOMETRIC_MEAN", 9), |
407 | newConst("integer", "LIST_STAT_HARMONIC_MEAN", 100), | 440 | newConst("integer", "LIST_STAT_HARMONIC_MEAN", 100), |
408 | 441 | ||
442 | newConst("integer", "LSL_STATUS_OK", 0), | ||
443 | newConst("integer", "LSL_STATUS_MALFORMED_PARAMS", 1000), | ||
444 | newConst("integer", "LSL_STATUS_TYPE_MISMATCH", 1001), | ||
445 | newConst("integer", "LSL_STATUS_BOUNDS_ERROR", 1002), | ||
446 | newConst("integer", "LSL_STATUS_NOT_FOUND", 1003), | ||
447 | newConst("integer", "LSL_STATUS_NOT_SUPPORTED", 1004), | ||
448 | newConst("integer", "LSL_STATUS_INTERNAL_ERROR", 1999), | ||
449 | newConst("integer", "LSL_STATUS_WHITELIST_FAILED", 2001), | ||
450 | |||
409 | newConst("integer", "PAY_HIDE", -1), | 451 | newConst("integer", "PAY_HIDE", -1), |
410 | newConst("integer", "PAY_DEFAULT", -2), | 452 | newConst("integer", "PAY_DEFAULT", -2), |
411 | 453 | ||
412 | newConst("integer", "PERM_ALL", 0x7FFFFFFF), | 454 | newConst("integer", "PERM_ALL", 0x7FFFFFFF), |
455 | newConst("integer", "PERM_TRANSFER", 0x00002000), | ||
413 | newConst("integer", "PERM_COPY", 0x00008000), | 456 | newConst("integer", "PERM_COPY", 0x00008000), |
414 | newConst("integer", "PERM_MODIFY", 0x00004000), | 457 | newConst("integer", "PERM_MODIFY", 0x00004000), |
415 | newConst("integer", "PERM_MOVE", 0x00080000), | 458 | newConst("integer", "PERM_MOVE", 0x00080000), |
416 | newConst("integer", "PERM_TRANSFER", 0x00002000), | ||
417 | newConst("integer", "MASK_BASE", 0), | 459 | newConst("integer", "MASK_BASE", 0), |
418 | newConst("integer", "MASK_OWNER", 1), | 460 | newConst("integer", "MASK_OWNER", 1), |
419 | newConst("integer", "MASK_GROUP", 2), | 461 | newConst("integer", "MASK_GROUP", 2), |
420 | newConst("integer", "MASK_EVERYONE", 3), | 462 | newConst("integer", "MASK_EVERYONE", 3), |
421 | newConst("integer", "MASK_NEXT", 4), | 463 | newConst("integer", "MASK_NEXT", 4), |
464 | |||
422 | newConst("integer", "PERMISSION_DEBIT", 0x0002), | 465 | newConst("integer", "PERMISSION_DEBIT", 0x0002), |
423 | newConst("integer", "PERMISSION_TAKE_CONTROLS", 0x0004), | 466 | newConst("integer", "PERMISSION_TAKE_CONTROLS", 0x0004), |
424 | newConst("integer", "PERMISSION_REMAP_CONTROLS", 0x0008), | 467 | newConst("integer", "PERMISSION_REMAP_CONTROLS", 0x0008), |
@@ -431,30 +474,56 @@ local constants = | |||
431 | newConst("integer", "PERMISSION_TRACK_CAMERA", 0x0400), | 474 | newConst("integer", "PERMISSION_TRACK_CAMERA", 0x0400), |
432 | newConst("integer", "PERMISSION_CONTROL_CAMERA", 0x0800), | 475 | newConst("integer", "PERMISSION_CONTROL_CAMERA", 0x0800), |
433 | 476 | ||
434 | newConst("integer", "AGENT", 0x0001), | 477 | newConst("integer", "OBJECT_UNKNOWN_DETAIL", -1), |
435 | newConst("integer", "AGENT_BY_LEGACY_NAME", 0x0001), | 478 | newConst("integer", "OBJECT_NAME", 1), |
436 | newConst("integer", "ACTIVE", 0x0002), | 479 | newConst("integer", "OBJECT_DESC", 2), |
437 | newConst("integer", "PASSIVE", 0x0004), | 480 | newConst("integer", "OBJECT_POS", 3), |
438 | newConst("integer", "SCRIPTED", 0x0008), | 481 | newConst("integer", "OBJECT_ROT", 4), |
439 | newConst("integer", "AGENT_BY_USERNAME", 0x0010), | 482 | newConst("integer", "OBJECT_VELOCITY", 5), |
440 | 483 | newConst("integer", "OBJECT_OWNER", 6), | |
441 | newConst("integer", "ANIM_ON", 0x0001), | 484 | newConst("integer", "OBJECT_GROUP", 7), |
442 | newConst("integer", "LOOP", 0x0002), | 485 | newConst("integer", "OBJECT_CREATOR", 8), |
443 | newConst("integer", "REVERSE", 0x0004), | 486 | newConst("integer", "OBJECT_RUNNING_SCRIPT_COUNT", 9), |
444 | newConst("integer", "PING_PONG", 0x0008), | 487 | newConst("integer", "OBJECT_TOTAL_SCRIPT_COUNT", 10), |
445 | newConst("integer", "SMOOTH", 0x0010), | 488 | newConst("integer", "OBJECT_SCRIPT_MEMORY", 11), |
446 | newConst("integer", "ROTATE", 0x0020), | 489 | newConst("integer", "OBJECT_SCRIPT_TIME", 12), |
447 | newConst("integer", "SCALE", 0x0040), | 490 | newConst("integer", "OBJECT_PRIM_EQUIVALENCE", 13), |
448 | 491 | newConst("integer", "OBJECT_SERVER_COST", 14), | |
449 | newConst("integer", "OBJECT_UNKNOWN_DETAIL", -1), | 492 | newConst("integer", "OBJECT_STREAMING_COST", 15), |
450 | newConst("integer", "OBJECT_NAME", 1), | 493 | newConst("integer", "OBJECT_PHYSICS_COST", 16), |
451 | newConst("integer", "OBJECT_DESC", 2), | 494 | newConst("integer", "OBJECT_CHARACTER_TIME", 17), |
452 | newConst("integer", "OBJECT_POS", 3), | 495 | newConst("integer", "OBJECT_ROOT", 18), |
453 | newConst("integer", "OBJECT_ROT", 4), | 496 | newConst("integer", "OBJECT_ATTACHED_POINT", 19), |
454 | newConst("integer", "OBJECT_VELOCITY", 5), | 497 | newConst("integer", "OBJECT_PATHFINDING_TYPE", 20), |
455 | newConst("integer", "OBJECT_OWNER", 6), | 498 | newConst("integer", "OBJECT_PHYSICS", 21), |
456 | newConst("integer", "OBJECT_GROUP", 7), | 499 | newConst("integer", "OBJECT_PHANTOM", 22), |
457 | newConst("integer", "OBJECT_CREATOR", 8), | 500 | newConst("integer", "OBJECT_TEMP_ON_REZ", 23), |
501 | |||
502 | newConst("integer", "OPT_OTHER", -1), | ||
503 | newConst("integer", "OPT_LEGACY_LINKSET", 0), | ||
504 | newConst("integer", "OPT_AVATAR", 1), | ||
505 | newConst("integer", "OPT_CHARACTER", 2), | ||
506 | newConst("integer", "OPT_WALKABLE", 3), | ||
507 | newConst("integer", "OPT_STATIC_OBSTACLE", 4), | ||
508 | newConst("integer", "OPT_MATERIAL_VOLUME", 5), | ||
509 | newConst("integer", "OPT_EXCLUSION_VOLUME", 6), | ||
510 | |||
511 | newConst("integer", "OS_ATTACH_MSG_ALL", -65535), | ||
512 | newConst("integer", "OS_ATTACH_MSG_INVERT_POINTS", 0x0001), | ||
513 | newConst("integer", "OS_ATTACH_MSG_OBJECT_CREATOR", 0x0002), | ||
514 | newConst("integer", "OS_ATTACH_MSG_SCRIPT_CREATOR", 0x0004), | ||
515 | |||
516 | newConst("integer", "OS_LISTEN_REGEX_NAME", 0x1), | ||
517 | newConst("integer", "OS_LISTEN_REGEX_MESSAGE", 0x2), | ||
518 | |||
519 | newConst("integer", "OS_NPC_SIT_NOW", 0), | ||
520 | newConst("integer", "OS_NPC_FLY", 0), | ||
521 | newConst("integer", "OS_NPC_NO_FLY", 1), | ||
522 | newConst("integer", "OS_NPC_LAND_AT_TARGET", 2), | ||
523 | newConst("integer", "OS_NPC_RUNNING", 4), | ||
524 | newConst("integer", "OS_NPC_CREATOR_OWNED", 0x0001), | ||
525 | newConst("integer", "OS_NPC_NOT_OWNED", 0x0002), | ||
526 | newConst("integer", "OS_NPC_SENSE_AS_AGENT", 0x0004), | ||
458 | 527 | ||
459 | newConst("integer", "PARCEL_COUNT_TOTAL", 0), | 528 | newConst("integer", "PARCEL_COUNT_TOTAL", 0), |
460 | newConst("integer", "PARCEL_COUNT_OWNER", 1), | 529 | newConst("integer", "PARCEL_COUNT_OWNER", 1), |
@@ -463,12 +532,14 @@ local constants = | |||
463 | newConst("integer", "PARCEL_COUNT_SELECTED", 4), | 532 | newConst("integer", "PARCEL_COUNT_SELECTED", 4), |
464 | newConst("integer", "PARCEL_COUNT_TEMP", 5), | 533 | newConst("integer", "PARCEL_COUNT_TEMP", 5), |
465 | 534 | ||
466 | newConst("integer", "PARCEL_DETAILS_NAME", 0), | 535 | newConst("integer", "PARCEL_DETAILS_NAME", 0), |
467 | newConst("integer", "PARCEL_DETAILS_DESC", 1), | 536 | newConst("integer", "PARCEL_DETAILS_DESC", 1), |
468 | newConst("integer", "PARCEL_DETAILS_OWNER", 2), | 537 | newConst("integer", "PARCEL_DETAILS_OWNER", 2), |
469 | newConst("integer", "PARCEL_DETAILS_GROUP", 3), | 538 | newConst("integer", "PARCEL_DETAILS_GROUP", 3), |
470 | newConst("integer", "PARCEL_DETAILS_AREA", 4), | 539 | newConst("integer", "PARCEL_DETAILS_AREA", 4), |
471 | newConst("integer", "PARCEL_DETAILS_ID", 5), | 540 | newConst("integer", "PARCEL_DETAILS_ID", 5), |
541 | newConst("integer", "PARCEL_DETAILS_SEE_AVATARS", 6), | ||
542 | newConst("integer", "PARCEL_DETAILS_CLAIMDATE", 10), | ||
472 | 543 | ||
473 | newConst("integer", "PARCEL_FLAG_ALLOW_FLY", 0x0001), | 544 | newConst("integer", "PARCEL_FLAG_ALLOW_FLY", 0x0001), |
474 | newConst("integer", "PARCEL_FLAG_ALLOW_SCRIPTS", 0x0002), | 545 | newConst("integer", "PARCEL_FLAG_ALLOW_SCRIPTS", 0x0002), |
@@ -523,6 +594,10 @@ local constants = | |||
523 | newConst("integer", "PRIM_NAME", 27), | 594 | newConst("integer", "PRIM_NAME", 27), |
524 | newConst("integer", "PRIM_DESC", 28), | 595 | newConst("integer", "PRIM_DESC", 28), |
525 | newConst("integer", "PRIM_ROT_LOCAL", 29), | 596 | newConst("integer", "PRIM_ROT_LOCAL", 29), |
597 | newConst("integer", "PRIM_OMEGA", 32), | ||
598 | newConst("integer", "PRIM_POS_LOCAL", 33), | ||
599 | newConst("integer", "PRIM_LINK_TARGET", 34), | ||
600 | newConst("integer", "PRIM_SLICE", 35), | ||
526 | 601 | ||
527 | newConst("integer", "PRIM_BUMP_NONE", 0), | 602 | newConst("integer", "PRIM_BUMP_NONE", 0), |
528 | newConst("integer", "PRIM_BUMP_BRIGHT", 1), | 603 | newConst("integer", "PRIM_BUMP_BRIGHT", 1), |
@@ -588,6 +663,9 @@ local constants = | |||
588 | newConst("integer", "PRIM_SCULPT_TYPE_MESH", 5), | 663 | newConst("integer", "PRIM_SCULPT_TYPE_MESH", 5), |
589 | newConst("integer", "PRIM_SCULPT_TYPE_MIMESH", 6), | 664 | newConst("integer", "PRIM_SCULPT_TYPE_MIMESH", 6), |
590 | 665 | ||
666 | newConst("integer", "PRIM_SCULPT_FLAG_INVERT", 0x0040), | ||
667 | newConst("integer", "PRIM_SCULPT_FLAG_MIRROR", 0x0080), | ||
668 | |||
591 | newConst("integer", "PRIM_SHINY_NONE", 0), | 669 | newConst("integer", "PRIM_SHINY_NONE", 0), |
592 | newConst("integer", "PRIM_SHINY_LOW", 1), | 670 | newConst("integer", "PRIM_SHINY_LOW", 1), |
593 | newConst("integer", "PRIM_SHINY_MEDIUM", 2), | 671 | newConst("integer", "PRIM_SHINY_MEDIUM", 2), |
@@ -605,6 +683,9 @@ local constants = | |||
605 | newConst("integer", "PRIM_TYPE_RING", 6), | 683 | newConst("integer", "PRIM_TYPE_RING", 6), |
606 | newConst("integer", "PRIM_TYPE_SCULPT", 7), | 684 | newConst("integer", "PRIM_TYPE_SCULPT", 7), |
607 | 685 | ||
686 | newConst("integer", "PROFILE_NONE", 0), | ||
687 | newConst("integer", "PROFILE_SCRIPT_MEMORY", 1), | ||
688 | |||
608 | newConst("integer", "PSYS_PART_FLAGS", 0), | 689 | newConst("integer", "PSYS_PART_FLAGS", 0), |
609 | newConst("integer", "PSYS_PART_START_COLOR", 1), | 690 | newConst("integer", "PSYS_PART_START_COLOR", 1), |
610 | newConst("integer", "PSYS_PART_START_ALPHA", 2), | 691 | newConst("integer", "PSYS_PART_START_ALPHA", 2), |
@@ -645,6 +726,24 @@ local constants = | |||
645 | newConst("integer", "PSYS_SRC_PATTERN_ANGLE_CONE", 0x0008), | 726 | newConst("integer", "PSYS_SRC_PATTERN_ANGLE_CONE", 0x0008), |
646 | newConst("integer", "PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY", 0x0010), | 727 | newConst("integer", "PSYS_SRC_PATTERN_ANGLE_CONE_EMPTY", 0x0010), |
647 | 728 | ||
729 | newConst("integer", "RC_REJECT_TYPES", 0), | ||
730 | newConst("integer", "RC_DETECT_PHANTOM", 1), | ||
731 | newConst("integer", "RC_DATA_FLAGS", 2), | ||
732 | newConst("integer", "RC_MAX_HITS", 3), | ||
733 | |||
734 | newConst("integer", "RC_REJECT_AGENTS", 1), | ||
735 | newConst("integer", "RC_REJECT_PHYSICAL", 2), | ||
736 | newConst("integer", "RC_REJECT_NONPHYSICAL", 4), | ||
737 | newConst("integer", "RC_REJECT_LAND", 8), | ||
738 | |||
739 | newConst("integer", "RC_GET_NORMAL", 1), | ||
740 | newConst("integer", "RC_GET_ROOT_KEY", 2), | ||
741 | newConst("integer", "RC_GET_LINK_NUM", 4), | ||
742 | |||
743 | newConst("integer", "RCERR_UNKNOWN", -1), | ||
744 | newConst("integer", "RCERR_SIM_PERF_LOW", -2), | ||
745 | newConst("integer", "RCERR_CAST_TIME_EXCEEDED",3), | ||
746 | |||
648 | newConst("integer", "REGION_FLAG_ALLOW_DAMAGE", 0x0001), | 747 | newConst("integer", "REGION_FLAG_ALLOW_DAMAGE", 0x0001), |
649 | newConst("integer", "REGION_FLAG_FIXED_SUN", 0x0010), | 748 | newConst("integer", "REGION_FLAG_FIXED_SUN", 0x0010), |
650 | newConst("integer", "REGION_FLAG_BLOCK_TERRAFORM", 0x0040), | 749 | newConst("integer", "REGION_FLAG_BLOCK_TERRAFORM", 0x0040), |
@@ -659,9 +758,27 @@ local constants = | |||
659 | newConst("integer", "REMOTE_DATA_REQUEST", 2), | 758 | newConst("integer", "REMOTE_DATA_REQUEST", 2), |
660 | newConst("integer", "REMOTE_DATA_REPLY", 3), | 759 | newConst("integer", "REMOTE_DATA_REPLY", 3), |
661 | 760 | ||
662 | newConst("integer", "STRING_TRIM_HEAD", 1), | 761 | newConst("integer", "STATS_TIME_DILATION", 0), |
663 | newConst("integer", "STRING_TRIM_TAIL", 2), | 762 | newConst("integer", "STATS_SIM_FPS", 1), |
664 | newConst("integer", "STRING_TRIM", 3), | 763 | newConst("integer", "STATS_PHYSICS_FPS", 2), |
764 | newConst("integer", "STATS_AGENT_UPDATES", 3), | ||
765 | newConst("integer", "STATS_ROOT_AGENTS", 4), | ||
766 | newConst("integer", "STATS_CHILD_AGENTS", 5), | ||
767 | newConst("integer", "STATS_TOTAL_PRIMS", 6), | ||
768 | newConst("integer", "STATS_ACTIVE_PRIMS", 7), | ||
769 | newConst("integer", "STATS_FRAME_MS", 8), | ||
770 | newConst("integer", "STATS_NET_MS", 9), | ||
771 | newConst("integer", "STATS_PHYSICS_MS", 10), | ||
772 | newConst("integer", "STATS_IMAGE_MS", 11), | ||
773 | newConst("integer", "STATS_OTHER_MS", 12), | ||
774 | newConst("integer", "STATS_IN_PACKETS_PER_SECOND", 13), | ||
775 | newConst("integer", "STATS_OUT_PACKETS_PER_SECOND", 14), | ||
776 | newConst("integer", "STATS_UNACKED_BYTES", 15), | ||
777 | newConst("integer", "STATS_AGENT_MS", 16), | ||
778 | newConst("integer", "STATS_PENDING_DOWNLOADS", 17), | ||
779 | newConst("integer", "STATS_PENDING_UPLOADS", 18), | ||
780 | newConst("integer", "STATS_ACTIVE_SCRIPTS", 19), | ||
781 | newConst("integer", "STATS_SCRIPT_LPS", 20), | ||
665 | 782 | ||
666 | newConst("integer", "STATUS_PHYSICS", 0x0001), | 783 | newConst("integer", "STATUS_PHYSICS", 0x0001), |
667 | newConst("integer", "STATUS_ROTATE_X", 0x0002), | 784 | newConst("integer", "STATUS_ROTATE_X", 0x0002), |
@@ -674,34 +791,38 @@ local constants = | |||
674 | newConst("integer", "STATUS_RETURN_AT_EDGE", 0x0100), | 791 | newConst("integer", "STATUS_RETURN_AT_EDGE", 0x0100), |
675 | newConst("integer", "STATUS_CAST_SHADOWS", 0x0200), | 792 | newConst("integer", "STATUS_CAST_SHADOWS", 0x0200), |
676 | 793 | ||
794 | newConst("integer", "STRING_TRIM_HEAD", 1), | ||
795 | newConst("integer", "STRING_TRIM_TAIL", 2), | ||
796 | newConst("integer", "STRING_TRIM", 3), | ||
797 | |||
677 | newConst("integer", "TOUCH_INVALID_FACE", 0x7FFFFFFF), | 798 | newConst("integer", "TOUCH_INVALID_FACE", 0x7FFFFFFF), |
678 | newConst("vector", "TOUCH_INVALID_TEXCOORD", {x=-1.0, y=-1.0, z=0.0}), | 799 | newConst("vector", "TOUCH_INVALID_TEXCOORD", {x=-1.0, y=-1.0, z=0.0}), |
679 | newConst("vector", "TOUCH_INVALID_VECTOR", {x=0.0, y=0.0, z=0.0}), | 800 | newConst("vector", "TOUCH_INVALID_VECTOR", {x=0.0, y=0.0, z=0.0}), |
680 | 801 | ||
802 | newConst("integer", "TYPE_INVALID", 0), | ||
681 | newConst("integer", "TYPE_INTEGER", 1), | 803 | newConst("integer", "TYPE_INTEGER", 1), |
682 | newConst("integer", "TYPE_FLOAT", 2), | 804 | newConst("integer", "TYPE_FLOAT", 2), |
683 | newConst("integer", "TYPE_STRING", 3), | 805 | newConst("integer", "TYPE_STRING", 3), |
684 | newConst("integer", "TYPE_KEY", 4), | 806 | newConst("integer", "TYPE_KEY", 4), |
685 | newConst("integer", "TYPE_VECTOR", 5), | 807 | newConst("integer", "TYPE_VECTOR", 5), |
686 | newConst("integer", "TYPE_ROTATION", 6), | 808 | newConst("integer", "TYPE_ROTATION", 6), |
687 | newConst("integer", "TYPE_INVALID", 0), | ||
688 | 809 | ||
689 | newConst("integer", "VEHICLE_FLAG_NO_DEFLECTION_UP", 1), | 810 | newConst("integer", "VEHICLE_FLAG_NO_DEFLECTION_UP", 0x0001), |
690 | newConst("integer", "VEHICLE_FLAG_LIMIT_ROLL_ONLY", 2), | 811 | newConst("integer", "VEHICLE_FLAG_LIMIT_ROLL_ONLY", 0x0002), |
691 | newConst("integer", "VEHICLE_FLAG_HOVER_WATER_ONLY", 4), | 812 | newConst("integer", "VEHICLE_FLAG_HOVER_WATER_ONLY", 0x0004), |
692 | newConst("integer", "VEHICLE_FLAG_HOVER_TERRAIN_ONLY", 8), | 813 | newConst("integer", "VEHICLE_FLAG_HOVER_TERRAIN_ONLY", 0x0008), |
693 | newConst("integer", "VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT", 16), | 814 | newConst("integer", "VEHICLE_FLAG_HOVER_GLOBAL_HEIGHT", 0x0010), |
694 | newConst("integer", "VEHICLE_FLAG_HOVER_UP_ONLY", 32), | 815 | newConst("integer", "VEHICLE_FLAG_HOVER_UP_ONLY", 0x0020), |
695 | newConst("integer", "VEHICLE_FLAG_LIMIT_MOTOR_UP", 64), | 816 | newConst("integer", "VEHICLE_FLAG_LIMIT_MOTOR_UP", 0x0040), |
696 | newConst("integer", "VEHICLE_FLAG_MOUSELOOK_STEER", 128), | 817 | newConst("integer", "VEHICLE_FLAG_MOUSELOOK_STEER", 0x0080), |
697 | newConst("integer", "VEHICLE_FLAG_MOUSELOOK_BANK", 256), | 818 | newConst("integer", "VEHICLE_FLAG_MOUSELOOK_BANK", 0x0100), |
698 | newConst("integer", "VEHICLE_FLAG_CAMERA_DECOUPLED", 512), | 819 | newConst("integer", "VEHICLE_FLAG_CAMERA_DECOUPLED", 0x0200), |
699 | newConst("integer", "VEHICLE_FLAG_NO_X", 1024), | 820 | newConst("integer", "VEHICLE_FLAG_NO_X", 0x0400), |
700 | newConst("integer", "VEHICLE_FLAG_NO_Y", 2048), | 821 | newConst("integer", "VEHICLE_FLAG_NO_Y", 0x0800), |
701 | newConst("integer", "VEHICLE_FLAG_NO_Z", 4096), | 822 | newConst("integer", "VEHICLE_FLAG_NO_Z", 0x1000), |
702 | newConst("integer", "VEHICLE_FLAG_LOCK_HOVER_HEIGHT", 8192), | 823 | newConst("integer", "VEHICLE_FLAG_LOCK_HOVER_HEIGHT", 0x2000), |
703 | newConst("integer", "VEHICLE_FLAG_NO_DEFLECTION", 16392), | 824 | newConst("integer", "VEHICLE_FLAG_NO_DEFLECTION", 0x4000), |
704 | newConst("integer", "VEHICLE_FLAG_LOCK_ROTATION", 32784), | 825 | newConst("integer", "VEHICLE_FLAG_LOCK_ROTATION", 0x8000), |
705 | 826 | ||
706 | newConst("integer", "VEHICLE_TYPE_NONE", 0), | 827 | newConst("integer", "VEHICLE_TYPE_NONE", 0), |
707 | newConst("integer", "VEHICLE_TYPE_SLED", 1), | 828 | newConst("integer", "VEHICLE_TYPE_SLED", 1), |
@@ -784,6 +905,15 @@ local constants = | |||
784 | newConst("rotation", "ZERO_ROTATION", {x=0.0, y=0.0, z=0.0, s=1.0}), | 905 | newConst("rotation", "ZERO_ROTATION", {x=0.0, y=0.0, z=0.0, s=1.0}), |
785 | newConst("vector", "ZERO_VECTOR", {x=0.0, y=0.0, z=0.0}), | 906 | newConst("vector", "ZERO_VECTOR", {x=0.0, y=0.0, z=0.0}), |
786 | 907 | ||
908 | newConst("string", "TEXTURE_BLANK", "5748decc-f629-461c-9a36-a35a221fe21f"), | ||
909 | newConst("string", "TEXTURE_DEFAULT", "89556747-24cb-43ed-920b-47caed15465f"), | ||
910 | newConst("string", "TEXTURE_PLYWOOD", "89556747-24cb-43ed-920b-47caed15465f"), | ||
911 | newConst("string", "TEXTURE_TRANSPARENT", "8dcd4a48-2d37-4909-9f78-f7a9eb4ef903"), | ||
912 | newConst("string", "TEXTURE_MEDIA", "8b5fec65-8d8d-9dc5-cda8-8fdf2716e361"), | ||
913 | |||
914 | newConst("string", "URL_REQUEST_GRANTED", "URL_REQUEST_GRANTED"), | ||
915 | newConst("string", "URL_REQUEST_DENIED", "URL_REQUEST_DENIED"), | ||
916 | |||
787 | -- TODO - Temporary dummy variables to get vector and rotation thingies to work for now. | 917 | -- TODO - Temporary dummy variables to get vector and rotation thingies to work for now. |
788 | 918 | ||
789 | newConst("float", "s", 1.0), | 919 | newConst("float", "s", 1.0), |
@@ -792,21 +922,55 @@ local constants = | |||
792 | newConst("float", "z", 0.0), | 922 | newConst("float", "z", 0.0), |
793 | } | 923 | } |
794 | 924 | ||
795 | -- ll*() function definitions | ||
796 | 925 | ||
797 | -- LSL avatar functions | 926 | -- LSL avatar functions |
927 | newFunc("", "llAttachToAvatar", "integer attachment") | ||
798 | newFunc("key", "llAvatarOnSitTarget") | 928 | newFunc("key", "llAvatarOnSitTarget") |
929 | newFunc("key", "llAvatarOnLinkSitTarget", "integer linknum") | ||
930 | newFunc("", "llClearCameraParams") | ||
931 | newFunc("", "llDetachFromAvatar") | ||
932 | newFunc("", "llForceMouselook", "integer mouselook") | ||
933 | newFunc("integer", "llGetAgentInfo", "string id") | ||
934 | newFunc("string", "llGetAgentLanguage", "string id") | ||
935 | newFunc("list", "llGetAgentList", "integer scope", "list options") | ||
936 | newFunc("vector", "llGetAgentSize", "string id") | ||
937 | newFunc("string", "llGetAnimation", "string id") | ||
799 | newFunc("list", "llGetAnimationList", "key id") | 938 | newFunc("list", "llGetAnimationList", "key id") |
939 | newFunc("vector", "llGetCameraPos") | ||
940 | newFunc("rotation", "llGetCameraRot") | ||
941 | newFunc("string", "llGetDisplayName", "string id") | ||
800 | newFunc("integer", "llGetPermissions") | 942 | newFunc("integer", "llGetPermissions") |
801 | newFunc("key", "llGetPermissionsKey") | 943 | newFunc("key", "llGetPermissionsKey") |
944 | newFunc("string", "llGetUsername", "string id") | ||
945 | newFunc("integer", "llGiveMoney", "string destination", "integer amount") | ||
802 | newFunc("string", "llKey2Name", "key avatar") | 946 | newFunc("string", "llKey2Name", "key avatar") |
947 | newFunc("", "llPointAt", "vector pos") | ||
948 | newFunc("", "llReleaseCamera", "string avatar") | ||
949 | newFunc("", "llReleaseControls") | ||
950 | newFunc("key", "llRequestAgentData", "string id", "integer data") | ||
951 | newFunc("string", "llRequestDisplayName", "string id") | ||
803 | newFunc("", "llRequestPermissions", "key avatar", "integer perms") | 952 | newFunc("", "llRequestPermissions", "key avatar", "integer perms") |
953 | newFunc("string", "llRequestUsername", "string id") | ||
804 | newFunc("integer", "llSameGroup", "key avatar") | 954 | newFunc("integer", "llSameGroup", "key avatar") |
955 | newFunc("", "llSetCameraAtOffset", "vector offset") | ||
956 | newFunc("", "llSetCameraEyeOffset", "vector offset") | ||
957 | newFunc("", "llSetCameraParams", "list rules") | ||
958 | newFunc("", "llSetLinkCamera", "integer link", "vector eye", "vector at") | ||
805 | newFunc("", "llStartAnimation", "string anim") | 959 | newFunc("", "llStartAnimation", "string anim") |
806 | newFunc("", "llStopAnimation", "string anim") | 960 | newFunc("", "llStopAnimation", "string anim") |
961 | newFunc("", "llStopPointAt") | ||
962 | newFunc("", "llTakeCamera", "string avatar") | ||
963 | newFunc("", "llTakeControls", "integer controls", "integer accept", "integer pass_on") | ||
964 | newFunc("", "llTeleportAgentHome", "string agent") | ||
965 | newFunc("", "llTeleportAgent", "string agent", "string simname", "vector pos", "vector lookAt") | ||
966 | newFunc("", "llTeleportAgentGlobalCoords", "string agent", "vector global", "vector pos", "vector lookAt") | ||
807 | newFunc("", "llUnSit", "key avatar") | 967 | newFunc("", "llUnSit", "key avatar") |
808 | 968 | ||
809 | -- LSL collision / detect / sensor functions | 969 | -- LSL collision / detect / sensor functions |
970 | newFunc("list", "llCastRay", "vector start", "vector End", "list options") | ||
971 | newFunc("", "llCollisionFilter", "string name", "string id", "integer accept") | ||
972 | newFunc("", "llCollisionSound", "string impact_sound", "float impact_volume") | ||
973 | newFunc("", "llCollisionSprite", "string impact_sprite") | ||
810 | newFunc("integer", "llDetectedGroup", "integer index") | 974 | newFunc("integer", "llDetectedGroup", "integer index") |
811 | newFunc("vector", "llDetectedGrab", "integer index") | 975 | newFunc("vector", "llDetectedGrab", "integer index") |
812 | newFunc("key", "llDetectedKey", "integer index") | 976 | newFunc("key", "llDetectedKey", "integer index") |
@@ -823,101 +987,543 @@ newFunc("vector", "llDetectedTouchST", "integer index") | |||
823 | newFunc("vector", "llDetectedTouchUV", "integer index") | 987 | newFunc("vector", "llDetectedTouchUV", "integer index") |
824 | newFunc("integer", "llDetectedType", "integer index") | 988 | newFunc("integer", "llDetectedType", "integer index") |
825 | newFunc("vector", "llDetectedVel", "integer index") | 989 | newFunc("vector", "llDetectedVel", "integer index") |
826 | 990 | newFunc("", "llPassCollisions", "integer pass") | |
991 | newFunc("integer", "llRotTarget", "rotation rot", "float error") | ||
992 | newFunc("", "llRotTargetRemove", "integer number") | ||
993 | newFunc("", "llSensor", "string name", "string id", "integer Type", "float range", "float arc") | ||
994 | newFunc("", "llSensorRemove") | ||
995 | newFunc("", "llSensorRepeat", "string name", "string id", "integer Type", "float range", "float arc", "float rate") | ||
996 | newFunc("integer", "llTarget", "vector position", "float range") | ||
997 | newFunc("", "llTargetRemove", "integer number") | ||
998 | newFunc("", "llVolumeDetect", "integer detect") | ||
827 | 999 | ||
828 | -- LSL communications functions | 1000 | -- LSL communications functions |
1001 | newFunc("", "llCloseRemoteDataChannel", "string channel") | ||
829 | newFunc("", "llDialog", "key avatar", "string caption", "list arseBackwardsMenu", "integer channel") | 1002 | newFunc("", "llDialog", "key avatar", "string caption", "list arseBackwardsMenu", "integer channel") |
1003 | newFunc("", "llEmail", "string address", "string subject", "string message") | ||
1004 | newFunc("integer", "llGetFreeURLs") | ||
1005 | newFunc("string", "llGetHTTPHeader", "key request_id", "string header") | ||
1006 | newFunc("", "llGetNextEmail", "string address", "string subject") | ||
1007 | newFunc("string", "llHTTPRequest", "string url", "list parameters", "string body") | ||
1008 | newFunc("", "llHTTPResponse", "key id", "integer status", "string body") | ||
1009 | newFunc("", "llInstantMessage", "string user", "string message") | ||
830 | newFunc("integer", "llListen", "integer channel", "string name", "key id", "string msg") | 1010 | newFunc("integer", "llListen", "integer channel", "string name", "key id", "string msg") |
1011 | newFunc("", "llListenControl", "integer number", "integer active") | ||
831 | newFunc("", "llListenRemove", "integer handle") | 1012 | newFunc("", "llListenRemove", "integer handle") |
1013 | newFunc("", "llLoadURL", "string avatar_id", "string message", "string url") | ||
1014 | newFunc("", "llMessageLinked", "integer link", "integer num", "string text", "key aKey") | ||
1015 | newFunc("", "llOpenRemoteDataChannel") | ||
832 | newFunc("", "llOwnerSay", "string text") | 1016 | newFunc("", "llOwnerSay", "string text") |
1017 | newFunc("", "llRefreshPrimURL") | ||
1018 | newFunc("", "llRegionSay", "integer channelID", "string text") | ||
1019 | newFunc("", "llRegionSayTo", "string target", "integer channelID", "string text") | ||
1020 | newFunc("", "llReleaseURL", "string url") | ||
1021 | newFunc("", "llRemoteDataReply", "string channel", "string message_id", "string sdata", "integer idata") | ||
1022 | newFunc("", "llRemoteDataSetRegion") | ||
1023 | newFunc("string", "llRequestSecureURL") | ||
1024 | newFunc("key", "llRequestURL") | ||
833 | newFunc("", "llSay", "integer channel", "string text") | 1025 | newFunc("", "llSay", "integer channel", "string text") |
1026 | newFunc("key", "llSendRemoteData", "string channel", "string dest", "integer idata", "string sdata") | ||
1027 | newFunc("", "llSetPrimURL", "string url") | ||
834 | newFunc("", "llShout", "integer channel", "string text") | 1028 | newFunc("", "llShout", "integer channel", "string text") |
1029 | newFunc("", "llTextBox", "string avatar", "string message", "integer chat_channel") | ||
835 | newFunc("", "llWhisper", "integer channel", "string text") | 1030 | newFunc("", "llWhisper", "integer channel", "string text") |
836 | newFunc("", "llMessageLinked", "integer link", "integer num", "string text", "key aKey") | ||
837 | 1031 | ||
838 | -- LSL inventory functions. | 1032 | -- LSL inventory functions. |
1033 | newFunc("key", "llGetInventoryCreator", "string item") | ||
1034 | newFunc("key", "llGetInventoryKey", "string name") | ||
839 | newFunc("string", "llGetInventoryName", "integer Type", "integer index") | 1035 | newFunc("string", "llGetInventoryName", "integer Type", "integer index") |
840 | newFunc("integer", "llGetInventoryNumber", "integer Type") | 1036 | newFunc("integer", "llGetInventoryNumber", "integer Type") |
1037 | newFunc("integer", "llGetInventoryPermMask", "string item", "integer mask") | ||
841 | newFunc("integer", "llGetInventoryType", "string name") | 1038 | newFunc("integer", "llGetInventoryType", "string name") |
842 | newFunc("key", "llGetNotecardLine", "string name", "integer index") | 1039 | newFunc("key", "llGetNotecardLine", "string name", "integer index") |
1040 | newFunc("key", "llGetNumberOfNotecardLines", "string name") | ||
1041 | newFunc("", "llGiveInventory", "string destination", "string inventory") | ||
1042 | newFunc("", "llGiveInventoryList", "string destination", "string category", "list inventory") | ||
1043 | newFunc("", "llGodLikeRezObject", "string inventory", "vector pos") | ||
1044 | newFunc("", "llRemoveInventory", "string item") | ||
1045 | newFunc("key", "llRequestInventoryData", "string name") | ||
843 | newFunc("", "llRezAtRoot", "string name", "vector position", "vector velocity", "rotation rot", "integer channel") | 1046 | newFunc("", "llRezAtRoot", "string name", "vector position", "vector velocity", "rotation rot", "integer channel") |
844 | newFunc("", "llRezObject", "string name", "vector position", "vector velocity", "rotation rot", "integer channel") | 1047 | newFunc("", "llRezObject", "string name", "vector position", "vector velocity", "rotation rot", "integer channel") |
1048 | newFunc("", "llSetInventoryPermMask", "string item", "integer mask", "integer value") | ||
1049 | |||
1050 | -- LSL land / parcel / plot / region / sim / weather functions | ||
1051 | newFunc("", "llAddToLandBanList", "string avatar", "float hours") | ||
1052 | newFunc("", "llAddToLandPassList", "string avatar", "float hours") | ||
1053 | newFunc("float", "llCloud", "vector offset") | ||
1054 | newFunc("integer", "llEdgeOfWorld", "vector pos", "vector dir") | ||
1055 | newFunc("", "llEjectFromLand", "string pest") | ||
1056 | newFunc("key", "llGetLandOwnerAt", "vector pos") | ||
1057 | newFunc("list", "llGetParcelDetails", "vector pos", "list param") | ||
1058 | newFunc("integer", "llGetParcelFlags", "vector pos") | ||
1059 | newFunc("integer", "llGetParcelMaxPrims", "vector pos", "integer sim_wide") | ||
1060 | newFunc("integer", "llGetParcelPrimCount", "vector pos", "integer category", "integer sim_wide") | ||
1061 | newFunc("list", "llGetParcelPrimOwners", "vector pos") | ||
1062 | newFunc("integer", "llGetRegionAgentCount") | ||
1063 | newFunc("vector", "llGetRegionCorner") | ||
1064 | newFunc("integer", "llGetRegionFlags") | ||
1065 | newFunc("float", "llGetRegionFPS") | ||
1066 | newFunc("string", "llGetRegionName") | ||
1067 | newFunc("float", "llGetRegionTimeDilation") | ||
1068 | newFunc("string", "llGetSimulatorHostname") | ||
1069 | newFunc("vector", "llGetSunDirection") | ||
1070 | newFunc("float", "llGround", "vector offset") | ||
1071 | newFunc("vector", "llGroundContour", "vector offset") | ||
1072 | newFunc("vector", "llGroundNormal", "vector offset") | ||
1073 | newFunc("", "llGroundRepel", "float height", "integer water", "float tau") | ||
1074 | newFunc("vector", "llGroundSlope", "vector offset") | ||
1075 | newFunc("", "llMapDestination", "string simname", "vector pos", "vector look_at") | ||
1076 | newFunc("", "llModifyLand", "integer action", "integer brush") | ||
1077 | newFunc("integer", "llOverMyLand", "string id") | ||
1078 | newFunc("", "llRemoveFromLandBanList", "string avatar") | ||
1079 | newFunc("", "llRemoveFromLandPassList", "string avatar") | ||
1080 | newFunc("key", "llRequestSimulatorData", "string simulator", "integer data") | ||
1081 | newFunc("", "llResetLandBanList") | ||
1082 | newFunc("", "llResetLandPassList") | ||
1083 | newFunc("float", "llWater", "vector offset") | ||
1084 | newFunc("vector", "llWind", "vector offset") | ||
1085 | |||
1086 | -- LSL link / object / prim functions | ||
1087 | newFunc("", "llAllowInventoryDrop", "integer add") | ||
1088 | newFunc("", "llBreakAllLinks") | ||
1089 | newFunc("", "llBreakLink", "integer linknum") | ||
1090 | newFunc("", "llCreateLink", "string target", "integer parent") | ||
1091 | newFunc("", "llDie") | ||
1092 | newFunc("integer", "llGetAttached") | ||
1093 | newFunc("list", "llGetBoundingBox", "string obj") | ||
1094 | newFunc("string", "llGetCreator") | ||
1095 | newFunc("float", "llGetEnergy") | ||
1096 | newFunc("vector", "llGetGeometricCenter") | ||
1097 | newFunc("key", "llGetKey") | ||
1098 | newFunc("key", "llGetLinkKey", "integer linknum") | ||
1099 | newFunc("string", "llGetLinkName", "integer linknum") | ||
1100 | newFunc("integer", "llGetLinkNumber") | ||
1101 | newFunc("list", "llGetLinkPrimitiveParams", "integer linknum", "list rules") | ||
1102 | newFunc("integer", "llGetNumberOfPrims") | ||
1103 | newFunc("integer", "llGetNumberOfSides") | ||
1104 | newFunc("string", "llGetObjectDesc") | ||
1105 | newFunc("list", "llGetObjectDetails", "string id", "list args") | ||
1106 | newFunc("string", "llGetObjectName") | ||
1107 | newFunc("integer", "llGetObjectPermMask", "integer mask") | ||
1108 | newFunc("integer", "llGetObjectPrimCount", "string object_id") | ||
1109 | newFunc("vector", "llGetOmega") | ||
1110 | newFunc("key", "llGetOwner") | ||
1111 | newFunc("key", "llGetOwnerKey", "string id") | ||
1112 | newFunc("integer", "llGetLinkNumberOfSides", "integer link") | ||
1113 | newFunc("list", "llGetLinkMedia", "integer link", "integer face", "list rules") | ||
1114 | newFunc("list", "llGetLinkPrimitiveParams", "integer linknum", "list rules") | ||
1115 | newFunc("list", "llGetPrimitiveParams", "list rules") | ||
1116 | newFunc("integer", "llGetStatus", "integer status") | ||
1117 | newFunc("", "llLinkParticleSystem", "integer linknum", "list rules") | ||
1118 | newFunc("", "llLinkSitTarget", "integer link", "vector offset", "rotation rot") | ||
1119 | newFunc("", "llLookAt", "vector target", "float strength", "float damping") | ||
1120 | newFunc("", "llMakeExplosion", "integer particles", "float scale", "float vel", "float lifetime", "float arc", "string texture", "vector offset") | ||
1121 | newFunc("", "llMakeFire", "integer particles", "float scale", "float vel", "float lifetime", "float arc", "string texture", "vector offset") | ||
1122 | newFunc("", "llMakeFountain", "integer particles", "float scale", "float vel", "float lifetime", "float arc", "integer bounce", "string texture", "vector offset", "float bounce_offset") | ||
1123 | newFunc("", "llMakeSmoke", "integer particles", "float scale", "float vel", "float lifetime", "float arc", "string texture", "vector offset") | ||
1124 | newFunc("", "llMoveToTarget", "vector target", "float tau") | ||
1125 | newFunc("", "llParticleSystem", "list rules") | ||
1126 | newFunc("", "llPassTouches", "integer pass") | ||
1127 | newFunc("", "llRotLookAt", "rotation target", "float strength", "float damping") | ||
1128 | newFunc("", "llSetClickAction", "integer action") | ||
1129 | newFunc("", "llSetDamage", "float damage") | ||
1130 | newFunc("", "llSetHoverHeight", "float height", "integer water", "float tau") | ||
1131 | newFunc("", "llSetLinkPrimitiveParams", "integer linknumber", "list rules") | ||
1132 | newFunc("", "llSetLinkPrimitiveParamsFast", "integer linknum", "list rules") | ||
1133 | newFunc("", "llSetObjectDesc", "string text") | ||
1134 | newFunc("", "llSetObjectName", "string text") | ||
1135 | newFunc("", "llSetObjectPermMask", "integer mask", "integer value") | ||
1136 | newFunc("", "llSetPayPrice", "integer price", "list quick_pay_buttons") | ||
1137 | newFunc("", "llSetPrimitiveParams", "list params") | ||
1138 | newFunc("integer", "llSetRegionPos", "vector pos") | ||
1139 | newFunc("", "llSetStatus", "integer status", "integer value") | ||
1140 | newFunc("", "llSetSitText", "string text") | ||
1141 | newFunc("", "llSetText", "string text", "vector colour", "float alpha") | ||
1142 | newFunc("", "llSetTouchText", "string text") | ||
1143 | newFunc("", "llSitTarget", "vector pos", "rotation rot") | ||
1144 | newFunc("", "llStopHover") | ||
1145 | newFunc("", "llStopLookAt") | ||
1146 | newFunc("", "llStopMoveToTarget") | ||
1147 | newFunc("", "llTargetOmega", "vector axis", "float spinrate", "float gain") | ||
845 | 1148 | ||
846 | -- LSL list functions. | 1149 | -- LSL list functions. |
847 | newFunc("list", "llCSV2List", "string text") | 1150 | newFunc("list", "llCSV2List", "string text") |
848 | newFunc("list", "llDeleteSubList", "list l", "integer start", "integer End") | 1151 | newFunc("list", "llDeleteSubList", "list l", "integer start", "integer End") |
849 | newFunc("string", "llDumpList2String", "list l", "string separator") | 1152 | newFunc("string", "llDumpList2String", "list l", "string separator") |
1153 | newFunc("integer", "llGetListEntryType", "list src", "integer index") | ||
850 | newFunc("integer", "llGetListLength", "list l") | 1154 | newFunc("integer", "llGetListLength", "list l") |
851 | newFunc("string", "llList2CSV", "list l") | 1155 | newFunc("string", "llList2CSV", "list l") |
852 | newFunc("float", "llList2Float", "list l", "integer index") | 1156 | newFunc("float", "llList2Float", "list l", "integer index") |
853 | newFunc("integer", "llList2Integer", "list l", "integer index") | 1157 | newFunc("integer", "llList2Integer", "list l", "integer index") |
854 | newFunc("key", "llList2Key", "list l", "integer index") | 1158 | newFunc("key", "llList2Key", "list l", "integer index") |
855 | newFunc("list", "llList2List", "list l", "integer start", "integer End") | 1159 | newFunc("list", "llList2List", "list l", "integer start", "integer End") |
1160 | newFunc("list", "llList2ListStrided", "list src", "integer start", "integer eNd", "integer stride") | ||
856 | newFunc("string", "llList2String", "list l", "integer index") | 1161 | newFunc("string", "llList2String", "list l", "integer index") |
857 | newFunc("rotation", "llList2Rot", "list l", "integer index") | 1162 | newFunc("rotation", "llList2Rot", "list l", "integer index") |
858 | newFunc("vector", "llList2Vector", "list l", "integer index") | 1163 | newFunc("vector", "llList2Vector", "list l", "integer index") |
859 | newFunc("integer", "llListFindList", "list l", "list l1") | 1164 | newFunc("integer", "llListFindList", "list l", "list l1") |
860 | newFunc("list", "llListInsertList", "list l", "list l1", "integer index") | 1165 | newFunc("list", "llListInsertList", "list l", "list l1", "integer index") |
1166 | newFunc("list", "llListRandomize", "list src", "integer stride") | ||
861 | newFunc("list", "llListReplaceList", "list l", "list part", "integer start", "integer End") | 1167 | newFunc("list", "llListReplaceList", "list l", "list part", "integer start", "integer End") |
862 | newFunc("list", "llListSort", "list l", "integer stride", "integer ascending") | 1168 | newFunc("list", "llListSort", "list l", "integer stride", "integer ascending") |
1169 | newFunc("float", "llListStatistics", "integer operation", "list src") | ||
863 | newFunc("list", "llParseString2List", "string In", "list l", "list l1") | 1170 | newFunc("list", "llParseString2List", "string In", "list l", "list l1") |
864 | newFunc("list", "llParseStringKeepNulls", "string In", "list l", "list l1") | 1171 | newFunc("list", "llParseStringKeepNulls", "string In", "list l", "list l1") |
865 | 1172 | ||
866 | -- LSL math functions | 1173 | -- LSL math functions |
1174 | newFunc("integer", "llAbs", "integer i") | ||
1175 | newFunc("float", "llAcos", "float val") | ||
1176 | newFunc("float", "llAngleBetween", "rotation a", "rotation b") | ||
1177 | newFunc("float", "llAsin", "float val") | ||
1178 | newFunc("float", "llAtan2", "float x", "float y") | ||
1179 | newFunc("rotation", "llAxes2Rot", "vector fwd", "vector left", "vector up") | ||
1180 | newFunc("rotation", "llAxisAngle2Rot", "vector axis", "float angle") | ||
1181 | newFunc("integer", "llCeil", "float f") | ||
1182 | newFunc("float", "llCos", "float f") | ||
1183 | newFunc("float", "llFabs", "float f") | ||
1184 | newFunc("integer", "llFloor", "float f") | ||
1185 | newFunc("float", "llFrand", "float mag") | ||
867 | newFunc("rotation", "llEuler2Rot", "vector vec") | 1186 | newFunc("rotation", "llEuler2Rot", "vector vec") |
868 | newFunc("float", "llFrand", "float max") | 1187 | newFunc("float", "llFrand", "float max") |
1188 | newFunc("float", "llLog", "float val") | ||
1189 | newFunc("float", "llLog10", "float val") | ||
1190 | newFunc("integer", "llModPow", "integer a", "integer b", "integer c") | ||
869 | newFunc("float", "llPow", "float number", "float places") | 1191 | newFunc("float", "llPow", "float number", "float places") |
1192 | newFunc("float", "llRot2Angle", "rotation rot") | ||
1193 | newFunc("vector", "llRot2Axis", "rotation rot") | ||
870 | newFunc("vector", "llRot2Euler", "rotation rot") | 1194 | newFunc("vector", "llRot2Euler", "rotation rot") |
1195 | newFunc("vector", "llRot2Fwd", "rotation r") | ||
1196 | newFunc("vector", "llRot2Left", "rotation r") | ||
1197 | newFunc("vector", "llRot2Up", "rotation r") | ||
1198 | newFunc("rotation", "llRotBetween", "vector start", "vector eNd") | ||
871 | newFunc("integer", "llRound", "float number") | 1199 | newFunc("integer", "llRound", "float number") |
1200 | newFunc("float", "llSin", "float f") | ||
1201 | newFunc("float", "llSqrt", "float f") | ||
1202 | newFunc("float", "llTan", "float f") | ||
1203 | newFunc("float", "llVecDist", "vector a", "vector b") | ||
1204 | newFunc("float", "llVecMag", "vector v") | ||
1205 | newFunc("vector", "llVecNorm", "vector v") | ||
872 | 1206 | ||
873 | -- LSL media functions | 1207 | -- LSL media functions |
1208 | newFunc("", "llAdjustSoundVolume", "float volume") | ||
1209 | newFunc("integer", "llClearLinkMedia", "integer link", "integer face") | ||
1210 | newFunc("integer", "llClearPrimMedia", "integer face") | ||
1211 | newFunc("", "llParcelMediaCommandList", "list commandList") | ||
1212 | newFunc("list", "llParcelMediaQuery", "list aList") | ||
1213 | newFunc("list", "llGetPrimMediaParams", "integer face", "list rules") | ||
1214 | newFunc("", "llLoopSound", "string sound", "float volume") | ||
1215 | newFunc("", "llLoopSoundMaster", "string sound", "float volume") | ||
1216 | newFunc("", "llLoopSoundSlave", "string sound", "float volume") | ||
874 | newFunc("", "llPlaySound", "string name", "float volume") | 1217 | newFunc("", "llPlaySound", "string name", "float volume") |
875 | 1218 | newFunc("", "llPlaySoundSlave", "string sound", "float volume") | |
876 | -- LSL object / prim functions | 1219 | newFunc("", "llPreloadSound", "string sound") |
877 | newFunc("", "llDie") | 1220 | newFunc("", "llTriggerSound", "string sound", "float volume") |
878 | newFunc("key", "llGetKey") | 1221 | newFunc("", "llTriggerSoundLimited", "string sound", "float volume", "vector top_north_east", "vector bottom_south_west") |
879 | newFunc("integer", "llGetLinkNumber") | 1222 | newFunc("integer", "llSetLinkMedia", "integer link", "integer face", "list rules") |
880 | newFunc("string", "llGetObjectDesc") | 1223 | newFunc("", "llSetParcelMusicURL", "string url") |
881 | newFunc("string", "llGetObjectName") | 1224 | newFunc("integer", "llSetPrimMediaParams", "integer face", "list rules") |
882 | newFunc("key", "llGetOwner") | 1225 | newFunc("", "llSetSoundQueueing", "integer queue") |
883 | newFunc("", "llSetObjectDesc", "string text") | 1226 | newFunc("", "llSetSoundRadius", "float radius") |
884 | newFunc("", "llSetObjectName", "string text") | 1227 | newFunc("", "llSound", "string sound", "float volume", "integer queue", "integer loop") |
885 | newFunc("", "llSetPrimitiveParams", "list params") | 1228 | newFunc("", "llSoundPreload", "string sound") |
886 | newFunc("", "llSetSitText", "string text") | 1229 | newFunc("", "llStopSound") |
887 | newFunc("", "llSetText", "string text", "vector colour", "float alpha") | 1230 | |
888 | newFunc("", "llSitTarget", "vector pos", "rotation rot") | 1231 | -- LSL physics functions |
1232 | newFunc("", "llApplyImpulse", "vector force", "integer local") | ||
1233 | newFunc("", "llApplyRotationalImpulse", "vector force", "integer local") | ||
1234 | newFunc("vector", "llGetAccel") | ||
1235 | newFunc("vector", "llGetCenterOfMass") | ||
1236 | newFunc("vector", "llGetForce") | ||
1237 | newFunc("float", "llGetMass") | ||
1238 | newFunc("float", "llGetObjectMass", "string id") | ||
1239 | newFunc("vector", "llGetTorque") | ||
1240 | newFunc("vector", "llGetVel") | ||
1241 | newFunc("", "llPushObject", "string target", "vector impulse", "vector ang_impulse", "integer local") | ||
1242 | newFunc("", "llSetBuoyancy", "float buoyancy") | ||
1243 | newFunc("", "llSetForce", "vector force", "integer local") | ||
1244 | newFunc("", "llSetForceAndTorque", "vector force", "vector torque", "integer local") | ||
1245 | newFunc("", "llSetTorque", "vector torque", "integer local") | ||
889 | 1246 | ||
890 | -- LSL rotation / scaling / translation functions | 1247 | -- LSL rotation / scaling / translation functions |
1248 | newFunc("vector", "llGetLocalPos") | ||
1249 | newFunc("rotation", "llGetLocalRot") | ||
891 | newFunc("vector", "llGetPos") | 1250 | newFunc("vector", "llGetPos") |
1251 | newFunc("vector", "llGetRootPosition") | ||
1252 | newFunc("rotation", "llGetRootRotation") | ||
892 | newFunc("rotation", "llGetRot") | 1253 | newFunc("rotation", "llGetRot") |
1254 | newFunc("vector", "llGetScale") | ||
1255 | newFunc("", "llSetLocalRot", "rotation rot") | ||
893 | newFunc("", "llSetPos", "vector pos") | 1256 | newFunc("", "llSetPos", "vector pos") |
894 | newFunc("", "llSetRot", "rotation rot") | 1257 | newFunc("", "llSetRot", "rotation rot") |
895 | newFunc("", "llSetScale", "vector scale") | 1258 | newFunc("", "llSetScale", "vector scale") |
896 | 1259 | ||
897 | -- LSL script functions | 1260 | -- LSL script functions |
898 | newFunc("integer", "llGetFreeMemory") | 1261 | newFunc("integer", "llGetFreeMemory") |
1262 | newFunc("integer", "llGetMemoryLimit") | ||
899 | newFunc("string", "llGetScriptName") | 1263 | newFunc("string", "llGetScriptName") |
1264 | newFunc("integer", "llGetScriptState", "string name") | ||
1265 | newFunc("integer", "llGetSPMaxMemory") | ||
1266 | newFunc("integer", "llGetStartParameter") | ||
1267 | newFunc("integer", "llGetUsedMemory") | ||
1268 | newFunc("", "llRemoteLoadScript", "string target", "string name", "integer running", "integer start_param") | ||
1269 | newFunc("", "llRemoteLoadScriptPin", "string target", "string name", "integer pin", "integer running", "integer start_param") | ||
900 | newFunc("", "llResetOtherScript", "string name") | 1270 | newFunc("", "llResetOtherScript", "string name") |
901 | newFunc("", "llResetScript") | 1271 | newFunc("", "llResetScript") |
1272 | newFunc("integer", "llScriptDanger", "vector pos") | ||
1273 | newFunc("", "llScriptProfiler", "integer flag") | ||
1274 | newFunc("integer", "llSetMemoryLimit", "integer limit") | ||
1275 | newFunc("", "llSetRemoteScriptAccessPin", "integer pin") | ||
902 | newFunc("", "llSetScriptState", "string name", "integer running") | 1276 | newFunc("", "llSetScriptState", "string name", "integer running") |
903 | 1277 | ||
904 | -- LSL string functions | 1278 | -- LSL string functions |
1279 | newFunc("integer", "llBase64ToInteger", "string str") | ||
1280 | newFunc("string", "llBase64ToString", "string str") | ||
1281 | newFunc("string", "llDeleteSubString", "string src", "integer start", "integer eNd") | ||
1282 | newFunc("string", "llEscapeURL", "string url") | ||
1283 | newFunc("key", "llGenerateKey") | ||
905 | newFunc("string", "llGetSubString", "string text", "integer start", "integer End") | 1284 | newFunc("string", "llGetSubString", "string text", "integer start", "integer End") |
1285 | newFunc("string", "llInsertString", "string dst", "integer position", "string src") | ||
1286 | newFunc("string", "llIntegerToBase64", "integer number") | ||
1287 | newFunc("string", "llMD5String", "string src", "integer nonce") | ||
1288 | newFunc("string", "llSHA1String", "string src") | ||
906 | newFunc("integer", "llStringLength", "string text") | 1289 | newFunc("integer", "llStringLength", "string text") |
907 | newFunc("string", "llStringTrim", "string text", "integer type") | 1290 | newFunc("string", "llStringToBase64", "string str") |
1291 | newFunc("string", "llStringTrim", "string text", "integer Type") | ||
908 | newFunc("integer", "llSubStringIndex", "string text", "string sub") | 1292 | newFunc("integer", "llSubStringIndex", "string text", "string sub") |
1293 | newFunc("string", "llToLower", "string source") | ||
1294 | newFunc("string", "llToUpper", "string source") | ||
1295 | newFunc("string", "llUnescapeURL", "string url") | ||
1296 | newFunc("string", "llXorBase64Strings", "string str1", "string str2") | ||
1297 | newFunc("string", "llXorBase64StringsCorrect", "string str1", "string str2") | ||
909 | 1298 | ||
910 | -- LSL texture functions | 1299 | -- LSL texture functions |
911 | newFunc("float", "llGetAlpha", "integer side") | 1300 | newFunc("float", "llGetAlpha", "integer side") |
1301 | newFunc("vector", "llGetColor", "integer face") | ||
1302 | newFunc("string", "llGetTexture", "integer face") | ||
1303 | newFunc("vector", "llGetTextureOffset", "integer face") | ||
1304 | newFunc("float", "llGetTextureRot", "integer side") | ||
1305 | newFunc("vector", "llGetTextureScale", "integer side") | ||
1306 | newFunc("", "llOffsetTexture", "float u", "float v", "integer face") | ||
1307 | newFunc("", "llRotateTexture", "float rot", "integer face") | ||
1308 | newFunc("", "llScaleTexture", "float u", "float v", "integer face") | ||
912 | newFunc("", "llSetAlpha", "float alpha", "integer side") | 1309 | newFunc("", "llSetAlpha", "float alpha", "integer side") |
913 | newFunc("", "llSetColor", "vector colour", "integer side") | 1310 | newFunc("", "llSetColor", "vector colour", "integer side") |
1311 | newFunc("", "llSetLinkAlpha", "integer linknumber", "float alpha", "integer face") | ||
1312 | newFunc("", "llSetLinkColor", "integer linknumber", "vector color", "integer face") | ||
1313 | newFunc("", "llSetLinkTexture", "integer linknumber", "string texture", "integer face") | ||
1314 | newFunc("", "llSetLinkTextureAnim", "integer linknum", "integer mode", "integer face", "integer sizex", "integer sizey", "float start", "float length", "float rate") | ||
1315 | newFunc("", "llSetTexture", "string texture", "integer face") | ||
1316 | newFunc("", "llSetTextureAnim", "integer mode", "integer face", "integer sizex", "integer sizey", "float start", "float length", "float rate") | ||
914 | 1317 | ||
915 | -- LSL time functions | 1318 | -- LSL time functions |
1319 | newFunc("float", "llGetAndResetTime") | ||
1320 | newFunc("string", "llGetDate") | ||
1321 | newFunc("float", "llGetGMTclock") | ||
916 | newFunc("float", "llGetTime") | 1322 | newFunc("float", "llGetTime") |
1323 | newFunc("float", "llGetTimeOfDay") | ||
1324 | newFunc("string", "llGetTimestamp") | ||
1325 | newFunc("integer", "llGetUnixTime") | ||
1326 | newFunc("float", "llGetWallclock") | ||
1327 | newFunc("", "llMinEventDelay", "float delay") | ||
917 | newFunc("", "llResetTime") | 1328 | newFunc("", "llResetTime") |
918 | newFunc("", "llSetTimerEvent", "float seconds") | 1329 | newFunc("", "llSetTimerEvent", "float seconds") |
919 | newFunc("float", "llSleep", "float seconds") -- Faked return type, it actually does not return anything. This forces it to wait. Actually fully implements llSleep(). B-) | 1330 | newFunc("float", "llSleep", "float seconds") -- Faked return type, it actually does not return anything. This forces it to wait. Actually fully implements llSleep(). B-) |
920 | 1331 | ||
1332 | -- LSL vehicle functions | ||
1333 | newFunc("", "llRemoveVehicleFlags", "integer flags") | ||
1334 | newFunc("", "llSetVehicleFlags", "integer flags") | ||
1335 | newFunc("", "llSetVehicleFloatParam", "integer param", "float value") | ||
1336 | newFunc("", "llSetVehicleRotationParam", "integer param", "rotation rot") | ||
1337 | newFunc("", "llSetVehicleType", "integer Type") | ||
1338 | newFunc("", "llSetVehicleVectorParam", "integer param", "vector vec") | ||
1339 | |||
1340 | |||
1341 | --- OS functions | ||
1342 | |||
1343 | -- OS animation functions | ||
1344 | newFunc("", "osAvatarPlayAnimation", "string avatar", "string animation") | ||
1345 | newFunc("", "osAvatarStopAnimation", "string avatar", "string animation") | ||
1346 | |||
1347 | -- OS attachment functions | ||
1348 | newFunc("", "osDropAttachment") | ||
1349 | newFunc("", "osDropAttachmentAt", "vector pos", "rotation rot") | ||
1350 | newFunc("", "osForceAttachToAvatar", "integer attachment") | ||
1351 | newFunc("", "osForceAttachToAvatarFromInventory", "string itemName", "integer attachment") | ||
1352 | newFunc("", "osForceAttachToOtherAvatarFromInventory", "string rawAvatarId", "string itemName", "integer attachmentPoint") | ||
1353 | newFunc("", "osForceDetachFromAvatar") | ||
1354 | newFunc("", "osForceDropAttachment") | ||
1355 | newFunc("", "osForceDropAttachmentAt", "vector pos", "rotation rot") | ||
1356 | newFunc("list", "osGetNumberOfAttachments", "key avatar", "list attachmentPoints") | ||
1357 | newFunc("", "osMessageAttachments", "key avatar", "string message", "list attachmentPoints", "integer flags") | ||
1358 | |||
1359 | -- OS avatar functions | ||
1360 | newFunc("key", "osAgentSaveAppearance", "key agentId", "string notecard") | ||
1361 | newFunc("string", "osAvatarName2Key", "string firstname", "string lastname") | ||
1362 | newFunc("", "osCauseDamage", "string avatar", "float damage") | ||
1363 | newFunc("", "osCauseHealing", "string avatar", "float healing") | ||
1364 | newFunc("integer", "osEjectFromGroup", "key agentId") | ||
1365 | newFunc("string", "osGetAgentIP", "string agent") | ||
1366 | newFunc("list", "osGetAgents") | ||
1367 | newFunc("list", "osGetAvatarList") | ||
1368 | newFunc("float", "osGetHealth", "string avatar") | ||
1369 | newFunc("integer", "osInviteToGroup", "key agentId") | ||
1370 | newFunc("string", "osKey2Name", "string id") | ||
1371 | newFunc("", "osKickAvatar", "string FirstName", "string SurName", "string alert") | ||
1372 | newFunc("key", "osOwnerSaveAppearance", "string notecard") | ||
1373 | newFunc("", "osSetSpeed", "string UUID", "float SpeedModifier") | ||
1374 | -- TODO - Hmmm, function overloading, Lua doesn't support that directly. Though it can be faked, as with everything in Lua. B-) | ||
1375 | newFunc("", "osTeleportAgent", "string agent", "string regionName", "vector position", "vector lookat") | ||
1376 | newFunc("", "osTeleportAgent", "string agent", "integer regionX", "integer regionY", "vector position", "vector lookat") | ||
1377 | newFunc("", "osTeleportAgent", "string agent", "vector position", "vector lookat") | ||
1378 | newFunc("", "osTeleportOwner", "string regionName", "vector position", "vector lookat") | ||
1379 | newFunc("", "osTeleportOwner", "integer regionX", "integer regionY", "vector position", "vector lookat") | ||
1380 | newFunc("", "osTeleportOwner", "vector position", "vector lookat") | ||
1381 | |||
1382 | -- OS communication functions | ||
1383 | newFunc("integer", "osListenRegex", "integer channelID", "string name", "string ID", "string msg", "integer regexBitfield") | ||
1384 | newFunc("", "osMessageObject", "key objectUUID", "string message") | ||
1385 | |||
1386 | -- OS grid functions | ||
1387 | newFunc("string", "osGetGridCustom", "string key") | ||
1388 | newFunc("string", "osGetGridGatekeeperURI") | ||
1389 | newFunc("string", "osGetGridHomeURI") | ||
1390 | newFunc("string", "osGetGridLoginURI") | ||
1391 | newFunc("string", "osGetGridName") | ||
1392 | newFunc("string", "osGetGridNick") | ||
1393 | |||
1394 | -- OS inventory functions | ||
1395 | newFunc("string", "osGetNotecard", "string name") | ||
1396 | newFunc("string", "osGetNotecardLine", "string name", "integer line") | ||
1397 | newFunc("integer", "osGetNumberOfNotecardLines", "string name") | ||
1398 | --newFunc("", "osMakeNotecard","string notecardName", "LSL_Types.list contents") | ||
1399 | |||
1400 | -- OS land / parcel / plot / region / sim / weather functions | ||
1401 | --newFunc("bool", "osConsoleCommand", "string Command") | ||
1402 | newFunc("float", "osGetCurrentSunHour") | ||
1403 | newFunc("key", "osGetMapTexture") | ||
1404 | newFunc("key", "osGetRegionMapTexture", "string regionName") | ||
1405 | newFunc("list", "osGetRegionStats") | ||
1406 | newFunc("integer", "osGetSimulatorMemory") | ||
1407 | newFunc("string", "osGetSimulatorVersion") | ||
1408 | newFunc("float", "osGetSunParam", "string param") | ||
1409 | newFunc("float", "osGetTerrainHeight", "integer x", "integer y") | ||
1410 | newFunc("float", "osGetWindParam", "string plugin", "string param") | ||
1411 | newFunc("string", "osLoadedCreationDate") | ||
1412 | newFunc("string", "osLoadedCreationID") | ||
1413 | newFunc("string", "osLoadedCreationTime") | ||
1414 | newFunc("", "osParcelJoin", "vector pos1", "vector pos2") | ||
1415 | newFunc("", "osParcelSetDetails", "vector pos", "list rules") | ||
1416 | newFunc("", "osParcelSubdivide", "vector pos1", "vector pos2") | ||
1417 | newFunc("", "osRegionNotice", "string msg") | ||
1418 | newFunc("integer", "osRegionRestart", "float seconds") | ||
1419 | --newFunc("", "osSetEstateSunSettings", "bool sunFixed", "float sunHour") | ||
1420 | newFunc("", "osSetParcelDetails", "vector pos", "list rules") | ||
1421 | newFunc("", "osSetParcelMediaURL", "string url") | ||
1422 | newFunc("", "osSetParcelSIPAddress", "string SIPAddress") | ||
1423 | --newFunc("", "osSetRegionSunSettings", "bool useEstateSun", "bool sunFixed", "float sunHour") | ||
1424 | newFunc("", "osSetRegionWaterHeight", "float height") | ||
1425 | newFunc("", "osSetSunParam", "string param", "float value") | ||
1426 | newFunc("integer", "osSetTerrainHeight", "integer x", "integer y", "float val") | ||
1427 | newFunc("", "osSetTerrainTexture", "integer level", "key texture") | ||
1428 | newFunc("", "osSetTerrainTextureHeight", "integer corner", "float low", "float high") | ||
1429 | newFunc("", "osSetWindParam", "string plugin", "string param", "float value") | ||
1430 | newFunc("float", "osSunGetParam", "string param") | ||
1431 | newFunc("", "osSunSetParam", "string param", "float value") | ||
1432 | newFunc("", "osTerrainFlush") | ||
1433 | newFunc("float", "osTerrainGetHeight", "integer x", "integer y") | ||
1434 | newFunc("integer", "osTerrainSetHeight", "integer x", "integer y", "float val") | ||
1435 | newFunc("string", "osWindActiveModelPluginName") | ||
1436 | |||
1437 | -- OS link / object / prim functions | ||
1438 | newFunc("list", "osGetLinkPrimitiveParams", "integer linknumber", "list rules") | ||
1439 | newFunc("list", "osGetPrimitiveParams", "key prim", "list rules") | ||
1440 | newFunc("key", "osGetRezzingObject") | ||
1441 | newFunc("", "osSetContentType", "key id", "string type") | ||
1442 | newFunc("", "osSetPrimFloatOnWater", "integer floatYN") | ||
1443 | --newFunc("", "osSetProjectionParams", "bool projection", "key texture", "float fov", "float focus", "float amb") | ||
1444 | --newFunc("", "osSetProjectionParams", "key prim", "bool projection", "key texture", "float fov", "float focus", "float amb") | ||
1445 | |||
1446 | -- OS list functions | ||
1447 | --newFunc("float", "osList2Double", "LSL_Types.list src", "integer index") | ||
1448 | |||
1449 | -- OS math functions | ||
1450 | newFunc("float", "osMax", "float a", "float b") | ||
1451 | newFunc("float", "osMin", "float a", "float b") | ||
1452 | |||
1453 | -- OS NPC functions | ||
1454 | newFunc("key", "osNpcCreate", "string user", "string name", "vector position", "key cloneFrom") | ||
1455 | newFunc("key", "osNpcCreate", "string user", "string name", "vector position", "string notecard") | ||
1456 | newFunc("key", "osNpcCreate", "string user", "string name", "vector position", "string notecard", "integer options") | ||
1457 | newFunc("key", "osNpcGetOwner", "key npc") | ||
1458 | newFunc("vector", "osNpcGetPos", "key npc") | ||
1459 | newFunc("rotation", "osNpcGetRot", "key npc") | ||
1460 | newFunc("integer", "osIsNpc", "key npc") | ||
1461 | newFunc("", "osNpcLoadAppearance", "key npc", "string notecard") | ||
1462 | newFunc("", "osNpcMoveTo", "key npc", "vector position") | ||
1463 | newFunc("", "osNpcMoveToTarget", "key npc", "vector target", "integer options") | ||
1464 | newFunc("", "osNpcPlayAnimation", "key npc", "string animation") | ||
1465 | newFunc("", "osNpcRemove", "key npc") | ||
1466 | newFunc("key", "osNpcSaveAppearance", "key npc", "string notecard") | ||
1467 | newFunc("", "osNpcSay", "key npc", "string message") | ||
1468 | newFunc("", "osNpcSay", "key npc", "integer channel", "string message") | ||
1469 | newFunc("", "osNpcSetRot", "key npc", "rotation rot") | ||
1470 | newFunc("", "osNpcShout", "key npc", "integer channel", "string message") | ||
1471 | newFunc("", "osNpcSit", "key npc", "key target", "integer options") | ||
1472 | newFunc("", "osNpcStand", "key npc") | ||
1473 | newFunc("", "osNpcStopAnimation", "key npc", "string animation") | ||
1474 | newFunc("", "osNpcStopMoveToTarget", "key npc") | ||
1475 | newFunc("", "osNpcTouch", "key npcLSL_Key", "key object_key", "integer link_num") | ||
1476 | newFunc("", "osNpcWhisper", "key npc", "integer channel", "string message") | ||
1477 | |||
1478 | -- OS script functions | ||
1479 | newFunc("string", "osGetScriptEngineName") | ||
1480 | |||
1481 | -- OS string functions | ||
1482 | newFunc("integer", "osIsUUID", "string thing") | ||
1483 | newFunc("string", "osFormatString", "string str", "list strings") | ||
1484 | newFunc("list", "osMatchString", "string src", "string pattern", "integer start") | ||
1485 | --newFunc("Hashtable", "osParseJSON","string JSON") | ||
1486 | newFunc("integer", "osRegexIsMatch", "string input", "string pattern") | ||
1487 | newFunc("string", "osReplaceString", "string src", "string pattern", "string replace", "integer count", "integer start") | ||
1488 | |||
1489 | -- OS texture functions | ||
1490 | newFunc("string", "osDrawEllipse", "string drawList", "integer width", "integer height") | ||
1491 | newFunc("string", "osDrawFilledPolygon", "string drawList", "list x", "list y") | ||
1492 | newFunc("string", "osDrawFilledRectangle", "string drawList", "integer width", "integer height") | ||
1493 | newFunc("string", "osDrawImage", "string drawList", "integer width", "integer height", "string imageUrl") | ||
1494 | newFunc("string", "osDrawLine", "string drawList", "integer startX", "integer startY", "integer endX", "integer endY") | ||
1495 | newFunc("string", "osDrawLine", "string drawList", "integer endX", "integer endY") | ||
1496 | newFunc("string", "osDrawPolygon", "string drawList", "list x", "list y") | ||
1497 | newFunc("string", "osDrawRectangle", "string drawList", "integer width", "integer height") | ||
1498 | newFunc("string", "osDrawText", "string drawList", "string text") | ||
1499 | newFunc("vector", "osGetDrawStringSize", "string contentType", "string text", "string fontName", "integer fontSize") | ||
1500 | newFunc("string", "osMovePen", "string drawList", "integer x", "integer y") | ||
1501 | newFunc("string", "osSetDynamicTextureData", "string dynamicID", "string contentType", "string data", "string extraParams", "integer timer") | ||
1502 | newFunc("string", "osSetDynamicTextureDataBlend", "string dynamicID", "string contentType", "string data", "string extraParams", "integer timer", "integer alpha") | ||
1503 | --newFunc("string", "osSetDynamicTextureDataBlendFace", "string dynamicID", "string contentType", "string data", "string extraParams", "bool blend", "integer disp", "integer timer", "integer alpha", "integer face") | ||
1504 | newFunc("string", "osSetDynamicTextureURL", "string dynamicID", "string contentType", "string url", "string extraParams", "integer timer") | ||
1505 | newFunc("string", "osSetDynamicTextureURLBlend", "string dynamicID", "string contentType", "string url", "string extraParams", "integer timer", "integer alpha") | ||
1506 | --newFunc("string", "osSetDynamicTextureURLBlendFace", "string dynamicID", "string contentType", "string url", "string extraParams", "bool blend", "integer disp", "integer timer", "integer alpha", "integer face") | ||
1507 | newFunc("string", "osSetFontName", "string drawList", "string fontName") | ||
1508 | newFunc("string", "osSetFontSize", "string drawList", "integer fontSize") | ||
1509 | newFunc("string", "osSetPenCap", "string drawList", "string direction", "string type") | ||
1510 | newFunc("string", "osSetPenColor", "string drawList", "string color") | ||
1511 | newFunc("string", "osSetPenColour", "string drawList", "string colour") | ||
1512 | newFunc("string", "osSetPenSize", "string drawList", "integer penSize") | ||
1513 | newFunc("", "osSetStateEvents", "integer events") | ||
1514 | |||
1515 | -- OS time functions | ||
1516 | --newFunc("string", "osUnixTimeToTimestamp", "long time") | ||
1517 | |||
1518 | -- OS windlight functions | ||
1519 | newFunc("", "lsClearWindlightScene") | ||
1520 | newFunc("list", "lsGetWindlightScene", "list rules") | ||
1521 | newFunc("integer", "lsSetWindlightScene", "list rules") | ||
1522 | newFunc("integer", "lsSetWindlightSceneTargeted", "list rules", "key target") | ||
1523 | |||
1524 | |||
1525 | |||
1526 | -- Function implementations | ||
921 | 1527 | ||
922 | -- TODO - fake this for now. | 1528 | -- TODO - fake this for now. |
923 | function --[[integer]] LSL.llGetInventoryType(--[[string]] name) return LSL.INVENTORY_SCRIPT end; | 1529 | function --[[integer]] LSL.llGetInventoryType(--[[string]] name) return LSL.INVENTORY_SCRIPT end; |