aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden
diff options
context:
space:
mode:
authorJacek Antonelli2010-05-21 00:28:52 -0500
committerJacek Antonelli2010-06-19 02:40:55 -0500
commit4cfd1dd14a944727480d00c8746d2aad6b04b73f (patch)
tree43b3b23d18deea502dfe76c5c854bd36c6fed084 /linden
parentAdded OpenSim Scripting Language functions to script editor. (diff)
downloadmeta-impy-4cfd1dd14a944727480d00c8746d2aad6b04b73f.zip
meta-impy-4cfd1dd14a944727480d00c8746d2aad6b04b73f.tar.gz
meta-impy-4cfd1dd14a944727480d00c8746d2aad6b04b73f.tar.bz2
meta-impy-4cfd1dd14a944727480d00c8746d2aad6b04b73f.tar.xz
Improved OpenSim Scripting Language function tooltips.
* Rewrote/tweaked some tooltips for quality. * Shortened some very long tooltips. * Removed wiki URLs (which are unclickable and pretty useless). * Mentioned that the functions are 'OpenSim only'.
Diffstat (limited to 'linden')
-rw-r--r--linden/indra/lscript/lscript_library/lscript_library.cpp157
1 files changed, 77 insertions, 80 deletions
diff --git a/linden/indra/lscript/lscript_library/lscript_library.cpp b/linden/indra/lscript/lscript_library/lscript_library.cpp
index b19b91b..13996d7 100644
--- a/linden/indra/lscript/lscript_library/lscript_library.cpp
+++ b/linden/indra/lscript/lscript_library/lscript_library.cpp
@@ -486,86 +486,83 @@ void LLScriptLibrary::init()
486 // OSSL corrections and syntax additions added + set in same order as found in OSSL_stub.cs of OpenSim Source (February 19, 2010) 486 // OSSL corrections and syntax additions added + set in same order as found in OSSL_stub.cs of OpenSim Source (February 19, 2010)
487 // based on OpenSimulator Ver. 0.6.9 DEV Git # af265e001d3bf043590e480cd6574a14193f6de0 - Rev 12239 487 // based on OpenSimulator Ver. 0.6.9 DEV Git # af265e001d3bf043590e480cd6574a14193f6de0 - Rev 12239
488 488
489 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetRegionWaterHeight", NULL, "f", "osSetRegionWaterHeight(float height)\nAdjusts Water Height on region\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 489 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetRegionWaterHeight", NULL, "f", "osSetRegionWaterHeight(float height)\nAdjusts Water Height on region.\n(OpenSim only.)"));
490 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetRegionSunSettings", NULL, "iif", "osSetRegionSunSettings(integer useEstateSun, integer sunFixed, float sunHour)\nChanges the Estate Sun Settings, then Triggers a Sun Update\n'sunFixed' TRUE (1) to keep the sun stationary, FALSE (0) to use global time\n'sunHour' The \"Sun Hour\" that is desired, 0...24, with 0 just after SunRise\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 490 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetRegionSunSettings", NULL, "iif", "osSetRegionSunSettings(integer useEstateSun, integer sunFixed, float sunHour)\nChanges the Estate Sun Settings, then Triggers a Sun Update\n'sunFixed' TRUE (1) to keep the sun stationary, FALSE (0) to use global time\n'sunHour' The \"Sun Hour\" that is desired, 0...24, with 0 just after SunRise.\n(OpenSim only.)"));
491 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetEstateSunSettings", NULL, "if", "osSetEstateSunSettings(integer sunFixed, float sunHour)\nsunFixed = 0 or 1, sunHour = 00.00 to 24.00\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 491 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetEstateSunSettings", NULL, "if", "osSetEstateSunSettings(integer sunFixed, float sunHour)\nsunFixed = 0 or 1, sunHour = 00.00 to 24.00.\n(OpenSim only.)"));
492 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetCurrentSunHour", "f", NULL, "float osGetCurrentSunHour()\nReturns Float Value of Current Sun Hour 0...24 0 = sunrise \nhttp://opensimulator.org/wiki/OSSL_Implemented")); 492 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetCurrentSunHour", "f", NULL, "float osGetCurrentSunHour()\nReturns Float Value of Current Sun Hour 0...24 0 = sunrise.\n(OpenSim only.)"));
493 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSunGetParam","f", "s", "float osSunGetParam(string param)\nReturns current float values for param\nwhere param = day_length, year_length, day_night_offset, update_interval\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 493 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSunGetParam","f", "s", "float osSunGetParam(string param)\nReturns current float values for param\nwhere param = day_length, year_length, day_night_offset, update_interval.\n(OpenSim only.)"));
494 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSunSetParam", "sf", NULL, "osSunSetParam(string param, float value)\nSet's Sun Param for SunSet,\nosSunSetParam(day_length, 24.0)\nwhere param = day_length, year_length, day_night_offset, update_interval\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 494 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSunSetParam", "sf", NULL, "osSunSetParam(string param, float value)\nSet's Sun Param for SunSet,\nosSunSetParam(day_length, 24.0)\nwhere param = day_length, year_length, day_night_offset, update_interval.\n(OpenSim only.)"));
495 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osWindActiveModelPluginName", "s", NULL, "string osWindActiveModelPluginName()\nReturns the Current Working Wind Module Installed\nThese are SimpleRandomWind or ConfigurableWind, optionally others\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 495 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osWindActiveModelPluginName", "s", NULL, "string osWindActiveModelPluginName()\nReturns the Current Working Wind Module Installed\nThese are SimpleRandomWind or ConfigurableWind, optionally others.\n(OpenSim only.)"));
496 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osWindParamSet", NULL, "ssf", "osWindParamSet(string plugin, string param, float value)Send Param to Specified Wind Plugin with new value\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 496 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osWindParamSet", NULL, "ssf", "osWindParamSet(string plugin, string param, float value)Send Param to Specified Wind Plugin with new value.\n(OpenSim only.)"));
497 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osWindParamGet", "f", "ss", "float osWindParamGet(string plugin, string param)\n Returns Current param from specified Wind Plugin Module\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 497 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osWindParamGet", "f", "ss", "float osWindParamGet(string plugin, string param)\n Returns Current param from specified Wind Plugin Module.\n(OpenSim only.)"));
498 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osList2Double", "f", "si", "double osList2Double(list src, int index)\nReturns Double (float) Value from src at index\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 498 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osList2Double", "f", "si", "double osList2Double(list src, int index)\nReturns Double (float) Value from src at index.\n(OpenSim only.)"));
499 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetDynamicTextureURL", NULL, "ssssi", "osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int timer )\nContentType= image, url=http://server.com/image.jpg\n extraParams in the following format: [param]:[value],[param]:[value]\nwidth of the dynamic texture in pixels IE: width:256\nheight of the dynamic texture in pixels IE: height:256\nalpha (transparency). Values are 0-clear to 255-solid, FALSE to turn off alpha IE: alpha:255)\nbgcolour - background color of the texture IE: bgcolour:Red\nsetalpha integer value - any integer value is treated like specifing alpha component\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 499 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetDynamicTextureURL", NULL, "ssssi", "osSetDynamicTextureURL(string dynamicID, string contentType, string url, string extraParams, int timer )\n(OpenSim only.)"));
500 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetDynamicTextureData", NULL, "ssssi", "osSetDynamicTextureData(string dynamicID, string contentType, string data, string extraParams, int timer)\nWrites text and vector graphics onto a prim face.\nwidth,height and alpha value can be passed\ne.g. osSetDynamicTextureData('', 'vector', drawList, 'width:64,height:1024:alpha:0', 0)\n! REPLACE Single Quotes with Double Quotes\nTo turn off the alpha layer use 'alpha:false' in the optional parameters\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 500 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetDynamicTextureData", NULL, "ssssi", "osSetDynamicTextureData(string dynamicID, string contentType, string data, string extraParams, int timer)\nWrites text and vector graphics onto a prim face.\n(OpenSim only.)"));
501 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetDynamicTextureURLBlend", NULL, "ssssii", "osSetDynamicTextureURLBlend(string dynamicID, string contentType, string url, string extraParams, int timer, int alpha)\nContentType= image, url=http://server.com/image.jpg\n extraParams in the following format: [param]:[value],[param]:[value]\nwidth of the dynamic texture in pixels IE: width:256\nheight of the dynamic texture in pixels IE: height:256\nalpha (transparency). Values are 0-clear to 255-solid, FALSE to turn off alpha IE: alpha:255)\nbgcolour - background color of the texture IE: bgcolour:Red\nsetalpha integer value - any integer value is treated like specifing alpha component\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 501 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetDynamicTextureURLBlend", NULL, "ssssii", "osSetDynamicTextureURLBlend(string dynamicID, string contentType, string url, string extraParams, int timer, int alpha)\n(OpenSim only.)"));
502 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetDynamicTextureDataBlend", NULL, "ssssii", "osSetDynamicTextureDataBlend(string dynamicID, string contentType, string data, string extraParams, int timer, int alpha)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 502 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetDynamicTextureDataBlend", NULL, "ssssii", "osSetDynamicTextureDataBlend(string dynamicID, string contentType, string data, string extraParams, int timer, int alpha)\n(OpenSim only.)"));
503 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetDynamicTextureURLBlendFace", NULL, "ssssfiiii", "osSetDynamicTextureURLBlendFace(string dynamicID, string contentType, string url, string extraParams, bool blend, int disp, int timer, int alpha, int face)\nLoads a web texture on a prim.\nShould work for any image URL (including php scripts) that Opensim can render.\n[Note refreshTimer may not yet be implemented, use a timer event and recall the function to get the same effect]\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 503 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetDynamicTextureURLBlendFace", NULL, "ssssfiiii", "osSetDynamicTextureURLBlendFace(string dynamicID, string contentType, string url, string extraParams, bool blend, int disp, int timer, int alpha, int face)\nLoads a web texture on a prim.\n(OpenSim only.)"));
504 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetDynamicTextureDataBlendFace", NULL, "ssssfiiii", "osSetDynamicTextureDataBlendFace(string dynamicID, string contentType, string data, string extraParams, bool blend, int disp, int timer, int alpha, int face)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 504 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetDynamicTextureDataBlendFace", NULL, "ssssfiiii", "osSetDynamicTextureDataBlendFace(string dynamicID, string contentType, string data, string extraParams, bool blend, int disp, int timer, int alpha, int face)\n(OpenSim only.)"));
505 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osTerrainGetHeight", "f", "ii", "float osTerrainGetHeight(int x, int y)\nReturns current terrain height\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 505 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osTerrainGetHeight", "f", "ii", "float osTerrainGetHeight(int x, int y)\nReturns current terrain height at the given coordinates.\n(OpenSim only.)"));
506 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osTerrainSetHeight", NULL, "iif", "osTerrainSetHeight(int x, int y, float val)\nsets terrain height X & Y Values\nuse osTerrainsFlush() afterwards\nhttp://opensimulator.org/wiki/OsTerrainSetHeight\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 506 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osTerrainSetHeight", NULL, "iif", "osTerrainSetHeight(int x, int y, float val)\nSets terrain height at the given coordinates. Use osTerrainsFlush() afterwards.\n(OpenSim only.)"));
507 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osTerrainFlush", NULL, NULL, "osTerrainFlush()\nshould be called after all the terrain-changes have been done to update Terrain Data.\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 507 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osTerrainFlush", NULL, NULL, "osTerrainFlush()\nUpdates terrain data. Call this after you are done using osTerrainSetHeight.\n(OpenSim only.)"));
508 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osRegionRestart", NULL, "f", "int osRegionRestart(double seconds)\nallows a region restart command from script in seconds from issuing command\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 508 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osRegionRestart", NULL, "f", "int osRegionRestart(double seconds)\nRestart the current region in the specified number of seconds from now.\n(OpenSim only.)"));
509 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osRegionNotice",NULL, "s", "osRegionNotice(string msg)\nbroadcasts notification to all agents on specific Region.\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 509 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osRegionNotice",NULL, "s", "osRegionNotice(string msg)\nBroadcasts a notification message to all agents on the current region.\n(OpenSim only.)"));
510 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osConsoleCommand", NULL, "s", "osConsoleCommand(string command)\nIssues Commands directly to the OpenSim Server Console\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 510 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osConsoleCommand", NULL, "s", "osConsoleCommand(string command)\nIssues commands directly to the OpenSim server console.\n(OpenSim only.)"));
511 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetParcelMediaURL", NULL, "s", "osSetParcelMediaURL(string url)Sets Parcel Media URL\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 511 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetParcelMediaURL", NULL, "s", "osSetParcelMediaURL(string url)\nSets Parcel Media URL.\n(OpenSim only.)"));
512 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetParcelSIPAddress", NULL, "s", "osSetParcelSIPAddress(string SIPAddress) Sets Parcel SIP Address for Voice\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 512 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetParcelSIPAddress", NULL, "s", "osSetParcelSIPAddress(string SIPAddress)\nSets Parcel SIP Address for Voice.\n(OpenSim only.)"));
513 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetPrimFloatOnWater", NULL, "i", "osSetPrimFloatOnWater(int floatYN)\n make Physical prim float at the water level, TRUE or FALSE\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 513 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetPrimFloatOnWater", NULL, "i", "osSetPrimFloatOnWater(int floatYN)\nMake Physical prims float at the water level, TRUE or FALSE.\n(OpenSim only.)"));
514 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osTeleportAgent", NULL, "ksvv", "osTeleportAgent(key agent, string regionName, vector position, vector lookat)\nfor In-Grid Teleport Use\n(AgentUUID, RegionName,<x,y,z>,<x,y,z>)\nHypergrid IP Method (AgentUUID, IPaddress:Port/RegionName,<x,y,z>,<x,y,z>)\nHypergrid DNS Method(AgentUUID, DNSname:Port/RegionName,<x,y,z>,<x,y,z>)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 514 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osTeleportAgent", NULL, "ksvv", "osTeleportAgent(key agent, string regionName, vector position, vector lookat)\nTeleport the specified agent. This function is polymorphic; see the docs for other available forms.\n(OpenSim only.)"));
515 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osTeleportAgent", NULL, "kiivv", "osTeleportAgent(key agent, int regionX, int regionY, vector position, vector lookat)\nfor In-Grid Teleport to Grid Map Coordinates\n(AgentUUID, XXXX,YYYY,<x,y,z>,<x,y,z>)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 515 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetAgentIP", "s", "k", "string osGetAgentIP(key agent)\nReturns the Avatars IP Address\nAllows in world tools be used to coordinate out of world network services that need access to client ip addresses.\nShould ONLY be used by Region Server Owner.\n(OpenSim only.)"));
516 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osTeleportAgent", NULL, "kvv", "osTeleportAgent(key agent, vector position, vector lookat)\nfor In-Region Teleport Use,\n(AgentUUID, <x,y,z>, <x,y,z>)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 516 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetAgents", "l", NULL, "list osGetAgents()\nReturns a list of all avatars in the region in which the script is running.\n(OpenSim only.)"));
517 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetAgentIP", "s", "k", "string osGetAgentIP(key agent)\nReturns the Avatars IP Address\nAllows in world tools be used to coordinate out of world network services that need access to client ip addresses.\nShould ONLY be used by Region Server Owner\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 517 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osAvatarPlayAnimation", NULL, "ks", "osAvatarPlayAnimation(key avatar, string animation)\nTriggers animations contained within the same prim as the script. Does not need the target avatar's permission.\n(OpenSim only.)"));
518 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetAgents", "l", NULL, "list osGetAgents()\nReturns a list of all avatars in the region in which the script is running.\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 518 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osAvatarStopAnimation", NULL, "ks", "osAvatarStopAnimation(key avatar, string animation)\nStops specified animation on the specified avatar.\n(OpenSim only.)"));
519 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osAvatarPlayAnimation", NULL, "ks", "osAvatarPlayAnimation(key avatar, string animation)\nTriggers animations contained within the same prim as the script without requesting permission, as llStartAnimation() does.\nIt also modifies osAvatarStopAnimation(), otherwise the script wouldn't be able to stop animations it had started.\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 519 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osMovePen", NULL, "sii", "osMovePen(string drawList, int x, int y)\nMoves the pen's location to the coordinates specified by the x and y parameters, without drawing anything.\n(OpenSim only.)"));
520 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osAvatarStopAnimation", NULL, "ks", "osAvatarStopAnimation(key avatar, string animation)\nStops specified animation on Avatar\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 520 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawLine", NULL, "siiii", "osDrawLine(string drawList, int startX, int startY, int endX, int endY)\nosDrawLine(string drawList, int endX, int endY)\n(OpenSim only.)"));
521 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osMovePen", NULL, "sii", "osMovePen(string drawList, int x, int y)\nmoves the pen's location to the coordinates specified by the x and y parameters, without drawing anything.\nREF: http://opensimulator.org/wiki/OsMovePen")); 521 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawText", NULL, "ss", "osDrawText(string drawList, string text)\n(OpenSim only.)"));
522 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawLine", NULL, "siiii", "osDrawLine(string drawList, int startX, int startY, int endX, int endY)\nRefer to: http://opensimulator.org/wiki/Dynamic_textures")); 522 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawEllipse", NULL, "sii", "osDrawEllipse(string drawList, int width, int height)\n(OpenSim only.)"));
523 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawLine", NULL, "sii", "osDrawLine(string drawList, int endX, int endY)\nRefer to: http://opensimulator.org/wiki/Dynamic_textures")); 523 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawRectangle", NULL, "sii", "osDrawRectangle(string drawList, int width, int height)\n(OpenSim only.)"));
524 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawText", NULL, "ss", "osDrawText(string drawList, string text)\nRefer to: http://opensimulator.org/wiki/Dynamic_textures")); 524 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawFilledRectangle", NULL, "sii", "osDrawFilledRectangle(string drawList, int width, int height)\n(OpenSim only.)"));
525 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawEllipse", NULL, "sii", "osDrawEllipse(string drawList, int width, int height)\nRefer to: http://opensimulator.org/wiki/Dynamic_textures")); 525 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawPolygon", NULL, "ll", "osDrawPolygon (string drawList, List x, List y)\n(OpenSim only.)"));
526 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawRectangle", NULL, "sii", "osDrawRectangle(string drawList, int width, int height)\nRefer to: http://opensimulator.org/wiki/Dynamic_textures")); 526 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawFilledPolygon", NULL, "ll", "string osDrawFilledPolygon (string drawList, List x, List y)\n(OpenSim only.)"));
527 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawFilledRectangle", NULL, "sii", "osDrawFilledRectangle(string drawList, int width, int height)\nRefer to: http://opensimulator.org/wiki/Dynamic_textures")); 527 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetFontSize", NULL, "si", "osSetFontSize(string drawList, int fontSize)\n(OpenSim only.)"));
528 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawPolygon", NULL, "ll", "osDrawPolygon (string drawList, List x, List y)\nWorks a little different then other OS Drawing functions,\nthis one has no start and end point,\nbut a number of points that will form the desired polygon.\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 528 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetFontName", NULL, "ss", "osSetFontName(string drawList, string fontName)\nSets Current Font to one available on Server.\n(OpenSim only.)"));
529 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawFilledPolygon", NULL, "ll", "string osDrawFilledPolygon (string drawList, List x, List y)\nWorks a little different then other OS Drawing functions,\nthis one has no start and end point,\nbut a number of points that will form the desired polygon.\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 529 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetPenSize", NULL, "si", "osSetPenSize(string drawList, int penSize)\n(OpenSim only.)"));
530 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetFontSize", NULL, "si", "osSetFontSize(string drawList, int fontSize)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 530 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetPenCap", NULL, "sss", "osSetPenCap(string drawList, string direction, string type)\nThis allows using arrow, diamond, round and flat caps.\n(OpenSim only.)"));
531 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetFontName", NULL, "ss", "osSetFontName(string drawList, string fontName)Sets Current Font to one available on Server\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 531 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetPenColour", NULL, "ss", "osSetPenColour(string drawList, string colour)\n(OpenSim only.)"));
532 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetPenSize", NULL, "si", "osSetPenSize(string drawList, int penSize)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 532 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawImage", NULL, "siis", "osDrawImage(string drawList, int width, int height, string imageUrl)\n(OpenSim only.)"));
533 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetPenCap", NULL, "sss", "osSetPenCap(string drawList, string direction, string type)\nThis allows using arrow, diamond, round and flat caps.\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 533 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetDrawStringSize", "v", "sssi", "vector osGetDrawStringSize(string contentType, string text, string fontName, int fontSize)\n(OpenSim only.)"));
534 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetPenColour", NULL, "ss", "osSetPenColour(string drawList, string colour)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 534 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetStateEvents", NULL, "i", "osSetStateEvents(int events)\n(OpenSim only.)"));
535 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osDrawImage", NULL, "siis", "osDrawImage(string drawList, int width, int height, string imageUrl)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 535 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetScriptEngineName", "s", NULL, "string osGetScriptEngineName()\nReturns current Script Engine enabled on Server.\n(OpenSim only.)"));
536 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetDrawStringSize", "v", "sssi", "vector osGetDrawStringSize(string contentType, string text, string fontName, int fontSize)\nRefer to: http://opensimulator.org/wiki/Dynamic_textures")); 536 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetSimulatorVersion", "s", NULL, "string osGetSimulatorVersion()\nReturns OpenSim Server Version information.\n(OpenSim only.)"));
537 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetStateEvents", NULL, "i", "osSetStateEvents(int events)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 537 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osParseJSON", NULL, "s", "Hashtable osParseJSON(string JSON)\nReturns a hashtable containing the structured JSON contents (C# only).\n(OpenSim only.)"));
538 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetScriptEngineName", "s", NULL, "string osGetScriptEngineName()\nReturns current Script Engine enabled on Server\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 538 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osMessageObject", NULL, "ks", "osMessageObject(key objectUUID, string message)\nSends a string to the object identified by objectUUID. The receiving object requires a dataserver(key queryid, string data) in a contained script(s). The queryid passed will be the id of the calling object.\n(OpenSim only.)"));
539 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetSimulatorVersion", "s", NULL, "string osGetSimulatorVersion()\nReturns OpenSim Server Version information\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 539 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osMakeNotecard", NULL, "sl", "osMakeNotecard(string notecardName, list contents)\nWrite a Notecard contained in Prim with contents of list.\n(OpenSim only.)"));
540 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osParseJSON", NULL, "s", "Hashtable osParseJSON(string JSON)\nReturns a hashtable containing the structured JSON contents (c# only)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 540 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetNotecardLine", "s", "si", "string osGetNotecardLine(string name, int line)\nReads the requested notecard line and return its data as a string.\n(OpenSim only.)"));
541 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osMessageObject", NULL, "ks", "osMessageObject(key objectUUID, string message)\nSends a string to the object identified by objectUUID,\nthe receiving object requires a dataserver( key queryid, string data ) in a contained script(s).\nThe queryid passed will be the id of the calling object.\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 541 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetNotecard", "s", "s", "string osGetNotecard(string name)\nReads the entire notecard and return its data as a string.\n(OpenSim only.)"));
542 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osMakeNotecard", NULL, "sl", "osMakeNotecard(string notecardName, list contents)\nWrite a Notecard contained in Prim with contents of list\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 542 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetNumberOfNotecardLines", "i", "s", "integer osGetNumberOfNotecardLines(string name)\nReturns total number of lines in a notecard.\n(OpenSim only.)"));
543 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetNotecardLine", "s", "si", "string osGetNotecardLine(string name, int line)Replaces LL Dataserver event to pull notecard data,\nReads the requested line and return its data as a string\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 543 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osAvatarName2Key", "s", "ss", "string osAvatarName2Key(string firstname, string lastname)\nReturns the Avatar UUID from their firstname, lastname.\n(OpenSim only.)"));
544 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetNotecard", "s", "s", "string osGetNotecard(string name)\nReplaces LL Dataserver event to pull notecard data line by line,\nReads the entire notecard and return its data as a string.\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 544 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osKey2Name", "s", "k", "string osKey2Name(key id)\nReturns Avatar Name from their UUID key.\n(OpenSim only.)"));
545 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetNumberOfNotecardLines", "i", "s", "integer osGetNumberOfNotecardLines(string name)\nReturns total number of lines in a notecard\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 545 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetGridNick", "s", NULL, "string osGetGridNick()\nReturns Grid Nickname.\n(OpenSim only.)"));
546 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osAvatarName2Key", "s", "ss", "string osAvatarName2Key(string firstname, string lastname)\nReturns the Avatar UUID from their firstname, lastname\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 546 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetGridName", "s", NULL, "string osGetGridName()\nReturns Grid Name.\n(OpenSim only.)"));
547 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osKey2Name", "s", "k", "string osKey2Name(key id)\nReturns Avatar Name from their UUID key\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 547 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetGridLoginURI", "s", NULL, "string osGetGridLoginURI()\nReturns Grid LoginURI.\n(OpenSim only.)"));
548 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetGridNick", "s", NULL, "string osGetGridNick()\nReturns Grid Nickname\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 548 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osFormatString", "s", "sl", "string osFormatString(string str, list strings)\nReturn the string with parameters substituted into it (format comes from .NET String.Format class) in. Parameters are specified positionally.\n(OpenSim only.)"));
549 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetGridName", "s", NULL, "string osGetGridName()\nReturns Grid Name\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 549 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osMatchString", "l", "ssi", "list osMatchString(string src, string pattern, int start)\nReturn a list of matches for the pattern and its components inside the source string. The pattern is a regular expression. Each match in the result is the string that matched and its position in the source.\n(OpenSim only.)"));
550 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetGridLoginURI", "s", NULL, "string osGetGridLoginURI()\nReturns Grid LoginURI\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 550 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osLoadedCreationDate", "s", NULL, "string osLoadedCreationDate()\nReturns Creation Date from meta data of OAR.\n(OpenSim only.)"));
551 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osFormatString", "s", "sl", "string osFormatString(string str, list strings)\nReturn the string with parameters substituted into it (format comes from .NET String.Format class) in.\nParameters are specified positionally.\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 551 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osLoadedCreationTime", "s", NULL, "string osLoadedCreationTime()\nReturns Creation Time from meta data of OAR.\n(OpenSim only.)"));
552 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osMatchString", "l", "ssi", "list osMatchString(string src, string pattern, int start)Return a list of matches for the pattern and its components inside the source string.\nThe pattern is a regular expression. Each match in the result is the string that matched and its position in the source.\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 552 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osLoadedCreationID", "s", NULL, "string osLoadedCreationID()\nReturns Creation ID from meta data of OAR. Not Machine Identying.\n(OpenSim only.)"));
553 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osLoadedCreationDate", "s", NULL, "string osLoadedCreationDate()\nReturns Creation Date from meta data of OAR.\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 553 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetLinkPrimitiveParams", "l", "il", "list osGetLinkPrimitiveParams(int linknumber, list rules)\n(OpenSim only.)"));
554 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osLoadedCreationTime", "s", NULL, "string osLoadedCreationTime()\nReturns Creation Time from meta data of OAR.\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 554 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osNpcCreate", "k", "ssvk", "key osNpcCreate(string firstname, string lastname, vector position, key cloneFrom)\n(OpenSim only.)"));
555 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osLoadedCreationID", "s", NULL, "string osLoadedCreationID ()\nReturns Creation ID from meta data of OAR.\nNot Machine Identying.\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 555 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osNpcMoveTo", NULL, "kv", "key osNpcMoveTo(key npc, vector position)\n(OpenSim only.)"));
556 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetLinkPrimitiveParams", "l", "il", "list osGetLinkPrimitiveParams(int linknumber, list rules)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 556 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osNpcSay", NULL, "ks", "key osNpcSay(key npc, string message)\n(OpenSim only.)"));
557 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osNpcCreate", "k", "ssvk", "key osNpcCreate(string firstname, string lastname, LSL_Vector position, LSL_Key cloneFrom)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 557 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osNpcRemove", NULL, "k", "key osNpcRemove(key npc)\n(OpenSim only.)"));
558 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osNpcMoveTo", NULL, "kv", "key osNpcMoveTo(LSL_Key npc, LSL_Vector position)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 558 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetMapTexture", "k", NULL, "key osGetMapTexture() Returns the Map Texture UUID.\n(OpenSim only.)"));
559 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osNpcSay", NULL, "ks", "key osNpcSay(LSL_Key npc, string message)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 559 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetRegionMapTexture", "k", NULL, "key osGetRegionMapTexture(string regionName)\nReturns the Map Texture UUID for the regionName requested.\n(OpenSim only.)"));
560 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osNpcRemove", NULL, "k", "key osNpcRemove(LSL_Key npc)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 560 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetRegionStats", "l", NULL, "List osGetRegionStats()\nReturns a list of float values representing a number of region statistics (21 of the values shown in the Statistics Bar of LL-based clients).\n(OpenSim only.)"));
561 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetMapTexture", "k", NULL, "key osGetMapTexture() Returns the Map Texture UUID\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 561 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetSimulatorMemory", "i", NULL, "Integer osGetSimulatorMemory()\nReturns the Actual Amount of RAM used by the current OpenSim instance.\n(OpenSim only.)"));
562 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetRegionMapTexture", "k", NULL, "key osGetRegionMapTexture(string regionName) Returns the Map Texture UUID for the regionName requested\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 562 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osKickAvatar", NULL, "sss", "osKickAvatar(string FirstName, string LastName, string alert)\nKicks avatar from Region with an Alert Message.\n(OpenSim only.)"));
563 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetRegionStats", "l", NULL, "List osGetRegionStats() Returns a list of float values representing a number of region statistics (21 of the values shown in the Statistics Bar of LL-based clients)\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 563 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetSpeed", NULL, "kf", "osSetSpeed(key AVATAR, float SpeedModifier)\nMultiplies the normal running, walking, and flying speed of the specified avatar.\n(OpenSim only.)"));
564 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osGetSimulatorMemory", "i", NULL, "Integer osGetSimulatorMemory() Returns the Actual Amount of RAM used by the OpenSim Instance this is requested from\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 564 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osCauseDamage", NULL, "kf", "osCauseDamage(key AVATAR, float damage)\nCauses damage to specified AVATAR (UUID).\n(OpenSim only.)"));
565 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osKickAvatar", NULL, "sss", "osKickAvatar(string FirstName, string LastName, string alert) Kicks avatar from Region with an Alert Message\nhttp://opensimulator.org/wiki/OSSL_Implemented")); 565 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osCauseHealing", NULL, "kf", "osCauseHealing(key AVATAR, float healing)\nCauses Healing to specified AVATAR (UUID).\n(OpenSim only.)"));
566 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osSetSpeed", NULL, "kf", "osSetSpeed(key AVATAR, float SpeedModifier) Changes Specified Avatar (UUID) to speed up. It multiplies the running, walking, and flying of the avatar.\nhttp://opensimulator.org/wiki/OSSL_Implemented"));
567 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osCauseDamage", NULL, "kf", "osCauseDamage(key AVATAR, float damage) Causes damage to specified AVATAR (UUID)\nhttp://opensimulator.org/wiki/OSSL_Implemented"));
568 addFunction(new LLScriptLibraryFunction(10.f, 0.f, dummy_func, "osCauseHealing", NULL, "kf", "osCauseHealing(key AVATAR, float healing)Causes Healing to specified AVATAR (UUID)\nhttp://opensimulator.org/wiki/OSSL_Implemented"));
569} 566}
570 567
571LLScriptLibraryFunction::LLScriptLibraryFunction(F32 eu, F32 st, void (*exec_func)(LLScriptLibData *, LLScriptLibData *, const LLUUID &), const char *name, const char *ret_type, const char *args, const char *desc, BOOL god_only) 568LLScriptLibraryFunction::LLScriptLibraryFunction(F32 eu, F32 st, void (*exec_func)(LLScriptLibData *, LLScriptLibData *, const LLUUID &), const char *name, const char *ret_type, const char *args, const char *desc, BOOL god_only)