Home
About
Policies
FAQ
Forums
Registration
Password Recovery

Gen-idle-sweep

From Tapestries MUCK

(Difference between revisions)
Jump to: navigation, search
Line 10: Line 10:
The first is the message, the default in much of the Muck being "is taken home to sleep by the local police. (idle-sweep)" which results in: ''Player is taken home to sleep by the local police. (idle-sweep)'' For example:
The first is the message, the default in much of the Muck being "is taken home to sleep by the local police. (idle-sweep)" which results in: ''Player is taken home to sleep by the local police. (idle-sweep)'' For example:
-
  @set #<my parent room's dbref>=_prefs/sleep-message:is tossed out the front door by the bouncers. (idle-sweep)
+
  @set #<my parent room's dbref>=_prefs/idle-message:is tossed out the front door by the bouncers. (idle-sweep)
The second controls how many minutes of idle it takes for them to be swept. This should be set long enough to account for [[Real Life (RL)]] interruptions, and for people just generally sitting around waiting for stuff to happen, while low enough your area does not gather a pile of people everyone is eying wondering if they are just snooping.
The second controls how many minutes of idle it takes for them to be swept. This should be set long enough to account for [[Real Life (RL)]] interruptions, and for people just generally sitting around waiting for stuff to happen, while low enough your area does not gather a pile of people everyone is eying wondering if they are just snooping.
-
  @set #<my parent room's dbref>=_prefs/sleep-period:60
+
  @set #<my parent room's dbref>=_prefs/idle-period:60
This can also be set on players so they don't accidentally leave themselves laying around in public.
This can also be set on players so they don't accidentally leave themselves laying around in public.

Revision as of 12:34, 3 April 2007

gen-idle-sweep(#163764FWAM3) more commonly referred to as "idle sweep." It is not called directly, rather, it is called for every player that is connected on a regular basis.

For each player it compares their idle time, and decides if they should be swept from the area based on on a property on the player or on the area he is in.

Controlling Idlesweep

There are two properties that it scans it's environment for:

  • _prefs/idle-message:message appended to name.
  • _prefs/idle-period:minutes.

The first is the message, the default in much of the Muck being "is taken home to sleep by the local police. (idle-sweep)" which results in: Player is taken home to sleep by the local police. (idle-sweep) For example:

@set #<my parent room's dbref>=_prefs/idle-message:is tossed out the front door by the bouncers. (idle-sweep)

The second controls how many minutes of idle it takes for them to be swept. This should be set long enough to account for Real Life (RL) interruptions, and for people just generally sitting around waiting for stuff to happen, while low enough your area does not gather a pile of people everyone is eying wondering if they are just snooping.

@set #<my parent room's dbref>=_prefs/idle-period:60

This can also be set on players so they don't accidentally leave themselves laying around in public.

It is most common to stick this in a Parent Room for all your public rooms rather than setting it on each individual room.

NOTE: This respects the sweep command's _sweep/immune property. See that program for details.

Personal tools
Namespaces
Variants
Actions
navagation
information
wiki
Toolbox