//checks if hench has prerequisites for Arcane Archer prestige class
//written by kookoo 8-13-8
int StartingConditional()
{
  //must be an elf or half-elf
  object oHench = OBJECT_SELF;
  int nRace = GetRacialType(oHench);
  if ((nRace == RACIAL_TYPE_ELF) || (nRace == RACIAL_TYPE_HALFELF))
  {
    //must have BAB of 6 or better
    if (GetBaseAttackBonus(oHench) >= 6)
    {
      //must have arcane casting
      int nClass;
      nClass = GetLevelByClass(CLASS_TYPE_BARD, oHench);
      nClass += GetLevelByClass(CLASS_TYPE_WIZARD, oHench);
      nClass += GetLevelByClass(CLASS_TYPE_SORCERER, oHench);
      if (nClass>0)
      {
        //must have weapon focus feat on a bow
        if (GetHasFeat(FEAT_WEAPON_FOCUS_LONGBOW, oHench) || GetHasFeat(FEAT_WEAPON_FOCUS_SHORTBOW, oHench))
        {
          //must have point blank shot
          if (GetHasFeat(FEAT_POINT_BLANK_SHOT, oHench))
          {
          return TRUE;
          }
        }
      }
    }
  }
    return FALSE;
}
