Re: new prompt questions

From: Tony Robbins (
Date: 02/28/99

>that is defined here is the definition:
>extern struct title_type titles[NUM_CLASSES][LVL_IMPL + 1];
>any ideas?
>> >  comm.o: In function `prompt_str':
>> > /circle30bpl14/src/comm.c:1059: undefined reference to `titles'
>> > /circle30bpl14/src/comm.c:1088: undefined reference to `titles'
>> >      case 'X': // exp to level
>> >          sprintf(i, "%d",
>>                             ------
>>                             ^^^^^^^
>>                             try Defining
>>                                This

Here's my idea:  does that actually exist anywhere?  I believe it does in
stock bpl14, but that experience patch changes it, I think.  See if you can
even find it.  I don't think that that right there would do you any good
anyway.  Probably level_exp(...) - GET_EXP(ch) would put you closer to what
you're trying to do.  In my src:

    if (PRF_FLAGGED(d->character, PRF_DISPEXP) && (GET_LEVEL(d->character) <
    sprintf(prompt, "%s\\c07XPtoLev: %d\\c00 ", prompt,
(level_exp(GET_CLASS(d->character), GET_LEVEL(d->character)+1) -

I'm not using dak's patch, as you can see, but that sprintf line might do
the trick for you, more or less.  Of course, you'll need to know what parts
to touch up.  :)

Remember, undefined reference means its not seeing what you referred to.
Since that happened to you at the linking process (not the compilation of
comm.c), that should be a clue that you don't have a 'titles[][]' anywhere.


Is it that hard to cut the footer off a quote?  Or at least cut out the
irrelevant info?

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     |  |

This archive was generated by hypermail 2b30 : 12/15/00 PST