>I am finding problems in modifying the part of CircleMUD that treats of >Gossip, Auction, Shout, etc... in the file " act.comm " >I changed Gossip for "speaks openly " >However, when does anybody use the command Gossip, does it appear "s" >after >"speaks openly" (speaks openlys) and does it happen like this also with all >the other communication commands that I altered... How I do to get rid of >this "s" that appears after the command that I altered? > If you read the code for do_gen_comm, you would know where it is. Well, here it is anyway. It should look similar to the following: /* first, set up strings to be given to the communicator */ if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_NOREPEAT)) send_to_char(OK, ch); else { if (COLOR_LEV(ch) >= C_CMP) sprintf(buf1, "%sYou %s, '%s'%s", color_on, com_msgs[subcmd][1], argument, KNRM); else sprintf(buf1, "You %s, '%s'", com_msgs[subcmd][1], argument); act(buf2, FALSE, ch, 0, 0, TO_CHAR | TO_SLEEP); } /************* THIS LINE *************/ sprintf(buf2, "$n %ss, '%s'", com_msgs[subcmd][1], argument); /*************************************/ /* now send all the strings out */ for (i = descriptor_list; i; i = i->next) { _________________________________________________________________ Send and receive Hotmail on your mobile device: http://mobile.msn.com -- +---------------------------------------------------------------+ | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html | | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html | | Newbie List: http://groups.yahoo.com/group/circle-newbies/ | +---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT