xsConnectToDatabase
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
Summary
Function: xsConnectToDatabase( integer id, string user, key password, list params );Connects to database id with user ID user and password password. Also uses params for additional parameters if used.
• integer | id | – | Database ID. Must be registered with central server!. | |
• string | user | – | User ID to login to database. Must use underscores (_) instead of spaces. | |
• key | password | – | Associated ID password. Must be between 4 and 16 chars. Only numbers and letters are accepted. | |
• list | params | – | Parameters to change default settings to suit the current session. (Optional) |
Caveats
- This function causes the script to sleep for 5.0 seconds.
- This script requires the Xenon Systems Runtime File and a few code modifications to include the appropriate aliases.
- The object containing the runtime file will change its name for any notifications. However, it will change back as soon as the notification has been sent. (For example, from "Object" to "XS Runtime (Object)" and back.)
- This command, associated dependencies, and supported products are available only on the Teen Grid at the moment.
- This product is pending a DuoGrid-Compatible badge. This will make it work on the Main Grid as well.
Examples
<lsl>default {
xsConnectToDatabase(integer id, string user, key password, list params) {llMessageLinked(LINK_SET,0215,id + "~" + user + "~" + password,llDumpList2String(params,"