Scripting Finally an alternative to the llEmail

Who's Online

We have 53 guests online

Users Online


Help support us

Finally an alternative to the llEmail PDF Print E-mail
Second Life - Scripting
Written by Skidz Tweak   
Tuesday, 02 June 2009 17:58

Of course linden labs comes out with a kewl alternative way to communcat in Second Life, right after I come out with a server. In the beta grid they are testing out the new HTTP-In feature. It turns your script into a small web server. I have been waiting for something like this forever. 

So how does it work? Basically you make a function call called llRequestURL which will fire off the event http_request. The http_request event does two things for you. First off it will pass you the url that you can use to access the prims web server, and fires whenever someone visit the web server so you can pass out any data you like. Sounds complex but its very simple. Here is a sample script:

http_request(key id, string method, string body)
if (method == URL_REQUEST_GRANTED)
llSay(0,"URL: " + body);
else if (method == URL_REQUEST_DENIED)
llSay(0, "Something went wrong, no url. " + body);
llHTTPResponse(id, 200, body);
More Samples

So what kind of things could you do with this? TONS. This is a great way to get information to external servers, or provide great user interfaces for objects in world. Imagine a visitor tracker that when touched gives you a url to see all the people that visited, or vendor that show you sales information. And for user inputs, this is fabulous. Imagine a web page that can send information about what was entered directly to the prim. Example, a partical generator interfaces are usally complex, and hard to understand, but if you could make one in a webpage, you could get a lot more creative, sending the information about form feilds on the web page to the prim generating the partical effect. This makes me so excited. Can't wait to see this used in creative ways.

Want to try it out yourself? Open Second Life, hit shift+ctrl+g... this opens up the grid chooser... Select "Aditi" to log into the Preview Grid. The normal Second Life grid is "Agni". Make your way over to one fo the sandbox sims, and make sure the sim is running version under help/about. 

More Details 

Last Updated on Tuesday, 02 June 2009 18:39

Skidz Partz Shopping

Your cart is empty

Skidz Partz Blog RSS

Skidz Partz

SkidzPartz Login


Should the TMat 4.0 be made of Mesh? This does not mean it will support mesh, just made of mesh..

CB Workflows