Jump to content

Unloading a box into a folder and giving web help made easy


Lucinda Bulloch
 Share

You are about to reply to a thread that has been inactive for 4521 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Here is a simple script that will read the contents of a box and create a folder named after the box and place the all contents but the script in that folder, if you put a web address in the description then it will display that web page as well.

It will update if you change the box contents,

 

put the web address in the description like this -

http://msdcs.co.uk/v2combat_meters/index.html

 

list items = [];
default
{
  on_rez(integer p){llResetScript();}  
  state_entry()
   {
    llSetMemoryLimit(0x4000);
    string name; 
    integer x;  
    integer ivi = llGetInventoryNumber(INVENTORY_ALL);
    for(x=0;x<ivi;x++)
     {   
      name = llGetInventoryName(INVENTORY_ALL,x);
      if(name != llGetScriptName())items += name;
     }
   }
  changed(integer change)
   {
    if(change & (CHANGED_INVENTORY))llResetScript();
   }
  touch_start(integer total_number)
   {
    if((llDetectedKey(0) == llGetOwner())&&(llGetListLength(items)))llGiveInventoryList(llGetOwner(),llGetObjectName(),items);
    if(llGetSubString(llGetObjectDesc(),0,3)=="http")llLoadURL(llGetOwner(),llGetObjectName()+" web help",llGetObjectDesc());   
   }
}

 

Link to comment
Share on other sites

You are about to reply to a thread that has been inactive for 4521 days.

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
 Share

×
×
  • Create New...