Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

discussion: 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
Original Thread
07-22-2006 19:29
/15/a1/122702/1.html
_____________________
i've got nothing. ;)
Rubina Stanwell
Queen of Sheeba
Join date: 14 Jun 2006
Posts: 128
07-25-2006 16:29
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
Harleen Gretzky
Registered User
Join date: 27 Oct 2005
Posts: 51
08-02-2006 08:54
To teleport home and ban the object needs to be owned by the owner of the land or deeded to the group if the land is group owned. You could link in a second prim belonging to the other group and then send the id to a script in that prim with a link message and that prim can check against its group and report back whether the agent has the group tag active or not.
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
08-02-2006 11:27
You could also throw in a notecard with a specific list of names/keys for people to allow use of the object instead of or (more likely) in addition to allowing it to the group.
Ryan00 Odets
just a stupid redneck!
Join date: 17 Dec 2005
Posts: 289
08-02-2006 22:56
How can we make it non case sensitive or accept partial names?
_____________________
~~~~~~~ryan00~~~~~~~~~~~~~


http://forums.secondcitizen.com/
CaptJosh Au
Registered User
Join date: 20 May 2006
Posts: 5
08-06-2006 12:27
Can this be configured to make sure it doesn't say anything on channel 0 at all. Someone I know prefers the "silent security" paradigm. That security is best when it doesn't appear to be needed. Maybe if it could be configured to IM the person who triggered it...
Haravikk Mistral
Registered User
Join date: 8 Oct 2005
Posts: 2,482
08-06-2006 14:56
This seems a bit of an iffy thing to implement. Wouldn't it be better to let a user trigger a vote to kick an unruly user. If three or more (excluding the victim) vote yes THEN kick them?
_____________________
Computer (Mac Pro):
2 x Quad Core 3.2ghz Xeon
10gb DDR2 800mhz FB-DIMMS
4 x 750gb, 32mb cache hard-drives (RAID-0/striped)
NVidia GeForce 8800GT (512mb)
Hewee Zetkin
Registered User
Join date: 20 Jul 2006
Posts: 2,702
08-06-2006 16:04
From: Haravikk Mistral
This seems a bit of an iffy thing to implement. Wouldn't it be better to let a user trigger a vote to kick an unruly user. If three or more (excluding the victim) vote yes THEN kick them?

What an interesting idea! I would expand on it a little. Here's something one could implement with the aid of an outside DB:
There are three mutually exclusive sets of users: DISTRUSTED (people who have been banned in the past or who are explicitly added to this set by the owner), TRUSTED (anyone explicitly added to this set by the owner and optionally anyone in the Group who is not DISTRUSTED), and OTHER (everyone who has not been registered in the other sets.

Priviledges are as follows:
  1. TRUSTED Users: Cannot be banned and can always vote.
  2. DISTRUSTED Users: Can be banned and can never vote.
  3. OTHER Users: Can be banned. Can vote IF they are not the person being voted upon.

A user in the OTHER set can be banned only if a ratio R of those present (such as 1/2 for a majority) who can vote do vote affirmatively for the ban (and a minimum quarum of such people are present, possibly including at least 1 or M TRUSTED users; see below) or if N TRUSTED users vote in such a manner AND the ban is not vetoed by the negative votes of M or more TRUSTED users. Likewise for DISTRUSTED users, but the numbers (both the fraction of voters needed and the number of TRUSTED members required) can be loosened for this set.

What do you think?
Moonshine Herbst
none
Join date: 19 Jun 2004
Posts: 483
08-06-2006 17:01
From: Haravikk Mistral
This seems a bit of an iffy thing to implement. Wouldn't it be better to let a user trigger a vote to kick an unruly user. If three or more (excluding the victim) vote yes THEN kick them?
Voting was discussed, but discarded. Instead I made a security group with trusted regulars and set the bouncer to that group. If they are in doubt, they just do a group chat and discuss before taking any decisions. Sometimes a vote will simply take too long.
_____________________

Ryan00 Odets
just a stupid redneck!
Join date: 17 Dec 2005
Posts: 289
08-06-2006 17:15
<~~~~~Points up to his orignal post~~~~~~~~~~~~~~<
_____________________
~~~~~~~ryan00~~~~~~~~~~~~~


http://forums.secondcitizen.com/
Moonshine Herbst
none
Join date: 19 Jun 2004
Posts: 483
08-07-2006 01:35
From: Ryan00 Odets
<~~~~~Points up to his orignal post~~~~~~~~~~~~~~<
You can't practically.
By using partial names, you risk ejecting the wrong person, and will also have to scan the whole area. Which is impossible quickly, especially if there are a lot of AVs there. Sensors only get the 16 closest matches. Sensors also need exact names (Case) as far as I know.

If you want partial names / Case Insensitive, you are looking at a way more complex system, with multiple sensors, a central bank of avs present, and searching through lists. Which means lag and slow response.

This was made to be as quick and low-lag as possible. As the title says: For emergencies.
_____________________

Sharron Schuman
Registered User
Join date: 1 Jun 2006
Posts: 34
? about the prim the bouncer script is in
09-13-2006 20:55
Is the prim any where on the parcel, or does each group member have to wear the prim?
Travis Lambert
White dog, red collar
Join date: 3 Jun 2004
Posts: 2,819
09-13-2006 21:05
From: Hewee Zetkin
What an interesting idea! I would expand on it a little. Here's something one could implement with the aid of an outside DB:

We're doing something along those lines with BanLink. Although, there is no voting mechanism. Rather, it facilitates 1-way trusts among communities with similar banning criteria.
_____________________
------------------
The Shelter

The Shelter is a non-profit recreation center for new residents, and supporters of new residents. Our goal is to provide a positive & supportive social environment for those looking for one in our overwhelming world.
damien Everett
Registered User
Join date: 10 May 2004
Posts: 43
09-13-2006 21:12
Notice the Views vs. the replies, everyone is after the drama ;not really interested in a good deed....pitty :(