Re: [DG Script] Trigger is making ME say "You say..",New Information, still lost though

From: Del (caminturn@earthlink.net)
Date: 08/03/00


shay wrote:
>
> Ok, heres something new.  This must not be because of the triggers.
> When i do:
> "force cityguard say hi", it does:
> "You say, Hi"
> now that isnt right.  Where would the "say" be interpreted for mobs
> so that They say it instead of myself???
>

Check the file

act.comm.c

ACMD(do_say)
{
  skip_spaces(&argument);

  if (!*argument)
    send_to_char("Yes, but WHAT do you want to say?\r\n", ch);
  else {
    sprintf(buf, "$n says, '%s'", argument);
    act(buf, FALSE, ch, 0, 0, TO_ROOM|DG_NO_TRIG);

    if (!IS_NPC(ch) && PRF_FLAGGED(ch, PRF_NOREPEAT))
      send_to_char(OK, ch);
    else {
      delete_doubledollar(argument);
      sprintf(buf, "You say, '%s'\r\n", argument);
      send_to_char(buf, ch);
    }
  }
  /* trigger check */
  speech_mtrigger(ch, argument);
  speech_wtrigger(ch, argument);
}


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



This archive was generated by hypermail 2b30 : 04/11/01 PDT