protected MapleQuestRequirement(MapleQuest quest,ReadBin data) throws IOException {
  this.quest=quest;
  this.dayByDay=data.readByte() > 0;
  this.normalAutoStart=data.readByte() > 0;
  this.lvmin=data.readShort();
  this.lvmax=data.readShort();
  this.mbmin=data.readShort();
  this.charismaMin=data.readShort();
  this.charmMin=data.readShort();
  this.craftMin=data.readShort();
  this.insightMin=data.readShort();
  this.senseMin=data.readShort();
  this.willMin=data.readShort();
  this.pop=data.readShort();
  this.pettamenessmin=data.readShort();
  this.subJobFlag=data.readShort();
  this.npc=data.readInt();
  this.interval=data.readInt();
  this.end=data.readString();
  this.startscript=data.readString();
  this.endscript=data.readString();
  short size=data.readShort();
  for (int i=0; i < size; i++) {
    int field=data.readInt();
    fieldEnter.add(field);
  }
  size=data.readShort();
  for (int i=0; i < size; i++) {
    short job=data.readShort();
    jobs.add(job);
  }
  size=data.readShort();
  for (int i=0; i < size; i++) {
    int id=data.readInt();
    boolean acquire=data.readByte() > 0;
    skills.put(id,acquire);
  }
  size=data.readShort();
  for (int i=0; i < size; i++) {
    int id=data.readInt();
    byte state=data.readByte();
    byte order=data.readByte();
    quests.put(id,state);
  }
  size=data.readShort();
  for (int i=0; i < size; i++) {
    int id=data.readInt();
    int count=data.readInt();
    byte order=data.readByte();
    items.put(id,count);
  }
  size=data.readShort();
  for (int i=0; i < size; i++) {
    int id=data.readInt();
    int count=data.readInt();
    mobs.put(id,count);
  }
  size=data.readShort();
  for (int i=0; i < size; i++) {
    int id=data.readInt();
    pets.add(id);
  }
}

protected MapleQuestRequirement ( MapleQuest quest , ReadBin data ) throws IOException { this . quest = quest ; this . dayByDay = data . readByte ( ) > 0 ; this . normalAutoStart = data . readByte ( ) > 0 ; this . lvmin = data . readShort ( ) ; this . lvmax = data . readShort ( ) ; this . mbmin = data . readShort ( ) ; this . charismaMin = data . readShort ( ) ; this . charmMin = data . readShort ( ) ; this . craftMin = data . readShort ( ) ; this . insightMin = data . readShort ( ) ; this . senseMin = data . readShort ( ) ; this . willMin = data . readShort ( ) ; this . pop = data . readShort ( ) ; this . pettamenessmin = data . readShort ( ) ; this . subJobFlag = data . readShort ( ) ; this . npc = data . readInt ( ) ; this . interval = data . readInt ( ) ; this . end = data . readString ( ) ; this . startscript = data . readString ( ) ; this . endscript = data . readString ( ) ; short size = data . readShort ( ) ; for ( int i = 0 ; i < size ; i ++ ) { int field = data . readInt ( ) ; fieldEnter . add ( field ) ; } size = data . readShort ( ) ; for ( int i = 0 ; i < size ; i ++ ) { short job = data . readShort ( ) ; jobs . add ( job ) ; } size = data . readShort ( ) ; for ( int i = 0 ; i < size ; i ++ ) { int id = data . readInt ( ) ; boolean acquire = data . readByte ( ) > 0 ; skills . put ( id , acquire ) ; } size = data . readShort ( ) ; for ( int i = 0 ; i < size ; i ++ ) { int id = data . readInt ( ) ; byte state = data . readByte ( ) ; byte order = data . readByte ( ) ; quests . put ( id , state ) ; } size = data . readShort ( ) ; for ( int i = 0 ; i < size ; i ++ ) { int id = data . readInt ( ) ; int count = data . readInt ( ) ; byte order = data . readByte ( ) ; items . put ( id , count ) ; } size = data . readShort ( ) ; for ( int i = 0 ; i < size ; i ++ ) { int id = data . readInt ( ) ; int count = data . readInt ( ) ; mobs . put ( id , count ) ; } size = data . readShort ( ) ; for ( int i = 0 ; i < size ; i ++ ) { int id = data . readInt ( ) ; pets . add ( id ) ; } }
creates a new instance of maplequestrequirement .
