Exemplo n.º 1
0
  /**
   * 杀死怪物
   *
   * @param oid
   * @param animation
   * @return
   */
  public static byte[] killMonster(int oid, int animation) {
    MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();

    mplew.write(SendPacketOpcode.KILL_MONSTER.getValue());
    mplew.writeInt(oid);
    mplew.write(animation);

    return mplew.getPacket();
  }
Exemplo n.º 2
0
  public static byte[] suckMonster(int oid, int chr) {
    MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();

    mplew.write(SendPacketOpcode.KILL_MONSTER.getValue());
    mplew.writeInt(oid);
    mplew.write(4);
    mplew.writeInt(chr);

    return mplew.getPacket();
  }