Jump to content

Sending a non changing message to an object in another sim


steph Arnott
 Share

You are about to reply to a thread that has been inactive for 3945 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Two methods come to mind.

One is sending an email, which you can do if you know the UUID of the object. http://wiki.secondlife.com/wiki/LlEmail Note that it has a 20 second delay, and there is a limit to how many/fast you can send them.

Note that email requires a way to receive the UUID in the first place. You can manually input it, but the object's UUID will change whenever it is rerezzed. Thus, while being fairly simple, this method has some hard-coded or less dynamic methods to it.

Two is using the http functions. You can use llRequestURL to get a URL that the other object can access. http://wiki.secondlife.com/wiki/Category:LSL_HTTP

For HTTP communications, you can use some sort of "LSL DNS" system, which requires an external server. There are some free ones set up that you could tap into, I believe. A quick serch shows this page: http://wiki.secondlife.com/wiki/Public_Object_DNS Which, if is not the answer, will lead you towards the answer.

So HTTP can be entirely automated even after rerezzing things, but setting it up as such is way more involved than just sending an email.

Hope that helps!

Link to comment
Share on other sites

4 ways come into my mind:

  1. llEmail
  2. via HTTP from object to object (llHTTPRequest )
  3. via HTTP out from the sender to a webserver and HTTP in from the webserver to the receiver (llHTTPRequestllHTTPResponse)
  4. via HTTP out from the sender to a webserver which writes it to a database or a file and the receiver polls for new messages (llHTTPRequest,)

1 and 2 require that the UUID of the receiver is known to the sender. 3 requires the webserver knows the receivers URL.

Link to comment
Share on other sites

If hve my own Tardis system which works well, i just can not find away of deleting the exterior when it in another sim. This part is the only thing that is bugging me. I do not want to run an outside server as i wanted everything in world. If you read this it may help.( rezz object on tp) it on this page

Link to comment
Share on other sites

What's the sequence of events?   You tp somewhere, wearing an attachment, and this rezzes a Tardis when you get there (if it can),   Then you tp off elsewhere and, on arrival, this attachment tells the old Tardis to de-rez itself?

If that's the case, I would have thought the simplest way is to have the rezzed object check periodically to see if the owner is on the sim, and kill itself if she's not there.

  • Like 1
Link to comment
Share on other sites

Probably the most economical way of checking if the owner is on the the sim is to store the owner's uuid when the Tardis is rezzed (no point in keeping on checking who llGetOwner is, since you know it's not going to change) and then start a slow timer, checking 

 

if (llGetAgentSize(owner)==ZERO_VECTOR)

 If it does, then the owner has left the sim and the Tardis can dematerialise.

  • Like 1
Link to comment
Share on other sites

Yes that makes good sense. I detest using up resources unnecessarily. Some residents don't seem to understand that groups have to pay for them. I think 10 min timer would be reasonable. Doing it the way i was thinking is far to complicated for a simple thing.  Was trying to be clever, lol

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 3945 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...