aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--linden/indra/lscript/lscript_library/lscript_library.cpp9
-rw-r--r--linden/indra/newview/app_settings/keywords.ini55
2 files changed, 60 insertions, 4 deletions
diff --git a/linden/indra/lscript/lscript_library/lscript_library.cpp b/linden/indra/lscript/lscript_library/lscript_library.cpp
index 0342c97..7fa7b70 100644
--- a/linden/indra/lscript/lscript_library/lscript_library.cpp
+++ b/linden/indra/lscript/lscript_library/lscript_library.cpp
@@ -458,6 +458,15 @@ void LLScriptLibrary::init()
458 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llHTTPResponse", NULL, "kis", "llHTTPResponse(key id, integer status, string body)\nResponds to request id with status and body.")); 458 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llHTTPResponse", NULL, "kis", "llHTTPResponse(key id, integer status, string body)\nResponds to request id with status and body."));
459 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetHTTPHeader", "s", "ks", "string llGetHTTPHeader(key id, string header)\nGet the value for header for request id.")); 459 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetHTTPHeader", "s", "ks", "string llGetHTTPHeader(key id, string header)\nGet the value for header for request id."));
460 460
461 // Prim media functions and those added in SL server 1.38 -- MC
462 addFunction(new LLScriptLibraryFunction(10.f, 1.0f, dummy_func, "llSetPrimMediaParams", "i", "il", "llSetPrimMediaParams(integer face, list params)\nSets the media params for a particular face on an object. If media is not already on this object, add it.\nList is a set of name/value pairs in no particular order. Params not specified are unchanged, or if new media is added then set to the default specified.\nThe possible names are below, along with the types of values and what they mean."));
463 addFunction(new LLScriptLibraryFunction(10.f, 1.0f, dummy_func, "llGetPrimMediaParams", "l", "il", "list llGetPrimMediaParams(integer face, list params)\nReturns the media params for a particular face on an object, given the desired list of names, in the order requested.\n(Returns an empty list if no media exists on the face.)"));
464 addFunction(new LLScriptLibraryFunction(10.f, 1.0f, dummy_func, "llClearPrimMedia", "i", "i", "llClearPrimMedia(integer face)\nClears (deletes) the media and all params from the given face."));
465 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llSetLinkPrimitiveParamsFast", NULL, "il", "llSetLinkPrimitiveParamsFast(integer linknumber, list rules);\nIdentical to llSetLinkPrimitiveParams except with no script delay."));
466 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llGetLinkPrimitiveParams", NULL, "il", "list llGetLinkPrimitiveParams(integer link, list params)\nSimilar to llGetPrimitiveParams except works for any prim in the link set and with no script delay."));
467 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llLinkParticleSystem", NULL, "il", "llLinkParticleSystem(integer link, list params)\nSimilar to llParticleSystem except works for any prim in the link set."));
468 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "llSetLinkTextureAnim", NULL, "iiiiifff", "llSetLinkTextureAnim(integer link, integer mode, integer face, integer sizex, integer sizey, float start, float length, float rate);\nSimilar to llSetTextureAnim except works for any prim in the link set"));
469
461 // energy, sleep, dummy_func, name, return type, parameters, help text, gods-only 470 // energy, sleep, dummy_func, name, return type, parameters, help text, gods-only
462 471
463 // IF YOU ADD NEW SCRIPT CALLS, YOU MUST PUT THEM AT THE END OF THIS LIST. 472 // IF YOU ADD NEW SCRIPT CALLS, YOU MUST PUT THEM AT THE END OF THIS LIST.
diff --git a/linden/indra/newview/app_settings/keywords.ini b/linden/indra/newview/app_settings/keywords.ini
index 18af407..b0851ef 100644
--- a/linden/indra/newview/app_settings/keywords.ini
+++ b/linden/indra/newview/app_settings/keywords.ini
@@ -40,14 +40,14 @@ not_at_rot_target not_at_rot_target():Result of LLRotTarget library function cal
40money money(key id, integer amount):Triggered when L$ is given to task 40money money(key id, integer amount):Triggered when L$ is given to task
41email email(string time, string address, string subj, string message, integer num_left):Triggered when task receives email 41email email(string time, string address, string subj, string message, integer num_left):Triggered when task receives email
42run_time_permissions run_time_permissions(integer perm):Triggered when an agent grants run time permissions to task 42run_time_permissions run_time_permissions(integer perm):Triggered when an agent grants run time permissions to task
43attach attach(key id):Triggered when an agent attaches or detaches from agent 43attach attach(key id):Triggered when task attaches or detaches from agent
44dataserver dataserver(key queryid, string data):Triggered when task receives asynchronous data 44dataserver dataserver(key queryid, string data):Triggered when task receives asynchronous data
45moving_start moving_start():Triggered when task begins moving 45moving_start moving_start():Triggered when task begins moving
46moving_end moving_end():Triggered when task stops moving 46moving_end moving_end():Triggered when task stops moving
47on_rez on_rez(integer start_param):Triggered when task is rezed in from inventory or another task 47on_rez on_rez(integer start_param):Triggered when task is rezed in from inventory or another task
48object_rez object_rez(key id):Triggered when task rezes in another task 48object_rez object_rez(key id):Triggered when task rezes in another task
49link_message link_message(integer sender_num, integer num, string str, key id):Triggered when task receives a link message via LLMessageLinked library function call 49link_message link_message(integer sender_num, integer num, string str, key id):Triggered when task receives a link message via LLMessageLinked library function call
50changed changed( integer change ):Triggered various event change the task:(test change with CHANGED_INVENTORY, CHANGED_COLOR, CHANGED_SHAPE, CHANGED_SCALE, CHANGED_TEXTURE, CHANGED_LINK, CHANGED_ALLOWED_DROP, CHANGED_OWNER, CHANGED_REGION, CHANGED_TELEPORT) 50changed changed( integer change ):Triggered various event change the task:(test change with CHANGED_INVENTORY, CHANGED_COLOR, CHANGED_SHAPE, CHANGED_SCALE, CHANGED_TEXTURE, CHANGED_LINK, CHANGED_ALLOWED_DROP, CHANGED_OWNER, CHANGED_REGION, CHANGED_TELEPORT, CHANGED_REGION_START, CHANGED_MEDIA)
51remote_data remote_data(integer event_type, key channel, key message_id, string sender,integer idata, string sdata):Triggered by various XML-RPC calls (event_type will be one of REMOTE_DATA_CHANNEL, REMOTE_DATA_REQUEST, REMOTE_DATA_REPLY) 51remote_data remote_data(integer event_type, key channel, key message_id, string sender,integer idata, string sdata):Triggered by various XML-RPC calls (event_type will be one of REMOTE_DATA_CHANNEL, REMOTE_DATA_REQUEST, REMOTE_DATA_REPLY)
52http_response http_response(key request_id, integer status, list metadata, string body):Triggered when task receives a response to one of its llHTTPRequests 52http_response http_response(key request_id, integer status, list metadata, string body):Triggered when task receives a response to one of its llHTTPRequests
53http_request http_request(key id, string method, string body):Triggered when task receives an http request against a public URL 53http_request http_request(key id, string method, string body):Triggered when task receives an http request against a public URL
@@ -108,6 +108,7 @@ AGENT_TYPING Returned by llGetAgentInfo if the Agent is typing
108AGENT_CROUCHING Returned by llGetAgentInfo if the Agent is crouching 108AGENT_CROUCHING Returned by llGetAgentInfo if the Agent is crouching
109AGENT_BUSY Returned by llGetAgentInfo if the Agent is busy 109AGENT_BUSY Returned by llGetAgentInfo if the Agent is busy
110AGENT_ALWAYS_RUN Returned by llGetAgentInfo if the Agent has 'Always Run' enabled 110AGENT_ALWAYS_RUN Returned by llGetAgentInfo if the Agent has 'Always Run' enabled
111AGENT_AUTOPILOT Returned by llGetAgentInfo if the Agent is under autopilot control
111 112
112PSYS_PART_FLAGS 113PSYS_PART_FLAGS
113PSYS_PART_START_COLOR 114PSYS_PART_START_COLOR
@@ -319,6 +320,7 @@ CHANGED_OWNER Parameter of changed event handler used to indicate change to tas
319CHANGED_REGION Parameter of changed event handler used to indicate the region has changed 320CHANGED_REGION Parameter of changed event handler used to indicate the region has changed
320CHANGED_TELEPORT Parameter of changed event handler used to indicate teleport has completed 321CHANGED_TELEPORT Parameter of changed event handler used to indicate teleport has completed
321CHANGED_REGION_START Parameter of changed event handler used to indicate the region has been restarted 322CHANGED_REGION_START Parameter of changed event handler used to indicate the region has been restarted
323CHANGED_MEDIA Parameter of changed event handler used to indicate that media has changed on a face of the task
322 324
323TYPE_INTEGER Indicates that the list entry is holding an integer 325TYPE_INTEGER Indicates that the list entry is holding an integer
324TYPE_FLOAT Indicates that the list entry is holding an float 326TYPE_FLOAT Indicates that the list entry is holding an float
@@ -351,6 +353,8 @@ PRIM_BUMP_SHINY Followed by an integer face, one of PRIM_SHINY_NONE, PRIM_SHINY
351PRIM_FULLBRIGHT Followed by an integer face, and TRUE or FALSE 353PRIM_FULLBRIGHT Followed by an integer face, and TRUE or FALSE
352PRIM_TEXGEN Followed by an integer face, and one of PRIM_TEXGEN_DEFAULT or PRIM_TEXGEN_PLANAR 354PRIM_TEXGEN Followed by an integer face, and one of PRIM_TEXGEN_DEFAULT or PRIM_TEXGEN_PLANAR
353PRIM_GLOW Followed by an integer face, and a float from 0.0 to 1.0 specifying glow amount 355PRIM_GLOW Followed by an integer face, and a float from 0.0 to 1.0 specifying glow amount
356PRIM_NAME Sets/Shows the primitive name
357PRIM_TEXT Sets/Shows the primitive desc
354 358
355PRIM_TYPE_BOX Followed by integer hole shape, vector cut, float hollow, vector twist,:vector top size, and vector top shear 359PRIM_TYPE_BOX Followed by integer hole shape, vector cut, float hollow, vector twist,:vector top size, and vector top shear
356PRIM_TYPE_CYLINDER Followed by integer hole shape, vector cut, float hollow, vector twist,:vector top size, and vector top shear 360PRIM_TYPE_CYLINDER Followed by integer hole shape, vector cut, float hollow, vector twist,:vector top size, and vector top shear
@@ -508,17 +512,59 @@ CLICK_ACTION_PAY Used with llSetClickAction to set pay as the default act
508CLICK_ACTION_OPEN Used with llSetClickAction to set open as the default action when object is clicked 512CLICK_ACTION_OPEN Used with llSetClickAction to set open as the default action when object is clicked
509CLICK_ACTION_PLAY Used with llSetClickAction to set play as the default action when object is clicked 513CLICK_ACTION_PLAY Used with llSetClickAction to set play as the default action when object is clicked
510CLICK_ACTION_OPEN_MEDIA Used with llSetClickAction to set open-media as the default action when object is clicked 514CLICK_ACTION_OPEN_MEDIA Used with llSetClickAction to set open-media as the default action when object is clicked
515CLICK_ACTION_ZOOM Used with llSetClickAction to set zoom in as the default action when object is clicked
511 516
512TOUCH_INVALID_TEXCOORD Value returned by llDetectedTouchUV() and llDetectedTouchST() when the touch position is not valid. 517TOUCH_INVALID_TEXCOORD Value returned by llDetectedTouchUV() and llDetectedTouchST() when the touch position is not valid.
513TOUCH_INVALID_VECTOR Value returned by llDetectedTouchPos(), llDetectedTouchNormal(), and llDetectedTouchBinormal() when the touch position is not valid. 518TOUCH_INVALID_VECTOR Value returned by llDetectedTouchPos(), llDetectedTouchNormal(), and llDetectedTouchBinormal() when the touch position is not valid.
514TOUCH_INVALID_FACE Value returned by llDetectedTouchFace() when the touch position is not valid. 519TOUCH_INVALID_FACE Value returned by llDetectedTouchFace() when the touch position is not valid.
515 520
521PRIM_MEDIA_ALT_IMAGE_ENABLE Used with ll{Get,Set}PrimMediaParams to enable the default alt image for media
522PRIM_MEDIA_CONTROLS Used with ll{Get,Set}PrimMediaParams to determine the controls shown for media
523PRIM_MEDIA_CURRENT_URL Used with ll{Get,Set}PrimMediaParams to navigate/access the current URL
524PRIM_MEDIA_HOME_URL Used with ll{Get,Set}PrimMediaParams to access the home URL
525PRIM_MEDIA_AUTO_LOOP Used with ll{Get,Set}PrimMediaParams to determine if media should auto-loop (if applicable)
526PRIM_MEDIA_AUTO_PLAY Used with ll{Get,Set}PrimMediaParams to determine if media should start playing as soon as it is created
527PRIM_MEDIA_AUTO_SCALE Used with ll{Get,Set}PrimMediaParams to determine if media should scale to fit the face it is on
528PRIM_MEDIA_AUTO_ZOOM Used with ll{Get,Set}PrimMediaParams to determine if the user would zoom in when viewing media
529PRIM_MEDIA_FIRST_CLICK_INTERACT Used with ll{Get,Set}PrimMediaParams to determine whether the user interacts with media or not when she first clicks it (versus selection)
530PRIM_MEDIA_WIDTH_PIXELS Used with ll{Get,Set}PrimMediaParams to access the media's width in pixels
531PRIM_MEDIA_HEIGHT_PIXELS Used with ll{Get,Set}PrimMediaParams to access the media's height in pixels
532PRIM_MEDIA_WHITELIST_ENABLE Used with ll{Get,Set}PrimMediaParams to determine if the domain whitelist is enabled
533PRIM_MEDIA_WHITELIST Used with ll{Get,Set}PrimMediaParams to access the media's list of allowable URL prefixes to navigate to
534PRIM_MEDIA_PERMS_INTERACT Used with ll{Get,Set}PrimMediaParams to determine the permissions for who can interact with the media
535PRIM_MEDIA_PERMS_CONTROL Used with ll{Get,Set}PrimMediaParams to determine the permissions for who has controls
536PRIM_MEDIA_PARAM_MAX The value of the largest media param
537
538PRIM_MEDIA_CONTROLS_STANDARD Used with ll{Get,Set}PrimMediaParams, a PRIM_MEDIA_CONTROLS value meaning "standard controls"
539PRIM_MEDIA_CONTROLS_MINI Used with ll{Get,Set}PrimMediaParams, a PRIM_MEDIA_CONTROLS value meaning "mini controls"
540
541PRIM_MEDIA_PERM_NONE Used with ll{Get,Set}PrimMediaParams, a PRIM_MEDIA_PERMS_INTERACT or PRIM_MEDIA_PERMS_CONTROL bit, no permissions
542PRIM_MEDIA_PERM_OWNER Used with ll{Get,Set}PrimMediaParams, a PRIM_MEDIA_PERMS_INTERACT or PRIM_MEDIA_PERMS_CONTROL bit, owner permissions
543PRIM_MEDIA_PERM_GROUP Used with ll{Get,Set}PrimMediaParams, a PRIM_MEDIA_PERMS_INTERACT or PRIM_MEDIA_PERMS_CONTROL bit, group permissions
544PRIM_MEDIA_PERM_ANYONE Used with ll{Get,Set}PrimMediaParams, a PRIM_MEDIA_PERMS_INTERACT or PRIM_MEDIA_PERMS_CONTROL bit, anyone has permissions
545
546PRIM_MEDIA_MAX_URL_LENGTH Used with ll{Get,Set}PrimMediaParams, the maximum length of PRIM_MEDIA_CURRENT_URL or PRIM_MEDIA_HOME_URL
547PRIM_MEDIA_MAX_WHITELIST_SIZE Used with ll{Get,Set}PrimMediaParams, the maximum length, in bytes, of PRIM_MEDIA_WHITELIST
548PRIM_MEDIA_MAX_WHITELIST_COUNT Used with ll{Get,Set}PrimMediaParams, the maximum number of items allowed in PRIM_MEDIA_WHITELIST
549PRIM_MEDIA_MAX_WIDTH_PIXELS Used with ll{Get,Set}PrimMediaParams, the maximum width allowed in PRIM_MEDIA_WIDTH_PIXELS
550PRIM_MEDIA_MAX_HEIGHT_PIXELS Used with ll{Get,Set}PrimMediaParams, the maximum width allowed in PRIM_MEDIA_HEIGHT_PIXELS
551
552STATUS_OK Result of function call was success
553STATUS_MALFORMED_PARAMS Function was called with malformed params
554STATUS_TYPE_MISMATCH Argument(s) passed to function had a type mismatch
555STATUS_BOUNDS_ERROR Argument(s) passed to function had a bounds error
556STATUS_NOT_FOUND Object or other item was not found
557STATUS_NOT_SUPPORTED Feature not supported
558STATUS_INTERNAL_ERROR An internal error occurred
559STATUS_WHITELIST_FAILED URL failed to pass whitelist
560
516# string constants 561# string constants
517[word .1, .3, .5] 562[word .1, .3, .5]
518NULL_KEY Indicates an empty key 563NULL_KEY Indicates an empty key
519EOF Indicates the last line of a notecard was read 564EOF Indicates the last line of a notecard was read
520TEXTURE_BLANK UUID for the "Blank" texture 565TEXTURE_BLANK UUID for the "Blank" texture
521TEXTURE_DEFAULT UUID for the "Default Media" texture 566TEXTURE_DEFAULT Alias for TEXTURE_PLYWOOD
567TEXTURE_MEDIA UUID for the "Default Media" texture
522TEXTURE_PLYWOOD UUID for the default "Plywood" texture 568TEXTURE_PLYWOOD UUID for the default "Plywood" texture
523TEXTURE_TRANSPARENT UUID for the "White - Transparent" texture 569TEXTURE_TRANSPARENT UUID for the "White - Transparent" texture
524 570
@@ -539,6 +585,7 @@ SQRT2 1.4142135623730950488016887242097
539ZERO_VECTOR <0.0, 0.0, 0.0> 585ZERO_VECTOR <0.0, 0.0, 0.0>
540ZERO_ROTATION <0.0, 0.0, 0.0, 1.0> 586ZERO_ROTATION <0.0, 0.0, 0.0, 1.0>
541 587
588
542# flow control keywords 589# flow control keywords
543[word 0, 0, .8] 590[word 0, 0, .8]
544for for loop:for (initializer; test; iteration):{: statements:} 591for for loop:for (initializer; test; iteration):{: statements:}
@@ -563,4 +610,4 @@ return Leave current function or event handler
563[two_sided_delimiter_esc 0, .2, 0] 610[two_sided_delimiter_esc 0, .2, 0]
564" " String literal 611" " String literal
565 612
566#functions are supplied by the program now. \ No newline at end of file 613#functions are supplied by the program now.