show code js

2010年9月20日 星期一

一般玩家輸入(.)顯示指令錯誤問題

title: modify (.) to fix a display error in game
open: \src\l1j\server\server\clientpackets\C_Chat.java
find:
if (chatText.startsWith(".")) {
_O5]eRJS}nF=]nqD(kfU8G3>+cX.P2?FeD%N}V1laDi!V1U^tS}bqX?*f1h-8ADEU:7[HWGaR
replace:
// ---BEGIN---
/* if (chatText.startsWith(".")) { */
if (chatText.startsWith(".") && pc.getAccessLevel() > 0) {
// ---END---
_O5]eRJS}nF=]nqD(kfU8G3>+cX.P2?FeD%N}V1laDi!V1U^tS}bqX?*f1h-8ADEU:7[HWGaR
close and save file
_O5]eRJS}nF=]nqD(kfU8G3>+cX.P2?FeD%N}V1laDi!V1U^tS}bqX?*f1h-8ADEU:7[HWGaR
ps:
can add:
&& !chatText.startsWith("..")
when gm send a message is "...." can`t be show a error

沒有留言:

張貼留言