marry.c.save
lance/src/marry.c.save · 934 B
From the archive lance.tar.gz
Download the archive « Back to the archive contents
#if defined(macintosh)
#include <types.h>
#else
#include <sys/types.h>
#include <sys/time.h>
#endif
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <time.h>
#include "merc.h"
void do_propose (CHAR_DATA *ch, char *argument)
{
CHAR_DATA *spouse;
if ( IS_NPC ( ch ) )
{
send_to_char ( "Don't think so.\n\r", ch );
return;
}
if ( IS_MARRIED ( ch ) )
{
send_to_char
( "You are already married, are you planning on
cheating?!\n\r",
ch );
return;
}
if ( argument[0] == '\0')
{
send_to_char("Propose to who?\n\r", ch);
return;
}
if ( ( spouse = get_char_room ( ch, argument ) ) == NULL )
{
send_to_char ( "They aren't here.\n\r", ch );
return;
}
if ( IS_NPC ( spouse ) || spouse == ch )
{
send_to_char ( "Don't think so.\n\r", ch );
return;
}
i