Set up EQ as if you were playing solo on your own server (there's several guides).
Read
http://www.eqemulator.net/forums/showthread.php?t=22667 (optional)
Get the code binaries here:
http://www.eqemulator.net/forums/showthread.php?t=25614
That should be enough material to do it. I can't help with any of the coding stuff; I don't understand a word of it, but if you have any trouble, post in the EQ Offline Subforum.