home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / EVENTS / WMCHAT12.ZIP / WMCHAT.H < prev    next >
C/C++ Source or Header  |  1996-10-26  |  2KB  |  85 lines

  1. #ifndef _WMCHAT_H_
  2. #define _WMCHAT_H_
  3.  
  4. /* If you experience strange problems, be sure that other locations aren't
  5.    using the 5000-5009 range.  If they are, you can change the below ones
  6.    to anything you like, they're not dependent on the number, but they
  7.    MUST be kept in order (INST_LOC_CH2 must follow INST_LOC_CH1, etc.) */
  8.  
  9. #define INST_LOC_CH1          5000
  10. #define INST_LOC_CH2          5001
  11. #define INST_LOC_CH3          5002
  12. #define INST_LOC_CH4          5003
  13. #define INST_LOC_CH5          5004
  14. #define INST_LOC_CH6          5005
  15. #define INST_LOC_CH7          5006 
  16. #define INST_LOC_CH8          5007
  17. #define INST_LOC_CH9          5008
  18. #define INST_LOC_CH10         5009
  19.  
  20. #define INST_FLAGS_INVIS      0x0004  /* For invisibility */
  21.  
  22. typedef struct {
  23.   int r;
  24.   char aword[12];
  25.   char toprint[80];
  26.   char toperson[80];
  27.   char toall[80];
  28.   char singular[80];
  29. } ch_action;
  30.  
  31. typedef struct {
  32.   char name[60];
  33.   int sl;
  34.   char ar;
  35.   char sex;
  36.   char min_age;
  37.   char max_age;
  38. } ch_type;
  39.  
  40. /* Edit this line to allow > 100 actions.  There are actually 101 possible
  41.    actions by default (0 through 100 = 101) but it would've looked goofy
  42.    to use the number 99 :) */
  43. #define MAX_NUM_ACT 100
  44.  
  45. /* File: wmchat.c */
  46.  
  47. void who_online(int *nodes, int loc);
  48. void intro(int loc);
  49. void ch_direct(char *msg, int loc, char *color, int node, int x);
  50. void ch_whisper(char *msg, char *color, int node, int x);
  51. int wusrinst(char *n);
  52. void secure_ch(int ch);
  53. void cleanup_chat(void);
  54. void page_user(int loc);
  55. void moving(int x, int loc);
  56. void out_msg(char *msg, int loc);
  57. void get_colors(char *color);
  58. void load_actions(void);
  59. void add_action(ch_action act);
  60. void free_actions(void);
  61. int check_action(char *msg, char *color, int loc);
  62. void exec_action(char *msg, char *color, int loc, int nact);
  63. void action_help(int num);
  64. void ga(char *msg, char *color, int loc, int type);
  65. void toggle_avail(void);
  66. void toggle_invis(void);
  67. void set_wmstr(void);
  68. void list_channels(void);
  69. int change_channels(int loc);
  70. int check_ch(int ch);
  71. void load_channels(void);
  72. int userinst(char *user);
  73. int grabname(char *msg, int ch);
  74. int usercomp(char *st1, char *st2);
  75.  
  76. /* File: wmsys.c */
  77.  
  78. void wmchat(void);
  79. int rip_words(int start, char *cmsg, char *wd, int size, char lookfor);
  80. int unsecure_ch(char *r);
  81. int f_action(int start, int end, char *aword);
  82. void exit_chat(unsigned char *s, unsigned char *r);
  83.  
  84. #endif
  85.