Jump to content

Darkie Minotaur

Resident
  • Posts

    1,663
  • Joined

  • Last visited

Everything posted by Darkie Minotaur

  1. If you put your script in a child, the touch event will only be triggered on touching this chld. If - for any reason - this won't work, you can detect which prim has been touched and only react on a touch to the one in question.
  2. Read the caveats of the collision events
  3. You should put the code you want to execute in a function and then call this function from an event handler. So much for the syntax aspects. I don't know too much about getting data to SL from java script, but when I fiddled around with it a bit, I remember that I never really managed to pass data to SL - I'm sure you can, I just decided that it's much easier with php and fsocks.
  4. That's basically what I descibed and which works fine for just getting some data from SL to a webpage - I just wanted to spare you the AJAX overhead that - as far as you described your reuirements - would be way to much and way too complicated.
  5. Lokking at the following example and explanation may help you understand.
  6. Ok - I think I understood now. It's more of an Java Script issue than a LSL issue. I haven't really tried it, but what you do is basically pulling data to a webpage using JS - and that's well possible using e.g. a frame or iFrame and with a frame.location = url command. You put the contents of your response into the body.
  7. Now you confuse me even more. What is it that works and what is it that you want to do?
  8. I'm not sure I've fully understtood: You send a piece of information to a php file you wan that piece of information to be shown on a webpage that is called from a browswer Is that what you want to do?
  9. I looked at JSON and SL a little while ago - I found this article/implentation helpful.
  10. You'd need the following steps (there are different ways, but the basic ingredients are the same ones. This one is assuming that the plattform is what you're sitting on): set a sit target set the click action to sit on a simple click in the attach event you check whether an ava sits on the plattforn. If there is an avatar you get the permission to play an animation. if the permission is granted, an accordinng event will be triggered, which you now use to play the animation and do the platform movement. Of course the are bells and whistles you can add, e.g. by unsitting the ava as soon as the elevator has reached its target, but this should give you an idea of how to design your script.
  11. If the moving plattform is the child and is to move along the parents z axis, the script would look something like this (with the script in the child only: integer up;vector pos;default { state_entry() { pos = llGetPos(); } touch_end(integer num_detected) { if (up) { llSetPos(pos + <0,0,2>); } else { llSetPos(pos); } up = !up; }} A root doesn't inherit a childs scripts - mae sure you are actually adding the script to the child. You can only select a child in a linkset if you mark "Edit Linked Parts" in the little Edit window
  12. hast du es schon mit den tricks der phoenix leute probiert - hier unter "SL Related"? Mit den tips hatte ich immmer gute erfahrungen
  13. You shouldn't post your question as a reply to this thread - open a new one. No one is gonna look here - this is just an announcement.
  14. I'm now IP expert - the response is strange to me. I'm getting the same if I want to contact http://lifeinletters.net from SL - it works perfectly if I do it through my browser. In the first case the DNS server cannot resolve the DNS name. If I use the IP from SL, I do get an response. I really don't know wnough about the DNS to be able to tell the possible reasons for that - but I'm sure other here do.
  15. You can always make the resetting part of your script - I'm not sure if that is what you want. But there are the commands llResetScript and llResetOtherScript that you can use to reset the scripts in your object - or to let your customer reset your script through e.g. a dialog option.
  16. I'm not sure if I understand you correctly, but of course you can use llGetNotecardLine to read the lines in any order. There are many examplesa out there where programmers have sprcific information in a specific line and read just that by providing the the line to read and not read all lines before that
  17. Still better than wild guessing I would try to pin the problem step by step. Make a very simple script and a corresponding php file in which you step by step increase the complexity of the URL to what you have now and see where the error occurs. ETA: What error do you get from the server?
  18. There is no 2k limit for requests per se - the limit is set by the webserver and can be anything.
  19. When you put your URL together, do you use llEncodeURL - it sounds as if this could be the problem. And it would be helpful to look at the lines where you put the URL together.
  20. This is a forum for scripting issues - if you look for a scripter, please post here.
  21. ... and take this discussion to Lifestyle forum
  22. Keep us informed on what happens. I would just laugh my ass off if your friend would get suspended (and maybe more) by LL and sued for fraud and theft in RL - that would really be fun!
  23. Viewer can be either third party or provided by LL. As for a bot, these are based on the code and libraries released by LL for third parties. If the interaction between student and NPC ist mostly verbal plus the possibility of selecting oher actiopns from multiple choices, you actually wouldn't need a bot. You can build the interaction logic in LSL and send verbal information uttered by the student out via HTTP, analyze it in a program written in the language of your choice and have it send back any answer you want to give to the student. The student in this case would not interact with an avatar but a SL object "which could look like a person).
×
×
  • Create New...