Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Library: copybot detector detector

Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
08-12-2007 13:09
Seeing all the threads on people *still* getting spammed by those silly copybot defeaters, I just threw this together..

CODE
string  TARGET = "copybot";
integer gScanning = FALSE;

default
{
state_entry()
{
gScanning = FALSE;
llListen (0, "", NULL_KEY, "");
}

listen (integer channel, string from, key id, string message)
{
if (gScanning)
{
// todo: message saying chat is coming too fast?
return;
}

string name = llToLower (from);

if (llSubStringIndex (name, TARGET) != -1)
{
gScanning = TRUE;
llSensor ("", id, ACTIVE | PASSIVE | SCRIPTED, 100.0, PI);
}
}

no_sensor()
{
llOwnerSay ("unable to locate object!");
gScanning = FALSE;
}

sensor (integer count)
{
llOwnerSay ("found " + llDetectedName(0) + " at " + (string)llDetectedPos (0));
gScanning = FALSE;
}
}


Usage, I guess, is to put the script into a prim and wear/rez the prim when you want to find one of these annoying copybot defeaters. If something with "copybot" in its name speaks in open chat, this will scan for it and display the current name & location.
Sindy Tsure
Will script for shoes
Join date: 18 Sep 2006
Posts: 4,103
09-14-2007 16:15
Ugh.. Total crap.. Back when I thought "copybot protectors" used chat.