aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--lib/LSL.lua746
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
927newFunc("", "llAttachToAvatar", "integer attachment")
798newFunc("key", "llAvatarOnSitTarget") 928newFunc("key", "llAvatarOnSitTarget")
929newFunc("key", "llAvatarOnLinkSitTarget", "integer linknum")
930newFunc("", "llClearCameraParams")
931newFunc("", "llDetachFromAvatar")
932newFunc("", "llForceMouselook", "integer mouselook")
933newFunc("integer", "llGetAgentInfo", "string id")
934newFunc("string", "llGetAgentLanguage", "string id")
935newFunc("list", "llGetAgentList", "integer scope", "list options")
936newFunc("vector", "llGetAgentSize", "string id")
937newFunc("string", "llGetAnimation", "string id")
799newFunc("list", "llGetAnimationList", "key id") 938newFunc("list", "llGetAnimationList", "key id")
939newFunc("vector", "llGetCameraPos")
940newFunc("rotation", "llGetCameraRot")
941newFunc("string", "llGetDisplayName", "string id")
800newFunc("integer", "llGetPermissions") 942newFunc("integer", "llGetPermissions")
801newFunc("key", "llGetPermissionsKey") 943newFunc("key", "llGetPermissionsKey")
944newFunc("string", "llGetUsername", "string id")
945newFunc("integer", "llGiveMoney", "string destination", "integer amount")
802newFunc("string", "llKey2Name", "key avatar") 946newFunc("string", "llKey2Name", "key avatar")
947newFunc("", "llPointAt", "vector pos")
948newFunc("", "llReleaseCamera", "string avatar")
949newFunc("", "llReleaseControls")
950newFunc("key", "llRequestAgentData", "string id", "integer data")
951newFunc("string", "llRequestDisplayName", "string id")
803newFunc("", "llRequestPermissions", "key avatar", "integer perms") 952newFunc("", "llRequestPermissions", "key avatar", "integer perms")
953newFunc("string", "llRequestUsername", "string id")
804newFunc("integer", "llSameGroup", "key avatar") 954newFunc("integer", "llSameGroup", "key avatar")
955newFunc("", "llSetCameraAtOffset", "vector offset")
956newFunc("", "llSetCameraEyeOffset", "vector offset")
957newFunc("", "llSetCameraParams", "list rules")
958newFunc("", "llSetLinkCamera", "integer link", "vector eye", "vector at")
805newFunc("", "llStartAnimation", "string anim") 959newFunc("", "llStartAnimation", "string anim")
806newFunc("", "llStopAnimation", "string anim") 960newFunc("", "llStopAnimation", "string anim")
961newFunc("", "llStopPointAt")
962newFunc("", "llTakeCamera", "string avatar")
963newFunc("", "llTakeControls", "integer controls", "integer accept", "integer pass_on")
964newFunc("", "llTeleportAgentHome", "string agent")
965newFunc("", "llTeleportAgent", "string agent", "string simname", "vector pos", "vector lookAt")
966newFunc("", "llTeleportAgentGlobalCoords", "string agent", "vector global", "vector pos", "vector lookAt")
807newFunc("", "llUnSit", "key avatar") 967newFunc("", "llUnSit", "key avatar")
808 968
809-- LSL collision / detect / sensor functions 969-- LSL collision / detect / sensor functions
970newFunc("list", "llCastRay", "vector start", "vector End", "list options")
971newFunc("", "llCollisionFilter", "string name", "string id", "integer accept")
972newFunc("", "llCollisionSound", "string impact_sound", "float impact_volume")
973newFunc("", "llCollisionSprite", "string impact_sprite")
810newFunc("integer", "llDetectedGroup", "integer index") 974newFunc("integer", "llDetectedGroup", "integer index")
811newFunc("vector", "llDetectedGrab", "integer index") 975newFunc("vector", "llDetectedGrab", "integer index")
812newFunc("key", "llDetectedKey", "integer index") 976newFunc("key", "llDetectedKey", "integer index")
@@ -823,101 +987,543 @@ newFunc("vector", "llDetectedTouchST", "integer index")
823newFunc("vector", "llDetectedTouchUV", "integer index") 987newFunc("vector", "llDetectedTouchUV", "integer index")
824newFunc("integer", "llDetectedType", "integer index") 988newFunc("integer", "llDetectedType", "integer index")
825newFunc("vector", "llDetectedVel", "integer index") 989newFunc("vector", "llDetectedVel", "integer index")
826 990newFunc("", "llPassCollisions", "integer pass")
991newFunc("integer", "llRotTarget", "rotation rot", "float error")
992newFunc("", "llRotTargetRemove", "integer number")
993newFunc("", "llSensor", "string name", "string id", "integer Type", "float range", "float arc")
994newFunc("", "llSensorRemove")
995newFunc("", "llSensorRepeat", "string name", "string id", "integer Type", "float range", "float arc", "float rate")
996newFunc("integer", "llTarget", "vector position", "float range")
997newFunc("", "llTargetRemove", "integer number")
998newFunc("", "llVolumeDetect", "integer detect")
827 999
828-- LSL communications functions 1000-- LSL communications functions
1001newFunc("", "llCloseRemoteDataChannel", "string channel")
829newFunc("", "llDialog", "key avatar", "string caption", "list arseBackwardsMenu", "integer channel") 1002newFunc("", "llDialog", "key avatar", "string caption", "list arseBackwardsMenu", "integer channel")
1003newFunc("", "llEmail", "string address", "string subject", "string message")
1004newFunc("integer", "llGetFreeURLs")
1005newFunc("string", "llGetHTTPHeader", "key request_id", "string header")
1006newFunc("", "llGetNextEmail", "string address", "string subject")
1007newFunc("string", "llHTTPRequest", "string url", "list parameters", "string body")
1008newFunc("", "llHTTPResponse", "key id", "integer status", "string body")
1009newFunc("", "llInstantMessage", "string user", "string message")
830newFunc("integer", "llListen", "integer channel", "string name", "key id", "string msg") 1010newFunc("integer", "llListen", "integer channel", "string name", "key id", "string msg")
1011newFunc("", "llListenControl", "integer number", "integer active")
831newFunc("", "llListenRemove", "integer handle") 1012newFunc("", "llListenRemove", "integer handle")
1013newFunc("", "llLoadURL", "string avatar_id", "string message", "string url")
1014newFunc("", "llMessageLinked", "integer link", "integer num", "string text", "key aKey")
1015newFunc("", "llOpenRemoteDataChannel")
832newFunc("", "llOwnerSay", "string text") 1016newFunc("", "llOwnerSay", "string text")
1017newFunc("", "llRefreshPrimURL")
1018newFunc("", "llRegionSay", "integer channelID", "string text")
1019newFunc("", "llRegionSayTo", "string target", "integer channelID", "string text")
1020newFunc("", "llReleaseURL", "string url")
1021newFunc("", "llRemoteDataReply", "string channel", "string message_id", "string sdata", "integer idata")
1022newFunc("", "llRemoteDataSetRegion")
1023newFunc("string", "llRequestSecureURL")
1024newFunc("key", "llRequestURL")
833newFunc("", "llSay", "integer channel", "string text") 1025newFunc("", "llSay", "integer channel", "string text")
1026newFunc("key", "llSendRemoteData", "string channel", "string dest", "integer idata", "string sdata")
1027newFunc("", "llSetPrimURL", "string url")
834newFunc("", "llShout", "integer channel", "string text") 1028newFunc("", "llShout", "integer channel", "string text")
1029newFunc("", "llTextBox", "string avatar", "string message", "integer chat_channel")
835newFunc("", "llWhisper", "integer channel", "string text") 1030newFunc("", "llWhisper", "integer channel", "string text")
836newFunc("", "llMessageLinked", "integer link", "integer num", "string text", "key aKey")
837 1031
838-- LSL inventory functions. 1032-- LSL inventory functions.
1033newFunc("key", "llGetInventoryCreator", "string item")
1034newFunc("key", "llGetInventoryKey", "string name")
839newFunc("string", "llGetInventoryName", "integer Type", "integer index") 1035newFunc("string", "llGetInventoryName", "integer Type", "integer index")
840newFunc("integer", "llGetInventoryNumber", "integer Type") 1036newFunc("integer", "llGetInventoryNumber", "integer Type")
1037newFunc("integer", "llGetInventoryPermMask", "string item", "integer mask")
841newFunc("integer", "llGetInventoryType", "string name") 1038newFunc("integer", "llGetInventoryType", "string name")
842newFunc("key", "llGetNotecardLine", "string name", "integer index") 1039newFunc("key", "llGetNotecardLine", "string name", "integer index")
1040newFunc("key", "llGetNumberOfNotecardLines", "string name")
1041newFunc("", "llGiveInventory", "string destination", "string inventory")
1042newFunc("", "llGiveInventoryList", "string destination", "string category", "list inventory")
1043newFunc("", "llGodLikeRezObject", "string inventory", "vector pos")
1044newFunc("", "llRemoveInventory", "string item")
1045newFunc("key", "llRequestInventoryData", "string name")
843newFunc("", "llRezAtRoot", "string name", "vector position", "vector velocity", "rotation rot", "integer channel") 1046newFunc("", "llRezAtRoot", "string name", "vector position", "vector velocity", "rotation rot", "integer channel")
844newFunc("", "llRezObject", "string name", "vector position", "vector velocity", "rotation rot", "integer channel") 1047newFunc("", "llRezObject", "string name", "vector position", "vector velocity", "rotation rot", "integer channel")
1048newFunc("", "llSetInventoryPermMask", "string item", "integer mask", "integer value")
1049
1050-- LSL land / parcel / plot / region / sim / weather functions
1051newFunc("", "llAddToLandBanList", "string avatar", "float hours")
1052newFunc("", "llAddToLandPassList", "string avatar", "float hours")
1053newFunc("float", "llCloud", "vector offset")
1054newFunc("integer", "llEdgeOfWorld", "vector pos", "vector dir")
1055newFunc("", "llEjectFromLand", "string pest")
1056newFunc("key", "llGetLandOwnerAt", "vector pos")
1057newFunc("list", "llGetParcelDetails", "vector pos", "list param")
1058newFunc("integer", "llGetParcelFlags", "vector pos")
1059newFunc("integer", "llGetParcelMaxPrims", "vector pos", "integer sim_wide")
1060newFunc("integer", "llGetParcelPrimCount", "vector pos", "integer category", "integer sim_wide")
1061newFunc("list", "llGetParcelPrimOwners", "vector pos")
1062newFunc("integer", "llGetRegionAgentCount")
1063newFunc("vector", "llGetRegionCorner")
1064newFunc("integer", "llGetRegionFlags")
1065newFunc("float", "llGetRegionFPS")
1066newFunc("string", "llGetRegionName")
1067newFunc("float", "llGetRegionTimeDilation")
1068newFunc("string", "llGetSimulatorHostname")
1069newFunc("vector", "llGetSunDirection")
1070newFunc("float", "llGround", "vector offset")
1071newFunc("vector", "llGroundContour", "vector offset")
1072newFunc("vector", "llGroundNormal", "vector offset")
1073newFunc("", "llGroundRepel", "float height", "integer water", "float tau")
1074newFunc("vector", "llGroundSlope", "vector offset")
1075newFunc("", "llMapDestination", "string simname", "vector pos", "vector look_at")
1076newFunc("", "llModifyLand", "integer action", "integer brush")
1077newFunc("integer", "llOverMyLand", "string id")
1078newFunc("", "llRemoveFromLandBanList", "string avatar")
1079newFunc("", "llRemoveFromLandPassList", "string avatar")
1080newFunc("key", "llRequestSimulatorData", "string simulator", "integer data")
1081newFunc("", "llResetLandBanList")
1082newFunc("", "llResetLandPassList")
1083newFunc("float", "llWater", "vector offset")
1084newFunc("vector", "llWind", "vector offset")
1085
1086-- LSL link / object / prim functions
1087newFunc("", "llAllowInventoryDrop", "integer add")
1088newFunc("", "llBreakAllLinks")
1089newFunc("", "llBreakLink", "integer linknum")
1090newFunc("", "llCreateLink", "string target", "integer parent")
1091newFunc("", "llDie")
1092newFunc("integer", "llGetAttached")
1093newFunc("list", "llGetBoundingBox", "string obj")
1094newFunc("string", "llGetCreator")
1095newFunc("float", "llGetEnergy")
1096newFunc("vector", "llGetGeometricCenter")
1097newFunc("key", "llGetKey")
1098newFunc("key", "llGetLinkKey", "integer linknum")
1099newFunc("string", "llGetLinkName", "integer linknum")
1100newFunc("integer", "llGetLinkNumber")
1101newFunc("list", "llGetLinkPrimitiveParams", "integer linknum", "list rules")
1102newFunc("integer", "llGetNumberOfPrims")
1103newFunc("integer", "llGetNumberOfSides")
1104newFunc("string", "llGetObjectDesc")
1105newFunc("list", "llGetObjectDetails", "string id", "list args")
1106newFunc("string", "llGetObjectName")
1107newFunc("integer", "llGetObjectPermMask", "integer mask")
1108newFunc("integer", "llGetObjectPrimCount", "string object_id")
1109newFunc("vector", "llGetOmega")
1110newFunc("key", "llGetOwner")
1111newFunc("key", "llGetOwnerKey", "string id")
1112newFunc("integer", "llGetLinkNumberOfSides", "integer link")
1113newFunc("list", "llGetLinkMedia", "integer link", "integer face", "list rules")
1114newFunc("list", "llGetLinkPrimitiveParams", "integer linknum", "list rules")
1115newFunc("list", "llGetPrimitiveParams", "list rules")
1116newFunc("integer", "llGetStatus", "integer status")
1117newFunc("", "llLinkParticleSystem", "integer linknum", "list rules")
1118newFunc("", "llLinkSitTarget", "integer link", "vector offset", "rotation rot")
1119newFunc("", "llLookAt", "vector target", "float strength", "float damping")
1120newFunc("", "llMakeExplosion", "integer particles", "float scale", "float vel", "float lifetime", "float arc", "string texture", "vector offset")
1121newFunc("", "llMakeFire", "integer particles", "float scale", "float vel", "float lifetime", "float arc", "string texture", "vector offset")
1122newFunc("", "llMakeFountain", "integer particles", "float scale", "float vel", "float lifetime", "float arc", "integer bounce", "string texture", "vector offset", "float bounce_offset")
1123newFunc("", "llMakeSmoke", "integer particles", "float scale", "float vel", "float lifetime", "float arc", "string texture", "vector offset")
1124newFunc("", "llMoveToTarget", "vector target", "float tau")
1125newFunc("", "llParticleSystem", "list rules")
1126newFunc("", "llPassTouches", "integer pass")
1127newFunc("", "llRotLookAt", "rotation target", "float strength", "float damping")
1128newFunc("", "llSetClickAction", "integer action")
1129newFunc("", "llSetDamage", "float damage")
1130newFunc("", "llSetHoverHeight", "float height", "integer water", "float tau")
1131newFunc("", "llSetLinkPrimitiveParams", "integer linknumber", "list rules")
1132newFunc("", "llSetLinkPrimitiveParamsFast", "integer linknum", "list rules")
1133newFunc("", "llSetObjectDesc", "string text")
1134newFunc("", "llSetObjectName", "string text")
1135newFunc("", "llSetObjectPermMask", "integer mask", "integer value")
1136newFunc("", "llSetPayPrice", "integer price", "list quick_pay_buttons")
1137newFunc("", "llSetPrimitiveParams", "list params")
1138newFunc("integer", "llSetRegionPos", "vector pos")
1139newFunc("", "llSetStatus", "integer status", "integer value")
1140newFunc("", "llSetSitText", "string text")
1141newFunc("", "llSetText", "string text", "vector colour", "float alpha")
1142newFunc("", "llSetTouchText", "string text")
1143newFunc("", "llSitTarget", "vector pos", "rotation rot")
1144newFunc("", "llStopHover")
1145newFunc("", "llStopLookAt")
1146newFunc("", "llStopMoveToTarget")
1147newFunc("", "llTargetOmega", "vector axis", "float spinrate", "float gain")
845 1148
846-- LSL list functions. 1149-- LSL list functions.
847newFunc("list", "llCSV2List", "string text") 1150newFunc("list", "llCSV2List", "string text")
848newFunc("list", "llDeleteSubList", "list l", "integer start", "integer End") 1151newFunc("list", "llDeleteSubList", "list l", "integer start", "integer End")
849newFunc("string", "llDumpList2String", "list l", "string separator") 1152newFunc("string", "llDumpList2String", "list l", "string separator")
1153newFunc("integer", "llGetListEntryType", "list src", "integer index")
850newFunc("integer", "llGetListLength", "list l") 1154newFunc("integer", "llGetListLength", "list l")
851newFunc("string", "llList2CSV", "list l") 1155newFunc("string", "llList2CSV", "list l")
852newFunc("float", "llList2Float", "list l", "integer index") 1156newFunc("float", "llList2Float", "list l", "integer index")
853newFunc("integer", "llList2Integer", "list l", "integer index") 1157newFunc("integer", "llList2Integer", "list l", "integer index")
854newFunc("key", "llList2Key", "list l", "integer index") 1158newFunc("key", "llList2Key", "list l", "integer index")
855newFunc("list", "llList2List", "list l", "integer start", "integer End") 1159newFunc("list", "llList2List", "list l", "integer start", "integer End")
1160newFunc("list", "llList2ListStrided", "list src", "integer start", "integer eNd", "integer stride")
856newFunc("string", "llList2String", "list l", "integer index") 1161newFunc("string", "llList2String", "list l", "integer index")
857newFunc("rotation", "llList2Rot", "list l", "integer index") 1162newFunc("rotation", "llList2Rot", "list l", "integer index")
858newFunc("vector", "llList2Vector", "list l", "integer index") 1163newFunc("vector", "llList2Vector", "list l", "integer index")
859newFunc("integer", "llListFindList", "list l", "list l1") 1164newFunc("integer", "llListFindList", "list l", "list l1")
860newFunc("list", "llListInsertList", "list l", "list l1", "integer index") 1165newFunc("list", "llListInsertList", "list l", "list l1", "integer index")
1166newFunc("list", "llListRandomize", "list src", "integer stride")
861newFunc("list", "llListReplaceList", "list l", "list part", "integer start", "integer End") 1167newFunc("list", "llListReplaceList", "list l", "list part", "integer start", "integer End")
862newFunc("list", "llListSort", "list l", "integer stride", "integer ascending") 1168newFunc("list", "llListSort", "list l", "integer stride", "integer ascending")
1169newFunc("float", "llListStatistics", "integer operation", "list src")
863newFunc("list", "llParseString2List", "string In", "list l", "list l1") 1170newFunc("list", "llParseString2List", "string In", "list l", "list l1")
864newFunc("list", "llParseStringKeepNulls", "string In", "list l", "list l1") 1171newFunc("list", "llParseStringKeepNulls", "string In", "list l", "list l1")
865 1172
866-- LSL math functions 1173-- LSL math functions
1174newFunc("integer", "llAbs", "integer i")
1175newFunc("float", "llAcos", "float val")
1176newFunc("float", "llAngleBetween", "rotation a", "rotation b")
1177newFunc("float", "llAsin", "float val")
1178newFunc("float", "llAtan2", "float x", "float y")
1179newFunc("rotation", "llAxes2Rot", "vector fwd", "vector left", "vector up")
1180newFunc("rotation", "llAxisAngle2Rot", "vector axis", "float angle")
1181newFunc("integer", "llCeil", "float f")
1182newFunc("float", "llCos", "float f")
1183newFunc("float", "llFabs", "float f")
1184newFunc("integer", "llFloor", "float f")
1185newFunc("float", "llFrand", "float mag")
867newFunc("rotation", "llEuler2Rot", "vector vec") 1186newFunc("rotation", "llEuler2Rot", "vector vec")
868newFunc("float", "llFrand", "float max") 1187newFunc("float", "llFrand", "float max")
1188newFunc("float", "llLog", "float val")
1189newFunc("float", "llLog10", "float val")
1190newFunc("integer", "llModPow", "integer a", "integer b", "integer c")
869newFunc("float", "llPow", "float number", "float places") 1191newFunc("float", "llPow", "float number", "float places")
1192newFunc("float", "llRot2Angle", "rotation rot")
1193newFunc("vector", "llRot2Axis", "rotation rot")
870newFunc("vector", "llRot2Euler", "rotation rot") 1194newFunc("vector", "llRot2Euler", "rotation rot")
1195newFunc("vector", "llRot2Fwd", "rotation r")
1196newFunc("vector", "llRot2Left", "rotation r")
1197newFunc("vector", "llRot2Up", "rotation r")
1198newFunc("rotation", "llRotBetween", "vector start", "vector eNd")
871newFunc("integer", "llRound", "float number") 1199newFunc("integer", "llRound", "float number")
1200newFunc("float", "llSin", "float f")
1201newFunc("float", "llSqrt", "float f")
1202newFunc("float", "llTan", "float f")
1203newFunc("float", "llVecDist", "vector a", "vector b")
1204newFunc("float", "llVecMag", "vector v")
1205newFunc("vector", "llVecNorm", "vector v")
872 1206
873-- LSL media functions 1207-- LSL media functions
1208newFunc("", "llAdjustSoundVolume", "float volume")
1209newFunc("integer", "llClearLinkMedia", "integer link", "integer face")
1210newFunc("integer", "llClearPrimMedia", "integer face")
1211newFunc("", "llParcelMediaCommandList", "list commandList")
1212newFunc("list", "llParcelMediaQuery", "list aList")
1213newFunc("list", "llGetPrimMediaParams", "integer face", "list rules")
1214newFunc("", "llLoopSound", "string sound", "float volume")
1215newFunc("", "llLoopSoundMaster", "string sound", "float volume")
1216newFunc("", "llLoopSoundSlave", "string sound", "float volume")
874newFunc("", "llPlaySound", "string name", "float volume") 1217newFunc("", "llPlaySound", "string name", "float volume")
875 1218newFunc("", "llPlaySoundSlave", "string sound", "float volume")
876-- LSL object / prim functions 1219newFunc("", "llPreloadSound", "string sound")
877newFunc("", "llDie") 1220newFunc("", "llTriggerSound", "string sound", "float volume")
878newFunc("key", "llGetKey") 1221newFunc("", "llTriggerSoundLimited", "string sound", "float volume", "vector top_north_east", "vector bottom_south_west")
879newFunc("integer", "llGetLinkNumber") 1222newFunc("integer", "llSetLinkMedia", "integer link", "integer face", "list rules")
880newFunc("string", "llGetObjectDesc") 1223newFunc("", "llSetParcelMusicURL", "string url")
881newFunc("string", "llGetObjectName") 1224newFunc("integer", "llSetPrimMediaParams", "integer face", "list rules")
882newFunc("key", "llGetOwner") 1225newFunc("", "llSetSoundQueueing", "integer queue")
883newFunc("", "llSetObjectDesc", "string text") 1226newFunc("", "llSetSoundRadius", "float radius")
884newFunc("", "llSetObjectName", "string text") 1227newFunc("", "llSound", "string sound", "float volume", "integer queue", "integer loop")
885newFunc("", "llSetPrimitiveParams", "list params") 1228newFunc("", "llSoundPreload", "string sound")
886newFunc("", "llSetSitText", "string text") 1229newFunc("", "llStopSound")
887newFunc("", "llSetText", "string text", "vector colour", "float alpha") 1230
888newFunc("", "llSitTarget", "vector pos", "rotation rot") 1231-- LSL physics functions
1232newFunc("", "llApplyImpulse", "vector force", "integer local")
1233newFunc("", "llApplyRotationalImpulse", "vector force", "integer local")
1234newFunc("vector", "llGetAccel")
1235newFunc("vector", "llGetCenterOfMass")
1236newFunc("vector", "llGetForce")
1237newFunc("float", "llGetMass")
1238newFunc("float", "llGetObjectMass", "string id")
1239newFunc("vector", "llGetTorque")
1240newFunc("vector", "llGetVel")
1241newFunc("", "llPushObject", "string target", "vector impulse", "vector ang_impulse", "integer local")
1242newFunc("", "llSetBuoyancy", "float buoyancy")
1243newFunc("", "llSetForce", "vector force", "integer local")
1244newFunc("", "llSetForceAndTorque", "vector force", "vector torque", "integer local")
1245newFunc("", "llSetTorque", "vector torque", "integer local")
889 1246
890-- LSL rotation / scaling / translation functions 1247-- LSL rotation / scaling / translation functions
1248newFunc("vector", "llGetLocalPos")
1249newFunc("rotation", "llGetLocalRot")
891newFunc("vector", "llGetPos") 1250newFunc("vector", "llGetPos")
1251newFunc("vector", "llGetRootPosition")
1252newFunc("rotation", "llGetRootRotation")
892newFunc("rotation", "llGetRot") 1253newFunc("rotation", "llGetRot")
1254newFunc("vector", "llGetScale")
1255newFunc("", "llSetLocalRot", "rotation rot")
893newFunc("", "llSetPos", "vector pos") 1256newFunc("", "llSetPos", "vector pos")
894newFunc("", "llSetRot", "rotation rot") 1257newFunc("", "llSetRot", "rotation rot")
895newFunc("", "llSetScale", "vector scale") 1258newFunc("", "llSetScale", "vector scale")
896 1259
897-- LSL script functions 1260-- LSL script functions
898newFunc("integer", "llGetFreeMemory") 1261newFunc("integer", "llGetFreeMemory")
1262newFunc("integer", "llGetMemoryLimit")
899newFunc("string", "llGetScriptName") 1263newFunc("string", "llGetScriptName")
1264newFunc("integer", "llGetScriptState", "string name")
1265newFunc("integer", "llGetSPMaxMemory")
1266newFunc("integer", "llGetStartParameter")
1267newFunc("integer", "llGetUsedMemory")
1268newFunc("", "llRemoteLoadScript", "string target", "string name", "integer running", "integer start_param")
1269newFunc("", "llRemoteLoadScriptPin", "string target", "string name", "integer pin", "integer running", "integer start_param")
900newFunc("", "llResetOtherScript", "string name") 1270newFunc("", "llResetOtherScript", "string name")
901newFunc("", "llResetScript") 1271newFunc("", "llResetScript")
1272newFunc("integer", "llScriptDanger", "vector pos")
1273newFunc("", "llScriptProfiler", "integer flag")
1274newFunc("integer", "llSetMemoryLimit", "integer limit")
1275newFunc("", "llSetRemoteScriptAccessPin", "integer pin")
902newFunc("", "llSetScriptState", "string name", "integer running") 1276newFunc("", "llSetScriptState", "string name", "integer running")
903 1277
904-- LSL string functions 1278-- LSL string functions
1279newFunc("integer", "llBase64ToInteger", "string str")
1280newFunc("string", "llBase64ToString", "string str")
1281newFunc("string", "llDeleteSubString", "string src", "integer start", "integer eNd")
1282newFunc("string", "llEscapeURL", "string url")
1283newFunc("key", "llGenerateKey")
905newFunc("string", "llGetSubString", "string text", "integer start", "integer End") 1284newFunc("string", "llGetSubString", "string text", "integer start", "integer End")
1285newFunc("string", "llInsertString", "string dst", "integer position", "string src")
1286newFunc("string", "llIntegerToBase64", "integer number")
1287newFunc("string", "llMD5String", "string src", "integer nonce")
1288newFunc("string", "llSHA1String", "string src")
906newFunc("integer", "llStringLength", "string text") 1289newFunc("integer", "llStringLength", "string text")
907newFunc("string", "llStringTrim", "string text", "integer type") 1290newFunc("string", "llStringToBase64", "string str")
1291newFunc("string", "llStringTrim", "string text", "integer Type")
908newFunc("integer", "llSubStringIndex", "string text", "string sub") 1292newFunc("integer", "llSubStringIndex", "string text", "string sub")
1293newFunc("string", "llToLower", "string source")
1294newFunc("string", "llToUpper", "string source")
1295newFunc("string", "llUnescapeURL", "string url")
1296newFunc("string", "llXorBase64Strings", "string str1", "string str2")
1297newFunc("string", "llXorBase64StringsCorrect", "string str1", "string str2")
909 1298
910-- LSL texture functions 1299-- LSL texture functions
911newFunc("float", "llGetAlpha", "integer side") 1300newFunc("float", "llGetAlpha", "integer side")
1301newFunc("vector", "llGetColor", "integer face")
1302newFunc("string", "llGetTexture", "integer face")
1303newFunc("vector", "llGetTextureOffset", "integer face")
1304newFunc("float", "llGetTextureRot", "integer side")
1305newFunc("vector", "llGetTextureScale", "integer side")
1306newFunc("", "llOffsetTexture", "float u", "float v", "integer face")
1307newFunc("", "llRotateTexture", "float rot", "integer face")
1308newFunc("", "llScaleTexture", "float u", "float v", "integer face")
912newFunc("", "llSetAlpha", "float alpha", "integer side") 1309newFunc("", "llSetAlpha", "float alpha", "integer side")
913newFunc("", "llSetColor", "vector colour", "integer side") 1310newFunc("", "llSetColor", "vector colour", "integer side")
1311newFunc("", "llSetLinkAlpha", "integer linknumber", "float alpha", "integer face")
1312newFunc("", "llSetLinkColor", "integer linknumber", "vector color", "integer face")
1313newFunc("", "llSetLinkTexture", "integer linknumber", "string texture", "integer face")
1314newFunc("", "llSetLinkTextureAnim", "integer linknum", "integer mode", "integer face", "integer sizex", "integer sizey", "float start", "float length", "float rate")
1315newFunc("", "llSetTexture", "string texture", "integer face")
1316newFunc("", "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
1319newFunc("float", "llGetAndResetTime")
1320newFunc("string", "llGetDate")
1321newFunc("float", "llGetGMTclock")
916newFunc("float", "llGetTime") 1322newFunc("float", "llGetTime")
1323newFunc("float", "llGetTimeOfDay")
1324newFunc("string", "llGetTimestamp")
1325newFunc("integer", "llGetUnixTime")
1326newFunc("float", "llGetWallclock")
1327newFunc("", "llMinEventDelay", "float delay")
917newFunc("", "llResetTime") 1328newFunc("", "llResetTime")
918newFunc("", "llSetTimerEvent", "float seconds") 1329newFunc("", "llSetTimerEvent", "float seconds")
919newFunc("float", "llSleep", "float seconds") -- Faked return type, it actually does not return anything. This forces it to wait. Actually fully implements llSleep(). B-) 1330newFunc("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
1333newFunc("", "llRemoveVehicleFlags", "integer flags")
1334newFunc("", "llSetVehicleFlags", "integer flags")
1335newFunc("", "llSetVehicleFloatParam", "integer param", "float value")
1336newFunc("", "llSetVehicleRotationParam", "integer param", "rotation rot")
1337newFunc("", "llSetVehicleType", "integer Type")
1338newFunc("", "llSetVehicleVectorParam", "integer param", "vector vec")
1339
1340
1341--- OS functions
1342
1343-- OS animation functions
1344newFunc("", "osAvatarPlayAnimation", "string avatar", "string animation")
1345newFunc("", "osAvatarStopAnimation", "string avatar", "string animation")
1346
1347-- OS attachment functions
1348newFunc("", "osDropAttachment")
1349newFunc("", "osDropAttachmentAt", "vector pos", "rotation rot")
1350newFunc("", "osForceAttachToAvatar", "integer attachment")
1351newFunc("", "osForceAttachToAvatarFromInventory", "string itemName", "integer attachment")
1352newFunc("", "osForceAttachToOtherAvatarFromInventory", "string rawAvatarId", "string itemName", "integer attachmentPoint")
1353newFunc("", "osForceDetachFromAvatar")
1354newFunc("", "osForceDropAttachment")
1355newFunc("", "osForceDropAttachmentAt", "vector pos", "rotation rot")
1356newFunc("list", "osGetNumberOfAttachments", "key avatar", "list attachmentPoints")
1357newFunc("", "osMessageAttachments", "key avatar", "string message", "list attachmentPoints", "integer flags")
1358
1359-- OS avatar functions
1360newFunc("key", "osAgentSaveAppearance", "key agentId", "string notecard")
1361newFunc("string", "osAvatarName2Key", "string firstname", "string lastname")
1362newFunc("", "osCauseDamage", "string avatar", "float damage")
1363newFunc("", "osCauseHealing", "string avatar", "float healing")
1364newFunc("integer", "osEjectFromGroup", "key agentId")
1365newFunc("string", "osGetAgentIP", "string agent")
1366newFunc("list", "osGetAgents")
1367newFunc("list", "osGetAvatarList")
1368newFunc("float", "osGetHealth", "string avatar")
1369newFunc("integer", "osInviteToGroup", "key agentId")
1370newFunc("string", "osKey2Name", "string id")
1371newFunc("", "osKickAvatar", "string FirstName", "string SurName", "string alert")
1372newFunc("key", "osOwnerSaveAppearance", "string notecard")
1373newFunc("", "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-)
1375newFunc("", "osTeleportAgent", "string agent", "string regionName", "vector position", "vector lookat")
1376newFunc("", "osTeleportAgent", "string agent", "integer regionX", "integer regionY", "vector position", "vector lookat")
1377newFunc("", "osTeleportAgent", "string agent", "vector position", "vector lookat")
1378newFunc("", "osTeleportOwner", "string regionName", "vector position", "vector lookat")
1379newFunc("", "osTeleportOwner", "integer regionX", "integer regionY", "vector position", "vector lookat")
1380newFunc("", "osTeleportOwner", "vector position", "vector lookat")
1381
1382-- OS communication functions
1383newFunc("integer", "osListenRegex", "integer channelID", "string name", "string ID", "string msg", "integer regexBitfield")
1384newFunc("", "osMessageObject", "key objectUUID", "string message")
1385
1386-- OS grid functions
1387newFunc("string", "osGetGridCustom", "string key")
1388newFunc("string", "osGetGridGatekeeperURI")
1389newFunc("string", "osGetGridHomeURI")
1390newFunc("string", "osGetGridLoginURI")
1391newFunc("string", "osGetGridName")
1392newFunc("string", "osGetGridNick")
1393
1394-- OS inventory functions
1395newFunc("string", "osGetNotecard", "string name")
1396newFunc("string", "osGetNotecardLine", "string name", "integer line")
1397newFunc("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")
1402newFunc("float", "osGetCurrentSunHour")
1403newFunc("key", "osGetMapTexture")
1404newFunc("key", "osGetRegionMapTexture", "string regionName")
1405newFunc("list", "osGetRegionStats")
1406newFunc("integer", "osGetSimulatorMemory")
1407newFunc("string", "osGetSimulatorVersion")
1408newFunc("float", "osGetSunParam", "string param")
1409newFunc("float", "osGetTerrainHeight", "integer x", "integer y")
1410newFunc("float", "osGetWindParam", "string plugin", "string param")
1411newFunc("string", "osLoadedCreationDate")
1412newFunc("string", "osLoadedCreationID")
1413newFunc("string", "osLoadedCreationTime")
1414newFunc("", "osParcelJoin", "vector pos1", "vector pos2")
1415newFunc("", "osParcelSetDetails", "vector pos", "list rules")
1416newFunc("", "osParcelSubdivide", "vector pos1", "vector pos2")
1417newFunc("", "osRegionNotice", "string msg")
1418newFunc("integer", "osRegionRestart", "float seconds")
1419--newFunc("", "osSetEstateSunSettings", "bool sunFixed", "float sunHour")
1420newFunc("", "osSetParcelDetails", "vector pos", "list rules")
1421newFunc("", "osSetParcelMediaURL", "string url")
1422newFunc("", "osSetParcelSIPAddress", "string SIPAddress")
1423--newFunc("", "osSetRegionSunSettings", "bool useEstateSun", "bool sunFixed", "float sunHour")
1424newFunc("", "osSetRegionWaterHeight", "float height")
1425newFunc("", "osSetSunParam", "string param", "float value")
1426newFunc("integer", "osSetTerrainHeight", "integer x", "integer y", "float val")
1427newFunc("", "osSetTerrainTexture", "integer level", "key texture")
1428newFunc("", "osSetTerrainTextureHeight", "integer corner", "float low", "float high")
1429newFunc("", "osSetWindParam", "string plugin", "string param", "float value")
1430newFunc("float", "osSunGetParam", "string param")
1431newFunc("", "osSunSetParam", "string param", "float value")
1432newFunc("", "osTerrainFlush")
1433newFunc("float", "osTerrainGetHeight", "integer x", "integer y")
1434newFunc("integer", "osTerrainSetHeight", "integer x", "integer y", "float val")
1435newFunc("string", "osWindActiveModelPluginName")
1436
1437-- OS link / object / prim functions
1438newFunc("list", "osGetLinkPrimitiveParams", "integer linknumber", "list rules")
1439newFunc("list", "osGetPrimitiveParams", "key prim", "list rules")
1440newFunc("key", "osGetRezzingObject")
1441newFunc("", "osSetContentType", "key id", "string type")
1442newFunc("", "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
1450newFunc("float", "osMax", "float a", "float b")
1451newFunc("float", "osMin", "float a", "float b")
1452
1453-- OS NPC functions
1454newFunc("key", "osNpcCreate", "string user", "string name", "vector position", "key cloneFrom")
1455newFunc("key", "osNpcCreate", "string user", "string name", "vector position", "string notecard")
1456newFunc("key", "osNpcCreate", "string user", "string name", "vector position", "string notecard", "integer options")
1457newFunc("key", "osNpcGetOwner", "key npc")
1458newFunc("vector", "osNpcGetPos", "key npc")
1459newFunc("rotation", "osNpcGetRot", "key npc")
1460newFunc("integer", "osIsNpc", "key npc")
1461newFunc("", "osNpcLoadAppearance", "key npc", "string notecard")
1462newFunc("", "osNpcMoveTo", "key npc", "vector position")
1463newFunc("", "osNpcMoveToTarget", "key npc", "vector target", "integer options")
1464newFunc("", "osNpcPlayAnimation", "key npc", "string animation")
1465newFunc("", "osNpcRemove", "key npc")
1466newFunc("key", "osNpcSaveAppearance", "key npc", "string notecard")
1467newFunc("", "osNpcSay", "key npc", "string message")
1468newFunc("", "osNpcSay", "key npc", "integer channel", "string message")
1469newFunc("", "osNpcSetRot", "key npc", "rotation rot")
1470newFunc("", "osNpcShout", "key npc", "integer channel", "string message")
1471newFunc("", "osNpcSit", "key npc", "key target", "integer options")
1472newFunc("", "osNpcStand", "key npc")
1473newFunc("", "osNpcStopAnimation", "key npc", "string animation")
1474newFunc("", "osNpcStopMoveToTarget", "key npc")
1475newFunc("", "osNpcTouch", "key npcLSL_Key", "key object_key", "integer link_num")
1476newFunc("", "osNpcWhisper", "key npc", "integer channel", "string message")
1477
1478-- OS script functions
1479newFunc("string", "osGetScriptEngineName")
1480
1481-- OS string functions
1482newFunc("integer", "osIsUUID", "string thing")
1483newFunc("string", "osFormatString", "string str", "list strings")
1484newFunc("list", "osMatchString", "string src", "string pattern", "integer start")
1485--newFunc("Hashtable", "osParseJSON","string JSON")
1486newFunc("integer", "osRegexIsMatch", "string input", "string pattern")
1487newFunc("string", "osReplaceString", "string src", "string pattern", "string replace", "integer count", "integer start")
1488
1489-- OS texture functions
1490newFunc("string", "osDrawEllipse", "string drawList", "integer width", "integer height")
1491newFunc("string", "osDrawFilledPolygon", "string drawList", "list x", "list y")
1492newFunc("string", "osDrawFilledRectangle", "string drawList", "integer width", "integer height")
1493newFunc("string", "osDrawImage", "string drawList", "integer width", "integer height", "string imageUrl")
1494newFunc("string", "osDrawLine", "string drawList", "integer startX", "integer startY", "integer endX", "integer endY")
1495newFunc("string", "osDrawLine", "string drawList", "integer endX", "integer endY")
1496newFunc("string", "osDrawPolygon", "string drawList", "list x", "list y")
1497newFunc("string", "osDrawRectangle", "string drawList", "integer width", "integer height")
1498newFunc("string", "osDrawText", "string drawList", "string text")
1499newFunc("vector", "osGetDrawStringSize", "string contentType", "string text", "string fontName", "integer fontSize")
1500newFunc("string", "osMovePen", "string drawList", "integer x", "integer y")
1501newFunc("string", "osSetDynamicTextureData", "string dynamicID", "string contentType", "string data", "string extraParams", "integer timer")
1502newFunc("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")
1504newFunc("string", "osSetDynamicTextureURL", "string dynamicID", "string contentType", "string url", "string extraParams", "integer timer")
1505newFunc("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")
1507newFunc("string", "osSetFontName", "string drawList", "string fontName")
1508newFunc("string", "osSetFontSize", "string drawList", "integer fontSize")
1509newFunc("string", "osSetPenCap", "string drawList", "string direction", "string type")
1510newFunc("string", "osSetPenColor", "string drawList", "string color")
1511newFunc("string", "osSetPenColour", "string drawList", "string colour")
1512newFunc("string", "osSetPenSize", "string drawList", "integer penSize")
1513newFunc("", "osSetStateEvents", "integer events")
1514
1515-- OS time functions
1516--newFunc("string", "osUnixTimeToTimestamp", "long time")
1517
1518-- OS windlight functions
1519newFunc("", "lsClearWindlightScene")
1520newFunc("list", "lsGetWindlightScene", "list rules")
1521newFunc("integer", "lsSetWindlightScene", "list rules")
1522newFunc("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.
923function --[[integer]] LSL.llGetInventoryType(--[[string]] name) return LSL.INVENTORY_SCRIPT end; 1529function --[[integer]] LSL.llGetInventoryType(--[[string]] name) return LSL.INVENTORY_SCRIPT end;