🔔 管理提醒: 本帖被 代号丶 执行压帖操作(2013-07-01)
⚠ 提醒:该帖发布已超过3年,如有资源可能已失效,谨慎下载以免浪费积分。反馈请前往站务版块。
发现GM不能互相看到 发布方法 pHbguoH, t~=@r9`S maplecharacter.java qSs^}eN 查找: ,'0oj$~S: getMap().broadcastMessage(this, MaplePacketCreator.removePlayerFromMap(getId()), false); LFry?HO,D 替换为: rG'k<X~7 getMap().broadcastNonGmMessage(this, MaplePacketCreator.removePlayerFromMap(getId())); T;e (Q,!H ========================== loVvr"&g maplemap.java +c2=*IA/ 查找: Zvw3C%In /** +_K;Pj]x * Broadcasts the given packet to everyone on the map but the source. source = null Broadcasts to everyone NNrZb? * aLo>Yi * @param source v-]-wNqT * @param packet WYd,tGz 在前面加上 Wn</",Gf public void broadcastNonGmMessage(MapleCharacter source, MaplePacket packet) { JqhVD@1{ synchronized (characters) { MrjB[3Td for (MapleCharacter chr : characters) { #~qp8 w if (chr != source && (!chr.isGM() || !chr.isHidden())) chr.getClient().getSession().write(packet); 761"S@tf$} } WX$^[^=HC } 79fyn!Iz< }
Ctrl + Enter 快速发布 匿名回贴(消耗10铜币)