Small change, could be usefull :]
People who are in hide, or are a GM will be able to see if you use hide.
In maplecharacter.java
Find:Replace with:Code:getMap().broadcastMessage(this, MaplePacketCreator.removePlayerFromMap(getId()), false);Code:getMap().broadcastNonGmMessage(this, MaplePacketCreator.removePlayerFromMap(getId()));
In maplemap.java
Find:Add Before:Code:/** * Broadcasts the given packet to everyone on the map but the source. source = null Broadcasts to everyone * * @param source * @param packet */For those interested, what this does is changes if so that instead of brodcasting the packet to everyone in the map when your in hide, it brodcasts it to everyone who isnt a GM, or isnt in hide.Code:public void broadcastNonGmMessage(MapleCharacter source, MaplePacket packet) { synchronized (characters) { for (MapleCharacter chr : characters) { if (chr != source && (!chr.isGM() || !chr.isHidden())) chr.getClient().getSession().write(packet); } } }
I havent actually tested this myself yet (I will nextime I restart my server), but someone in the dev secion said it worked fine.
(auto hide on login will apprently keep you hidden, though)



Reply With Quote

Good job :happy:

