Difference between revisions of "User:Fred Gandt/Scripts/Continued 5"
Fred Gandt (talk | contribs) m (oops) |
Fred Gandt (talk | contribs) m (→Prim Property Scrubber ( V1 ): Updated script) |
||
Line 46: | Line 46: | ||
{{Anchor|Prim Property Scrubber}} | {{Anchor|Prim Property Scrubber}} | ||
=== Prim Property Scrubber ( | === Prim Property Scrubber ( V2 ) === | ||
Just drop it onto/into the prim you want to clean of a '''[[Prim#Properties|property]]''' and choose from the menu which properties to remove either 1 at a time or all at once. | Just drop it onto/into the prim you want to clean of a '''[[Prim#Properties|property]]''' and choose from the menu which properties to remove either 1 at a time or all at once. | ||
<lsl>// | <lsl>// V2 // | ||
key owner; | key owner; | ||
Line 66: | Line 66: | ||
"Sit Text", | "Sit Text", | ||
"Touch Text", | "Touch Text", | ||
"Status's"]; | "Status's", | ||
"Sound", | |||
"Light"]; | |||
RP(integer i) | RP(integer i) | ||
Line 74: | Line 76: | ||
llSetText("", <0.0,0.0,0.0>, 0.0); | llSetText("", <0.0,0.0,0.0>, 0.0); | ||
else if(i == 2) | else if(i == 2) | ||
llParticleSystem( | llParticleSystem([]); | ||
else if(i == 3) | else if(i == 3) | ||
llSetTextureAnim(0, -1, 0, 0, 0.0, 0.0, 1.0); | llSetTextureAnim(0, -1, 0, 0, 0.0, 0.0, 1.0); | ||
Line 90: | Line 92: | ||
llSetStatus(251, 0); | llSetStatus(251, 0); | ||
} | } | ||
else if(i == 9) | |||
llStopSound(); | |||
else if(i == 10) | |||
llSetPrimitiveParams([23, 0, <0.0,0.0,0.0>, 0.0, 0.0, 0.0]); | |||
} | } | ||
Line 96: | Line 102: | ||
if(!i) | if(!i) | ||
{ | { | ||
while(i < | while(i < 10) | ||
RP(++i); | RP(++i); | ||
RemoveScript(); | RemoveScript(); | ||
Line 102: | Line 108: | ||
else | else | ||
RP(i); | RP(i); | ||
if(passes < | if(passes < 10) | ||
llDialog(owner, "\nRemove Properties", ["Finished"] + | llDialog(owner, "\nRemove Properties", ["Finished"] + | ||
(properties = llListReplaceList(properties, ["-"], i, i)), channel); | (properties = llListReplaceList(properties, ["-"], i, i)), channel); |
Revision as of 07:37, 18 May 2010
LSL Portal | Functions | Events | Types | Operators | Constants | Flow Control | Script Library | Categorized Library | Tutorials |
My Contributions
If unsure about how to use these scripts
I have implemented a V# system to make it more obvious if a script is updated. The V# forms part of the title of each script.
If you have any comments about the content of this page please post them HERE
All my scripts are written for compilation as MONO
More Pages
Free Scripts (content constantly updating)
More Free Scripts (content constantly updating)
Even More Free Scripts (content constantly updating)
Even More More Free Scripts (content constantly updating)
Even More More More Free Scripts (content constantly updating)
Even More More More More Free Scripts (this page)
Functions for specific tasks (hardly any content yet)
Legal Stuff
The legal stuff about contributing to this wiki. (worth reading)
PJIRA Issue Tracker
The issues I have filed on the PJIRA
Tuition
Tuition scripts, notes, videos and screenshots etc. (hardly any content yet)
Free Scripts
Prim Property Scrubber ( V2 )
Just drop it onto/into the prim you want to clean of a property and choose from the menu which properties to remove either 1 at a time or all at once.
<lsl>// V2 //
key owner;
integer passes = 0;
integer channel;
list properties = ["All",
"Text", "Particles", "TextureAnim", "Sit Target", "Mouselook", "Sit Text", "Touch Text", "Status's", "Sound", "Light"];
RP(integer i) {
++passes; if(i == 1) llSetText("", <0.0,0.0,0.0>, 0.0); else if(i == 2) llParticleSystem([]); else if(i == 3) llSetTextureAnim(0, -1, 0, 0, 0.0, 0.0, 1.0); else if(i == 4) llSitTarget(<0.0,0.0,0.0>, <0.0,0.0,0.0,1.0>); else if(i == 5) llForceMouselook(0); else if(i == 6) llSetSitText(""); else if(i == 7) llSetTouchText(""); else if(i == 8) { llSetStatus(14, 1); llSetStatus(251, 0); } else if(i == 9) llStopSound(); else if(i == 10) llSetPrimitiveParams([23, 0, <0.0,0.0,0.0>, 0.0, 0.0, 0.0]);
}
RemoveProperty(integer i) {
if(!i) { while(i < 10) RP(++i); RemoveScript(); } else RP(i); if(passes < 10) llDialog(owner, "\nRemove Properties", ["Finished"] + (properties = llListReplaceList(properties, ["-"], i, i)), channel); else RemoveScript();
}
RemoveScript() {
llRemoveInventory(llGetScriptName());
}
default {
state_entry() { owner = llGetOwner(); llListen((channel = (llRound(llFrand(-10000000)) - 100000)), llKey2Name(owner), owner, ""); llDialog(owner, "\nRemove Properties", ["Finished"] + properties, channel); llSetTimerEvent(60.0); } listen(integer chan, string name, key id, string msg) { llSetTimerEvent(60.0); integer index = 0; if((index = llListFindList(properties, [msg])) != -1) { if(msg != "-") RemoveProperty(index); else llDialog(owner, "\nRemove Properties", ["Finished"] + properties, channel); } else if(msg == "Finished") RemoveScript(); } timer() { llOwnerSay("Removing script since you're not using it."); RemoveScript(); }
}</lsl>
More Scripts...
Free Scripts (content constantly updating)
More Free Scripts (content constantly updating)
Even More Free Scripts (content constantly updating)
Even More More Free Scripts (content constantly updating)
Even More More More Free Scripts (content constantly updating)
Even More More More More Free Scripts (this page)
If you have any comments about the content of this page please post them HERE