If after clearing your cache some NPCs are still undefined, download mega.nz/#!3NA0xJST!BQmj8bzmYighnCUwxXHM-ubvo7WA_L5LqkGOfrOM5oM, put it in your dofus folder and run it, as long as you are running the server in english you should have no problems anymore afterwards.