Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
check_tumble
Dec 18, 2017, 7:21 pm
By Remcon
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Yandex

Members: 0
Guests: 15
Stats
Files
Topics
Posts
Members
Newest Member
478
3,708
19,242
614
BenitoVirg
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » Error
Forum Rules | Mark all | Recent Posts

Error
< Newer Topic :: Older Topic > Race defines

Pages:<< prev 1 next >>
Post is unread #1 May 16, 2005, 8:39 am   Last edited May 16, 2005, 8:39 am by Txzeenath
Go to the top of the page
Go to the bottom of the page

Txzeenath
Apprentice
GroupMembers
Posts86
JoinedJul 24, 2004

I was adding a long desc builder for my introduction/recognization code(makes a long desc based on the mobs body mass index, race, gender, etc. if you don't know the person) but anyway...

In mudcfg.h

find
typedef enum
{
   RACE_HUMAN, RACE_HIGH_ELF, RACE_DWARF, RACE_HALFLING, RACE_PIXIE,
   RACE_HALF_OGRE, RACE_HALF_ORC, RACE_HALF_TROLL, RACE_HALF_ELF, RACE_GITH,
   RACE_MINOTAUR, RACE_DUERGAR, RACE_CENTAUR, RACE_IGUANADON,
   RACE_GNOME, RACE_DROW, RACE_WILD_ELF, RACE_INSECTOID, RACE_SAUGHIN, RACE_19
} race_types;


and change it to:
typedef enum
{
   RACE_HUMAN, RACE_HIGH_ELF, RACE_DWARF, RACE_HALFLING, RACE_PIXIE,
   RACE_HALF_OGRE, RACE_HALF_ORC, RACE_HALF_TROLL, RACE_HALF_ELF, RACE_GITH,
   RACE_MINOTAUR, RACE_DUERGAR, RACE_CENTAUR, RACE_IGUANADON,
   RACE_GNOME, RACE_DROW, RACE_WILD_ELF, RACE_INSECTOID, RACE_SAHUAGIN, RACE_19
} race_types;



Notice that race_sahuagin is mispelled in the original :)

The races also need to be added to player.c with the IsBadSide, IsPerson, etc.

Note: This is version 1.7
       
Post is unread #2 May 16, 2005, 7:50 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Bleh. I hate typos. Nice catch :)
       
Post is unread #3 May 17, 2005, 3:48 am
Go to the top of the page
Go to the bottom of the page

Txzeenath
Apprentice
GroupMembers
Posts86
JoinedJul 24, 2004

Lol ya.. funny that RACE_SAHUAGIN never got used once to pull up any "alarms" on it, it just passively gets past with that name :-p

Hmm... curious as to why sea elf is gone though... being that sea elf and the sahuagin are enemies, i'd think the sea elf would be included into the races to fit into the little "battle of the races".
       
Pages:<< prev 1 next >>