aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
2016-11-07Adjust OS script functions threat levels, and don't bother wasting time ↵David Walter Seikel1-139/+39
checking those with no threat level. Some went up, some went down. Should be more sane now.
2016-11-07Remove silly rezzing distance limits. They just make scripters work around ↵David Walter Seikel1-4/+0
them.
2016-11-07Excess white space removal.David Walter Seikel1-9/+9
2016-11-05Sleep is for the weak. No wonder the standard script engines are so slow.David Walter Seikel1-19/+0
2016-11-03Initial update to OpenSim 0.8.2.1 source code.David Walter Seikel1-95/+393
2013-01-25Restore previous client AO behaviour by not allowing them to remove the ↵Justin Clark-Casey (justincc)1-1/+1
default animation but continue to allow scripts to do so. This keeps the fix from http://opensimulator.org/mantis/view.php?id=6327 and fixes the behaviour regression in http://opensimulator.org/mantis/view.php?id=6483 Animations may still exhibit different behaviour if both scripts and clients are adjusting animations. A change in the behaviour of client AO to not remove all animations may be a better long term approach.
2012-10-26adding ability for listeners to be filtered by regular expressions and a ↵SignpostMarv1-0/+63
general-purpose function to see if a given string matches a given regex
2012-10-26Formatting and casing correction in WorldCommModule, trailing new line in ↵SignpostMarv1-1/+1
OSSL to get git diff to not complain
2012-10-25Get osNpcCreate() and osNpcLoadAppearance() to generate a script error if ↵Justin Clark-Casey (justincc)1-5/+6
appearance notecard does not exist, rather than returning UUID.Zero or silently failing.
2012-10-25When scripts generate expected exceptions (e.g. due to checked bad ↵Justin Clark-Casey (justincc)1-1/+1
parameter) throw ScriptException instead of just a plain old exception. This is to make it easier to distinguish these exceptions from unexpected OpenSimulator problems internally and in regression tests. No functional changes.
2012-10-25Make osNpcCreate() return UUID.Zero instead of throwing an exception if ↵Justin Clark-Casey (justincc)1-8/+18
notecard name is invalid. Make osNpcLoadAppearance() fail silently in same circumstance rather than throwing exception.
2012-10-10Correct osSetContentType() threat check to query osSetContentType rather ↵Justin Clark-Casey (justincc)1-1/+3
than osSetResponseType
2012-10-10Remove osDropAttachment threat level check wrongly placed in ↵Justin Clark-Casey (justincc)1-1/+0
OSSL_Api.ShoutErrorOnLackingOwnerPerms.
2012-10-02correcting typoSignpostMarv1-3/+3
2012-10-02taking into account the recent introduction of implicit operatorsSignpostMarv1-3/+1
2012-10-02added perms checking, duplicated functionality to methods that do not ↵SignpostMarv1-6/+64
require perms and have higher threat level
2012-10-02fixing copypastaSignpostMarv1-1/+1
2012-10-02implementing osDropAttachment & osDropAttachmentAtSignpostMarv1-2/+31
2012-09-08refactoring to allow Scene.GetLandData to accept Vector3 as an argument. ↵SignpostMarv1-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
2012-09-04wrapping attachment functions in a regionSignpostMarv1-0/+2
2012-09-04Implementing functing to send messages directly to attachmentsSignpostMarv1-0/+131
2012-09-04refactoring the grunt work of MessageObject into a private method with a ↵SignpostMarv1-0/+5
UUID argument
2012-09-04implementing a function to get the number of attachments wornSignpostMarv1-0/+38
2012-08-29This partially implements the LSL function to set the responseMic Bowman1-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.
2012-08-29track originating IScriptApi method for SL-like error messages. Will add ↵SignpostMarv1-1/+1
rule number tracking in next commit.
2012-08-25implementing PRIM_LINK_TARGET on GetPrimParams ala SetPrimParamsSignpostMarv1-1/+12
2012-08-25refactoring to local variable for cleaner codeSignpostMarv1-2/+5
2012-08-25since we will be making the Get return type the remaining ruleset as with ↵SignpostMarv1-1/+1
the Set return type, we need to move the original return type to a ref param
2012-08-25renaming to be similar to equivalent Set commandSignpostMarv1-2/+2
2012-08-24Revert "implementing function to allow scripts to self-replicate as if the ↵Justin Clark-Casey (justincc)1-50/+0
owner duplicated them, using the same script delay as llRezObject()" This reverts commit 2ad9d656b3a1a0c519c9599d7680f98eba7e82b8. Reverted pending consideration of associated issues.
2012-08-24implementing function to allow scripts to self-replicate as if the owner ↵SignpostMarv1-0/+50
duplicated them, using the same script delay as llRezObject()
2012-08-24Removed land checking as suggested by SignpostMarv.TBG Renfold1-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.
2012-08-24Adds osGetHealth.TBG Renfold1-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."); } }
2012-08-20Add --force flag to "kick user" console command to allow bypassing of recent ↵Justin Clark-Casey (justincc)1-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.
2012-08-18Rot2Quaternion is now redundantSignpostMarv1-1/+1
2012-08-18refactoring for Vector3 operator & constructor tweaksSignpostMarv1-13/+9
2012-08-14Prevent race conditions when one thread removes an NPC SP before another ↵Justin Clark-Casey (justincc)1-5/+20
thread has retreived it after checking whether the NPC exists.
2012-08-03refactor: rename SOG.RezzingObjectID to SOG.FromPartID to match ↵Justin Clark-Casey (justincc)1-1/+1
FromFolderID, FromItemID and to reflect that it's a SOP ID rather than a SOG ID.
2012-08-02reduced-complexity implementation of function to get rezzing object keySignpostMarv1-0/+8
Signed-off-by: Melanie <melanie@t-data.com>
2012-07-28LSL/OSSL lacks Math.Min & Math.Max implementations.SignpostMarv1-0/+28
2012-07-27Remove a couple of compiler warnings pointed out by SignpostMarvJustin Clark-Casey (justincc)1-2/+0
2012-07-20Implements a very useful OSSL function to test a string to seeMic Bowman1-0/+14
if it is a UUID. The function is osIsUUID(). Thanks SignpostMarv!
2012-07-16sending more user-friendly messages to the script error window rather than ↵SignpostMarv1-1/+14
the thrown exceptions. Signed-off-by: Melanie <melanie@t-data.com>
2012-07-12Remove IClientAPI.GetClientEP() in favour of existing identical ↵Justin Clark-Casey (justincc)1-6/+2
IClientAPI.RemoteEndpoint.
2012-07-11Where possible, use the system Encoding.ASCII and Encoding.UTF8 rather than ↵Justin Clark-Casey (justincc)1-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.
2012-07-09This script allows an object to be attached directly from prim inventory to ↵Justin Clark-Casey (justincc)1-3/+22
another avatar in the scene. Very useful in serious game/environment scenarios where its only allowed for trusted creators. Threat level Severe
2012-07-06Mantis 6063 osNpcTouch.Talun1-0/+35
Allow NPCS to touch obects.
2012-07-05regrade osFormatString, osMatchString and osReplaceString to VeryLow.Justin Clark-Casey (justincc)1-3/+3
I can't see that these present any real hazard to sim functioning.
2012-07-05Add OSSL function osForceAttachToAvatarFromInventory()Justin Clark-Casey (justincc)1-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.
2012-06-13In the osGetGrid functions, if the [GridInfo] section does not exist then ↵Justin Clark-Casey (justincc)1-1/+6
return "Configuration Error", as already happens if there is no GridInfoURI