I'm creating a few custom post types for a website and I could use a little help figuring out how to adjust the permalink structure to show things correctly.

Basically I'm adding these types and the links should look like this:

Community:
mysite.com/communities/Community-Slug

Lot / Listing:
mysite.com/Community-Slug/lot-slug
(slug may be lot number, may be "lot-3" etc)

Real Estate Agents:
mysite.com/agents/agent-slug
or
mysite.com/commuunities/community-slug/agent-slug

Any help would be greatly apprecaited.