Currently I'm interested in RO2. After searching a while on the internet I've found 3 open source server emulator projects (They'll release code once gravity releases ro2). I'll leave some links here
www.sagaro2.info <= C#
They can be found #saga on deltaanime
www.project-tyr.net <= C++ I think
They can be found on #tyr on deltaanime
www.janus.net <= C++
They can be found on #janus on deltaanime
Those are english speaking projects, I'm pretty sure there are chinese projects and such but I'm quite unable to find them myself.