Well, I'm also modifying your script and used some things I made before, and it's already working quite good. I only have to find a way to position the emoticons correctly and
maybe I can add background color support. The custom status is only a matter of pasting my previously made code, so that's quite easy to make.
Thanks for posting your script, it really helped me with the way I should handle the different codes.