@Override public final void handlePacket(SeekableLittleEndianAccessor reader, GameClient c) { reader.readByte(); byte world = reader.readByte(); c.setWorldId(world); c.setChannelId((byte) (reader.readByte() + 1)); c.sendCharList(world); }
@Override public final void handlePacket(SeekableLittleEndianAccessor reader, GameClient c) { int oid = reader.readInt(); Monster monster = c.getPlayer().getMap().getMonsterByOid(oid); if (!c.getPlayer().isAlive() || monster == null) { return; } if (monster.getId() == 8500003 || monster.getId() == 8500004) { monster.getMap().broadcastMessage(PacketCreator.killMonster(monster.getObjectId(), 4)); c.getPlayer().getMap().removeMapObject(oid); } }