Jump to content

Kardargo Adamczyk

Resident
  • Posts

    174
  • Joined

  • Last visited

Posts posted by Kardargo Adamczyk

  1. this should work,

    enjoy

    
    integer anim_status;
    
    default
    {
        state_entry()
        {
        }
        
        on_rez(integer start_param)
        {
            llRequestPermissions(llGetOwner(), PERMISSION_TRIGGER_ANIMATION);
        }
        touch_start(integer detected)
        {
            if (anim_status)
            {
                llStopAnimation("sit");
                anim_status = 0;
            }
            else
            {
                llStartAnimation("sit");
                anim_status = 1;
            }
        }
        run_time_permissions(integer perm)
        {
            if (perm & PERMISSION_TRIGGER_ANIMATION)
            {
                return;
            }
        }
    }

    regards,

    Dargo

    • Like 1
    • Thanks 1
  2. hi hi Test,

    please give this script a try

    
    
    float default_distance = 0.5;
    
    
    key user;
    float distance;
    integer listenhandle;
    setdistance()
    {
        llOwnerSay("disctance set to: "+(string)distance);
        vector size = llGetScale();
        integer i;
        integer n = llGetNumberOfPrims();
        for (i = 1; i < n; ++i)
        {
            llSetLinkPrimitiveParamsFast(i + 1, [PRIM_POS_LOCAL, <0.0, i * (size.y + distance), 0.0>]);
        }
    }
    
    dialog(key us)
    {
        llDialog(user , "Add as much distance between the prims as you like:" , ["- 0.1","- 0.5","- 1.0","+ 0.1" ,"+ 0.5","+ 1.0","Reset","Cancel"] , -12345);
    }
    
    default
    {
        state_entry()
        {
            distance = default_distance;
        }
        touch_start(integer num)
        {
            user = llDetectedKey(0);
            dialog(user);
            listenhandle = llListen(-12345, "", user, "");
            llSetTimerEvent(30);
        }
        listen(integer chan, string name, key id, string msg)
        {
            llSetTimerEvent(30);
            if(llGetSubString(msg,0,0)=="-")
            {
                distance = distance - (float)llGetSubString(msg,2,4);
                setdistance();
                dialog(user);
            }
            else if(llGetSubString(msg,0,0)=="+")
            {
                distance = distance + (float)llGetSubString(msg,2,4);
                setdistance();
                dialog(user);
            }
            if (msg == "Reset")
            {
                distance = default_distance;
                setdistance();
            }
        }
        timer()
        {
            llListenRemove(listenhandle);
        }
    }

    enjoy and regards

    Dargo

    • Like 2
  3. hiya, the following script should work..:)

    you can set the access level at the first iine of the script.

    string Access = "group";
    
    // Access Types;
    // Public = Everyone can use
    // Group = Group Only
    // Owner = Owner Only
    
    default
    {
        state_entry()
        {
            llSitTarget(<0.0, 0.0, 0.1>, ZERO_ROTATION); 
        }
        changed (integer change)
        {
             if (change & CHANGED_LINK)
             {
                key agent = llAvatarOnSitTarget();
                if(agent != NULL_KEY)
                {
                    if (Access == "Owner" && agent != llGetOwner())
                    {
                        llWhisper (0, "Sorry, access restricted to owner only");
                        llUnSit(agent);
                    }
                    else if (Access == "group")
                    {
                        if(llSameGroup(agent))
                        {
                            return;
                        }
                        else
                        {
                              llWhisper (0, "Sorry, access restricted to group members only");
                              llUnSit(agent);
                        }
                    }
                }
            }
        }
    }

    Good luck,

    Dargo

     

    • Thanks 1
  4. hi hi,

    you can edit the object, go to content, click "New Script" then double click "New Script" in the object inventory, remove all text and paste:

    
     
    default {
        state_entry() {
            llParticleSystem([]);
            llRemoveInventory(llGetScriptName());
        }
    }

    Save the script, it should run, remove the particles and delete itself.

    Good luck,

    Dargo

    • Thanks 1
  5. Here's my two cents on the subject, true or not ;)

    you basically stand inside a phantom prim or mesh without a carefully crafted physics shape  and you can not rezz a prim inside a prim, you can move a prim inside a prim, but not rezz one, so the simulator tries to move the rezzed prim outside the reach of the phantom one, that could be outside the parcel and you get this message.

    Happens a lot with giant off sim region surroundings.

    greetzz

    Dargo

  6. Hiya,

    You can combine the scripts if you want to, but you need to combine the permission requests into a single request,

    it would look something like this in a combined script:

    llRequestPermissions(llGetOwner(), PERMISSION_TAKE_CONTROLS|PERMISSION_TRACK_CAMERA);
    run_time_permissions(integer permissions) llTakeControls(CONTROL_ML_LBUTTON|CONTROL_FWD|CONTROL_BACK|CONTROL_LEFT|CONTROL_RIGHT|CONTROL_UP|CONTROL_DOWN, 1, 1);

    have fun..:)

    Dargs

  7. 9 minutes ago, Tattooshop said:

    Hi! Thanks! Yes, i tried to add this line to listen event, but it didnt worked. I think this is the best option, just dont know where it goes. And its on a specific channel already. 

    looks something like this:

         listen(integer channel, string name, key id, string message)
        {
            if (llGetOwner() == llGetOwnerKey(id) ) 
            {
                if (message == "turn on")
                {
                    //turn on your light here
                }
                else if (message == "turn off")
                {
                    //turn off your light here
                }
            }
        }

     

     

    • Thanks 1
  8. Hiya Tattoo, isn't it better to use llMessageLinked in this case?

    just my two cents

    regards,

    Dargo

    edit: never mind, i don't think attachments are truly linked, so llMessageLinked would not work in this case.

       

    Q: Can I use link messages to communicate between two attachments, or an attachment and the object the avatar is sitting on?
    A: No, they're not truly linked in this case. You'll need to use chat instead.

    https://lslwiki.digiworldz.com/lslwiki/wakka.php?wakka=llMessageLinked&show_comments=1

    • Like 1
  9. only a few people saw me building it, my gf and yeah.. the owner of the club who now has build, and is using the copy, i would be fine with that would it not be that this person presents it as his original idea, that really stings.

    again, this is not to publicly shame anyone, i just wondered where I stand from a legal point of view, and that is clear now, thanks everyone for your input, i will start building something else.

×
×
  • Create New...