Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

้help V111 native languages

Newbie Spellweaver
Joined
Jul 5, 2016
Messages
25
Reaction score
1
I want to type Thai language into the chat box.
i edit
LittleEndianAccessor
PHP:
public final String readAsciiString(final int n) {
        try {
            final byte ret[] = new byte[n];
            for (int x = 0; x < n; x++) {
                ret[x] = readByte();
            }
            return new String(ret, "TIS-620");
        } catch (UnsupportedEncodingException ex) {
            System.err.println(ex);
        }
        return "";
    }

MaplePacketLittleEndianWriter
PHP:
private static final Charset ASCII = Charset.forName("TIS-620");

PHP:
public final void writeAsciiString(final String s) {
        write(s.getBytes(ASCII));
    }

    public final void writeAsciiString(String s, final int max) {
if (s.getBytes(ASCII).length > max) {
            s = s.substring(0, max);
        }
        write(s.getBytes(ASCII).length);
        for (int i = s.getBytes(ASCII).length; i < max; i++) {
            baosWrite((byte) 0);
        }
    }

PHP:
public final void writeMapleAsciiString(final String s) {
        writeShort((short) s.getBytes(ASCII).length);
        writeAsciiString(s);
    }

    public final void writeMapleAsciiString(String s, final int max) {
        if (s.getBytes(ASCII).length > max) {
            s = s.substring(0, max);
        }
        writeShort((short) s.getBytes(ASCII).length);
        write(s.getBytes(ASCII));
        for (int i = s.getBytes(ASCII).length; i < max; i++) {
            baosWrite((byte) 0);
        }
    }

edit cilent and change font client to tahoma
PHP:
// Allow foreign characters in chat - credits to yeehaw and sonkub    
// CWndMan::TranslateMessage    
// PatchNop(0x00BEEE6D, 9);    
// CWndMan::EnableIME    
// PatchNop(0x00BEE769, 2);        
// IsDBCSLeadByte 1    
// WriteValue(0x0058F990, (char)0xEB);    
// IsDBCSLeadByte 2    
// WriteValue(0x00A5180F, (char)0xEB);    
// IsDBCSLeadByte 3    
// WriteValue(0x00AED532, (char)0xEB);    
// IsDBCSLeadByte 4    
// WriteValue(0x00B3C7E2, (char)0xEB);    
// IsDBCSLeadByte 5    
// WriteValue(0x00C3CAF8, (char)0xEB);

is work but thai vowels are counted as one word see pictrue v111 gms
Maple0003 - ้help V111 native languages - RaGEZONE Forums
i need fix this anyone can help me
Example: THMS v96
Maple0000 - ้help V111 native languages - RaGEZONE Forums
 

Attachments

You must be registered for see attachments list
Back
Top