void main()
{

  location lSpawnLoc = GetLocation(OBJECT_SELF);
  object oPC = GetNearestCreatureToLocation(CREATURE_TYPE_PLAYER_CHAR,PLAYER_CHAR_IS_PC,lSpawnLoc);
  object oArea = GetArea(oPC);
  object oMyArea = GetArea(OBJECT_SELF);
  if (oArea == oMyArea)
    {
      int nCount = GetLocalInt(OBJECT_SELF,"Count");
      if (nCount < 12)
      {
        CreateObject(OBJECT_TYPE_CREATURE,"bandit003",lSpawnLoc);
        CreateObject(OBJECT_TYPE_CREATURE,"bandit003",lSpawnLoc);
        CreateObject(OBJECT_TYPE_CREATURE,"bandit004",lSpawnLoc);
        CreateObject(OBJECT_TYPE_CREATURE,"bandit004",lSpawnLoc);
        SetLocalInt(OBJECT_SELF,"Count",nCount+1);
      }
    }

}
