-
Posts
174 -
Joined
-
Last visited
Content Type
Forums
Blogs
Knowledge Base
Everything posted by Kardargo Adamczyk
-
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
-
give prims equal position coordinates through dialog
Kardargo Adamczyk replied to testgenord1's topic in LSL Scripting
Absolutely spot on.. if you add a decimal to the float you need to add a character to the llGetSubString.. all good And add the + 0.01 and -0.01 to the menu ofc.. -
give prims equal position coordinates through dialog
Kardargo Adamczyk replied to testgenord1's topic in LSL Scripting
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 -
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
-
particles Particles, Help!
Kardargo Adamczyk replied to AmyPinkLegend's topic in Second Life Education and Nonprofits
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 -
Something wrong with today's restarts?
Kardargo Adamczyk replied to Maitimo's topic in Second Life Server
Yesha, same issue, unable to save scripts on a restarted sim region Helens pool message: Unable to upload (UUID) due to the following reason: Service unreachable. greetz, Dargo -
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
-
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
-
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 } } }
-
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
-
Parcel privacy control via LSL script?
Kardargo Adamczyk replied to Zak Westminster's topic in LSL Scripting
Hiya Zak, you can not directly set the parcel flags from lsl, you can only read them. I assume you can do it via a bot if you really need to. regards and happy holidays Dargo -
I can tweak that script... greetz, And happy hollidays. Dargo
-
NOT *demo* That should do the trick.. \0/ Keep calm and carry on Dargo
-
Stream music on Macintosh
Kardargo Adamczyk replied to Marianne McCann's topic in Art, Music and Photography
Did you find it?? -
Stream music on Macintosh
Kardargo Adamczyk replied to Marianne McCann's topic in Art, Music and Photography
You can use BUTT, Broadcast Using This Tool... greetz \0/ Dargo -
identifying llRegionSayTo source, the Creator's UUID
Kardargo Adamczyk replied to Xander Lopez's topic in LSL Scripting
you are looking for llGetObjectDetails http://wiki.secondlife.com/wiki/LlGetObjectDetails or, if( llList2Key(llGetObjectDetails(id,[OBJECT_OWNER]),0) == llGetOwner()) if( llList2Key(llGetObjectDetails(id,[OBJECT_CREATOR]),0) == llGetOwner()) have fun..:) -
Seriously? is this legal?
Kardargo Adamczyk replied to Kardargo Adamczyk's topic in General Discussion Forum
i never stated i am the creator of individual objects in the build, i did however design the layout and design of the venue. -
Seriously? is this legal?
Kardargo Adamczyk replied to Kardargo Adamczyk's topic in General Discussion Forum
yeah the dead ends, are no dead ends, besides that, the owner saw my design, and simply copied it.... enough said, we can close the topic, thanks everyone -
Seriously? is this legal?
Kardargo Adamczyk replied to Kardargo Adamczyk's topic in General Discussion Forum
That is not helpful Pussycat, if you have proof of prior art then please post a picture, thank you -
Seriously? is this legal?
Kardargo Adamczyk replied to Kardargo Adamczyk's topic in General Discussion Forum
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. -
Seriously? is this legal?
Kardargo Adamczyk replied to Kardargo Adamczyk's topic in General Discussion Forum
yeah well, took me 6 weeks to come up with the design, then build it, texture it and get it ready to put in place, something that is obviously impossible now because the whole idea was stolen. oh well.. a little disappointing. -
Seriously? is this legal?
Kardargo Adamczyk replied to Kardargo Adamczyk's topic in General Discussion Forum
Well yeah i build the original, lol.. and yeah i was wondering if i could do something about it, apparently not, so building another it is, thanks for the info..:) Imitation is the greatest form of flattery \0/