Go to the documentation of this file.
61 "You have formed party: %s",
63 op->contr->party = party;
88 if (
op->contr->party == party) {
90 "You are already a member of party: %s",
97 op->contr->party = party;
99 "You have joined party: %s\n",
132 "You leave party %s.",
136 op->contr->party = NULL;
152 if (strcmp(party->
partyname, partyname) == 0)
169 previousparty = NULL;
171 if (*walk == party) {
184 previousparty = *walk;
186 LOG(
llevError,
"party_remove: I was asked to remove party %s, but it could not be found.\n",
260 return strcmp(party->
passwd, password) == 0;
296 #ifdef PARTY_KILL_LOG
309 void party_add_kill(
partylist *party,
const char *
killer,
const char *dead,
long exp) {
312 if (party->kills >= PARTY_KILL_LOG) {
313 pos = PARTY_KILL_LOG-1;
314 for (i = 0; i < PARTY_KILL_LOG-1; i++)
315 memcpy(&(party->party_kills[i]), &(party->party_kills[i+1]),
sizeof(party->party_kills[0]));
319 party->total_exp += exp;
320 party->party_kills[pos].exp = exp;
322 strncpy(party->party_kills[pos].dead, dead,
MAX_NAME);
323 party->party_kills[pos].killer[
MAX_NAME] = 0;
324 party->party_kills[pos].dead[
MAX_NAME] = 0;
#define MSG_TYPE_COMMAND_SUCCESS
static void remove_if_unused(partylist *party)
struct party_struct * next
const char * party_get_leader(const partylist *party)
partylist * party_get_next(const partylist *party)
#define MSG_TYPE_COMMAND_ERROR
partylist * party_get_first(void)
partylist * party_find(const char *partyname)
void party_set_password(partylist *party, const char *password)
EXTERN player * first_player
void party_leave(object *op)
void replace_unprintable_chars(char *buf)
size_t strlcpy(char *dst, const char *src, size_t size)
void LOG(LogLevel logLevel, const char *format,...)
static partylist * firstparty
void party_remove(partylist *party)
static partylist * lastparty
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 party_join(object *op, partylist *party)
partylist * party_form(object *op, const char *partyname)
int party_confirm_password(const partylist *party, const char *password)
#define MSG_TYPE_COMMUNICATION
void party_send_message(object *op, const char *message)
const char * party_get_password(const partylist *party)
void draw_ext_info_format(int flags, int pri, const object *pl, uint8_t type, uint8_t subtype, const char *format,...)
void party_obsolete_parties(void)