background preloader

Scripting

Facebook Twitter

Regexp

Bookmarklets. SL Forums - Library: Simple Powerpoint-Like Presentation Script. // // LumVision-Presentation Script v 0.2 // // Written by Lum Pfohl December 11, 2007 // // January 02, 2008 - Added code to precache the next texture after a short time delay // set to TRUE if you want debug messages written to chat screen integer __debug = FALSE; string __version_id = "LumVision-Presentation Script v 0.2"; // global variables integer interval; integer currentTexture = 0; integer previousTexture = 0; integer totalTextures = 0; list textureList =[]; integer messageChannel = 999888; list dynMenu =["Back", "Version", "Forward", "Reset"]; // this is a list of all the possible inventory types, as constants. list list_types = [INVENTORY_NONE, INVENTORY_TEXTURE, INVENTORY_SOUND, INVENTORY_LANDMARK, INVENTORY_CLOTHING, INVENTORY_OBJECT, INVENTORY_NOTECARD, INVENTORY_SCRIPT, INVENTORY_BODYPART, INVENTORY_ANIMATION, INVENTORY_GESTURE]; default { state_entry() { // read in the textures in the prim and store it integer typeCount = llGetInventoryNumber(INVENTORY_TEXTURE); integer j;

Dr. Dobb's | Using the Linden Scripting Language | February. (not-so) Secure HTTP Post. From Second Life Wiki Second Life Wiki > LSL Portal > Library > HTTP Post request to a PHP server How to use Second life allows scripts to make requests to a web site. The command lets you send Post data to PHP. The format of the HTTP Post is however a bit tricky. This library lets you call a PHP page and post as many variables in your call as you want. On top of that I introduce a little checksum/password system to limit potential abuse. The second life script In the beginning of your script you must copy the xrequest function and also choose a SECRET_NUMBER and a SECRET_STRING. To make a call to the function you have to provide 2 parameters: For example: xrequest(" value"]); The first parameter is the address of the webpage which will process your request. The second parameter is a list containing the parameters you want to pass to the page.

The PHP Page I hope it helps. Category:LSL Library. Script Library NOTE: Please add your scripts to this page and then add them to a category on the Categorized Library page. Come to this page to see complex examples that show how to combine parts of LSL. Go to the LSL Examples page to see brief examples of how to use parts of LSL. Why collect complex examples here? Well, ... There is a treasure trove of user developed scripts that have become hard to find over time throughout Second Life's web server revisions and redesigns. The wiki medium is well-suited for a script library due to its revision based historical foundation. Rules for posting: Your script must be tested and working. LSL Script Library Support Script Library These are scripts in other languages, intended to be run on other systems that support scripts written in LSL See Also Subcategories This category has the following 2 subcategories, out of 2 total.

Pages in category "LSL Library" The following 200 pages are in this category, out of 223 total.