Commit Graph

428 Commits

Author SHA1 Message Date
Vincent Sylvester
d3cf429c4c llGetVisualParams
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2025-04-11 15:28:40 +01:00
Vincent Sylvester
587b19c76b llListFindListNext
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2025-04-11 14:56:54 +01:00
UbitUmarov
7d47398802 bad merge.. 2025-04-11 08:50:25 +01:00
Vincent Sylvester
ae4ea576d5 llGetHealth
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2025-04-11 08:08:06 +01:00
Vincent Sylvester
6eab3e6efb llGetSimStats
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2025-04-11 07:51:12 +01:00
Vincent Sylvester
f42fd1c552 llGetInventoryDesc
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2025-04-11 07:25:06 +01:00
UbitUmarov
bde18322eb add LSL_Integer osListFindListNext(LSL_List src, LSL_List test, LSL_Integer lstart, LSL_Integer lend, LSL_Integer instance), like ll one but with search restricted to a substring. Untested, sorry 2025-04-04 01:30:41 +01:00
UbitUmarov
e681e1f09a add llGetLinkSitFlags and dummy llSetLinkSitFlags 2025-02-07 22:04:01 +00:00
UbitUmarov
cb1c8000a1 missing file 2024-11-22 04:02:41 +00:00
Adil El Farissi
ac9ed3d5d1 Add selfsigned certificates support to Robust and osGetLinkInventoryKeys plus some fixes 2024-08-16 22:59:25 +01:00
Sue Cripter
0bf18539b5 Add llGetNotecardLineSync 2024-07-04 00:10:29 +02:00
UbitUmarov
cc1227364c add llDerezObject(..) 2024-06-23 21:54:46 +01:00
UbitUmarov
ecdc979687 oops it is sRGB not linear, so rename to osTemperature2sRGB 2024-06-04 09:46:11 +01:00
UbitUmarov
1d9d39328d add osTemperatureToLinearColor() 2024-06-04 09:05:03 +01:00
UbitUmarov
270427ba2a add vector osGetLinkColor(LSL_Integer linknum, LSL_Integer face) 2024-05-18 22:17:10 +01:00
UbitUmarov
25dcfa8b4e change llAtan2 arguments order to (y,x) to match standard documentation 2024-04-12 22:14:54 +01:00
UbitUmarov
e918888e30 add llGetCameraAspect and llGetCameraFOV 2024-03-28 15:34:03 +00:00
UbitUmarov
782bad9944 and rename it again as just osGetLinkInventoryKey, so it is coerent with llGetInventoryKey (mantis 9119) 2024-03-26 18:32:05 +00:00
UbitUmarov
7c63ff1150 rename new osGetLinkInventoryItemKey as osGetLinkInventoryItemAssetKey 2024-03-24 11:34:23 +00:00
Jeff Kelley
1aa7bea608 osGetLinkInventoryAssetKey
deleted:    bin/System.Drawing.Common.dll

Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2024-03-24 11:25:09 +00:00
UbitUmarov
6afa7d564b same for osGetLinkInventoryItemKeys 2024-03-05 19:04:36 +00:00
UbitUmarov
c618c4a6c4 rename the new osGetInventoryKeys as osgetinventoryitemkeys and osgetlinkinventorykey as osgetinventoryitemkey for coerence and to make clear that key means the item key within prim inventory and not its asset key as in ll funtion 2024-03-05 18:51:42 +00:00
UbitUmarov
97b03f76c7 fix the last patch 2024-02-29 20:40:42 +00:00
UbitUmarov
18ec6d6380 cosmetics 2024-02-26 18:07:50 +00:00
Adil El Farissi
60214e6e81 Add 2 OSSL functions to the LinkInventory collection
Add Functions:
+ osGiveLinkInventoryList(integer linkNumber, key destination, string category, list inventory)
Give a group of items located in a child prim inventory

+ osRemoveLinkInventory(integer linkNumber, string name)
Remove an item from a child prim inventory

LSL Script example:
<pre><code>
default
{
    touch_start(integer a){

        integer linkNumber = llDetectedLinkNumber(0);
        list linkInventoryNames = osGetLinkInventoryNames(linkNumber, INVENTORY_ALL);
        osGiveLinkInventoryList(linkNumber, llDetectedKey(0), llGetLinkName(linkNumber), linkInventoryNames);

        for(integer i = 0; i < llGetListLength(linkInventoryNames); i++){
            osRemoveLinkInventory(linkNumber, llList2String(linkInventoryNames, i));
        }
    }
}
</code></pre>
2024-02-25 07:14:49 +00:00
Adil El Farissi
db80781e7d Basic implementation of AES encryption/decryption and respective OSSL functions
Add methods:
+ private static string AESEncryptString(string secret, string plainText, string ivString= null)
AES Encrypt a string using a password and a random or custom Initialization Vector.

+ private static string AESDecryptString(string secret, string encryptedText, string ivString= null)
AES Decrypt the string encrypted by AESEncryptString with the same password and ivString used in the encryption.

Methods implementations:
+ Util.AESEncrypt(string secret, string plainText)
+ Util.AESDecrypt(string secret, string encryptedText)
+Util.AESEncryptTo(string secret, string plainText, string ivString)
+ Util.AESDecryptFrom(string secret, string encryptedText, string ivString)

OSSL functions as first case of use:
+ osAESEncrypt(string secret, string plainText)
+ osAESDecrypt(string secret, string encryptedText)
+ osAESEncryptTo(string secret, string plainText, string ivString)
+ osAESDecryptFrom(string secret, string encryptedText, string ivString)

LSL script example:
<pre><code>
string plainText = "Hello World :)";
string secret = "#!qUeRtY$@123^456€!#";

default
{
    touch_start(integer i)
    {
        string encryptedText = osAESEncrypt(secret, plainText);
        llOwnerSay("\nEncrypted with osAESEncrypt:\n"+ encryptedText);
        string decryptedText = osAESDecrypt(secret, encryptedText);
        llOwnerSay("\nDecrypted with osAESDecrypt:\n"+ decryptedText);

        // Encription / Decription with custom Initialization Vector.
        string ivString = (string)llGetOwner() /* +"_"+ llGenerateKey() */;
        string encryptedToText = osAESEncryptTo(secret, plainText, ivString);
        llOwnerSay("\nEncrypted with osAESEncryptTo:\n"+ encryptedToText);
        string decryptedFromText = osAESDecryptFrom(secret, encryptedToText, ivString);
        llOwnerSay("\nDecrypted with osAESDecryptFrom:\n"+ decryptedFromText);
    }
}
</code></pre>

Web Rain :)
2024-02-23 21:14:33 +00:00
Adil El Farissi
ca722ecdd8 Add some OSSL functions related to child prims inventory manipulations
Add functions:

+ osGiveLinkInventory(integer linkNumber, key destination, string inventory)
Give an item located in a child prim inventory.

+ osGetInventoryNames(integer type)
Return a list of items names by type (or INVENTORY_ALL) located in the prim inventory.

+ osGetLinkInventoryNames(integer linkNumber, integer type)
Return a list of items names by type (or INVENTORY_ALL) located in a child prim inventory.

+ osGetInventoryKeys(integer type)
Return a list of the items UUIDs by type (or INVENTORY_ALL) located in the prim inventory.

+ osGetLinkInventoryKeys(integer linkNumber, integer type)
Return a list of the items UUIDs by type (or INVENTORY_ALL) located in a child prim inventory.

+ osGetLinkInventoryKey(integer linkNumber, string name)
Return the UUID of the specified item name located in a child prim inventory.

+ osGetLinkInventoryDesc(integer linkNumber, string itemNameorid)
Return the description of an item located in a child prim inventory.

+ osGetLinkInventoryName(integer linkNumber, key itemId)
Return the name of an item located in a child prim inventory.

Note: the LinkInventory functions don't have access to the root prim contents. This may change if requested by the community...
2024-02-20 17:36:33 +00:00
UbitUmarov
4e2bea288a add llIsFriend 2024-02-16 17:17:59 +00:00
UbitUmarov
2e26b8a8bb add LinksetData support. Untested and still does not store in dbs. Not as spec. See mantis 9081 (runprebuild) 2024-02-06 23:45:11 +00:00
UbitUmarov
2849e57920 add osGetPrimCount([key primKey]) and osGetSittingAvatarsCount([key primkey]) that just do want name says unlike ll mess, absent primKey argument means current linkset 2023-06-14 22:45:37 +01:00
UbitUmarov
52bd6a443e make llLinkPlaySound() closer to spec 2023-05-31 19:27:43 +01:00
Jeff Kelley
b96ef0d00c osSetPenColor
osSetPenColor1

Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2023-05-05 10:45:02 +01:00
UbitUmarov
35962d8c39 add llListFindStrided; llListFindList change to be more as spec 2023-04-29 11:06:35 +01:00
UbitUmarov
7dbedecd88 add LSL llLinear2sRGB and llsRGB2Linear 2023-04-28 01:55:35 +01:00
UbitUmarov
549ebc1025 add old llList2ListStrided renamed osOldList2ListStrided to easy any possible script fixes 2023-04-27 22:15:19 +01:00
UbitUmarov
46831b086e add llList2ListSlice 2023-04-27 21:55:55 +01:00
UbitUmarov
7b7071f778 fix bad c&p 2023-04-26 21:05:16 +01:00
UbitUmarov
4c061a0602 add llListSortStrided and osListSortInPlaceStrided 2023-04-26 20:26:01 +01:00
UbitUmarov
93e06f87f6 add list osGetParcelIDs() and key osGetParcelID(), plus a few changes to previus commits 2023-04-16 20:00:35 +01:00
UbitUmarov
a2db2c7ed3 mantis 9065: rename llObjectGetLink as spec llGetObjectLink 2023-02-28 09:58:19 +00:00
UbitUmarov
45beb824af add llLinkSetSoundQueueing and llLinkSetSoundRadius 2023-02-09 10:59:24 +00:00
UbitUmarov
44b4fe523b add llLinkAdjustSoundVolume, llLinkPlaySound and llLinkStopSound 2023-02-06 18:55:06 +00:00
UbitUmarov
6a2d9e8ec3 mantis 9056: add llReplaceSubString() 2023-01-31 17:16:33 +00:00
Jeff Kelley
1e3cbd42ba add llGetInventoryAcquireTime
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2023-01-26 14:48:01 +00:00
UbitUmarov
a28c875ce4 add llSHA256String() same as osSHA256 2022-10-22 14:10:07 +01:00
UbitUmarov
0d35531200 add llObjectGetLinkKey(...) 2022-10-22 12:13:44 +01:00
UbitUmarov
e78caeeac8 add explicit osMakeNotecard(string notecardName, LSL_String contents) so it does not depend on implicit cast from string to list, as before 2022-01-06 20:42:50 +00:00
UbitUmarov
74a0bb3837 simplify combatmodule npc kill check 2021-10-24 21:06:42 +01:00
UbitUmarov
68efbfc603 add llOrd, llChar llHash 2021-10-02 14:17:11 +01:00
UbitUmarov
916e981214 precision issues 2021-09-16 17:28:03 +01:00