-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5,204 changed files
with
2,425,579 additions
and
0 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<Solution name="1337_Translator"> | ||
<Project name="1337_Translator" path="1337_Translator\1337_Translator.prj" active="true"/> | ||
</Solution> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<Project name="1337_Translator" guid="d80d1156-6c00-1014-b904-200204c60a89"> | ||
<Object name="Object" guid="d80d1238-6c00-1014-b904-200204c60a89"> | ||
<Script name="1337_Translator_1.lsl" guid="d80d32d6-6c00-1014-b904-200204c60a89"> | ||
</Script> | ||
</Object> | ||
</Project> |
93 changes: 93 additions & 0 deletions
93
1337_Translator/1337_Translator/Object/1337_Translator_1.lsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
// :CATEGORY:Translator | ||
// :NAME:1337_Translator | ||
// :AUTHOR:Davy Maltz | ||
// :KEYWORDS: | ||
// :CREATED:2010-01-10 05:20:56.000 | ||
// :EDITED:2014-02-15 | ||
// :ID:994 | ||
// :NUM:1489 | ||
// :REV:1.0 | ||
// :WORLD:Second Life | ||
// :DESCRIPTION: | ||
// Leet speak translator | ||
// :CODE: | ||
list alphabet = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"," "]; | ||
list encode; | ||
|
||
list leet = ["4","8","(","|)","3","ƒ","6","#","|","]","|<","1","]V[","/\/","0","¶","0_","®","5","7","(_)","\/","vv","×","`/","2"," "]; | ||
|
||
list haxxorz = ["4","b","c","d","e","f","g","h","i","j","k","|","m","n","0","p","q","r","5","t","u","v","w","x","y","2"," "]; | ||
|
||
list sounds = ["ayh","bee","cey","dey","eey","eff","gee","ehch","eye","jay","kay","el","em","en","oh","pee","quew","are","ehs","tey","yoo","vee","double-yew","ecks","wayh","zee"," "]; | ||
string convertedtext; | ||
default | ||
{ | ||
on_rez(integer start_parm) | ||
{ | ||
llOwnerSay("Talk on channel '777' to encode text. Say '.1337', '.h4xx0r2', or '.sounds' To change the type of text encoding."); | ||
llResetScript(); | ||
} | ||
state_entry() | ||
{ | ||
if(llGetObjectDesc() == "leet") | ||
{ | ||
encode = leet; | ||
} | ||
if(llGetObjectDesc() == "haxxorz") | ||
{ | ||
encode = haxxorz; | ||
} | ||
if(llGetObjectDesc() == "sounds") | ||
{ | ||
encode = sounds; | ||
} | ||
else | ||
{ | ||
encode = haxxorz; | ||
} | ||
llListen(777,"",llGetOwner(),""); | ||
llListen(0,"",llGetOwner(),""); | ||
} | ||
listen(integer channel, string name, key id, string message) | ||
{ | ||
convertedtext = ""; | ||
if(channel == 777) | ||
{ | ||
integer i; | ||
for(i == 0; i < llStringLength(llToLower(message)); ++ i) | ||
{ | ||
if(llListFindList(alphabet,[llGetSubString(llToLower(message),i,i)]) != -1) | ||
{ | ||
convertedtext = convertedtext + llList2String(encode,llListFindList(alphabet,[llGetSubString(llToLower(message),i,i)])); | ||
} | ||
else | ||
{ | ||
convertedtext = convertedtext + llGetSubString(llToLower(message),i,i); | ||
} | ||
} | ||
|
||
llSay(0,convertedtext); | ||
} | ||
if(channel == 0) | ||
{ | ||
if(message == ".1337") | ||
{ | ||
llOwnerSay("Encoding Now Set To '1337'."); | ||
encode = leet; | ||
llSetObjectDesc("leet"); | ||
} | ||
if(message == ".h4xx0r2") | ||
{ | ||
llOwnerSay("Encoding Now Set To 'h4xx0r2'."); | ||
encode = haxxorz; | ||
llSetObjectDesc("haxxorz"); | ||
} | ||
if(message == ".sounds") | ||
{ | ||
llOwnerSay("Encoding Now Set To 'Sounds'."); | ||
encode = sounds; | ||
llSetObjectDesc("sounds"); | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<Solution name="1st_necessity_of_SL"> | ||
<Project name="1st_necessity_of_SL" path="1st_necessity_of_SL\1st_necessity_of_SL.prj" active="true"/> | ||
</Solution> |
6 changes: 6 additions & 0 deletions
6
1st_necessity_of_SL/1st_necessity_of_SL/1st_necessity_of_SL.prj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<Project name="1st_necessity_of_SL" guid="d8a31ec3-6c00-1014-b904-200204c60a89"> | ||
<Object name="Object" guid="d8a31fb9-6c00-1014-b904-200204c60a89"> | ||
<Script name="1st_necessity_of_SL_1.lsl" guid="d8a3435d-6c00-1014-b904-200204c60a89"> | ||
</Script> | ||
</Object> | ||
</Project> |
122 changes: 122 additions & 0 deletions
122
1st_necessity_of_SL/1st_necessity_of_SL/Object/1st_necessity_of_SL_1.lsl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
// :CATEGORY:Sensor | ||
// :NAME:1st_necessity_of_SL | ||
// :AUTHOR:Beer Dailey | ||
// :KEYWORDS: | ||
// :CREATED:2011-01-22 12:11:17.717 | ||
// :EDITED:2014-02-15 | ||
// :ID:2 | ||
// :NUM:2 | ||
// :REV:1.0 | ||
// :WORLD:Second Life | ||
// :DESCRIPTION: | ||
// Ever since I noticed that many sims contain 1000's of wonderful objects with fancy effects and 1000's active scripts that use valuable simresources while no-one is around to enjoy it, I wanted to script something simple to offload those resources and give the visitor a better experience.// // That's why I made this little script: '1st necessity of SL' that could and should be used in any project that doesn't need to be active all the time.// // We are building a better place, together :)// | ||
// [Beer Dailey] | ||
// :CODE: | ||
// Improve SecondLife's performance! | ||
// Start with your own(ned) modifyable scripts/objects. | ||
// | ||
// This will disable your rootprim's script(s) when no-one is around to use/admire it | ||
// thus stop wasting valuable sim-resources | ||
// | ||
// Measured script time is 0.002 ms on average. | ||
// | ||
// - don't use it for rental stuff or sorts, not everything is suitable - | ||
// | ||
// Free to use, please use it. Improvements are welcome. | ||
// // Thank you Norton Burns for the testing and feedback :) | ||
// | ||
// Beer Dailey | ||
// | ||
// Don't reset this script or take it back in inventory when you're not within the set distance | ||
// or you'll get unpredictable results !! | ||
// | ||
// modify below to suit your needs | ||
|
||
////////////////////////////////// | ||
float distance = 48.0; // scan range | ||
integer delay = 10; // repeat scan every 10 seconds. | ||
|
||
// added | ||
// (gnore specific scripts, some scripts need to be off after initial setups | ||
// There's a bug that resets scripts in off state after a sim restart, so when activated again they re-initialise. | ||
// I've no fix for that. | ||
// | ||
list ignore_scripts = ["major script", "even worse script"]; | ||
|
||
integer debug = FALSE; // for debugging purposes, set it to TRUE to see what it's controlling | ||
|
||
|
||
////////////////////////////////////// | ||
// no need to modify the code below // | ||
////////////////////////////////////// | ||
|
||
integer g_active = FALSE; // if FALSE disable all other scripts | ||
// changed TRUE into FALSE cos of some bug with rezzing, thank you LordGregGreg Back :) | ||
list control_scripts; // list for all scriptnames | ||
|
||
active_scripts( integer active ) | ||
{ | ||
if(g_active == active) return; else g_active = active; //flip TRUE/FALSE | ||
|
||
integer a; | ||
for ( a = 0; a < llGetListLength(control_scripts); a++) | ||
{ | ||
llSetScriptState(llList2String(control_scripts, a), g_active); //(de)activate scripts | ||
|
||
} | ||
if (debug) llOwnerSay("Changed: " + llList2CSV(control_scripts) + " to: " + (string)g_active ); | ||
} | ||
|
||
default | ||
{ | ||
state_entry() | ||
{ | ||
string myname = llGetScriptName(); //don't add myself into the list | ||
control_scripts = []; | ||
|
||
integer i; | ||
integer n = llGetInventoryNumber(INVENTORY_SCRIPT); //count scripts | ||
|
||
if (n == 1) { llOwnerSay("No other scripts found!"); } else //dont be silly ;) | ||
|
||
for(i = 0; i < n; ++i) | ||
{ | ||
string name = llGetInventoryName(INVENTORY_SCRIPT, i); //parse scriptnames | ||
if(name != myname) //not my name then continue | ||
{ | ||
//catch states | ||
if ( llGetScriptState(name) == TRUE) //not on ignore list & running add it | ||
{ | ||
control_scripts += [name]; | ||
} | ||
else ignore_scripts += [name]; | ||
} | ||
} | ||
if (debug) llOwnerSay("Controlling: " + llList2CSV(control_scripts) + "\nIgnoring: " + llList2CSV(ignore_scripts)); | ||
llSensorRepeat("", NULL_KEY, AGENT, distance, PI, delay); // how far and how often we scan for avatars | ||
} | ||
|
||
on_rez(integer s) | ||
{ | ||
if (llGetListLength(control_scripts)== 0 && g_active == TRUE) llResetScript(); | ||
//first time use or reset only when scripts are still active or they'll be added to the ignorelist | ||
} | ||
|
||
changed(integer change) | ||
{ | ||
if (change & CHANGED_OWNER) llResetScript(); // catch new owner | ||
if (change & CHANGED_INVENTORY) llResetScript(); // catch new scripts | ||
} | ||
|
||
sensor(integer num_detected) | ||
{ | ||
active_scripts(TRUE); //activate the scripts | ||
} | ||
|
||
no_sensor() //no-one around? turn off all controlled scripts except myself | ||
{ | ||
active_scripts(FALSE); //deactivate the scripts | ||
} | ||
|
||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<Solution name="3D_Radar"> | ||
<Project name="3D_Radar" path="3D_Radar\3D_Radar.prj" active="true"/> | ||
</Solution> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<Project name="3D_Radar" guid="D89A6A63-6C00-1014-B904-200204C60A89"> | ||
<Object name="Object" guid="D89A6B7F-6C00-1014-B904-200204C60A89"> | ||
<Script name="3D_Radar_1.lsl" guid="D89A9039-6C00-1014-B904-200204C60A89"> | ||
</Script> | ||
<Script name="3D_Radar_2.lsl" guid="D89AB007-6C00-1014-B904-200204C60A89"> | ||
</Script> | ||
</Object> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 3 additions & 0 deletions
3
3_scripts_for_Fun_With_Dynamic_Came/3_scripts_for_Fun_With_Dynamic_Came.sol
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<Solution name="3_scripts_for_Fun_With_Dynamic_Came"> | ||
<Project name="3_scripts_for_Fun_With_Dynamic_Came" path="3_scripts_for_Fun_With_Dynamic_Came\3_scripts_for_Fun_With_Dynamic_Came.prj" active="true"/> | ||
</Solution> |
Oops, something went wrong.