Here you'll find some of my x-chat scripts. They are mostly just for fun or specific situations, but they might help you out figuring how to script for x-chat.
napochopo.pl- translate your text to anoying *pa speak. This is most useful for spanish. It still has some 'bugs' since it's hard to divide by syllables in a simple regex.