CODE
// Anti CopyBot Reactive defense. Merge this script with your code
// Coder: JJValero Writer
// Freeware code
// Put this line in touch_start() event for know your UUID
/// llWhisper(0, "Your UUID: " + (string) llDetectedKey(0));
key kMyUUID = "Paste here your UUID"; // Copy here your UUID
default {
state_entry() {
// The first line is too valid. Use the second line if what wants it is to distribute script
// if (kMyUUID != llGetCreator()) { // object creator -- protect the object
if (kMyUUID != llGetInventoryCreator(llGetScriptName())) { // script creator -- protect the script
vector vPos = llGetPos();
list lLandInfo = [PARCEL_DETAILS_NAME, PARCEL_DETAILS_DESC];
list lDetail = llGetParcelDetails(vPos, lLandInfo);
string sMessage =
"Detected one it copies nonauthorized :\n" +
"Objet : " + llGetObjectName() + "\n" +
"Description : " + llGetObjectDesc() + "\n" +
"Infractor name : " + llKey2Name(llGetCreator()) + "\n" +
"Infractor Key : " + (string) llGetCreator() + "\n" +
"Region : " + llGetRegionName() +
" (" + (string) vPos.x + ", " + (string) vPos.y + ", " + (string) vPos.z + ")\n" +
"Parcel : " + llList2String(lDetail, 0) + " ... " + llList2String(lDetail, 1) + "\n";
llInstantMessage(kMyUUID, sMessage);
llListen(100, "", NULL_KEY, "");
} // if
} // state_entry
// when you see the stoled object, you type:
// /100 /CREATOR
// In front of witnesses, it will leave the robbery in evidence
listen(integer channel, string name, key id, string message) {
if ((channel == 100) && (message == "/CREATOR") && (id == kMyUUID)) {
llShout(0, "Anti-CopyBot Script: This object has been developped by : " + llKey2Name(kMyUUID));
} // if
} // listen
// touch_start(integer total_number) {
// llWhisper(0, "Your UUID: " + (string) llDetectedKey(0));
// } // touch_start
} // default