Jump to content

Assmay

Resident
  • Posts

    18
  • Joined

  • Last visited

Reputation

0 Neutral

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi, thanks so much ;-) - I finally got it on_rez(integer start_param) { llWhisper( -9119, "lockguard " + (string)llGetOwner() + " ankles link " + (string)llGetKey() ); } actually quite simple
  2. *smiles*... yes I know it is hard to imagine what I try to program (I´m not sure myself yet ) The only problem is that I have to use llDetectedKey with an event which starts automatically like on_rez or timer. If I try to detect the key of the owner of the attachment (in my tests me) it only comes 00000-0000-0000000-0000 back. So I need to get the key of the attachment owner with on_rez or timer or something I dont have to touch or so. Is it possible to read the key by a touch event once and after this it is resistant as a "key" or "string" in the script until it gets resetted or so?
  3. I cant use it like it is because I have to use on_rez as event. Gathering the ID only works with touch / touch_start as far as I heard. My problem is to retoggle the script after a relog and it wont work with on_rez. If the UUID is packed as a gloval value it should work I hope.
  4. Ah ok, and how can I get the owner id into a global? key owner = llGetOwner(); brings a syntax error... hmm
  5. Hi, today I tried a lot to get a lockguard script working. It is easy to get it working with touch_start but I need it working with on_rez because I want the chains still visable after the wearer of the anklets relogs. default { on_rez(integer start_param) { llWhisper( -9119, "lockguard " + (string)llDetectedKey(0) + " wrists link " + (string)llGetKey() ); } } This isnt working because GetKey doesnt work with on_rez. So I have to find a way to read the key of the wearer of this attachment (whoever wears it) during a touch_start event. Does anybody knows how I can save the wearers ID to a global value like "key wearer;"?
  6. Hi, thanks, yes I tried with sensor but somehow it wont function. Does it gives the results as keys somewhere or is it general? I can use a sensor for me but to find others it confuses me
  7. Hello ;) I´m trying to script a simple game and in this game prople have attached a kind of hat. This hat (not hud, i really mean a hat ;) ) changes color at special events - now I have the problem that only hats in 5m range around the item should change color... So I need something like "if agent range is smaller than 5m than do" operation but sensor looks complicated ;) I appreciate every hint *kiss*
  8. eek... you are completely right - now it works THANX!
  9. Hello, I´m working on a RLV script with a kind of a password to lock/unlock (good thing is everybody who knows the password can operate it, no matter if he is in a special group or so. It is bit simple - the password is actually the channel where I write the command "lock" / "unlock". Its nice, I found it on the net (main part of it) and changed it a bit only after a relog it does not work anymore (RLV restrictions wont "re-initialize". integer lockchannel=1234; //1234 = "password" :) key lockedby=NULL_KEY; default { state_entry() { llListen(lockchannel,"",lockedby,"lock"); } listen(integer chan, string name, key id, string message) { if (llGetOwnerKey(id)==llGetOwner()) { llOwnerSay("@detach=n"); llOwnerSay("@fly=n"); llSay(0,"locked" ); lockedby=id; state locked; } } } state locked { on_rez() { //here I get a error :( llOwnerSay("@detach=n"); llOwnerSay("@fly=n"); llSay(0,"locked" ); } state_entry() { llListen(lockchannel,"",lockedby,"unlock"); } listen(integer chan, string name, key id, string message) { llOwnerSay("@clear" ); llSay(0,"unlocked" ); lockedby=NULL_KEY; state default; } } I really appreciate all help :) Thanks *kiss*
  10. Hi, it seems to find each other but the arrows wont start... maybe it´s just too complicated :matte-motes-sour: Thanks for all your help anyway
  11. Yes, I should have written a better description you are absolutely right Thanks for all your work. I guess I will have to mod the last code so that they ping each other and not only one the other. I will try to integrate the sender script in the reciever script and the reciever script in the sender script. Please only warn me if I´m wrong ;D
  12. OMG, you are really the greatest - *blushes a bit* Thanks for your time and work - I really appreciate that! It works really great as long as the sender is not worn. I will try if my Idea is also possible with the sender as a not attached prim. I really underestimated the effort to make a script which connects two worn prims with particle arrows I´m so happy that you both helped me out with this scripting... I really need to learn so much more
  13. oh, that sounds complicated... I will try to fugure that out but that could take a while... thanks so far dear
  14. Do you think it could be possible by listening to a defined channel in the chat or would that be overkill? The script itself could still be used I guess only the method the loop is using must change to a "listening to channel /86654" or so... I tried to find an example script but I haven´t found one yet . Any Ideas how a simple sender / reciever script which works with a chat channel could look like (comparable with the sensor methode)? Any help is very very welcome )
  15. Thanks But with (AGENT_BY_LEGACY_NAME|PASSIVE) I have to enter the avatars name so I cannot give the prim to someone by using a giver script (without editing the script). The arrows should also hit the worn prim directly and not the pelvis of the avatar Can I place a small script in the target prim which the sender can find to send the arrows to the prim with the "target-script" in it?
×
×
  • Create New...