Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Emergency Bouncer with Ban

Moonshine Herbst
none
Join date: 19 Jun 2004
Posts: 483
07-20-2006 15:49
This scipt was made so that regulars at my casino could get rid of griefers and give the bastard a 72 hour temp ban. It's real simple, and to prevent misuse, i put in an emailer that sends me a report of every bounce, and who did it.

The script is two parts, one is the bouncer itself, one is the emailer.
Put both scripts in the same prim.

Everyone that is a member of the same group as the object the script is in, can use the bouncer. To bounce (teleport home) and ban, you just say /123 Firstname Lastname (CasE SensitivE).

Here goes. First the bouncer:
CODE

key speaker;
key target;
integer handle;
string targetname;
string speakername;
default
{
state_entry()
{
handle = llListen( 123, "", NULL_KEY, "" );


}

listen(integer channel, string name, key id, string message)
{
if (message!="" && llSameGroup(id))
{
speaker=id;
targetname=message;
speakername=llKey2Name(id);
llSensor(message, NULL_KEY, AGENT, 96, PI);
}
}

sensor(integer total_number)
{
target=llDetectedKey(0);
llInstantMessage(speaker,"Found, teleporting avatar home. One sec...");
llTeleportAgentHome(target);
llSay(0,targetname+" was removed and banned for 72 hours. Owner was notified by email.");
llAddToLandBanList(target,72);
llMessageLinked(llGetLinkNumber(), 0, speakername, targetname);
}

no_sensor() {
llInstantMessage(speaker, "Avatar not found.");
}

}



And here is the emailer bit:
CODE

default
{
state_entry()
{

}

link_message(integer sender_num, integer num, string str, key id)
{
llEmail("your@email.com", str+" kicked "+(string)id, "");


}

}
_____________________

Nada Epoch
The Librarian
Join date: 4 Nov 2002
Posts: 1,423
Discussion Thread
07-22-2006 19:29
/54/6a/123361/1.html
_____________________
i've got nothing. ;)
Rubina Stanwell
Queen of Sheeba
Join date: 14 Jun 2006
Posts: 128
07-25-2006 10:16
Is there anyway to change the group permissions?

I have staff on my land who don't have the same group titles as myself or each other and i'd like them to have access to the bouncer script too :)

T.I.A.
_____________________
Stealing hearts and panties since the eighties...
---------------------------

http://adimusl.wordpress.com | Afrocentric Hairstyles for Men & Women in SecondLife