Read these threads, they'll help get you started in the right direction:

http://bbs.evony.com/showthread.php?t=42240

http://bbs.evony.com/showthread.php?t=1555

http://bbs.evony.com/showthread.php?t=172