I would honestly build a generic table and two faction-specific override tables to store the references between each song file and MapIDs. You would have the addon detect when you change zones, look in the appropriate faction-specific table for the song to play, falling back to the generic table if none are found, and play the song if it is different than the one already playing.
__________________
WoWInterface AddOns
"All I want is a pretty girl, a decent meal, and the right to shoot lightning at fools."
-Anders (Dragon Age: Origins - Awakening)
|
|