Who's OnlineWe have 103 guests online
Help support us
|Finally an alternative to the llEmail|
|Second Life - Scripting|
|Written by Skidz Tweak|
|Tuesday, 02 June 2009 17:58|
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:
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 18.104.22.168427 under help/about.
|Last Updated on Tuesday, 02 June 2009 18:39|