Functions |
| int | command_say (object *op, char *params) |
| int | command_dmsay (object *op, char *params) |
| int | command_shout (object *op, char *params) |
| int | command_tell (object *op, char *params) |
| int | command_t_tell (object *op, char *params) |
| static void | emote_other (object *op, object *target, char *str, char *buf, size_t size, char *buf2, size_t size2, char *buf3, size_t size3, int emotion) |
| static void | emote_self (object *op, char *buf, size_t size, char *buf2, size_t size2, int emotion) |
| static void | emote_no_target (object *op, char *buf, size_t size, char *buf2, size_t size2, int emotion) |
| static int | basic_emote (object *op, char *params, int emotion) |
This file handles communication related functions, like /dmsay, /say, /shout, etc.
Definition in file chat.c.
| static int basic_emote |
( |
object * |
op, |
|
|
char * |
params, |
|
|
int |
emotion |
|
) |
| [static] |
This function covers all the emotion commands a player can issue.
Based on the situation, it detects which emotion and how it should be performed.
If you want to add a new emotion command, you will need to modify one of the emote arrays in commands.c, add the emotion ID to commands.h and add a command wrapper to this function, similar to the functions below this one.
- Parameters:
-
| op | Player doing the emotion. |
| params | Possible parameters for the emotion (target name for the emotion, message for /me, etc). |
| emotion | Emotion code, one of Emote command numbers. |
- Returns:
- 0.
Definition at line 875 of file chat.c.
| int command_dmsay |
( |
object * |
op, |
|
|
char * |
params |
|
) |
| |
This command is only available to DMs.
It is similar to /shout, however, it will display the message in red only to other logged in DMs, or those with /dmsay command permission.
- Parameters:
-
| op | The object saying this. |
| params | The message. |
- Returns:
- 1 on success, 0 on failure.
Definition at line 61 of file chat.c.