Re: [CODE] An online motd editor

From: Leonardo Herrera (leherrer@ENTELCHILE.NET)
Date: 12/17/97


Chuck Reed wrote:
> Would using the gets command be more suitable to an online motd editor than
> the scanf function?
>
> Chuck

To make an online editor, you need to do something _like_ this:

  char *motd = <<<<a buffer with your motd>>>>
  char newmotd = <<<<<a buffer to write your new motd>>>>>

  send_to_char("Write your MOTD.  Terminate with a @ on a new
line.\r\n\r\n", ch);

  if (!IS_NPC(ch))
    SET_BIT(PLR_FLAGS(ch), PLR_WRITING);

  ch->desc->str = newmotd;
  ch->desc->max_str = <<<<<<<<<< max lenght of your newmotd >>>>>>>>>>>>

I think that if you have installed Oasis OLC, you can use the improved
editor, but I'm not sure about how to do this.

Saludos,

--
Leonardo Herrera L.
mailto:leherrer@entelchile.net
http://www.geocities.com/TimesSquare/Castle/4515/
  "Me voy a subai, me voy a costai, me voy a tapai y
me voy a hacei tuto."
        -- Ruy


     +------------------------------------------------------------+
     | 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/08/00 PST