Doogz Weston Posted February 13, 2013 Share Posted February 13, 2013 I am looking to create a point system that when a person aquires the needed amount of points they can redeem an item only available for points ie like several breedable systems use. I have access to web server and databases but need to learn how to set such a system up. I would really like to learn how to do it so if anybody can give me some tips on how to start, I'd appreciate it. Thanks! 1 Link to comment Share on other sites More sharing options...
Curious Hazelnut Posted February 14, 2013 Share Posted February 14, 2013 sorry but that was just too obnoxious to leave up. Link to comment Share on other sites More sharing options...
LepreKhaun Posted February 14, 2013 Share Posted February 14, 2013 On the SL scripting side, you'll need to know and understand llHTTPRequest. For that, use Google to find and study a lot of references and programs, there doesn't seem to be a comprehensive tutorial on this. You basically have to write a rudimentary browser application from scratch, making it as robust as you need it. On your server, you'll be communicating with a PHP document* that interfaces with your database. Google will be your friend for that as well, a wealth of references on how to do the server side is out there. So, basically, you need to know how to query and update a database, enough PHP* to craft a document to do that in response to http requests and a deep enough understanding of how lsl implements http functions (which will require knowledge of the basic http request/response protocals). *NOTE: There are other ways besides PHP to do this, such as a perl cgi program. However, PHP is (relatively) easy and has many online tutorials for doing what you wish to accomplish. 1 Link to comment Share on other sites More sharing options...
Doogz Weston Posted February 14, 2013 Author Share Posted February 14, 2013 Thank you very much for the info LepreHhaun. Link to comment Share on other sites More sharing options...
LepreKhaun Posted February 15, 2013 Share Posted February 15, 2013 always a pleasure Oh, and make it easy on yourself! Do your server side (with the database and php) FIRST. Get that working properly using a (free) telnet client to send the requests and receive responses from your PHP document. If you're not familiar with what telnet is, It was the last advacement of the Internet before the World Wide Web opened. It can be used as a rudimentary web browser, doing both GET and POST commands, which you're going to have learn. The requests and responses you receive will be almost exactly what your LSL implementation is going to be dealing with. Once you're satisfied with that end, THEN begin writing the LSL http implentation. That way, you'll only be debugging one part of the system at a time. It may seem to be a lot to learn, but just take it a step at a time. And keep in mind- it's a salable skill once you master it. Link to comment Share on other sites More sharing options...
LepreKhaun Posted February 15, 2013 Share Posted February 15, 2013 Oh, I see I forgotten/overlooked an excellent DIY system that would probably aid you greatly to get started: http://aubretec.com/products/sldb/ Link to comment Share on other sites More sharing options...
Recommended Posts
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