Main Page | Alphabetical List | Data Structures | File List | Data Fields | Globals

char_creation.c

Go to the documentation of this file.
00001 /* Creation process by Tribul of Beyond the Shadows */
00002 /* Please note: 'XXX' means 'note:'. I use XXX cause 
00003  * Vim (the editor I use) highlights it by default. */
00004 
00005 #if defined(macintosh)        /* Header files striped from nanny.c*/
00006 #include <types.h>            /* So that I may use the same functions*/
00007 #else                         /* and whatnot. :) - Trib */
00008 #include <sys/types.h> 
00009 #include <sys/time.h>
00010 #endif
00011 #include <ctype.h>
00012 #include <errno.h>
00013 #include <stdio.h>
00014 #include <string.h>
00015 #include <stdlib.h>
00016 #include <time.h>
00017 #include <unistd.h>                
00018 #include <stdarg.h>                
00019 #include "merc.h"
00020 #include "interp.h"
00021 #include "recycle.h"
00022 #include "tables.h"
00023 
00024 /* XXX When accessing these voided functions, you must pass
00025  * the descriptor, and not the actual CHAR_DATA *.
00026  * If you are only dealing with a CHAR_DATA, then please
00027  * pass it as - handle_con_bleh (ch->desc) where 'ch'
00028  * is the CHAR_DATA pointer. -Trib */
00029 
00030 void handle_con_get_eye_color (DESCRIPTOR_DATA *d, char *argument)
00031 {
00032     char buf[MAX_STRING_LENGTH]; /* this buffer could get big.*/
00033     
00034     /*if (argument[0] != NULL)
00035     {
00036         send_to_desc("Eye color set.\n\r",d);
00037         sprintf(buf, "EYE COLOR: %s", argument);
00038         send_to_desc(buf,d);
00039         d->connected = CON_GET_ALIGNMENT;
00040         return;
00041     }*/
00042     if (argument)
00043     {
00044     //if (d->connected2 == CON2_GET_EYE_COLOR)
00045     //  handle_con_get_eye_color2(d);
00046     
00047         
00048         send_to_desc("{wAt this stage of creation, you will be asked several\n\r"
00049                 "{wquestions in regard to how your character will look\n\r"
00050                 "{win-character. You will be able to put anything you like, but\n\r"
00051                 "{wif it is not to the standards of Beyond the Shadows, then it will\n\r"
00052                 "{weither be changed for you, or you will be forced to change it.\n\r"
00053                 "{wAbuse will {RNOT{w be tolerated with this part of the creation process.\n\r",d);
00054         if (d->character->race == 0)
00055         {
00056             bug("handle_con_get_eye_color attempting to continue without race set.",0);
00057             send_to_desc("You have an invalid character. Please disconnect, and try again.\n\r"
00058                     "if this problem persists, please contact an Immortal.\n\r",d);
00059             close_socket(d);
00060         }
00061 
00062         sprintf(buf, "\n\r{wYour current race is: %s.\n\r", race_table[d->character->race].name);
00063         send_to_desc(buf,d);
00064     
00065         send_to_desc("{wPlease enter the {Reye{w color for your character:",d);
00066                 
00067     }
00068 
00069 
00070 }
00071 
00072 void handle_con_get_eye_color2  (DESCRIPTOR_DATA *d)
00073 {
00074 }
00075     
00076 

Generated on Thu Jan 13 21:48:09 2005 for Beyond the Shadows by  doxygen 1.4.0