public static byte[] getWarpToMap(MapleMap to, int spawnPoint, MapleCharacter chr) {
        MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();
        mplew.writeShort(SendPacketOpcode.WARP_TO_MAP.getValue());

        mplew.writeShort(2);
        mplew.writeLong(1L);
        mplew.writeLong(2L);
        mplew.writeLong(chr.getClient().getChannel() - 1);
        mplew.write(0);
        mplew.write(2);//v146
        mplew.writeLong(0);
        mplew.writeInt(to.getId());
        mplew.write(spawnPoint);
        mplew.writeInt(chr.getStat().getHp());
        mplew.writeShort(0);
        mplew.writeLong(PacketHelper.getTime(System.currentTimeMillis()));
        mplew.writeInt(100);
        mplew.writeShort(0);
        mplew.write(1);

      
        return mplew.getPacket();
    }