Multiple Greeting Screens [by Erik Lundin]
Snippet Posted Wednesday, August 12th @ 11:32:00 PM, by George Greer in the Utils dept.
Added Jan 4, 1998. Click the link below to read it or download it.

From: Erik Lundin <eld@ORION.BODEN.SE>
Subject: Random Greetings logos

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 Makes You Have random logos, useful if players want 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)


<< Multi Attack Pointers [by ?] | Reply | View as text | Flattened | Multiple Item Get/Put/Drop Commands [by Darksword] >>

 


Related Links
  CircleMUD
download
Related Articles
More by greerga
 
 

CircleMUD Snippets
 
Note: Not all of these snippets will work perfectly with your version of code, so be prepared to fix one or two bugs that may arise, and please let me know what you needed to do to fix it. Sending a corrected version is always welcome.
Finally, if you wish to use any of the snippets from this page, you are more than welcome, just mention the authors in your credits. If you wish to release any of these snippets to the public on another site, contact me FIRST.