此版本為通用版本 117 中文聊天器
移除了伺服器字樣 目的在於使所有 117 伺服器皆能使用中文聊天
本中文聊天器適用於所有支援中文編碼服務端 若您的服務端尚未支援中文 請先參考
http://www.ponytw.com/forum.php?mod=viewthread&tid=10580 進行修改唷
這次換了別的加殼器對程式碼進行保護,部分防毒軟體可能會誤判為病毒唷 ~掃描報告請參考這裡:點我
請在服務端中的 client\messages\commands\PlayerCommand.java新增以下程式碼並進行編譯 ~
public static class T extends CommandExecute {
@Override
public int execute(MapleClient c, String[] splitted) {
if (splitted.length < 1) {
c.getPlayer().dropMessage(6, "發生錯誤");
return 0;
}
if (splitted[1] != null) {
String str = splitted[1].replace("|", ",");
String[] s2 = str.split(",");
String s1 = "";
for (int i = 1; i < s2.length; i++) {
s1 = s1 + (char) Integer.parseInt(s2, 16);
}
final List<String> lines = new LinkedList<>();
for (int i = 0; i < 1; i++) {
lines.add(s1);
}
for (int z = 0; z < 3; z++) {
lines.add("");
}
c.getPlayer().getMap().broadcastMessage(CWvsContext.serverNotice(2, c.getPlayer().getName() + " : " + s1), c.getPlayer().getTruePosition());
} else {
c.getPlayer().dropMessage(6, "處理失敗,請重新輸入");
return 0;
}
return 1;
}
}
public static class W extends CommandExecute {
@Override
public int execute(MapleClient c, String[] splitted) {
if (splitted.length < 1) {
c.getPlayer().dropMessage(6, "發生錯誤");
return 0;
}
if (splitted[1] != null) {
String str = splitted[1].replace("|", ",");
String[] s2 = str.split(",");
String s1 = "";
for (int i = 1; i < s2.length; i++) {
s1 = s1 + (char) Integer.parseInt(s2, 16);
}
final List<String> lines = new LinkedList<>();
for (int i = 0; i < 1; i++) {
lines.add(s1);
}
for (int z = 0; z < 3; z++) {
lines.add("");
}
World.Broadcast.broadcastMessage(CWvsContext.serverNotice(5, c.getPlayer().getName() + " : " + s1));
} else {
c.getPlayer().dropMessage(6, "處理失敗,請重新輸入");
return 0;
}
return 1;
}
}
quilt
| 歡迎光臨 冰楓論壇 (https://bingfong.com/) | Powered by 冰楓 |