Well, my fingers are aching after 5 hours of slaving over this, but..
http://www.arcemu.info/wiki/index.ph...=Unit_Commands
I redid this completely. All functions now have arguments in it, everything is written from scratch and ordered a bit better.
(Yes, I am sympathy).
Enjoy, and I hope this helps my fellow Lua scripters.