Re: Quest

From: Steve (quickey@cyberverse.com)
Date: 05/25/96


pretty simple add something like this to limits.c in the function gain_exp()

void gain_exp(struct char_data * ch, int gain)
{
  int is_altered = FALSE;
  int num_levels = 0, pmana, pmove, phit;
  extern const struct title_type titles[NUM_CLASSES][LVL_IMPL + 1];
  char buf[128];

void gain_exp(struct char_data * ch, int gain)
{
  int is_altered = FALSE;
  int num_levels = 0;
  int pmana, pmove, phit;                                            /* add */
  extern const struct title_type titles[NUM_CLASSES][LVL_IMPL + 1];  /* add */
  char buf[128];

/* further down... */

    while (GET_LEVEL(ch) < LVL_IMMORT &&
        GET_EXP(ch) >= titles[(int) GET_CLASS(ch)][GET_LEVEL(ch) + 1].exp) {
      GET_LEVEL(ch) += 1;
      num_levels++;
      pmove = GET_MAX_MOVE(ch);          /* add */
      pmana = GET_MAX_MANA(ch);          /* add */
      phit = GET_MAX_HIT(ch);            /* add */
      advance_level(ch);
      is_altered = TRUE;
    }

    if (is_altered) {
      if (num_levels == 1)
        send_to_char("You rise a level! ", ch);            /* remove \r\n */
      else {
        sprintf(buf, "You rise %d levels! ", num_levels);  /* remove \r\n */
        send_to_char(buf, ch);
      }
      /* add the next few lines till the set_title(ch, NULL) line
      sprintf(buf, "You have gained [%d/%d]hp, [%d/%d]ma, [%d/%d]mv!\r\nYou require [%d] exp to gain your next level.\r\n",
        GET_MAX_HIT(ch) - phit, GET_MAX_HIT(ch), GET_MAX_MANA(ch) - pmana,
        GET_MAX_MANA(ch), GET_MAX_MOVE(ch) - pmove, GET_MAX_MOVE(ch),
        titles[(int)GET_CLASS(ch)][(int)GET_LEVEL(ch)+1].exp - GET_EXP(ch));
      send_to_char(buf, ch);
      set_title(ch, NULL);
      check_autowiz(ch);
    }

that should be it :) I HOPE

On Sat, 25 May 1996, Imps of MB2 wrote:

> Hi all :P
> 
> i have a question, having a bit of trouble with this
> I would like to make it so when you level, it says:
> You Rise a level! You received [12/258]hp, [4/150]ma, [9/231]mo!
> You need [67987] experince points to level!
> 
> Something like that? Any ideas?
> 
> -Wyvern
> 
> 
> |------------------------------------------|
> |     Nexus, Paradox, Kurupt, Wyvern       |
> |       Imps of Malacious Bliss 2          |
> |    TELNET: linus.missconet.com 4000      |  
> |     WWW: www.missconet.com/~circle       |
> |------------------------------------------|
> 



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