public MVByteBuffer toBytes() {
    int msgId = Engine.getEventServer().getEventID(this.getClass());

    MVByteBuffer buf = new MVByteBuffer(20);
    buf.putLong(playerId);
    buf.putInt(msgId);
    buf.putLong(questId);
    buf.flip();
    return buf;
  }