Legion and emerald scripts tested and working