78 Commits

Author SHA1 Message Date
lickx
e651278a54 llGetTimeOfDay() and llGetRegionTimeOfDay based on Environment
llGetTimeOfDay() is based on the current parcel environment, while
llGetRegionTimeOfDay() is based on the region environment

With a fallback on the hardcoded way we did this if no environment module
is active
2026-02-07 15:30:31 +01:00
lickx
6f5083e5c7 Implement lxGetAgentViewer
This was an old request
2026-02-07 15:27:55 +01:00
lickx
f05f84ce9f Add the PAYMENT_* constants as well 2026-02-07 15:11:34 +01:00
UbitUmarov
d1f8d00912 update scripts syntax file 2025-05-01 19:30:52 +01:00
Vincent Sylvester
1847b6be24 Tooltips for ossl
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2025-05-01 18:54:57 +01:00
UbitUmarov
bc59e3a3e7 update script syntax 2025-04-19 20:46:27 +01:00
Adil El Farissi
c2eb8083cb Revert "Re-sync repo"
This reverts commit 1c214566f3.
2024-08-21 02:52:29 +00:00
Adil El Farissi
1c214566f3 Re-sync repo 2024-08-21 00:20:35 +00:00
Adil El Farissi
90618dc4d5 Merge branch 'master' of https://github.com/opensim/opensim 2024-07-09 02:06:53 +00:00
Adil El Farissi
cca75c799e Update ScriptSyntax.xml 2024-07-06 19:24:50 +00:00
Adil El Farissi
fb1d5619a1 Update ScriptSyntax.xml 2024-07-05 20:05:13 +00:00
Adil El Farissi
1d01e37a67 Update ScriptSyntax.xml 2024-07-05 19:31:35 +00:00
UbitUmarov
0923ed6f4d update ScriptSyntax 2024-06-23 21:58:00 +01:00
Adil El Farissi
cc79aa0c23 Add selfsigned certificates support to Robust and osGetLinkInventoryKeys plus some fixes 2024-03-29 03:56:03 +00:00
AdilElFarissi
88704a641f Merge branch 'opensim:master' into master 2024-03-26 22:16:17 +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
Adil El Farissi
6629dfb95b Merge branch 'master' of https://github.com/AdilElFarissi/opensim 2024-03-19 22:32:52 +00:00
Adil El Farissi
70f7106e02 Add the missing literature in the OSSL functions tooltips 2024-03-19 22:32:43 +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
Jeff Kelley
d58f9f0f5d osGetSitTarget
Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2024-02-29 20:28:20 +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
898ab06203 Fix to mantis 9115 2024-02-24 04:22:50 +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
089037c749 update scriptsyntax.xml 2024-02-16 17:43:00 +00:00
UbitUmarov
4b99381a0d update scriptsyntax.xml 2024-02-07 02:09:55 +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
Jeff Kelley
b96ef0d00c osSetPenColor
osSetPenColor1

Signed-off-by: UbitUmarov <ajlduarte@sapo.pt>
2023-05-05 10:45:02 +01:00
UbitUmarov
f670a3aa51 update script syntax 2023-04-29 11:13:40 +01:00
UbitUmarov
0809bb7cca update script syntax 2023-04-18 18:05:32 +01:00
UbitUmarov
a2db2c7ed3 mantis 9065: rename llObjectGetLink as spec llGetObjectLink 2023-02-28 09:58:19 +00:00
UbitUmarov
3095cf3159 update script syntax 2023-02-09 12:15:44 +00:00
UbitUmarov
45beb824af add llLinkSetSoundQueueing and llLinkSetSoundRadius 2023-02-09 10:59:24 +00:00
UbitUmarov
fd2b97fc66 update script syntax 2023-02-06 18:55:29 +00:00
UbitUmarov
5ac93aaf2f update api version and script syntax 2023-01-31 17:17:33 +00:00
UbitUmarov
306df20003 update script syntax 2023-01-26 16:55:08 +00:00
UbitUmarov
37844d22ea update script syntax 2022-10-23 03:29:34 +01:00
UbitUmarov
184a2eaf75 update ScriptSyntax 2022-08-23 18:45:01 +01:00
UbitUmarov
4dbfdbc022 update ScriptSyntax.xml 2021-12-04 22:46:25 +00:00
UbitUmarov
68efbfc603 add llOrd, llChar llHash 2021-10-02 14:17:11 +01:00
Oren Hurvitz
bcbfba5149 Added osReplaceRegionEnvironment to ScriptSyntax.xml 2021-03-18 10:35:55 +02:00
Oren Hurvitz
1237b71d63 Added osNpcLookAt to ScriptSyntax.xml 2021-03-18 10:35:29 +02:00
UbitUmarov
a3b26255dd add vector variant of osSlerp; update script syntax 2021-01-06 16:32:51 +00:00
UbitUmarov
e218c2110d update script syntax 2020-10-05 20:28:33 +01:00
UbitUmarov
81c84c867d update scriptsyntax 2020-08-26 21:36:08 +01:00
UbitUmarov
5b596bb29e update script syntax 2020-06-30 13:29:42 +01:00
UbitUmarov
d1f1324a2d update scriptSyntax 2020-04-12 23:19:34 +01:00
UbitUmarov
76987fb647 ... osSetLinkStandTarget 2020-01-25 15:51:36 +00:00
UbitUmarov
8df27ba2a1 forgot again sintaxe 2020-01-25 15:32:03 +00:00