Difference between revisions of "User:ANSI Soderstrom/Simple Copy Protection"

From Second Life Wiki
Jump to navigation Jump to search
m (Created page with 'test')
 
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
test
== Leave a comment ==
* [[User_talk:{{PAGENAME}}|My User Talk about this Page]]
 
== Simple Copy Protection ==
 
If u wish to share your items (best is copy/mod), but no one should be able to use your Scripts outside your items, then use this lines below.
 
Set the Script Permissions to "no mod/copy/trans" and your scripts will only works with the Items you are the creator from...
 
<lsl>
// Simple Copy Protection for your Items
// (C) 10/2009 ANSI Soderstrom
default {
    state_entry() {
        if(llGetCreator() != "9adba1b4-a733-4a44-8275-f4a666784d8c") {  // ANSI Soderstrom
            llOwnerSay("Script: " + llGetScriptName() + ":");
            llOwnerSay("Sorry, my Scripts are only running in MY Items");
            llOwnerSay("Greetings, ANSI Soderstrom");
            // llDie();
        } else {
            state online;
        }     
    }
    on_rez(integer i) {
        llResetScript();
    }
}
state online {
    state_entry() {
        // your Code
    } 
    on_rez(integer i) {
        llResetScript();
    }   
}
</lsl>

Latest revision as of 11:28, 8 April 2010

Leave a comment

Simple Copy Protection

If u wish to share your items (best is copy/mod), but no one should be able to use your Scripts outside your items, then use this lines below.

Set the Script Permissions to "no mod/copy/trans" and your scripts will only works with the Items you are the creator from...

<lsl> // Simple Copy Protection for your Items // (C) 10/2009 ANSI Soderstrom

default {

   state_entry() {
       if(llGetCreator() != "9adba1b4-a733-4a44-8275-f4a666784d8c") {  // ANSI Soderstrom
           llOwnerSay("Script: " + llGetScriptName() + ":");
           llOwnerSay("Sorry, my Scripts are only running in MY Items");
           llOwnerSay("Greetings, ANSI Soderstrom");
           // llDie();
       } else {
           state online;
       }      
   }

   on_rez(integer i) {
       llResetScript();
   }

}

state online {

   state_entry() {
       // your Code
   }   

   on_rez(integer i) {
       llResetScript();
   }    

} </lsl>