fprintf( fp, "%s~\n", race_table[race].name );
sprintf( buf, "Vnum: [%5d] Sex: [%s] Race: [%s]\n\r",
pMob->vnum,
pMob->sex == SEX_MALE ? "male " :
pMob->sex == SEX_FEMALE ? "female " :
pMob->sex == 3 ? "random " : "neutral",
race_table[pMob->race].name );
send_to_char( buf, ch );
if (pMobIndex->race = race_lookup("dwarf"))
{
mob->perm_stat[STAT_CON] += 2;
}
if (pMobIndex->race = race_lookup("elf"))
{
mob->perm_stat[STAT_DEX] += 2;
}
if (i = 10) ; // always true
if (i == 10) ; // depends on the value of i
if (i = 0) ; // always false
I've got a disturbing problem with my OLC. For every race, it is saving it as "elf". I set the race to "giant" (for example), asave changed, and it shows the area as saving. When I shutdown and come back up, I redit the same mob and the race is now "elf".
Thoughts, help?
Arholly