aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs (follow)
Commit message (Collapse)AuthorAgeFilesLines
* refactoring to allow Scene.GetLandData to accept Vector3 as an argument. ↵SignpostMarv2012-09-081-1/+1
| | | | Note that the prior work on LSL_Vector implicit operators means one does not need to explicitly cast a LSL_Vector to Vector3
* wrapping attachment functions in a regionSignpostMarv2012-09-041-0/+2
|
* Implementing functing to send messages directly to attachmentsSignpostMarv2012-09-041-0/+131
|
* refactoring the grunt work of MessageObject into a private method with a ↵SignpostMarv2012-09-041-0/+5
| | | | UUID argument
* implementing a function to get the number of attachments wornSignpostMarv2012-09-041-0/+38
|
* This partially implements the LSL function to set the responseMic Bowman2012-08-291-1/+17
| | | | | | | | type for an HTTP request. Since the "official" LSL function limits the use of the response type, it is implemented as osSetContentType with a string for the content mime type and a threat level of high. With this function you should be able to implement rather functional media-on-a-prim application with much less difficulty.
* track originating IScriptApi method for SL-like error messages. Will add ↵SignpostMarv2012-08-291-1/+1
| | | | rule number tracking in next commit.
* implementing PRIM_LINK_TARGET on GetPrimParams ala SetPrimParamsSignpostMarv2012-08-251-1/+12
|
* refactoring to local variable for cleaner codeSignpostMarv2012-08-251-2/+5
|
* since we will be making the Get return type the remaining ruleset as with ↵SignpostMarv2012-08-251-1/+1
| | | | the Set return type, we need to move the original return type to a ref param
* renaming to be similar to equivalent Set commandSignpostMarv2012-08-251-2/+2
|
* Revert "implementing function to allow scripts to self-replicate as if the ↵Justin Clark-Casey (justincc)2012-08-241-50/+0
| | | | | | | | owner duplicated them, using the same script delay as llRezObject()" This reverts commit 2ad9d656b3a1a0c519c9599d7680f98eba7e82b8. Reverted pending consideration of associated issues.
* implementing function to allow scripts to self-replicate as if the owner ↵SignpostMarv2012-08-241-0/+50
| | | | duplicated them, using the same script delay as llRezObject()
* Removed land checking as suggested by SignpostMarv.TBG Renfold2012-08-241-12/+2
| | | | | | | Now whatever remaining health the avatar has is displayed (float). This will be 100% (100.000000) if no damage has occurred (as what the viewer should really be seeing anyway). Returns -1.000000 if the avatar is not found.
* Adds osGetHealth.TBG Renfold2012-08-241-0/+21
| | | | | | | | | | | | | | | | | Returns the amount of health (in an integer) that an avatar has left in the scene. If an avatar is not found or safe is enabled on a region, -1 is returned. Example usage: default { touch_end(integer _t) { key agentID = llDetectedKey(0); osCauseDamage(agentID, 50); llSay(0, llKey2Name(agentID) + " has " + (string)osGetHealth(agentID) + "% health left."); } }
* Add --force flag to "kick user" console command to allow bypassing of recent ↵Justin Clark-Casey (justincc)2012-08-201-2/+2
| | | | | | | | | race condition checks. This is to allow a second attempt to remove an avatar even if "show connections" shows them as already inactive (i.e. close has already been attempted once). You should only attempt --force if a normal kick fails. This is partly for diagnostics as we have seen some connections occasionally remain on lbsa plaza even if they are registered as inactive. This is not a permanent solution and may not work anyway - the ultimate solution is to stop this problem from happening in the first place.
* Rot2Quaternion is now redundantSignpostMarv2012-08-181-1/+1
|
* refactoring for Vector3 operator & constructor tweaksSignpostMarv2012-08-181-13/+9
|
* Prevent race conditions when one thread removes an NPC SP before another ↵Justin Clark-Casey (justincc)2012-08-141-5/+20
| | | | thread has retreived it after checking whether the NPC exists.
* refactor: rename SOG.RezzingObjectID to SOG.FromPartID to match ↵Justin Clark-Casey (justincc)2012-08-031-1/+1
| | | | FromFolderID, FromItemID and to reflect that it's a SOP ID rather than a SOG ID.
* reduced-complexity implementation of function to get rezzing object keySignpostMarv2012-08-021-0/+8
| | | | Signed-off-by: Melanie <melanie@t-data.com>
* LSL/OSSL lacks Math.Min & Math.Max implementations.SignpostMarv2012-07-281-0/+28
|
* Remove a couple of compiler warnings pointed out by SignpostMarvJustin Clark-Casey (justincc)2012-07-271-2/+0
|
* Implements a very useful OSSL function to test a string to seeMic Bowman2012-07-201-0/+14
| | | | | | if it is a UUID. The function is osIsUUID(). Thanks SignpostMarv!
* sending more user-friendly messages to the script error window rather than ↵SignpostMarv2012-07-161-1/+14
| | | | | | the thrown exceptions. Signed-off-by: Melanie <melanie@t-data.com>
* Remove IClientAPI.GetClientEP() in favour of existing identical ↵Justin Clark-Casey (justincc)2012-07-121-6/+2
| | | | IClientAPI.RemoteEndpoint.
* Where possible, use the system Encoding.ASCII and Encoding.UTF8 rather than ↵Justin Clark-Casey (justincc)2012-07-111-2/+1
| | | | | | | constructing fresh copies. The encodings are thread-safe and already used in such a manner in other places. This isn't done where Byte Order Mark output is suppressed, since Encoding.UTF8 is constructed to output the BOM.
* This script allows an object to be attached directly from prim inventory to ↵Justin Clark-Casey (justincc)2012-07-091-3/+22
| | | | | | | another avatar in the scene. Very useful in serious game/environment scenarios where its only allowed for trusted creators. Threat level Severe
* Mantis 6063 osNpcTouch.Talun2012-07-061-0/+35
| | | | Allow NPCS to touch obects.
* regrade osFormatString, osMatchString and osReplaceString to VeryLow.Justin Clark-Casey (justincc)2012-07-051-3/+3
| | | | I can't see that these present any real hazard to sim functioning.
* Add OSSL function osForceAttachToAvatarFromInventory()Justin Clark-Casey (justincc)2012-07-051-1/+53
| | | | | | | This works like osForceAttachToAvatar() but allows an object to be directly specified from the script object's inventory rather than forcing it to be rezzed in the scene first. Still only attaches objects to the owner of the script. This allows one to bypass the complicated co-ordination of first rezzing objects in the scene before attaching them. Threat level high.
* In the osGetGrid functions, if the [GridInfo] section does not exist then ↵Justin Clark-Casey (justincc)2012-06-131-1/+6
| | | | return "Configuration Error", as already happens if there is no GridInfoURI
* Use SceneObjectPartInventory.GetInventoryItem() in OSSL.AvatarStopAnimation ↵Justin Clark-Casey (justincc)2012-05-261-14/+12
| | | | instead of searching the task inventory manually.
* Mantis 6028 osAvatarStopAnimation not stopping animations via UUIDTalun2012-05-251-7/+11
| | | | | Corrected to stop animations using the animation UUID similar to llStopAnimation. See http://opensimulator.org/wiki/OsAvatarStopAnimation
* refactor: Eliminate local id parameter from api initialize.Justin Clark-Casey (justincc)2012-05-081-3/+1
| | | | This is always available from m_host.LocalId
* Instead of constantly looking up unchanging self item in script code, pass ↵Justin Clark-Casey (justincc)2012-05-081-18/+11
| | | | in self item on initialization.
* For osGetGridNick(), osGetGridName(), osGetGridLoginURI() and ↵Justin Clark-Casey (justincc)2012-05-071-8/+10
| | | | | | osGetGridCustom(), try to read from the [GridInfoService] section on standalone rather than [GridInfo] [GridInfoService] is the section that's actually in bin/config-include/StandaloneCommon.ini.example
* remove default values from prior commit since mono cant deal with themdahlia2012-05-071-1/+1
|
* add OS_NPC_RUNNING option to osNpcMoveToTarget() to allow running speed for ↵dahlia2012-05-061-1/+2
| | | | moving NPCs
* OSSL: Removed check for CanRunConsoleCommand() in osKickAvatar.Oren Hurvitz2012-04-261-13/+12
| | | | OSSL permissions are now controlled in OpenSim.ini.
* Merge branch 'master' of /home/opensim/var/repo/opensimBlueWall2012-04-261-1/+29
|\
| * OSSL: fixed the threat level check for osParseJSONNewOren Hurvitz2012-04-241-1/+1
| |
| * Add osForceAttachToAvatar() and osForceDetachFromAvatar()Justin Clark-Casey (justincc)2012-04-241-0/+28
| | | | | | | | | | | | These behave identically to llAttachToAvatar() and llDetachFromAvatar() except that they do not enforce the PERMISSION_ATTACH check Intended for use in completely controlled dedicated environments where these checks are more a UI hinderance than a help. Threat level high.
* | Add a version of osNpcSay that takes a channel number Mantis 5747Talun2012-04-261-1/+40
|/ | | | | | | | | | | osNpcSay(UUID npc, string message) left untouched New functions:- osNpcSay(UUID npc, int channel, string message) osNpcShout(UUID npc, int channel, string message) osNpcWhisper(UUID npc, int channel, string message) Signed-off-by: BlueWall <jamesh@bluewallgroup.com>
* refactor: Rename EstateSettings.IsEstateManager() to ↵Justin Clark-Casey (justincc)2012-04-171-1/+1
| | | | | | | EstateSettings.IsEstateManagerOrOwner() to reflect what it actually does. This makes it consistent with other parts of OpenSimulator that are treating ESTATE_MANAGER and ESTATE_OWNER as different entities. As per opensim-dev mailing list.
* Change threat level of osNpcStopMoveToTarget from Low to High to match other ↵Justin Clark-Casey (justincc)2012-04-131-1/+1
| | | | | | NPC functions, and change OSSL permissions name to osNpcStopMoveToTarget instead of osNpcStopMoveTo Thanks to Oren Hurvitz for pointing out these mistakes.
* Merge branch 'master' of ssh://opensimulator.org/var/git/opensimJustin Clark-Casey (justincc)2012-04-131-0/+55
|\
| * New OS scripting functions osSetTerrainTexture and osSetTerrainHeight as ↵Snoopy Pfeffer2012-04-101-0/+55
| | | | | | | | originally proposed in SL Jira (https://jira.secondlife.com/browse/SVC-244).
* | Remove hardcoded god requirement from osSetRegionWaterHeight, ↵Justin Clark-Casey (justincc)2012-04-131-36/+25
|/ | | | | | | | osSetRegionSunSettings and, osSetEstateSunSettings no matter the threat level. Change threat level on osSetRegionSunSettings and osSetEstateSunSettings from nuisance to high to match similar functions. If you had enabled these functions but had relied on the hardcoded god check in the code, then please adjust your OSSL permissions config. Thanks to Oren Hurvitz for pointing this out.
* Two new scripting functions osInviteToGroup(userID) and ↵Snoopy Pfeffer2012-03-271-0/+69
| | | | osEjectFromGroup(userID) that invite/eject users to/from groups the object containing the script is set to. These functions also work for closed groups.