示例#1
0
 public override L2DatDefinition ParseMain(BinaryReader f, int RecNo)
 {
     L2DatDefinition ret = new L2DatDefinition();
     if (Program.main_form.selectedDatVersion >= DatVersion.ChaoticThrone1_0_Kamael)
     {
         SkillgrpInfo_CT1 info = new SkillgrpInfo_CT1();
         info = (SkillgrpInfo_CT1)base.ReadFieldValue(f, info, "skill_id", "cast_style");
         if (Program.main_form.selectedDatVersion >= DatVersion.ChaoticThrone1_5_Hellbound)
             info = (SkillgrpInfo_CT1)base.ReadFieldValue(f, info, "UNK_0");
         info = (SkillgrpInfo_CT1)base.ReadFieldValue(f, info, "hit_time", "hp_consume");
         if (Program.main_form.selectedDatVersion >= DatVersion.ChaoticThrone2_4_Epilogue)
             info = (SkillgrpInfo_CT1)base.ReadFieldValue(f, info, "nonetext1");
         info = (SkillgrpInfo_CT1)base.ReadFieldValue(f, info, "UNK_1", "UNK_3");
         if (Program.main_form.selectedDatVersion >= DatVersion.ChaoticThrone2_5_Freya)
             info = (SkillgrpInfo_CT1)base.ReadFieldValue(f, info, "UNK_4", "nonetext2");
         ret = info;
     }
     else
     {
         SkillgrpInfo info = new SkillgrpInfo();
         info = (SkillgrpInfo)base.ReadFieldValue(f, info, "skill_id", "extra_eff");
         if (Program.main_form.selectedDatVersion >= DatVersion.Chronicle4)
             info = (SkillgrpInfo)base.ReadFieldValue(f, info, "is_ench", "UNK_1");
         ret = info;
     }
     return ret;
 }
示例#2
0
 public override L2DatDefinition ParseMain(BinaryReader f, int RecNo)
 {
     L2DatDefinition ret = new L2DatDefinition();
     if (Program.main_form.selectedDatVersion >= DatVersion.ChaoticThrone1)
     {
         SkillgrpInfo_CT1 info = new SkillgrpInfo_CT1();
         info = (SkillgrpInfo_CT1)base.ReadFieldValue(f, info, "skill_id", "skill_level");
         if (Program.main_form.selectedDatVersion >= DatVersion.ChaoticThrone1Plus)
             info = (SkillgrpInfo_CT1)base.ReadFieldValue(f, info, "UNK_0");
         info = (SkillgrpInfo_CT1)base.ReadFieldValue(f, info, "oper_type", "hp_consume");
         if (Program.main_form.selectedDatVersion >= DatVersion.GraciaEpilogue)
             info = (SkillgrpInfo_CT1)base.ReadFieldValue(f, info, "skill_bonus_type");
         info = (SkillgrpInfo_CT1)base.ReadFieldValue(f, info, "UNK_1", "UNK_3");
         ret = info;
     }
     else
     {
         SkillgrpInfo info = new SkillgrpInfo();
         info = (SkillgrpInfo)base.ReadFieldValue(f, info, "skill_id", "extra_eff");
         if (Program.main_form.selectedDatVersion >= DatVersion.Chronicle4)
             info = (SkillgrpInfo)base.ReadFieldValue(f, info, "is_ench", "UNK_1");
         ret = info;
     }
     return ret;
 }