[plr_ghost] and [do_advance]

From: David Wiklund (mathrim@HEM1.PASSAGEN.SE)
Date: 04/07/98


Hiya... Have a prob with my plr_ghost flag...
In interpreter.c at the command interpreter I have added this at the top.

  if (PLR_FLAGGED(ch, PLR_GHOST)) {
    if (!CMD_IS("who")   && !CMD_IS("north") &&
        !CMD_IS("south") && !CMD_IS("east")  &&
        !CMD_IS("west")  && !CMD_IS("down")  &&
        !CMD_IS("up")    && !CMD_IS("gossip")) {
    send_to_char("You cannot do that as a ghost!\r\n", ch);
    return;
    }
  }

My intention is for it to get the ghost only to do certain things...
But it doesn't matter if the ghost type gossip or any of the commands above... they cant do it anyway.
What's wrong??? I can't seem to figure it out.


---------

And another prob I got... I have made so that I define the exp for lvl in class.c only how much it is needed to lvl not all exp just the exp for next lvl...

ex.
      case 30: return 4000;     break;
      case 31: return 4000;     break;
      case 32: return 4000;     break;
instead of :
      case 30: return 4000;     break;
      case 31: return 8000;     break;
      case 32: return 16000;     break;

But that causes one small prob (i have managed to change everything except this :P)
In do_advance where you use this:

gain_exp_regardless(victim,
        level_exp(GET_CLASS(victim), newlevel) - GET_EXP(victim));

I can only advance ppl 1 lvl... hmm or as happened when I tried to advance a friend to impl...
>advance samael 54              /* 54 is our impl lvl */
OK
>who
[snip]
samael lvl 51
[snip]

I don't have any Idea what could be wrong.
Any1 know?

        Yt 7David Wiklund
"The borgs assimilated my whole race and all I got was a lousy t-shirt!"


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



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