#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" void do_pkready( CHAR_DATA *ch, char *argument ) { if( IS_NPC(ch) ) return; if( ch->played >= 14400 ) { stc("You are already ready for pk already.\n\r",ch); return; } ch->played = 14400; do_autosave(ch,""); return; } void do_checkfighting( CHAR_DATA *ch, char *argument ) { CHAR_DATA *vch; char buf[MSL]; bool found = FALSE; if( IS_NPC(ch) ) return; for( vch = char_list; vch; vch = vch->next ) { if( IS_NPC(vch) ) continue; if( vch->fighting && !IS_NPC(vch->fighting) ) { found = TRUE; sprintf(buf,"%s is fighting %s. [%d ft]\n\r",vch->name,vch->fighting->name,vch->fight_timer); stc(buf,ch); } } if( !found ) stc("No one is fighting atm.\n\r",ch); return; } void do_globalpeace( CHAR_DATA *ch, char *argument ) { CHAR_DATA *vch; char buf[MSL]; if( IS_NPC(ch) ) return; for( vch = char_list; vch; vch = vch->next ) { if( vch->fighting ) stop_fighting(vch,TRUE); vch->fight_timer = 0; } sprintf(buf,"%s has declared global peace.\n\r",ch->name); do_info(ch,buf); return; }