Jump to content

Kardargo Adamczyk

Resident
  • Posts

    174
  • Joined

  • Last visited

Everything posted by Kardargo Adamczyk

  1. code clean up integer anim_status; default { 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; } } }
  2. 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
  3. 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..
  4. 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
  5. 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
  6. 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
  7. 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
  8. 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
  9. Sure, permissions are script related, not object related, so you can ask permissions for any scripts you need in the object, there are some restrictions you need to be aware of, especially when the object is not attached. you can find those here: http://wiki.secondlife.com/wiki/LlRequestPermissions
  10. 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
  11. 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 } } }
  12. 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
  13. 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
  14. I can tweak that script... greetz, And happy hollidays. Dargo
  15. NOT *demo* That should do the trick.. \0/ Keep calm and carry on Dargo
  16. You can use BUTT, Broadcast Using This Tool... greetz \0/ Dargo
  17. 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..:)
  18. i never stated i am the creator of individual objects in the build, i did however design the layout and design of the venue.
  19. 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
  20. That is not helpful Pussycat, if you have proof of prior art then please post a picture, thank you
  21. 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.
  22. 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.
  23. 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/
×
×
  • Create New...