Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

LindeX exchange rate?

Garan Darkes
Registered User
Join date: 23 May 2006
Posts: 7
08-11-2006 07:13
When dealing with money, several times before I've seen machines in SL that retrieve the current exchange rate. Not only the ATMs for buying Lindex in the game, but also other banking machines (Apez for example) that display the exchange rate. I know there is no direct function in LSL to do this, at least not that I could find. This must have something to do with either http requests or XMLRPC. So what I would like to know is. How can you retrieve the exchange rate to begin with? How would I retrieve it from the SL website, or maybe some other source? Thank you for your time.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
08-11-2006 12:43
Find the URL where it is posted, execute an HTTP request now and then (or on demand) and get ready to parse the results when they come back. Hmm. I don't know what kind of authentication might be required. Is it listed some place public (where you don't have to have a SL login to view it?).

Of course, this would be a lot easier if you could set up a middle-man application which sits on a web server somewhere that queries the SL website now and then and does the parsing for you outside of SL. Then you could do as little as possible from the actual LSL in terms of parsing (you'd do the remote LSL query in some manner to your web script instead of directly to the SL website).

EDIT: Or they might have a web script that is directly set up for this sort of thing, so returns info in a manner that is directly geared toward simple parsing or no parsing. I really don't know on that count.