Re: [Help needed / Bug] Single Logins

From: Griffin Hernandez (griffent@SOFTCOM.NET)
Date: 06/17/01

On Tue, 12 Jun 2001 14:32:16 -0700, Daniel A. Koepke
<> wrote:

>On Sun, 10 Jun 2001, Griffin Hernandez wrote:
>> It is what it was except for the Arena code that i found on the site
>> and a modification to the prompt so that it shows hp have/hp full.
>A modification to the prompt would have to occur in comm.c, unless you've
>moved prompting elsewhere (but that'd also constitute a change of comm.c).
>How did you change the prompting?  Compare your comm.c with a stock
>version.  In the Unix world, there's an easy way to compare two files: see
>'man diff'.

Here is how i changed the Comm.c, And i have compaired  it. IT is exsactly
the same as Stock circle Except for the arena code i got  off the ftp and
what i am  about to show you.

    int count = 0;
    *prompt = '\0';

    if (GET_INVIS_LEV(d->character))
      count += sprintf(prompt + count, "i%d ", GET_INVIS_LEV(d->character));

    if (PRF_FLAGGED(d->character, PRF_DISPHP))
      count += sprintf(prompt + count, "%d/%dH ", GET_HIT(d->character),

    if (PRF_FLAGGED(d->character, PRF_DISPMANA))
      count += sprintf(prompt + count, "%d/%dM ", GET_MANA(d->character),

    if (PRF_FLAGGED(d->character, PRF_DISPMOVE))
      count += sprintf(prompt + count, "%d/%dV ", GET_MOVE(d->character),

 if (PRF_FLAGGED(d->character, PRF_DISPGOLD))
      count += sprintf(prompt + count, "Gold: %d ", GET_GOLD(d->character));

      count += sprintf(prompt + count, "(%d) ", GET_BANK_GOLD(d-

    strcat(prompt, "\r\n> ");
  } else if (STATE(d) == CON_PLAYING && IS_NPC(d->character))
    sprintf(prompt, "%s> ", GET_NAME(d->character));
    *prompt = '\0';

only change i have done.


   | FAQ: |
   | Archives: |

This archive was generated by hypermail 2b30 : 12/05/01 PST