You lose them, every game that you will ever play will likely make you lose your guild/alliance contributions if you quit the guild/alliance as it wouldn't exactly make sense that they would go with you if you left.