[Package Index | Mudlib Index | Effect Index]
File /obj/handlers/guild_things/punishment_handler.c
A punishment handler for Unseen University. Written for the Ceremony
of the Keys, but adaptable for any crime.
Written by Rodion and Modified by Ceres to clean up after itself!
Includes
This class includes the following files /include/player_handler.hMethod index
- add_offender(string, string, int)
A function to add a new offender to the record, or add 1 to the number of
offenses.
- brass_bridge(string, string)
- frog(string, string)
- punishment(string)
The actual function for punishment.
- query_no_offences(string)
A function to return the total number of offenses, or 0 if they're not an
offender.
- query_unpunished(string)
This returns the number of unpunished offences.
- remove_offender(string, string)
A function to totally remove an offender.
- save_file()
- wake_up(object)
- wiz_brass_bridge(string, string)
- wiz_frog(string, string)
- wiz_punishment(string, string)
This is a function to deal with wizards.
Public Functions
These are functions that everyone can access.
-
add_offender
void add_offender(string name,
string reason,
int severity)
A function to add a new offender to the record, or add 1 to the number of
offenses. To log it, it also takes a reason.
It also adds an unpunished offence.
- Parameters:
name - The name (as in query_name()) of the offender
reason - The offense
-
brass_bridge
void brass_bridge(string name,
string reason)
-
frog
void frog(string name,
string reason)
-
punishment
void punishment(string name)
The actual function for punishment. It takes the name, and chooses
an appropriate punishment, based on the number of offenses.
- Parameters:
name - The name of the offender, as returned by query_name()
reason - The offense
-
query_no_offences
int query_no_offences(string name)
A function to return the total number of offenses, or 0 if they're not an
offender.
- Parameters:
name - The name of the offender, as returned by query_name()
- Returns:
The number of offenses.
-
query_unpunished
int query_unpunished(string name)
This returns the number of unpunished offences.
- Parameters:
name - The name of the offender, as returned by query_name()
- Returns:
The number of offenses.
-
remove_offender
int remove_offender(string name,
string reason)
A function to totally remove an offender.
Also has a logging thingie.
- Parameters:
name - The name of the offender, as returned by query_name()
reason - The offense
-
save_file
void save_file()
-
wake_up
void wake_up(object player)
-
wiz_brass_bridge
void wiz_brass_bridge(string name,
string reason)
-
wiz_frog
void wiz_frog(string name,
string reason)
-
wiz_punishment
void wiz_punishment(string name,
string reason)
This is a function to deal with wizards. They should know better, and it's
Not Right to do something wrong with your own guild.
- Parameters:
name - The name of the offender, as returned by query_name()
reason - The offense