Phantom llSitTargets

Glen gcanaday at gmail.com
Thu Dec 4 10:14:22 PST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Uhm. Duh. I think I knew this, just... never did it.

- --GC

Stickman wrote:
>> I would, as soon as i could get them propagated in the first place!
> 
> I built an infection script a while ago based on a sample provided in
> a library somewhere. Lemme see if I can find the library thing.
> 
> Nope. Lemme explain a thing first.
> 
> The llGiveInventory()'d scripts will not be set to running. And the
> object will not realize they exist until you take the object and rerez
> it. So after it runs, you need to take it into inventory and rerez it,
> then highlight/edit it and select Tools -> Set scripts to running in
> selection
> 
> Aaand I can't log in with my current monitor setup.
> 
> Lemme clean up an old script I have local. I haven't tested this, but
> it should be close enough to working that you can fix it if it's not.
> 
> ----
> default
> {
>     state_entry()
>     {
> 
>         if ((llGetLinkNumber() < 2) && (llGetLinkNumber() != 0))// are
> we in a linked root prim?
>         {
>             integer number_of_linked_objects = llGetNumberOfPrims();
>             integer currentprim;
>             llOwnerSay("Object has " + (string)
> number_of_linked_objects + " prims.");
>             for (currentprim = 2; currentprim <=
> number_of_linked_objects; currentprim++)
>             {
>                 llGiveInventory(llGetLinkKey(currentprim), llGetScriptName());
>             }
>             llOwnerSay("Finished. Take, rerez, edit object, and select
> Tools -> Set Scripts in Selection to Running.");
> 
>             llSetSitTarget(ZERO_VECTOR, ZERO_ROTATION);
> 
>             llRemoveInventory(llGetScriptName());
>         }
>         else
>         {
>             llSetSitTarget(ZERO_VECTOR, ZERO_ROTATION);
> 
>             llRemoveInventory(llGetScriptName());
>         }
>     }
> }
> ----
> 
> Good luck!
> 
> -Stickman
> _______________________________________________
> Click here to unsubscribe or manage your list subscription:
> https://lists.secondlife.com/cgi-bin/mailman/listinfo/secondlifescripters
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkk4Hf4ACgkQLstl3vProOBFLwCbB4HhAqIqFEmf8dfQQ5VqZgZs
ligAnimbmDCLlVeJwUi44snnucVm/0F5
=0lxe
-----END PGP SIGNATURE-----


More information about the secondlifescripters mailing list