🔔 管理提醒: 本帖被 代号丶 执行压帖操作(2013-07-01)
⚠ 提醒:该帖发布已超过3年,信息资源可能已失效,资源谨慎下载以免浪费积分。反馈请前往站务版块。
发现GM不能互相看到 发布方法 W=A0+t%XC 9^g8VlQdT maplecharacter.java ]T/%Bau 查找: X%s5D&gr getMap().broadcastMessage(this, MaplePacketCreator.removePlayerFromMap(getId()), false); Z*w({k7] 替换为: n:40T1:q getMap().broadcastNonGmMessage(this, MaplePacketCreator.removePlayerFromMap(getId())); ]t!v`TH ========================== pD[&,gV$ maplemap.java Trh t2Iv 查找: G"&$7!6[Y /** 'fK=;mM * Broadcasts the given packet to everyone on the map but the source. source = null Broadcasts to everyone eCKm4l'BZ * IWi0? V * @param source *A!M0TK?i, * @param packet i_m&qy<v 在前面加上 ^k%+ao public void broadcastNonGmMessage(MapleCharacter source, MaplePacket packet) { XM!oN^ synchronized (characters) { wuY-f4 for (MapleCharacter chr : characters) { < w}i if (chr != source && (!chr.isGM() || !chr.isHidden())) chr.getClient().getSession().write(packet); i7T#WfF } xib}E[-l# } I`XOvSO }
Ctrl + Enter 快速发布 匿名回贴(消耗10铜币)