Added the latest LSL and OSSL functions.

Signed-off-by: Fritigern Gothly <fritigerngothly@gmail.com>
This commit is contained in:
Fritigern
2011-08-11 21:59:33 +02:00
committed by Fritigern Gothly
parent e6de1e0d5a
commit f10aeaad31
2 changed files with 98 additions and 11 deletions

View File

@@ -462,23 +462,22 @@ void LLScriptLibrary::init()
addFunction(10.f, 0.f, dummy_func, "llGetLinkNumberOfSides", "i", "i");
// IDEVO Name lookup calls, see lscript_avatar_names.h
addFunction(10.f, 0.f, dummy_func, "llGetUsername", "s", "k");
addFunction(10.f, 0.f, dummy_func, "llRequestUsername", "k", "k");
addFunction(10.f, 0.f, dummy_func, "llGetDisplayName", "s", "k");
addFunction(10.f, 0.f, dummy_func, "llGetUsername", "s", "k");
addFunction(10.f, 0.f, dummy_func, "llRequestUsername", "k", "k");
addFunction(10.f, 0.f, dummy_func, "llGetDisplayName", "s", "k");
addFunction(10.f, 0.f, dummy_func, "llRequestDisplayName", "k", "k");
addFunction(10.f, 0.f, dummy_func, "llGetEnv", "s", "s");
addFunction(10.f, 0.f, dummy_func, "llRegionSayTo", NULL, "kis");
// Adding missing (more recent) LSL functions.
addFunction(10.f, 0.f, dummy_func, "llCastRay", "l", "vvl");
addFunction(10.f, 0.f, dummy_func, "llGetSPMaxMemory", "i", NULL);
addFunction(10.f, 0.f, dummy_func, "llGetUsedMemory", "i", NULL);
addFunction(10.f, 0.f, dummy_func, "llGodLikeRezObject", NULL, "kv");
addFunction(10.f, 0.f, dummy_func, "llScriptProfiler", NULL, "i");
addFunction(10.f, 0.f, dummy_func, "llSetInventoryPermMask", NULL, "sii");
addFunction(10.f, 0.f, dummy_func, "llSetObjectPermMask", NULL, "ii");
addFunction(10.f, 0.f, dummy_func, "llCastRay", "l", "vvl");
addFunction(10.f, 0.f, dummy_func, "llGetSPMaxMemory", "i", NULL);
addFunction(10.f, 0.f, dummy_func, "llGetUsedMemory", "i", NULL);
addFunction(10.f, 0.f, dummy_func, "llGodLikeRezObject", NULL, "kv");
addFunction(10.f, 0.f, dummy_func, "llScriptProfiler", NULL, "i");
addFunction(10.f, 0.f, dummy_func, "llSetInventoryPermMask", NULL, "sii");
addFunction(10.f, 0.f, dummy_func, "llSetObjectPermMask", NULL, "ii");
// energy, sleep, dummy_func, name, return type, parameters, help text, gods-only
@@ -599,6 +598,26 @@ void LLScriptLibrary::init()
addFunction(10.f, 0.f, dummy_func, "lsSetWindlightScene", "i", "l");
addFunction(10.f, 0.f, dummy_func, "lsSetWindlightSceneTargeted", "i", "lk");
addFunction(10.f, 0.f, dummy_func, "lsGetWindlightScene", "l", "l");
// New OSSL functions 08-10-2011
addFunction(10.f, 0.f, dummy_func, "osNpcSaveAppearance", "k", "ks");
addFunction(10.f, 0.f, dummy_func, "osNpcLoadAppearance", NULL, "ks");
addFunction(10.f, 0.f, dummy_func, "osNpcMoveToTarget", NULL, "kvi");
addFunction(10.f, 0.f, dummy_func, "osNpcStopMoveTo", NULL, "k");
addFunction(10.f, 0.f, dummy_func, "osOwnerSaveAppearance", "k", "s");
addFunction(10.f, 0.f, dummy_func, "llSetMemoryLimit", "i", "i");
addFunction(10.f, 0.f, dummy_func, "llSetLinkMedia", "i", "iil");
addFunction(10.f, 0.f, dummy_func, "llGetLinkMedia", "l", "iil");
addFunction(10.f, 0.f, dummy_func, "llClearLinkMedia", "i", "ii");
addFunction(10.f, 0.f, dummy_func, "llSetLinkCamera", NULL, "ivv");
addFunction(10.f, 0.f, dummy_func, "llSetContentType", NULL, "ki");
addFunction(10.f, 0.f, dummy_func, "llLinkSitTarget", NULL, "ivr");
addFunction(10.f, 0.f, dummy_func, "llAvatarOnLinkSitTarget", "k", "i");
/* No info on these functions yet....
* addFunction(10.f, 0.f, dummy_func, "llSetVelocity", "", "");
* addFunction(10.f, 0.f, dummy_func, "llSetRotationalVelocity", "", "");
*/
}
LLScriptLibraryFunction::LLScriptLibraryFunction(F32 eu, F32 st, void (*exec_func)(LLScriptLibData *, LLScriptLibData *, const LLUUID &), const char *name, const char *ret_type, const char *args, BOOL god_only)

View File

@@ -1739,6 +1739,46 @@ llSetObjectPermMask( integer mask, integer value )
Sets the given permission mask to the new value on the root object the task is attached to.
(Requires god mode)
</string>
<string name="LSLTipText_llSetMemoryLimit">
integer llSetMemoryLimit( integer limit )
Request ''limit'' bytes to be reserved for this script.
</string>
<string name="LSLTipText_llSetLinkMedia">
integer llSetLinkMedia( integer link, integer face, list params )
Set the media params for a particular face on the linked prim(s) without a delay.
</string>
<string name="LSLTipText_llGetLinkMedia">
list llGetLinkMedia( integer link, integer face, list params )
Returns a list with the media params for a particular face on a linked prim, given the desired list of named params.
</string>
<string name="LSLTipText_llClearLinkMedia">
integer llClearLinkMedia( integer link, integer face )
Clears the media and all params from the given face on the linked prim(s).
</string>
<string name="LSLTipText_llSetLinkCamera">
llSetLinkCamera( integer link, vector eye, vector at )
Sets the camera eye offset, and the offset that the camera is looking at, for avatars that sit on the linked prim.
</string>
<string name="LSLTipText_llSetContentType">
llSetContentType( key request_id, integer content_type )
Set the Internet media type of an LSL HTTP server response.
</string>
<string name="LSLTipText_llLinkSitTarget">
llLinkSitTarget( integer link, vector offset, rotation rot );
Set the sit location for the linked prim(s). The sit location is relative to the prim's position and rotation.
</string>
<string name="LSLTipText_llAvatarOnLinkSitTarget">
key llAvatarOnLinkSitTarget( integer link )
Returns a key that is the UUID of the user seated on the prim.
</string>
<!-- No info on these functions yet....
<string name="LSLTipText_llSetVelocity">
</string>
<string name="LSLTipText_llSetRotationalVelocity">
</string>
-->
<!-- Addition of OSSL commands for use in OpenSimulator based regions, including Aurora -->
<string name="LSLTipText_osSetRegionWaterHeight">
@@ -2244,4 +2284,32 @@ list lsGetWindlightScene(list rules)
Get the current WindLight settings.
(Reguires LightShare)
</string>
<!-- New OSSL Functions as of 8-10-2011 -->
<string name="LSLTipText_osNpcSaveAppearance">
key osNpcSaveAppearance(key npc, string notecardName)
Saves the NPC's appearance to a notecard.
(OpenSim only.)
</string>
<string name="LSLTipText_osNpcLoadAppearance">
osNpcLoadAppearance(key npc, string notecardName)
Loads the NPC's appearance from a notecard with appearance data.
Notecards can also be loaded by UUID.
(OpenSim only.)
</string>
<string name="LSLTipText_osNpcMoveToTarget">
osNpcMoveToTarget(key npc, vector position, integer options)
Moves the NPC to a target at a given vector, using options to walk or to fly there.
(OpenSim only.)
</string>
<string name="LSLTipText_osNpcStopMoveTo">
osNpcStopMoveTo(key npc)
Makes an NPC stop moving to a target.
(OpenSim only.)
</string>
<string name="LSLTipText_osOwnerSaveAppearance">
key osOwnerSaveAppearance(string notecardName)
Saves the owner's appearance to a notecard inside the prim that holds the script.
(OpenSim only.)
</string>
</strings>