#define RACE_NULL(ch) (ch->race == 0)
#define RACE_HUMAN(ch) (ch->race == 1)
#define RACE_ELF(ch) (ch->race == 2)
#define RACE_GIANT(ch) (ch->race == 3)
#define RACE_DWARF(ch) (ch->race == 4)
#define CLASS_MAGE(ch) ( ch->class == 0 )
#define CLASS_CLERIC(ch) ( ch->class == 1 )
#define CLASS_THIEF(ch) ( ch->class == 2 )
#define CLASS_WARRIOR(ch) ( ch->class == 3 )
#define CLASS_RANGER(ch) ( ch->class == 4 )
if( ch->race == RACE_HUMAN )for the same affect.
if (ch->level < 13)
{
shallow = 2;
}
else if (ch->level < 26)
{
shallow = 3;
}
else if (ch->level < 39)
{
shallow = 4;
}
else
shallow = 5;
one_argument (argument, check_paralyze);
if (IS_AFFECTED2 (ch, AFF_PARALYSE))
{
if (!str_prefix(check_paralyze, "berserk") || !str_prefix(check_paralyze, "say") || !str_prefix(check_paralyze, "yell") || !str_prefix(check_paralyze, "tell"))
{
send_to_char ("Sure thing!\r\n", ch);
}
else
{
send_to_char ("Paralyzed dummy!\r\n", ch);
return;
}
}
if(!str_cmp(cmd_table[cmd].name, "say")
bool get_mob_vnum_room (CHAR_DATA * ch, sh_int vnum)
{
CHAR_DATA *mob;
for (mob = ch->in_room->people; mob; mob = mob->next_in_room)
if (IS_NPC (mob) && mob->pIndexData->vnum == vnum)
return TRUE;
return FALSE;
}
if (get_mob_vnum_room(BONEWALL_DIR_NORTH)) /*magic2.c line 607*/
{
send_to_char("There is already one here!\r\n", ch);
return;
}
Therefore, if my pc_race_table is in order of:
null race, human, elf, giant, dwarf
And my class_table is in order of:
mage, cleric, thief, warrior, ranger..
My defines should look like:
…?