version 1.101 | | version 1.102 |
---|
| | |
/* | | /* |
* static char *rcsid_monster_c = | | * static char *rcsid_monster_c = |
* "$Id: monster.c,v 1.101 2006/06/01 18:59:13 tchize Exp $"; | | * "$Id: monster.c,v 1.102 2006/09/17 05:34:39 qal21 Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
| | |
cp = find_matching_message(op, override->msg, txt); | | cp = find_matching_message(op, override->msg, txt); |
if (cp) { | | if (cp) { |
sprintf(buf,"%s says:",query_name(npc)); | | npc_say(npc, cp); |
new_info_map(NDI_NAVY|NDI_UNIQUE, npc->map,buf); | | |
new_info_map(NDI_NAVY | NDI_UNIQUE, npc->map, cp); | | |
quest_apply_items(override,op->contr); | | quest_apply_items(override,op->contr); |
free(cp); | | free(cp); |
return 1; | | return 1; |
| | |
return 0; | | return 0; |
} | | } |
| | |
| | void npc_say(object *npc, char *cp) { |
| | char buf[MAX_BUF]; |
| | sprintf(buf,"%s says: %s",query_name(npc),cp); |
| | new_info_map(NDI_NAVY|NDI_UNIQUE, npc->map,buf); |
| | } |
| | |
static int talk_to_npc(object *op, object *npc, const char *txt) { | | static int talk_to_npc(object *op, object *npc, const char *txt) { |
object *cobj; | | object *cobj; |
| | |