#if defined(macintosh) #include <types.h> #else #include <sys/types.h> #endif #include <stdio.h> #include <stdlib.h> #include <string.h> #include <time.h> #include "merc.h" // EODS Gang shit void do_gangable( CHAR_DATA *ch, char *argument) { char buf[MAX_STRING_LENGTH]; if (IS_SET(ch->pcdata->shit[3],GANGABLE)) { send_to_char("You are already gangable.\n\r",ch); return; } SET_BIT(ch->pcdata->shit[3],GANGABLE); sprintf(buf,"#R%s#n has decided to participate in ganging.\n\r",ch->pcdata->switchname); do_info(NULL,buf); return; } void do_gangcheck( CHAR_DATA *ch, char *argument) { DESCRIPTOR_DATA *d; CHAR_DATA *gch; char buf[MAX_STRING_LENGTH]; for (d = descriptor_list; d != NULL; d = d->next) { if (d->connected != CON_PLAYING) continue; if ((gch = d->character) == NULL) continue; if (IS_SET(gch->pcdata->shit[3],GANGABLE)) { sprintf(buf,"#L%s#n : #RGANGABLE#n\n\r",gch->pcdata->switchname); send_to_char(buf,ch); } } }