Re: [Code] Prompts

From: Michael Gallagher (m_gally@hotmail.com)
Date: 01/29/01


Ok, here what i see you need anyway.

Mail Code (ish)
~~~~~~~~~~~~~~~

Firstly in structs.h

#define PLR_SMARTPROMPT  (1 << 16)  /* or latest number */
#define PLR_AFK          (1 << 17)  /* This is used in prompt */

Below the flags add a new set for PROMPT_XXX

#define PROMPT_HIT         (1 << 0)
#define PROMPT_MAX_HIT     (1 << 1)
#define PROMPT_TANK_NAME   (1 << 2)
#define PROMPT_TANK_COND   (1 << 3)
#define PROMPT_ENEMY       (1 << 4)
#define PROMPT_ENEMY_COND  (1 << 5)
#define PROMPT_VIS         (1 << 6)
#define PROMPT_TWOLINE     (1 << 7)

Then search for
"byte skills[MAX_SKILLS+1];" a few lines below that you should see
"int spareXX;", XX being a number, change one to "prompt".

Now in comm.c

comment out the old "make_prompt()" function and at about line 140
change:

char *make_prompt(struct descriptor_data *point);

to

char *make_prompt(struct descriptor_data *d);

and move the line up into the external function declarations.

Now in act.other.c comment out the "ACMD(do_display);" function and
it's declaration at the top. Then in interpreter.c change all occurances of
"do_display" with "do_prompt".

From what i can tell, that should be it. But your right, it was hard
to read through. It's great to see people posting code to the web, but with
a little more effort it might be better received, i often spend more time
testing and putting together snippets than i did creating them in the first
place. Anyway hope that works for you, or at least
gets you started, thats not tested btw but shouldn't be too far off.

Subliminal
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   +---------------------------------------------------------------+



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