I am new to AFKMud and I am planning for my MUD to only have male and female sexes. How can i remove Neutral and hermaphrodite from the code?
Remove the enum entries in olc.h, then search for SEX_HERMAPHRODYTE and SEX_NEUTRAL in the code and adjust everything that makes use of it.
Word of warning though, you may want to adjust the load routines for the areas, as if you remove the enum entry for SEX_NEUTRAL (which would have a value of 0 I believe) you remove the 0 entry, in the enum the values all shift, male becomes 0 and female 1.. which can have serious changes and affects on the settings in the areas. Removing the enums will make SEX_MALE the default though (the 0 entry), where SEX_NEUTRAL was the default previously.
What you can do (after removing the enums in olc.h as I've mentioned above) is on load of the sex field -1 from it (as long as it isn't already 0) and if its >= SEX_MAX make it equal to SEX_MAX-1. That way, all SEX_NEUTRALs become male, and all SEX_HERMAPHRODYTEs become female. Only do this on the present version of your area files though, (I believe Samson put in file versioning into AFK) make the change and save with a new version number that knows to just load, rather than -1 everytime.
Hopefully that helps