public static void Learn_Martial_Book(Players class15_0, int int_21, int int_22) { TBL_XWWL_KONGFU tBLXWWLKONGFU = TBL_XWWL_KONGFU.smethod_0(class15_0.Player_Zx, class15_0.Player_Job, int_21, int_22); if (tBLXWWLKONGFU != null && class15_0.Player_ExpErience >= tBLXWWLKONGFU.FLD_NEEDEXP && (tBLXWWLKONGFU.FLD_ZX == 0 || class15_0.Player_Zx == tBLXWWLKONGFU.FLD_ZX) && (tBLXWWLKONGFU.FLD_JOB == 0 || class15_0.Player_Job == tBLXWWLKONGFU.FLD_JOB) && (tBLXWWLKONGFU.FLD_JOBLEVEL == 0 || class15_0.Player_FLD_JOB_LEVEL >= tBLXWWLKONGFU.FLD_JOBLEVEL) && (tBLXWWLKONGFU.FLD_LEVEL == 0 || class15_0.Player_FLD_LEVEL >= tBLXWWLKONGFU.FLD_LEVEL)) { class15_0.class79_0[tBLXWWLKONGFU.FLD_VO_CONG_LOAI_HINH, tBLXWWLKONGFU.FLD_INDEX] = new TBL_XWWL_KONGFU(tBLXWWLKONGFU.FLD_PID); class15_0.class79_0[tBLXWWLKONGFU.FLD_VO_CONG_LOAI_HINH, tBLXWWLKONGFU.FLD_INDEX].VO_CONG_THU_BAC = 1; class15_0.CAP_NHAT_KY_NANG_MOI_LAM_DONG_BANG(tBLXWWLKONGFU.FLD_PID); } }
public static void smethod_11(Players class15_0, int int_21, int int_22, int int_23) { TBL_XWWL_KONGFU tBLXWWLKONGFU = TBL_XWWL_KONGFU.smethod_0(class15_0.Player_Zx, class15_0.Player_Job, int_21, int_22); if (tBLXWWLKONGFU != null) { if (class15_0.Player_ExpErience < tBLXWWLKONGFU.FLD_NEEDEXP) { return; } if (tBLXWWLKONGFU.FLD_ZX != 0 && class15_0.Player_Zx != tBLXWWLKONGFU.FLD_ZX) { return; } if (tBLXWWLKONGFU.FLD_JOB != 0 && class15_0.Player_Job != tBLXWWLKONGFU.FLD_JOB) { return; } if (tBLXWWLKONGFU.FLD_JOBLEVEL != 0 && class15_0.Player_FLD_JOB_LEVEL < tBLXWWLKONGFU.FLD_JOBLEVEL) { return; } if (tBLXWWLKONGFU.FLD_VO_CONG_CAO_NHAT_DANG_CAP != 0) { class15_0.class79_0[tBLXWWLKONGFU.FLD_VO_CONG_LOAI_HINH, tBLXWWLKONGFU.FLD_INDEX].VO_CONG_THU_BAC = 1; } if (tBLXWWLKONGFU.FLD_LEVEL != 0 && class15_0.Player_FLD_LEVEL < tBLXWWLKONGFU.FLD_LEVEL) { return; } class15_0.UseItem(int_23, 1); class15_0.class79_0[tBLXWWLKONGFU.FLD_VO_CONG_LOAI_HINH, tBLXWWLKONGFU.FLD_INDEX] = new TBL_XWWL_KONGFU(tBLXWWLKONGFU.FLD_PID); class15_0.CAP_NHAT_KY_NANG_MOI_LAM_DONG_BANG(tBLXWWLKONGFU.FLD_PID); Players class150 = class15_0; class150.Player_ExpErience = class150.Player_ExpErience - tBLXWWLKONGFU.FLD_NEEDEXP; class15_0.Learn_Skill_Tip(1); class15_0.UpdatePowersAndStatus(); class15_0.UpdateExperience(); } }