Re: [BPL11] SET_SKILL

From: Craig Adams (punkrock@IX.NETCOM.COM)
Date: 08/17/98


Scorn wrote:
>
> Ok as you know i just added do_remort to my mud and it works great.
> But i want to reset all skills and spells learned to 0.  Is there a way to
> do this without using SET_SKILL for every skill/spell or deleting the
> playerfile?  oh and the stock mud regenerates all your stats if you havent
> been on in so long.  Anyone know where i can find that in the code for
> personal reasons id like to take that out.
> Thanks
> Scorn

int i;
      for (i = 1; i <= MAX_SKILLS; i++)
        SET_SKILL(vict, i, 100);
^^ right from act.wizard.c's DO_RESTORE..
-Craig


     +------------------------------------------------------------+
     | 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