Thank you for your interest in the "Script Library" by .Shuggles.
The Script Library contains some useful functions I often need in my
scripts. I'm pretty sure they can be helpful to other scripters as
well. Just copy the necessary functions to your scripts to use them.
The Script Library is full perm and given for free. It's licensed under
the BSD license with the addition that is must not be resold standalone
in parts or as whole. All functions can be used freely in your scripts
as long as these license conditions are met. It also contains some script
examples from the Second Life Wiki. The copyright on those remains with
the appropriate authors. The authorship is marked in the script as comment
to the affected functions.
All scripts are delivered in a box so they don't interfere with the vendor.
The box itself is copy only, but the scripts inside have the specified permissions.
To unpack, just attach the box, it will deliver the contents to your inventory.
If you rez the box, it will ask you for permission to temporarily attach to you.
Please check if the dialog boxes asking or giving you something hide behind the
inventory window or other windows. You can also use the box to test the script:
The Script Library contains a small testframe to test some typical usecases
and special cases of the included functions. To try, just rez and touch the box.
Check the output manually. Be sure to verify your usecases as well. No guarantee
is given the provided functions will work in every scenario, although the best
effort was taken to make them work properly.
I don't do refunds, of course, since the item is full perm and free.
Please feel free to report bugs and to express feature requests.
If you find some functions to be useful to you, positive feedback or
a review on the SL Marketplace is welcome, too ^^
Included in the package:
- [.Shuggles.] Script Library v0.49 with
`-- Shui_Script_Library v0.49
- [.Shuggles.] Script Library Readme
- [.Shuggles.] Script Library Image
- [.Shuggles.] Store Landmark
Provided functions:
- get legacy name of an agent with a given ID, but without " Resident"
- get display name of an agent with a given ID, or legacy name if only ??? can be read
- get first name of an agent with a given ID (using display name if possible, otherwise legacy name)
- get combined display and legacy name of an agent with a given ID
- get about name URL of an agent with a given ID (suitable for display in the viewer)
- replace all occurences of one string in another (in 2 different implementations)
- round floats and vectors with a specified precision, returned as string
- get whether a given string is a vector or a rotation
- check the VM the script is running on (Mono or LSO)
- get a list of an object's inventory items of a given type
- get number of prims of an object (without seated avatars) and number of seated avatars
- create random listener channels or channels based on a given UUID
- show a dialog with buttons ordered correctly
- get whether a given year is a leap year
- get number of days in a given month of a given year
- get numeric day of year for a given date, starting with 1
Changelog:
- v0.47 ... Initial release version
- v0.48 ... Added shuiShowDialog
- v0.49 ... Added shuiIsMonoVM and some optimizations
- Handling display names
- Date functions
- String functions
- Rounding functions
- Full perm, BSD license