🔔 管理提醒: 本帖被 代号丶 执行压帖操作(2013-07-01)
⚠ 提醒:该帖发布已超过3年,如有资源可能已失效,谨慎下载以免浪费积分。反馈请前往站务版块。
发现GM不能互相看到 发布方法 .6A{ Lm7fz9F% maplecharacter.java 7VW/v4n 查找: IPk"{T3 getMap().broadcastMessage(this, MaplePacketCreator.removePlayerFromMap(getId()), false); C j: 替换为: I>:.fHvUC getMap().broadcastNonGmMessage(this, MaplePacketCreator.removePlayerFromMap(getId())); TGzs|- ========================== PBb'`PV maplemap.java 4%*`'o$_ 查找: rnQ9uNAu /** :~\ y< * Broadcasts the given packet to everyone on the map but the source. source = null Broadcasts to everyone }*,z~y}V# * [m6%_3zV * @param source N{?Qkkgx * @param packet 7-MyiCt 在前面加上 #C+7~ns' public void broadcastNonGmMessage(MapleCharacter source, MaplePacket packet) { VWW(=j synchronized (characters) { bYwe/sR for (MapleCharacter chr : characters) { V PI_pK if (chr != source && (!chr.isGM() || !chr.isHidden())) chr.getClient().getSession().write(packet); ,B$e'KQ } "#]V^Rzxh } %B(E;t63W }
Ctrl + Enter 快速发布 匿名回贴(消耗10铜币)