instead of:
iAttackMod += GetMyBaseAttackBonus (oCreature, CLASS_TYPE_FIGHTER);
iAttackMod += GetMyBaseAttackBonus (oCreature, CLASS_TYPE_BARBARIAN);
iAttackMod += GetMyBaseAttackBonus (oCreature, CLASS_TYPE_PALADIN);
iAttackMod += GetMyBaseAttackBonus (oCreature, CLASS_TYPE_RANGER);
iAttackMod += GetMyBaseAttackBonus (oCreature, CLASS_TYPE_CLERIC);
iAttackMod += GetMyBaseAttackBonus (oCreature, CLASS_TYPE_DRUID);
iAttackMod += GetMyBaseAttackBonus (oCreature, CLASS_TYPE_ROGUE);
iAttackMod += GetMyBaseAttackBonus (oCreature, CLASS_TYPE_BARD);
iAttackMod += GetMyBaseAttackBonus (oCreature, CLASS_TYPE_MONK);
iAttackMod += GetMyBaseAttackBonus (oCreature, CLASS_TYPE_WIZARD);
iAttackMod += GetMyBaseAttackBonus (oCreature, CLASS_TYPE_SORCERER);
put
iAttackMod += GetBaseAttackBonus(oCreature);