|
Athena Sterling
Voided Earthing
Join date: 1 May 2006
Posts: 186
|
11-17-2006 09:18
i'm looking for help in writting a small application simular to what slx does, but this is to give away a promotional/freebie item from a 3rd party website. as explained below.
user visits real world website, enters sl name, presses submit, php script contacts main inworld object via email (i guess) and script in main objects takes users name and sends the promtional item/s within the main object.
i am very able to code the php part of this, but have not quite understood the total grasp of lsl yet as i'm still learning.
if anyone out there can help with this, i would be very greatful.
ty. AS
|
|
Eloise Pasteur
Curious Individual
Join date: 14 Jul 2004
Posts: 1,952
|
11-17-2006 10:07
There's a missing step in there... you need to give inventory by key, which means using a name2key system (there are several such databases around, I most typically use the w-hat one at http://w-hat.com/name2key and the lslwiki wiki page for llHTTPRequest shows an lsl way of doing that conversion. Email or xml-rpc are you way to do the website to SL communication. Both have strengths and weaknesses. The communications page and the pages it links to on the wiki discuss that in depth. In SL, assuming you've got an emailer you're going want to a timer (moderately slow, say every 60s unless you're expecting a LOT of traffic). llGetNextEmail (I think, the wiki is down) will get the next email, you process that for key/name etc. and use llGiveInventory() to give the object. Because you can't assume they're in the same sim you'll have to do it that way. Good luck with it.
|