aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/OSSL_Api.cs (unfollow)
Commit message (Collapse)AuthorFilesLines
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
2012-05-26Use SceneObjectPartInventory.GetInventoryItem() in OSSL.AvatarStopAnimation ↵Justin Clark-Casey (justincc)1-14/+12
instead of searching the task inventory manually.
2012-05-25Mantis 6028 osAvatarStopAnimation not stopping animations via UUIDTalun1-7/+11
Corrected to stop animations using the animation UUID similar to llStopAnimation. See http://opensimulator.org/wiki/OsAvatarStopAnimation
2012-05-08refactor: Eliminate local id parameter from api initialize.Justin Clark-Casey (justincc)1-3/+1
This is always available from m_host.LocalId
2012-05-08Instead of constantly looking up unchanging self item in script code, pass ↵Justin Clark-Casey (justincc)1-18/+11
in self item on initialization.
2012-05-07For osGetGridNick(), osGetGridName(), osGetGridLoginURI() and ↵Justin Clark-Casey (justincc)1-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
2012-05-07remove default values from prior commit since mono cant deal with themdahlia1-1/+1
2012-05-06add OS_NPC_RUNNING option to osNpcMoveToTarget() to allow running speed for ↵dahlia1-1/+2
moving NPCs
2012-04-26OSSL: Removed check for CanRunConsoleCommand() in osKickAvatar.Oren Hurvitz1-13/+12
OSSL permissions are now controlled in OpenSim.ini.
2012-04-26Add a version of osNpcSay that takes a channel number Mantis 5747Talun1-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>
2012-04-24OSSL: fixed the threat level check for osParseJSONNewOren Hurvitz1-1/+1
2012-04-24Add osForceAttachToAvatar() and osForceDetachFromAvatar()Justin Clark-Casey (justincc)1-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.
2012-04-17refactor: Rename EstateSettings.IsEstateManager() to ↵Justin Clark-Casey (justincc)1-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.
2012-04-13Change threat level of osNpcStopMoveToTarget from Low to High to match other ↵Justin Clark-Casey (justincc)1-1/+1
NPC functions, and change OSSL permissions name to osNpcStopMoveToTarget instead of osNpcStopMoveTo Thanks to Oren Hurvitz for pointing out these mistakes.
2012-04-13Remove hardcoded god requirement from osSetRegionWaterHeight, ↵Justin Clark-Casey (justincc)1-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.
2012-04-10New OS scripting functions osSetTerrainTexture and osSetTerrainHeight as ↵Snoopy Pfeffer1-0/+55
originally proposed in SL Jira (https://jira.secondlife.com/browse/SVC-244).
2012-03-27Two new scripting functions osInviteToGroup(userID) and ↵Snoopy Pfeffer1-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.
2012-03-17Add osGetInventoryDesc() as per http://opensimulator.org/mantis/view.php?id=5927Justin Clark-Casey (justincc)1-0/+23
This allows one to get description data for a given prim inventory item. Thanks MarcelEdward and GuduleLapointe!
2012-03-10Added osGetGridGatekeeperURI()Diva Canto1-0/+14