Atrinik Server 2.5
Functions
commands/misc.c File Reference
#include <global.h>

Go to the source code of this file.

Functions

void maps_info (object *op)
int command_motd (object *op, char *params)
static int count_active ()
void malloc_info (object *op)
static void current_map_info (object *op)
int command_who (object *op, char *params)
int command_mapinfo (object *op, char *params)
int command_time (object *op, char *params)
int command_hiscore (object *op, char *params)
int command_version (object *op, char *params)
int command_praying (object *op, char *params)
int onoff_value (char *line)
void receive_player_name (object *op)
void receive_player_password (object *op)
int command_save (object *op, char *params)
int command_afk (object *op, char *params)
int command_gsay (object *op, char *params)
int command_party (object *op, char *params)
int command_whereami (object *op, char *params)
int command_ms_privacy (object *op, char *params)
int command_statistics (object *op, char *params)
int command_region_map (object *op, char *params)

Detailed Description

Handles misc. input request - things like hash table, malloc, maps, who, etc.

Definition in file misc.c.


Function Documentation

int command_afk ( object op,
char *  params 
)

Away from keyboard command.

Parameters:
opObject requesting this.
paramsCommand parameters.
Returns:
Always returns 1.

Definition at line 516 of file misc.c.

int command_gsay ( object op,
char *  params 
)

Command shortcut to /party say.

Parameters:
opObject requesting this.
paramsCommand paramaters (the message).
Returns:
1 on success, 0 on failure.

Definition at line 542 of file misc.c.

int command_hiscore ( object op,
char *  params 
)

Highscore command, shows the highscore.

Parameters:
opObject requesting this.
paramsParameters.
Returns:
1.

Definition at line 322 of file misc.c.

int command_mapinfo ( object op,
char *  params 
)

Map info command.

Parameters:
opObject requesting this.
paramsCommand parameters.
Returns:
Always returns 1.

Definition at line 296 of file misc.c.

int command_motd ( object op,
char *  params 
)

Show message of the day.

Parameters:
opThe object calling this.
paramsParameters.
Returns:
Always returns 1.

Definition at line 66 of file misc.c.

int command_ms_privacy ( object op,
char *  params 
)

Toggle metaserver privacy on/off.

Parameters:
opPlayer.
paramsParameters.
Returns:
1.

Definition at line 948 of file misc.c.

int command_party ( object op,
char *  params 
)

Party command, handling things like /party help, /party say, /party leave, etc.

Parameters:
opObject requesting this.
paramsCommand parameters.
Returns:
1.

Definition at line 565 of file misc.c.

int command_praying ( object op,
char *  params 
)

Pray command, used to start praying to your god.

Parameters:
opObject requesting this
paramsCommand parameters
Returns:
Always returns 1

Definition at line 375 of file misc.c.

int command_region_map ( object op,
char *  params 
)

The /region_map command.

Parameters:
opPlayer.
paramsOptional region ID that will be shown as the region map instead of the player's map region. Only possible if the player is a DM or has region_map command permission.
Returns:
1.

Definition at line 1005 of file misc.c.

int command_save ( object op,
char *  params 
)

Save command.

Cannot be used on unholy ground or if you don't have any experience.

Parameters:
opObject requesting this.
paramsCommand parameters.
Returns:
Always returns 1.

Definition at line 491 of file misc.c.

int command_statistics ( object op,
char *  params 
)

Show some statistics to the player.

Parameters:
opPlayer.
paramsParameters.
Returns:
1.

Definition at line 970 of file misc.c.

int command_time ( object op,
char *  params 
)

Time command. Print out game time information.

Parameters:
opObject requesting this.
paramsCommand parameters.
Returns:
Always returns 1.

Definition at line 309 of file misc.c.

int command_version ( object op,
char *  params 
)

Output version information.

Parameters:
opObject requesting this
paramsCommand parameters
Returns:
Always returns 1

Definition at line 361 of file misc.c.

int command_whereami ( object op,
char *  params 
)

The '/whereami' command will display some information about the region the player is located in.

Parameters:
opPlayer.
paramsParameters.
Returns:
1.

Definition at line 929 of file misc.c.

int command_who ( object op,
char *  params 
)

Print out a list of all logged in players in the game.

Parameters:
opThe object requesting this
paramsCommand parameters
Returns:
Always returns 1.
Todo:
Perhaps make a GUI from this like the party GUI and you would be able to press enter on player name and that would bring up the /tell console?

Definition at line 218 of file misc.c.

static int count_active ( ) [static]

Counts the number of objects on the list of active objects.

Returns:
The number of active objects.

Definition at line 77 of file misc.c.

static void current_map_info ( object op) [static]

Give out some info about the map op is located at.

Parameters:
opThe object requesting this information.

Definition at line 186 of file misc.c.

void malloc_info ( object op)

Give out of info about memory usage.

Parameters:
opThe object requesting this.

Definition at line 93 of file misc.c.

void maps_info ( object op)

Show maps information.

Parameters:
opThe object to show the information to.

Definition at line 36 of file misc.c.

int onoff_value ( char *  line)

Scans input and returns if this is ON value (1) or OFF (0).

Parameters:
lineThe input string.
Returns:
1 for ON, 0 for OFF.

Definition at line 387 of file misc.c.

void receive_player_name ( object op)

Receive a player name, and force the first letter to be uppercase.

Parameters:
opObject.

Definition at line 431 of file misc.c.

void receive_player_password ( object op)

Receive player password.

Parameters:
opObject.

Definition at line 449 of file misc.c.