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 Learn_Skill_Hankwang3(Players class15_0, TBL_XWWL_ITEM class7_0, int int_21) { if (class7_0.FLD_LEVEL > class15_0.Player_FLD_LEVEL) { class15_0.GameMessage("Nhan vat khong du level de hoc vo cong nay!", 9, "Msg"); return; } if (class7_0.FLD_ZX != 0 && class7_0.FLD_ZX != class15_0.Player_Zx) { class15_0.GameMessage("The luc khong dong nhat khong the hoc vo cong!", 9, "Msg"); return; } if (class7_0.FLD_RESIDE1 != 0 && class7_0.FLD_RESIDE1 != class15_0.Player_Job) { class15_0.GameMessage("Khong the hoc vo cong cua nhan vat khac!", 9, "Msg"); return; } if (class7_0.FLD_JOB_LEVEL != 0 && class7_0.FLD_JOB_LEVEL > class15_0.Player_FLD_JOB_LEVEL) { class15_0.GameMessage("Nhan vat chua du danh vong de hoc vo cong!", 9, "Msg"); return; } if (class15_0.Player_Money < (long)1500000000) { class15_0.GameMessage("Nhan vat khong du tien de hoc vo cong!", 9, "Msg"); return; } if (class15_0.Player_ExpErience < 15000000) { class15_0.GameMessage("Nhan vat khong du diem ky nang de hoc vo cong!", 9, "Msg"); return; } TBL_XWWL_KONGFU.Learn_Martial_Book(class15_0, 3, 9); class15_0.method_412(3, 18); class15_0.method_412(3, 19); class15_0.UseItem(int_21, 1); Players class150 = class15_0; class150.Player_ExpErience = class150.Player_ExpErience - 15000000; Players playerMoney = class15_0; playerMoney.Player_Money = playerMoney.Player_Money - (long)1500000000; class15_0.Learn_Skill_Tip(1); class15_0.UpdatePowersAndStatus(); class15_0.UpdateExperience(); class15_0.UpdateMoneyAndWeight(); }
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(); } }
public static TBL_XWWL_KONGFU smethod_0(int int_21, int int_22, int int_23, int int_24) { TBL_XWWL_KONGFU tBLXWWLKONGFU; Dictionary <int, TBL_XWWL_KONGFU> .ValueCollection.Enumerator enumerator = World.TBL_KONGFU.Values.GetEnumerator(); try { while (enumerator.MoveNext()) { TBL_XWWL_KONGFU current = enumerator.Current; if (current.FLD_ZX != 0) { if (current.FLD_ZX != int_21 || current.FLD_JOB != int_22 || current.FLD_INDEX != int_24 || current.FLD_VO_CONG_LOAI_HINH != int_23) { continue; } tBLXWWLKONGFU = current; return(tBLXWWLKONGFU); } else { if (current.FLD_JOB != int_22 || current.FLD_INDEX != int_24 || current.FLD_VO_CONG_LOAI_HINH != int_23) { continue; } tBLXWWLKONGFU = current; return(tBLXWWLKONGFU); } } return(null); } finally { ((IDisposable)enumerator).Dispose(); } return(tBLXWWLKONGFU); }
public static TBL_XWWL_KONGFU smethod_2(Players class15_0, int int_21, int int_22) { TBL_XWWL_KONGFU tBLXWWLKONGFU = null; Dictionary <int, TBL_XWWL_KONGFU> .ValueCollection.Enumerator enumerator = World.TBL_KONGFU.Values.GetEnumerator(); try { while (enumerator.MoveNext()) { TBL_XWWL_KONGFU current = enumerator.Current; if (current.FLD_JOB != class15_0.Player_Job || current.FLD_INDEX != int_22 || current.FLD_VO_CONG_LOAI_HINH != int_21) { continue; } tBLXWWLKONGFU = current; break; } } finally { ((IDisposable)enumerator).Dispose(); } return(tBLXWWLKONGFU); }