Re: [Code] Player titles on leveling

From: Skylar (skylar@ifconfig.intserv.com)
Date: 10/13/96


On Sun, 13 Oct 1996, Jonathan Blackhawke wrote:

> but while I'm frustrated on it, I'm working on another project of removing
> the titles that Circle gives to each player upon leveling so that the
> player will be able to keep his/her own title each time they level and not
> have to keep changing it back to what they want.  I've been able to locate

> What do I need to remove or modify to keep it from pulling these titles

Why dont you just go into the gain_exp functions in limits.c and make a check
BEFORE they gain a level to see if their title is a stock one, and store it
as a bool in some var like "int change_title = 0;" (at the top of the func).

if (!strcmp(READ_TITLE(ch), GET_TITLE(ch))
  change_title = TRUE;

Then, down where it calls set title, just add this line...
if (change_title)
  set_title(ch, NULL);

Should work...

-Sky

+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
|   http://cspo.queensu.ca/~fletcher/Circle/list_faq.html   |
+-----------------------------------------------------------+



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