aconvert.c

skylib_fluffos_v3/mudlib/cmds/creator/aconvert.c · 992 B

From the archive skylib_fluffos_v3.zip

Download the archive   « Back to the archive contents

inherit COMMAND_BASE;


int cmd( string str ) {
    string s;
    
    if(!TP) {
        return 1;
    }
    s = lower_case(str);
    s = replace(s,({"a","å","b","ß","c","Ç","d","Ð","e","Ë","h","H","i","î","j","J",
                        "l","|","n","ñ","o","ö","p","þ","q","¶","r","®","s","§","u","ü",
                        "v","V","x","×","y","¥"}));
    tell_object(TP,str +" in asciitext = "+s+"\n");
    return 1;
    
} /* cmd() */

int back( string str ) {
    string s;
    
    if(!TP) {
        return 1;
    }
    s = replace(str,({"å","a","ß","b","Ç","c","Ð","d","Ë","e","H","h","î","i","J","j",
                        "|","l","ñ","n","ö","o","þ","p","¶","q","®","r","§","s","ü","u",
                        "V","v","×","x","¥","y"}));
    tell_object(TP,str +" in plaintext = "+s+"\n");
    return 1;
    
} /* back() */

mixed *query_patterns() {
    return ({
      "<string>", (: cmd($4[0]) :),
      "back <string>", (: back($4[0]) :),

    });
} /* query_patterns() */

Site Stats

Snippets: 1791
Codebases: 571