ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/server/c_party.C
(Generate patch)

Comparing deliantra/server/server/c_party.C (file contents):
Revision 1.6 by root, Thu Sep 14 22:34:03 2006 UTC vs.
Revision 1.7 by root, Fri Nov 17 21:26:42 2006 UTC

273 currentparty = op->contr->party->partyname; 273 currentparty = op->contr->party->partyname;
274 new_draw_info_format (NDI_UNIQUE, 0, op, "You are a member of party %s.", currentparty); 274 new_draw_info_format (NDI_UNIQUE, 0, op, "You are a member of party %s.", currentparty);
275 } 275 }
276 return 1; 276 return 1;
277 } 277 }
278
278 if (strcmp (params, "help") == 0) 279 if (strcmp (params, "help") == 0)
279 { 280 {
280 new_draw_info (NDI_UNIQUE, 0, op, "To form a party type: party form <partyname>"); 281 new_draw_info (NDI_UNIQUE, 0, op, "To form a party type: party form <partyname>");
281 new_draw_info (NDI_UNIQUE, 0, op, "To join a party type: party join <partyname>"); 282 new_draw_info (NDI_UNIQUE, 0, op, "To join a party type: party join <partyname>");
282 new_draw_info (NDI_UNIQUE, 0, op, "If the party has a passwd, it will you prompt you for it."); 283 new_draw_info (NDI_UNIQUE, 0, op, "If the party has a passwd, it will you prompt you for it.");
289#ifdef PARTY_KILL_LOG 290#ifdef PARTY_KILL_LOG
290 new_draw_info (NDI_UNIQUE, 0, op, "To see what you've killed, type: party kills"); 291 new_draw_info (NDI_UNIQUE, 0, op, "To see what you've killed, type: party kills");
291#endif 292#endif
292 return 1; 293 return 1;
293 } 294 }
295
294#ifdef PARTY_KILL_LOG 296#ifdef PARTY_KILL_LOG
295 if (!strncmp (params, "kills", 5)) 297 if (!strncmp (params, "kills", 5))
296 { 298 {
297 int i, max; 299 int i, max;
298 char chr; 300 char chr;
348 sprintf (buffer, "Totals: %d kills, %.1f%c exp", tmpparty->kills, exp, chr); 350 sprintf (buffer, "Totals: %d kills, %.1f%c exp", tmpparty->kills, exp, chr);
349 new_draw_info (NDI_UNIQUE, 0, op, buffer); 351 new_draw_info (NDI_UNIQUE, 0, op, buffer);
350 return 1; 352 return 1;
351 } 353 }
352#endif /* PARTY_KILL_LOG */ 354#endif /* PARTY_KILL_LOG */
355
353 if (strncmp (params, "say ", 4) == 0) 356 if (strncmp (params, "say ", 4) == 0)
354 { 357 {
355 if (op->contr->party == NULL) 358 if (op->contr->party == NULL)
356 { 359 {
357 new_draw_info (NDI_UNIQUE, 0, op, "You are not a member of any party."); 360 new_draw_info (NDI_UNIQUE, 0, op, "You are not a member of any party.");
359 } 362 }
360 params += 4; 363 params += 4;
361 currentparty = op->contr->party->partyname; 364 currentparty = op->contr->party->partyname;
362 snprintf (buf, MAX_BUF - 1, "[%s] %s says: %s", currentparty, &op->name, params); 365 snprintf (buf, MAX_BUF - 1, "[%s] %s says: %s", currentparty, &op->name, params);
363 send_party_message (op, buf); 366 send_party_message (op, buf);
364 new_draw_info_format (NDI_WHITE, 0, op, "[%s] You say: %s", currentparty, params); 367 new_draw_info_format (NDI_LT_GREEN | NDI_UNIQUE, 0, op, "[%s] You say: %s", currentparty, params);
365 return 1; 368 return 1;
366 } 369 }
367 370
368 if (strncmp (params, "form ", 5) == 0) 371 if (strncmp (params, "form ", 5) == 0)
369 { 372 {
424 sprintf (buf, "%s leaves party %s.", &op->name, currentparty); 427 sprintf (buf, "%s leaves party %s.", &op->name, currentparty);
425 send_party_message (op, buf); 428 send_party_message (op, buf);
426 op->contr->party = NULL; 429 op->contr->party = NULL;
427 return 1; 430 return 1;
428 } 431 }
432
429 if (strcmp (params, "who") == 0) 433 if (strcmp (params, "who") == 0)
430 { 434 {
431 player *pl; 435 player *pl;
432 436
433 tmpparty = op->contr->party; 437 tmpparty = op->contr->party;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines