Go to the documentation of this file.
56 op->contr->party_to_join = NULL;
62 "You entered the wrong password");
63 op->contr->party_to_join = NULL;
82 strcpy(party_params,
"say ");
83 strcat(party_params,
params);
101 if (
op->contr->party == NULL) {
103 "You are not a member of any party. "
104 "For help try: party help");
107 "You are a member of party %s.",
108 op->contr->party->partyname);
112 if (strcmp(
params,
"help") == 0) {
116 #ifdef PARTY_KILL_LOG
117 if (!strncmp(
params,
"kills", 5)) {
123 if (
op->contr->party == NULL) {
125 "You are not a member of any party.");
128 tmpparty =
op->contr->party;
129 if (!tmpparty->kills) {
131 "You haven't killed anything yet.");
134 max = tmpparty->kills-1;
135 if (
max > PARTY_KILL_LOG-1)
136 max = PARTY_KILL_LOG-1;
138 "[fixed]Killed | Killer| Exp\n----------------+----------------+--------"
139 "Killed | Killer| Exp\n----------------+----------------+--------");
142 for (i = 0; i <=
max; i++) {
143 exp = tmpparty->party_kills[i].exp;
148 }
else if (exp > 1000) {
154 "[fixed]%16s|%16s|%6.1f%c",
155 tmpparty->party_kills[i].dead,
156 tmpparty->party_kills[i].killer, exp, chr);
158 exp = tmpparty->total_exp;
163 }
else if (exp > 1000) {
169 "[fixed]----------------+----------------+--------");
171 "Totals: %d kills, %.1f%c exp", tmpparty->kills,
176 if (strncmp(
params,
"say ", 4) == 0) {
177 if (
op->contr->party == NULL) {
179 "You are not a member of any party.");
187 op->contr->party->partyname,
params);
191 if (strncmp(
params,
"form ", 5) == 0) {
196 "The party %s already exists, pick another name",
203 if (strcmp(
params,
"leave") == 0) {
204 if (
op->contr->party == NULL) {
206 "You are not a member of any party.");
212 if (strcmp(
params,
"who") == 0) {
213 if (
op->contr->party == NULL) {
215 "You are not a member of any party.");
222 if (strncmp(
params,
"passwd ", 7) == 0) {
225 if (
op->contr->party == NULL) {
227 "You are not a member of a party");
233 "The password must not exceed 8 characters");
239 "The password for party %s is %s",
242 snprintf(
buf,
MAX_BUF,
"Password for party %s is now %s, changed by %s",
248 if (strcmp(
params,
"list") == 0) {
253 "There are no parties active right now");
258 "[fixed]Party name Leader\n---------- ------");
268 if (strncmp(
params,
"join ", 5) == 0) {
276 "Party %s does not exist. You must form it first.",
319 "party rejoin is now: %s",
rejoin_modes[
op->contr->rejoin_party]);
324 "invalid mode: %50s",
params);
const char * party_get_leader(const partylist *party)
#define MSG_TYPE_COMMAND_SUCCESS
int get_party_password(object *op, partylist *party)
void command_gsay(object *op, const char *params)
partylist * party_find(const char *partyname)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...) PRINTF_ARGS(6
static const char * rejoin_modes[]
#define MSG_TYPE_COMMAND_ERROR
void party_join(object *op, partylist *party)
partylist * party_get_first(void)
int party_confirm_password(const partylist *party, const char *password)
void party_leave(object *op)
static int confirm_party_password(object *op, const char *password)
void command_help(object *op, const char *params)
void party_set_password(partylist *party, const char *password)
void list_players(object *op, region *reg, partylist *party)
partylist * party_form(object *op, const char *partyname)
partylist * party_get_next(const partylist *party)
void command_party_rejoin(object *op, const char *params)
const char * party_get_password(const partylist *party)
void party_send_message(object *op, const char *message)
void draw_ext_info(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *message)
#define MSG_TYPE_COMMUNICATION_PARTY
void player_set_state(player *pl, uint8_t state)
void command_party(object *op, const char *params)
#define MSG_TYPE_COMMUNICATION
void receive_party_password(object *op, const char *password)