Re: [CODE] Mob Messages

From: John Evans (evansj@HI-LINE.NET)
Date: 03/09/98


On Mon, 9 Mar 1998, Clint Nielson wrote:

> ** act.other.c**
>
> ACMD(do_talk)
> {
[snipped code]
> strcat(buf, mob_talk(GET_MOB_VNUM(victim)));

Umm.. Great. You concatenated the results of mob_talk to buf, but aren't
displaying it. Since using buffers is a pain and should be avoided,
replace the above line with the following line.

  send_to_char(mob_talk(GET_MOB_VNUM(victim)), ch);

Good luck,
John Evans <evansj@hi-line.net>  --  http://www.hi-line.net/~evansj/

Any sufficiently advanced technology is indistinguishable from magic.
--Arthur C. Clarke


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST