************************************************
* Type: Mirc 4.72 Addon ************************
* Description: Converts English into Piglatin **
* Author: Chatter_Horizons *********************
* Used in the new mIRC 4.72 script Malingerer **
************************************************

=======
Aliases
=======

/pl {
if ($1 == $null) { echo 6 $active Error in /pl | /echo 6 $active Syntax: /pl <text> | halt }  
set %vowels a e i o u | unset %i %wordlen %plword %leftside %rightside %wordlen2 |  set %line $replace(*1,$chr(32),)
:pl
set %count $count(%line,) | set %count1 %count + 1  
if (%i == %count1 ) { /msg $active %plword | halt } |  inc %i
set %word $token(%i,127,%line) | set %wordlen $len(%word) | set %wordlen2 %wordlen  - 1  
if (%wordlen == 1) set %plword %plword %word
elseif ($left(1,%word) !isin %vowels) { set %rightside $right(%wordlen2,%word) | set %leftword  %rightside $+ $left(1,%word) $+ ay | set %plword %plword %leftword }
else set %plword %plword %word $+ ay | goto pl


Used in -{mg}- vs 5.72 By Chatter_Horizons  1997
