[CODE] [Newbie]

From: JWoodsIII (JWoodsIII@AOL.COM)
Date: 05/18/98


Alright...I finished patching OasisOLC Plus (with DG) as well as MobProgs.
Also changed the ' quotes to \" in things like GOSSIP and SAY. Compiled the
MUD. Tested. SAY, ECHO, EMOTE, GOSSIP don't work. Changed some stuff around.
Even tried going back to the stock version of do_echo (note I changed it to
try out George's code a while back) and even added the mobprogs and OasisOLC
stuff to that do_echo. Compiled again. Still no communications, except for
wiznet (which I had the first time). Went back and changed the second column
of the commands to see if that would help. Still won't work. I dunno what to
do, I looked everywhere my small brain could think to make me look.

Interpreter.c:

  { "act"      , "act"      , POS_RESTING , do_echo     , 1, SCMD_EMOTE },

  { "echo"     , "echo"     , POS_SLEEPING, do_echo     , LVL_IMMORT,
SCMD_ECHO },
  { "emote"    , "emote"    , POS_RESTING , do_echo     , 1, SCMD_EMOTE },
  { ":"        , "emote"    , POS_RESTING , do_echo     , 1, SCMD_EMOTE },

  { "\""       , "s"        , POS_RESTING , do_say      , 1, 0 },
  { "say"      , "s"        , POS_RESTING , do_say      , 1, 0 },
  { "'"        , "s"        , POS_RESTING , do_say      , 1, 0 },

act.wizard.c:

/* stock version of do_echo */
ACMD(do_echo)
{
  skip_spaces(&argument);

  if (!*argument)
    send_to_char("Yes.. but what?\r\n", ch);
  else {
    if (subcmd == SCMD_EMOTE)
      sprintf(buf, "$n %s", argument);
    else
      strcpy(buf, argument);
        MOBTrigger = FALSE;
    act(buf, FALSE, ch, 0, 0, TO_ROOM);
    if (PRF_FLAGGED(ch, PRF_NOREPEAT))
      send_to_char(OK, ch);
    else {
          MOBTrigger = FALSE;
      act(buf, FALSE, ch, 0, 0, TO_CHAR);
        }
  }

}

/* George Greer's Version of do_echo */
ACMD(do_echo)
{
  skip_spaces(&argument);

  if (!*argument)
    send_to_char("Yes.. but what?\r\n", ch);
  else {
    if (subcmd == SCMD_EMOTE)
                sprintf(buf, "$n%s%s", *argument == '\'' ? "" : " ", argument);
    else
      strcpy(buf, argument);
        MOBTrigger = FALSE;
    act(buf, FALSE, ch, 0, 0, TO_ROOM);
    if (PRF_FLAGGED(ch, PRF_NOREPEAT))
      send_to_char(OK, ch);
    else {
          MOBTrigger = FALSE;
      act(buf, FALSE, ch, 0, 0, TO_CHAR);
        }
  }
}

act.comm.c:

ACMD(do_say)
{
  skip_spaces(&argument);

  if (!*argument)
    send_to_char("Syntax: SAY message\r\n", ch);
  else {
    sprintf(buf, "$n says, \"%s\"", argument);
        MOBTrigger = FALSE;
    /* act(buf, FALSE, ch, 0, 0, TO_ROOM); */
        act(buf, FALSE, ch, 0, 0, TO_ROOM|DG_NO_TRIG); /* OasisOLC DG */
    if (PRF_FLAGGED(ch, PRF_NOREPEAT))
      send_to_char(OK, ch);
    else {
      sprintf(buf, "You say, \"%s\"", argument);
      act(buf, FALSE, ch, 0, argument, TO_CHAR);
    }
        mprog_speech_trigger(argument, ch);
  }
  /* trigger check */ /* OasisOLC DG - Next two lines */
  speech_mtrigger(ch, argument);
  speech_wtrigger(ch, argument);
}



Any ideas? Sorry to leave all my problems on you people. Thanks for the help.

-JW (aka Elrelet)


     +------------------------------------------------------------+
     | 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