i don't know, what data exactly he use, but i think, he filters inactive players an abandoned by distance, copies a list into the script and set a fixed value for the lcav.
simpel, but not really efficient, i think.
ok, the troops can still vary by the scores of the villages. So if a village has 200 points, you send 50 lcav and if the village have 500 points, you send 100 or somewhat. there are many possibilities.
I use the reports and calculate the count of lcav i need to empty the village at arrival.
So i get reports like this:
http://en33.tribalwars.net/public_report/7bdd3f89b4c5fe5d405308bc4887dba1
http://en33.tribalwars.net/public_report/59fb6e0a8177501eb24b08eb81054328
http://en33.tribalwars.net/public_report/3e6adfa46c163c9aafb294a28b3d35bc
http://en33.tribalwars.net/public_report/c61b38c0d0baa52a6d0257e7cd06c1be
IMO its not legal to read out report using a database in the background, so i send my troops manuel