Re: NEWBIE Lives system & Prompt

From: Fizal (amustapa@yahoo.com)
Date: 02/03/00


At 06:16 PM 3/2/2000 -0500, you wrote:
>Okay I have the prompt code (prompt.c) and it says that i need to make
>changes to comm.c and struct.h however i have one simple problem, i'm a
>newbie programmer and i havent a clue what i'm supposed to change. has anyone
>added this before?

No, but looking at the codes you might need to:
1. delete make_prompt() from comm.c
2. change one of the spare int (or long?) in player_special_data_saved
struct into prompt in structs.h
3. add definitions for PROMPT_xxx (eg: PROMPT_HIT, PROMPT_TANK_COND, etc)
in struct.h (appropriate?)
4. create macros for IS_PC and IS_ANSI_TERM in utils.h (think the person
who sent this forgot about the macros).
5. remove all reference to is_introd() in prompt.c since it's a part of an
introduction system not available in stock.
6. add entry into Makefile and Makefile.xxx so that it'll compile properly.

Looking at the IS_ANSI_TERM macro, I believe that the original coder is
trying to check whether the player can receive colorcodes. So, you might
just change the parts that refer to IS_ANSI_TERM to use stock color macros
instead.

Note: Before you do the changes that I mentioned above, better backup
everything. That's the impression that I got by looking at the codes. I'm
not using it tho so I might be wrong. BTW, you'll need to delete or convert
your pfile since you'll be changing the player struct (unless you're using
ascii pfile).

G'luck!

---

Afizal Mustapa
Petaling Jaya, Selangor, Malaysia.
(amustapa@hotmail.com)

__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com


     +------------------------------------------------------------+
     | 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/10/01 PDT