[Opensim-users] How to get scripts to run in Diva
Fleep Tuque
fleep513 at gmail.com
Tue May 17 13:00:39 UTC 2011
In my experience there's no guarantee that a script that works in SL will
work in opensim. Also as other have mentioned, making sure the very first
line of the script in opensim is blank is very important.
My team has spent some time trying to vet the scripts that we use frequently
and make the necessary changes to ensure they also work in opensim, feel
free to grab them at http://fleep.wikispaces.com/Scripts - the ones marked
(OS) have been tested to work in opensim.
If you want to grab specific categories of scripts or otherwise avoid all
the copying and pasting, I also have iar files available at
http://fleepgrid.com/store/.
- Chris/Fleep
Chris M. Collins (SL: Fleep Tuque)
Project Manager, UC Second Life
Second Life Ambassador, Ohio Learning Network
UCit Instructional & Research Computing
University of Cincinnati
406E Zimmer Hall
PO Box 210088
Cincinnati, OH 45221-0088
(513)556-3018
chris.collins at uc.edu
UC Second Life: http://homepages.uc.edu/secondlife
OLN Second Life: http://www.oln.org/emerging_technologies/emtech.php
On Tue, May 17, 2011 at 6:42 AM, Garmin Kawaguichi <
garmin.kawaguichi at magalaxie.com> wrote:
> Don't forget to add an empty line at the beginning of the script as in
> the example below
>
> GCI
>
> ----- Original Message -----
> *From:* Kay McLennan <mclennan.kay at gmail.com>
> **
> //
> //"Teleport Script NEW" by Rupudiator quann
> key lastAVkey = NULL_KEY;
> string fltText = "Next Floor";
> vector dest = <109.000,115.000,42.625>; // X Y Z coordinates
> init()
> {
> llSetSitText("Teleport");
> llSetText(fltText, <1,1,1>, 1);
> llSitTarget(dest-llGetPos(), <0,0,0,1>);
> }
> default
> {
> state_entry()
> {
> init();
> }
> touch_start(integer i)
> {
> init();
> }
> changed(integer change)
> {
> key currentAVkey = llAvatarOnSitTarget();
> if (currentAVkey != NULL_KEY && lastAVkey == NULL_KEY)
> {
> lastAVkey = currentAVkey;
> if (!(llGetPermissions() & PERMISSION_TRIGGER_ANIMATION))
>
> llRequestPermissions(currentAVkey,PERMISSION_TRIGGER_ANIMATION);
> llSleep(0.5);
> llUnSit(currentAVkey);
> llStopAnimation("sit");
> llResetScript();
> }
> }
> }
>
>
>
>
> _______________________________________________
> Opensim-users mailing list
> Opensim-users at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/opensim-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://opensimulator.org/pipermail/opensim-users/attachments/20110517/48edfab8/attachment.html>
More information about the Opensim-users
mailing list