Difference for server/c_chat.c from version 1.10 to 1.11


version 1.10 version 1.11
Line 1
 
Line 1
 /*  /*
  * static char *rcsid_c_chat_c =   * static char *rcsid_c_chat_c =
  *   "$Id: c_chat.c,v 1.10 2002/11/26 08:48:20 garbled Exp $";   *   "$Id: c_chat.c,v 1.11 2003/01/21 13:15:40 garbled Exp $";
  */   */
   
 /*  /*
Line 42
 
Line 42
     return 0;      return 0;
 }  }
   
   int command_cointoss(object *op, char *params)
   {
       char buf[MAX_BUF];
       char buf2[MAX_BUF];
       int i;
   
       i = rndm(1, 2);
       if (i == 1) {
    snprintf(buf, MAX_BUF-1, "%s flips a coin.... Heads!", op->name);
    snprintf(buf2, MAX_BUF-1, "You flip a coin.... Heads!");
       } else {
    snprintf(buf, MAX_BUF-1, "%s flips a coin.... Tails!", op->name);
    snprintf(buf2, MAX_BUF-1, "You flip a coin.... Tails!");
       }
       new_draw_info(NDI_UNIQUE, 0, op, buf2);
       new_info_map_except(NDI_WHITE, op->map, op, buf);
   }
   
   char *orcknuckle[7] = {"none", "beholder", "ghost", "knight",
           "princess", "dragon", "orc"};
   
   int command_orcknuckle(object *op, char *params)
   {
       char buf[MAX_BUF];
       char buf2[MAX_BUF];
       int i, j, k, l;
   
       i = rndm(1, 5);
       j = rndm(1, 5);
       k = rndm(1, 5);
       l = rndm(1, 6);
   
       snprintf(buf2, MAX_BUF-1, "%s rolls %s, %s, %s, %s!", op->name,
    orcknuckle[i], orcknuckle[j], orcknuckle[k], orcknuckle[l]);
       snprintf(buf, MAX_BUF-1, "You roll %s, %s, %s, %s!",
    orcknuckle[i], orcknuckle[j], orcknuckle[k], orcknuckle[l]);
       new_draw_info(NDI_UNIQUE, 0, op, buf);
       new_info_map_except(NDI_WHITE, op->map, op, buf2);
   }
   
 int command_shout (object *op, char *params)  int command_shout (object *op, char *params)
 {  {
     int evtid;      int evtid;


Legend:
line(s) removed in v.1.10 
line(s) changed
 line(s) added in v.1.11

File made using version 1.98 of cvs2html by leaf at 2011-07-21 17:26