[CODE] Random Greetings logos

From: Erik Lundin (eld@ORION.BODEN.SE)
Date: 01/02/98


Hi all circlemud coders.. i just wanted to drop this code snippet here for
people that wanna use it. Its not that hard to make but you'll get the
idea.

This will allow players to send you their own logos.

search for this line (comm.c)
> extern char *GREETINGS;

and add this line right below (comm.c)
* extern char *GREETINGS1;


Search for this line (comm.c)
>  SEND_TO_Q(GREETINGS, newd);


and replace it with this (comm.c)
*     switch (number(0, 1)) {
*  case 0:
*  SEND_TO_Q(GREETINGS, newd);
*  break;
*  case 1:
*  SEND_TO_Q(GREETINGS1, newd);
*  break;
*  }

now this makes your mud to display 2 diffrent logos... now all you have
to do is to add the 2nd logo into your config.c!


^ char *GREETINGS =
^
^ "\r\n\r\n"

now remeber to add a 1 after *GREETINGS : *GREETINGS1 =.......


/Erik Lundin(eld@orion.boden.se)


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST