Re: [NEWBIE]small problem

From: Shane P. Lee (tacodog21@yahoo.com)
Date: 03/25/02


--- lijster op planet <lijster1@planet.nl> wrote:
> In db.c :
>
> Search for
>
>     mob_proto[i].player.sex = t[2];
>
>     mob_proto[i].player.class = 0;
>
>
> Then put this after it
>     mob_proto[i].player.race = 0;
>
> This piece of code does not seem to be there anymore
> in circle30bpl20, anyone able to tell me how to
> solve this properly?
> Thanks.

First, your snippet/patch for adding Mob races is extremely
outdated, so you will have several places where this type of
mismatch will occur.
Second, I _believe_ (not exactly sure) that what you are looking
for is in db.c at line 1196 in stock circle:
--------------------------------------------
  GET_SEX(mob_proto + i) = t[2];

  GET_CLASS(mob_proto + i) = 0;
--------------------------------------------

***********MAILER CODE****************

You will also want to add a new macro similar to the GET_CLASS
macro in utils.h, thus
#define GET_CLASS(ch)   ((ch)->player.chclass)
Becomes:
#define GET_RACE(ch)    ((ch)->player.race)

But DO NOT copy/paste that definition into utils.h, you have to
work it out the best way for you.

***********!MAILER CODE***************

Anyway, hope it all works out for you :-)

-FIRE

=====
**************************************
 * "Mommy! Make the bad man go away!" *
 **************************************

__________________________________________________
Do You Yahoo!?
Yahoo! Movies - coverage of the 74th Academy Awards®
http://movies.yahoo.com/

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT