public override void Show() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } string text = string.Empty; string empty = string.Empty; text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2416"); EXPEDITION_CONSTANT_MANAGER instance = EXPEDITION_CONSTANT_MANAGER.GetInstance(); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { text, "count1", kMyCharInfo.GetCharDetail(10), "count2", instance.GetValue(eEXPEDITION_CONSTANT.eEXPEDITION_DAY_COUNT) }); this.m_lCurrentCount.SetText(empty); this.SetList(); if (!base.ShowHide) { base.Show(); } }
public bool IsHaveReward(eBUNNING_EVENT eBurnningEvent) { if (eBurnningEvent <= eBUNNING_EVENT.eBUNNING_EVENT_NONE || eBurnningEvent >= eBUNNING_EVENT.eBUNNING_EVENT_MAX) { return(false); } bool flag = false; SUBDATA_UNION sUBDATA_UNION = default(SUBDATA_UNION); NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; sUBDATA_UNION.nSubData = kMyCharInfo.GetCharDetail(15); int num = -1; if (eBurnningEvent != eBUNNING_EVENT.eBUNNING_EVENT_BABELPARTY) { if (eBurnningEvent == eBUNNING_EVENT.eBUNNING_EVENT_COLOSSEUM) { int num2 = (int)sUBDATA_UNION.n8SubData_1; num = num2 % 2; flag = (num > 0); } } else { int num2 = (int)sUBDATA_UNION.n8SubData_0; num = num2 % 2; flag = (num > 0); } return(num >= 0 && flag); }
public int CurrentEventCount() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return(0); } int level = kMyCharInfo.GetLevel(); int num = 0; for (int i = 0; i < 7; i++) { EVENT_INFO eventInfo = NrTSingleton <NrTable_BurnningEvent_Manager> .Instance.GetEventInfo(i); if (eventInfo != null) { if (eventInfo.m_nEventType != 0) { if (NrTSingleton <ContentsLimitManager> .Instance.IsChallenge() || eventInfo.m_nEventType != 36) { BUNNING_EVENT_INFO value = NrTSingleton <NrTable_BurnningEvent_Manager> .Instance.GetValue((eBUNNING_EVENT)eventInfo.m_nEventType); if (value != null) { if (level <= value.m_nLimitLevel) { num++; } } } } } } if (this.SetBasicData()) { num++; } int num2 = (int)kMyCharInfo.GetCharDetail(5); if (0 < num2 && NrTSingleton <NkQuestManager> .Instance.IsCompletedQuestGroup(num2)) { num++; } int num3 = 0; for (int j = 0; j < 7; j++) { if (this.m_EventInfo[j].m_nEventType > 0) { num3++; if (this.m_EventInfo[j].m_nEventType == 1 || this.m_EventInfo[j].m_nEventType == 14 || this.m_EventInfo[j].m_nEventType == 18) { num3--; } } } return(num3 - num); }
public bool Is_GetRefreshReward() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return(false); } List <ChallengeTable> list = new List <ChallengeTable>(); for (int i = 0; i < this.m_earrTimeShopChallegeCode.Length; i++) { ChallengeTable challengeTable = NrTSingleton <ChallengeManager> .Instance.GetChallengeTable((short)this.m_earrTimeShopChallegeCode[i]); if (challengeTable != null) { list.Add(challengeTable); } } int num = -1; bool result = false; bool flag = false; for (int j = 0; j < list.Count; j++) { if ((int)list[j].m_nLevel <= kMyCharInfo.GetLevel()) { for (int k = 0; k < list[j].m_kRewardInfo.Count; k++) { if (kMyCharInfo.GetLevel() < list[j].m_kRewardInfo[k].m_nConditionLevel) { num = k; break; } } if (num != -1) { long charDetail = kMyCharInfo.GetCharDetail(12); if (1L <= (charDetail & list[j].m_nCheckRewardValue)) { if (j < list.Count - 1) { goto IL_15D; } flag = true; } long num2 = (long)kMyCharInfo.GetDayCharDetail((eCHAR_DAY_COUNT)list[j].m_nDetailInfoIndex); if (num2 >= (long)list[j].m_kRewardInfo[num].m_nConditionCount && !flag) { result = true; } } } IL_15D :; } return(result); }
public NewExplorationManager.CHAR_DETAIL_NEWEXPLORATION GetCharDetatilData() { NewExplorationManager.CHAR_DETAIL_NEWEXPLORATION result = default(NewExplorationManager.CHAR_DETAIL_NEWEXPLORATION); NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return(result); } result.nSubData = kMyCharInfo.GetCharDetail(30); return(result); }
public void OnBtnClickResearch(IUIObject obj) { string message = string.Empty; EXPEDITION_CREATE_DATA expeditionCreateDataFromID = BASE_EXPEDITION_CREATE_DATA.GetExpeditionCreateDataFromID(this.m_expeditionSearch_info.ui8ExpeditionGrade, (int)this.m_expeditionSearch_info.i16xpeditionCreateDataID); if (expeditionCreateDataFromID == null) { return; } EXPEDITION_DATA expeditionDataFromGrade = BASE_EXPEDITION_DATA.GetExpeditionDataFromGrade(expeditionCreateDataFromID.GetGrade()); if (expeditionDataFromGrade == null) { return; } NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (expeditionDataFromGrade.Expedition_SEARCH_MONEY > kMyCharInfo.m_Money) { message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("89"); Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } long num = 0L; EXPEDITION_CONSTANT_MANAGER instance = EXPEDITION_CONSTANT_MANAGER.GetInstance(); if (instance != null) { num = (long)instance.GetValue(eEXPEDITION_CONSTANT.eEXPEDITION_DAY_COUNT); } if (num > 0L && kMyCharInfo.GetCharDetail(10) >= num) { message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("405"); Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } if (!this.IsStartBattle()) { message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("528"); Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } GS_EXPEDITION_SERACH_REQ gS_EXPEDITION_SERACH_REQ = new GS_EXPEDITION_SERACH_REQ(); gS_EXPEDITION_SERACH_REQ.i8Grade = expeditionCreateDataFromID.GetGrade(); SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_EXPEDITION_SERACH_REQ, gS_EXPEDITION_SERACH_REQ); }
public void Attend_Notice_Show() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo.GetCharDetail(23) == 0L) { this.m_bxAttend.Visible = true; } else if (kMyCharInfo.ConsecutivelyattendanceReward) { this.m_bxAttend.Visible = true; } else { this.m_bxAttend.Visible = false; } }
public void SetTextUI() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; string text = string.Empty; string text2 = string.Empty; for (byte b = 1; b < 5; b += 1) { if (NrTSingleton <ContentsLimitManager> .Instance.ExpeditionGradeLimit() >= (int)b) { string szColorNum = string.Empty; EXPEDITION_DATA expeditionDataFromGrade = BASE_EXPEDITION_DATA.GetExpeditionDataFromGrade(b); if (expeditionDataFromGrade != null) { if (kMyCharInfo.GetLevel() < (int)expeditionDataFromGrade.Possiblelevel) { szColorNum = "1305"; } else { szColorNum = "1101"; } } this.m_laSearchGradeName[(int)b].Hide(false); this.m_btSearchGrade[(int)b].Hide(false); this.m_dtTextBG[(int)b].Hide(false); text2 = string.Format("{0}{1}", NrTSingleton <CTextParser> .Instance.GetTextColor(szColorNum), NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(expeditionDataFromGrade.Expedition_INTERFACEKEY)); this.m_laSearchGradeName[(int)b].SetText(text2); } } text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2413"); EXPEDITION_CONSTANT_MANAGER instance = EXPEDITION_CONSTANT_MANAGER.GetInstance(); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[] { text, "count1", kMyCharInfo.GetCharDetail(10), "count2", instance.GetValue(eEXPEDITION_CONSTANT.eEXPEDITION_DAY_COUNT) }); this.m_lagoExpeditionJoinCount.SetText(text2); }
public void OnShotDownTrigger() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } long charDetail = kMyCharInfo.GetCharDetail(1); if (charDetail <= 0L) { return; } MapTriggerInfo mapTriggerInfo = this.GetMapTriggerInfo(this.m_CurrentMapIdx); if (mapTriggerInfo == null) { return; } EventTrigger_Game[] trigger_Game = mapTriggerInfo.GetTrigger_Game(); if (trigger_Game == null) { return; } EventTrigger_Game[] array = trigger_Game; for (int i = 0; i < array.Length; i++) { EventTrigger_Game eventTrigger_Game = array[i]; EventTrigger_Game component = eventTrigger_Game.GetComponent <EventTrigger_Game>(); if (!(component == null)) { if ((long)component.EventTriggerUnique == charDetail) { if (!component.TriggerOn) { component.OnTrigger(); } } } } }
public void OnAttend(IUIObject obj) { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; long charDetail = kMyCharInfo.GetCharDetail(23); int num = (int)kMyCharInfo.GetCharSubData(eCHAR_SUBDATA.CHAR_SUBDATA_ATTENDANCE_TYPE); if (num == 1 || num == 3) { Normal_Attend_Dlg normal_Attend_Dlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.EVENT_NORMAL_ATTEND) as Normal_Attend_Dlg; if (normal_Attend_Dlg != null) { normal_Attend_Dlg.InitData(num); } if (charDetail == 0L) { GS_ACCUMULATE_ATTEND_NFY gS_ACCUMULATE_ATTEND_NFY = new GS_ACCUMULATE_ATTEND_NFY(); gS_ACCUMULATE_ATTEND_NFY.m_i16AttendType = 0; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_ACCUMULATE_ATTEND_NFY, gS_ACCUMULATE_ATTEND_NFY); } } else if (num == 2) { New_Attend_Dlg new_Attend_Dlg = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.EVENT_NEW_ATTEND) as New_Attend_Dlg; if (new_Attend_Dlg != null) { new_Attend_Dlg.Show(); } if (charDetail == 0L) { GS_ACCUMULATE_ATTEND_NFY gS_ACCUMULATE_ATTEND_NFY2 = new GS_ACCUMULATE_ATTEND_NFY(); gS_ACCUMULATE_ATTEND_NFY2.m_i16AttendType = 0; SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_ACCUMULATE_ATTEND_NFY, gS_ACCUMULATE_ATTEND_NFY2); } else if (new_Attend_Dlg != null) { new_Attend_Dlg.DailyEventDay_View(); } } }
public int GetLimitCount(eBUNNING_EVENT eBurnningEvent) { int result = -1; if (eBurnningEvent <= eBUNNING_EVENT.eBUNNING_EVENT_NONE || eBurnningEvent >= eBUNNING_EVENT.eBUNNING_EVENT_MAX) { return(result); } SUBDATA_UNION sUBDATA_UNION = default(SUBDATA_UNION); NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; sUBDATA_UNION.nSubData = kMyCharInfo.GetCharDetail(15); EVENT_INFO eventInfoFromType = this.GetEventInfoFromType((int)eBurnningEvent); if (eventInfoFromType == null) { return(result); } int nMaxLimitCount = eventInfoFromType.m_nMaxLimitCount; int num = nMaxLimitCount * 2; if (eBurnningEvent != eBUNNING_EVENT.eBUNNING_EVENT_BABELPARTY) { if (eBurnningEvent == eBUNNING_EVENT.eBUNNING_EVENT_COLOSSEUM) { int num2 = (int)sUBDATA_UNION.n8SubData_1; result = (num - num2 + 1) / 2; } } else { int num2 = (int)sUBDATA_UNION.n8SubData_0; result = (num - num2 + 1) / 2; } return(result); }
public int GetMineJoinCount() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; return((int)kMyCharInfo.GetCharDetail(8)); }
public int CalcDayRewardNoticeCount() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return(0); } short key = 1; if (!this.m_kChallenge.ContainsKey(key)) { return(0); } int num = 0; int num2 = -1; foreach (ChallengeTable current in this.m_kChallenge[key].Values) { if ((int)current.m_nLevel <= kMyCharInfo.GetLevel()) { for (int i = 0; i < current.m_kRewardInfo.Count; i++) { if (kMyCharInfo.GetLevel() < current.m_kRewardInfo[i].m_nConditionLevel) { num2 = i; break; } } if (num2 == -1) { return(0); } long charDetail = kMyCharInfo.GetCharDetail(12); long num3 = (long)current.m_kRewardInfo[num2].m_nConditionCount; if (1L > (charDetail & current.m_nCheckRewardValue)) { if (current.m_nUnique == 1012) { if ((charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_HEROWAR1) == 0L) { continue; } } else if (current.m_nUnique == 1013) { if ((charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_HEROWAR1) == 0L || (charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_HEROWAR2) == 0L) { continue; } } else if (current.m_nUnique == 1014) { if ((charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_HEROWAR1) == 0L || (charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_HEROWAR2) == 0L || (charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_HEROWAR3) == 0L) { continue; } } else if (current.m_nUnique == 1015) { if ((charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_HEROWAR1) == 0L || (charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_HEROWAR2) == 0L || (charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_HEROWAR3) == 0L || (charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_HEROWAR4) == 0L) { continue; } } else if (current.m_nUnique == 1065) { if ((charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_COLOSSEUM_WITHPLAYER1) == 0L) { continue; } } else if (current.m_nUnique == 1066) { if ((charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_COLOSSEUM_WITHPLAYER1) == 0L || (charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_COLOSSEUM_WITHPLAYER2) == 0L) { continue; } } else if (current.m_nUnique == 1081) { if ((charDetail & ChallengeManager.CHALLENGEREWARD_DAY_INVITE_KAKAO1) == 0L) { continue; } } else if (current.m_nUnique == 1082) { if ((charDetail & ChallengeManager.CHALLENGEREWARD_DAY_INVITE_KAKAO1) == 0L || (charDetail & ChallengeManager.CHALLENGEREWARD_DAY_INVITE_KAKAO2) == 0L) { continue; } } else if (current.m_nUnique == 1091) { if ((charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_BABELTOWER1) == 0L) { continue; } } else if (current.m_nUnique == 1092 && ((charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_BABELTOWER1) == 0L || (charDetail & ChallengeManager.CHALLENGEREWARD_DAY_WIN_BABELTOWER2) == 0L)) { continue; } long num4 = (long)kMyCharInfo.GetDayCharDetail((eCHAR_DAY_COUNT)current.m_nDetailInfoIndex); if (num4 >= num3) { num++; } } } } this.m_nDayRewardNoticeCount = num; return(num); }
public void OnBtnClickSearch(IUIObject obj) { string title = string.Empty; string text = string.Empty; string message = string.Empty; byte b = (byte)obj.Data; NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetReadySolCount() == 0) { message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("528"); Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } if (kMyCharInfo.GetMilitaryList().FindEmptyExpeditionMilitaryIndex() == -1) { message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("765"); Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } EXPEDITION_DATA expeditionDataFromGrade = BASE_EXPEDITION_DATA.GetExpeditionDataFromGrade(b); if (expeditionDataFromGrade.Expedition_SEARCH_MONEY > kMyCharInfo.m_Money) { message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("89"); Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } if (kMyCharInfo.GetLevel() < (int)expeditionDataFromGrade.Possiblelevel) { text = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("272"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref message, new object[] { text, "count", expeditionDataFromGrade.Possiblelevel, "targetname", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(expeditionDataFromGrade.Expedition_INTERFACEKEY) }); Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } long num = 0L; EXPEDITION_CONSTANT_MANAGER instance = EXPEDITION_CONSTANT_MANAGER.GetInstance(); if (instance != null) { num = (long)instance.GetValue(eEXPEDITION_CONSTANT.eEXPEDITION_DAY_COUNT); } if (num > 0L && kMyCharInfo.GetCharDetail(10) >= num) { message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("405"); Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE); return; } title = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1316"); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("128"); NrTSingleton <CTextParser> .Instance.ReplaceParam(ref message, new object[] { text, "count", expeditionDataFromGrade.Expedition_SEARCH_MONEY, "targetname1", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(expeditionDataFromGrade.Expedition_INTERFACEKEY), "targetname2", NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(expeditionDataFromGrade.Expedition_GRADE_INTERFACEKEY) }); MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; msgBoxUI.SetMsg(new YesDelegate(this.OnSearch), b, title, message, eMsgType.MB_OK_CANCEL, 2); }
private void SetPoint() { NrMyCharInfo myCharInfo = NrTSingleton <NkCharManager> .Instance.GetMyCharInfo(); if (myCharInfo == null) { return; } string empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1041"), "count", ANNUALIZED.Convert(myCharInfo.GetHeroPoint()) }); this.m_kHeroPoint.Text = empty; empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1041"), "count", ANNUALIZED.Convert(myCharInfo.GetEquipPoint()) }); this.m_kEquipPoint.Text = empty; if (this.m_eType == ExchangeItemDlg.TYPE.TYPE_EXCHANGE_TICKET) { this.m_kName.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2260"); PointLimitTable pointLimitTable = NrTSingleton <PointManager> .Instance.GetPointLimitTable(myCharInfo.GetLevel()); if (pointLimitTable == null) { return; } PointTable pointTable = (PointTable)this.m_kSelectItem.Data; if (pointTable == null) { return; } if (pointTable.m_nItemUnique == PointManager.HERO_TICKET) { this.m_nHeroLimitTicketNum = pointLimitTable.m_nHeroTicketNum - (int)myCharInfo.GetCharDetail(6); empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2261"), "count", this.m_nHeroLimitTicketNum }); this.m_kLimitTicketNum.Text = empty; } else { this.m_nEquipLimitTicketNum = pointLimitTable.m_nEquipTicketNum - (int)myCharInfo.GetCharDetail(7); empty = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2261"), "count", this.m_nEquipLimitTicketNum }); this.m_kLimitTicketNum.Text = empty; } this.m_kHelp.Visible = true; } else { PointTable pointTable2 = (PointTable)this.m_kSelectItem.Data; if (pointTable2 == null) { return; } this.m_kName2.Text = NrTSingleton <NrTextMgr> .Instance.GetTextFromItem(pointTable2.m_nNeedItemUnique.ToString()); } }
private void ShowEventAlarm() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } int level = kMyCharInfo.GetLevel(); BUNNING_EVENT_INFO value = NrTSingleton <NrTable_BurnningEvent_Manager> .Instance.GetValue((eBUNNING_EVENT)this.m_nEventType); if (value == null) { return; } if (level > value.m_nLimitLevel) { if (value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_DAILYDUNGEON && NrTSingleton <NrTable_BurnningEvent_Manager> .Instance.SetBasicData()) { return; } if (value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_DAILYQUEST || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_DAILYQUEST1 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_DAILYQUEST2) { int num = (int)kMyCharInfo.GetCharDetail(5); if (0 < num && NrTSingleton <NkQuestManager> .Instance.IsCompletedQuestGroup(num)) { return; } } Main_UI_LevelUpAlarmSoldier main_UI_LevelUpAlarmSoldier = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.MAIN_UI_LEVELUP_ALARM_SOLDIER) as Main_UI_LevelUpAlarmSoldier; if (main_UI_LevelUpAlarmSoldier == null) { main_UI_LevelUpAlarmSoldier = (NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MAIN_UI_LEVELUP_ALARM_SOLDIER) as Main_UI_LevelUpAlarmSoldier); } if (main_UI_LevelUpAlarmSoldier != null) { DateTime dueDate = PublicMethod.GetDueDate(PublicMethod.GetCurTime()); TimeSpan t = new TimeSpan(0, 0, 30); if (dueDate < this.m_olddt) { return; } string empty = string.Empty; if (value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_EXPEVENT || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_GOLDEVENT || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_ITEMEVENT || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE1 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE2 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE3 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE4 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE5 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE6 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE7 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE8 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE9 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE10 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE11 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE12 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE13 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE14 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE15 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE16 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE17 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE18 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE19 || value.m_eEventType == eBUNNING_EVENT.eBUNNING_EVENT_BUFFDAMAGE20) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(this.m_nEventExplainText.ToString()), "rate", value.m_nRewardCount.ToString() }); main_UI_LevelUpAlarmSoldier.SetEventInfo(this.m_nEventType, this.m_nEventTitleText, empty); } else { main_UI_LevelUpAlarmSoldier.SetEventInfo(this.m_nEventType, this.m_nEventTitleText, this.m_nEventExplainText); } main_UI_LevelUpAlarmSoldier.Show(); this.m_olddt = dueDate + t; } TsAudioManager.Container.RequestAudioClip("UI_SFX", "MERCENARY", "LEVEL_UP", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay)); } }
public void Set_ChallengeInfo() { NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo; if (kMyCharInfo == null) { return; } if (kMyCharInfo.GetUserChallengeInfo() == null) { return; } int num = -1; string str = string.Empty; for (int i = 0; i < this.m_lstTimeShopTable.Count; i++) { if ((int)this.m_lstTimeShopTable[i].m_nLevel <= kMyCharInfo.GetLevel()) { for (int j = 0; j < this.m_lstTimeShopTable[i].m_kRewardInfo.Count; j++) { if (kMyCharInfo.GetLevel() < this.m_lstTimeShopTable[i].m_kRewardInfo[j].m_nConditionLevel) { num = j; break; } } if (num != -1) { long charDetail = kMyCharInfo.GetCharDetail(12); if (1L <= (charDetail & this.m_lstTimeShopTable[i].m_nCheckRewardValue)) { if (i < this.m_lstTimeShopTable.Count - 1) { goto IL_492; } this.m_btnReward.SetEnabled(false); } this.m_dtMissionIcon.SetTexture(NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary(this.m_lstTimeShopTable[i].m_szIconKey)); this.m_lbMissionTitle.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromChallenge(this.m_lstTimeShopTable[i].m_szTitleTextKey)); long num2 = (long)kMyCharInfo.GetDayCharDetail((eCHAR_DAY_COUNT)this.m_lstTimeShopTable[i].m_nDetailInfoIndex); long num3; if (num2 >= (long)this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nConditionCount) { str = NrTSingleton <CTextParser> .Instance.GetTextColor("1105"); num3 = (long)this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nConditionCount; } else { num3 = num2; this.m_btnReward.SetEnabled(false); } string str2 = string.Empty; string text = NrTSingleton <NrTextMgr> .Instance.GetTextFromChallenge(this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_szConditionTextKey); if (text.Contains("count")) { NrTSingleton <CTextParser> .Instance.ReplaceParam(ref str2, new object[] { text, "count", this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nConditionCount, "count1", num3, "count2", this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nConditionCount }); } else { str2 = text; } this.m_lbMissionContent.SetText(str + str2); if (this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nMoney > 0L) { this.m_dtItem.SetTexture(NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary("Main_I_ExtraI01")); text = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1119"), "count", this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nMoney }); this.m_lbItemName.SetText(text); } else if (this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nItemUnique > 0) { this.m_dtItem.SetTexture(NrTSingleton <ItemManager> .Instance.GetItemTexture(this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nItemUnique)); text = string.Empty; NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text, new object[] { NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1697"), "itemname", NrTSingleton <ItemManager> .Instance.GetItemNameByItemUnique(this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nItemUnique), "count", this.m_lstTimeShopTable[i].m_kRewardInfo[num].m_nItemNum }); this.m_lbItemName.SetText(text); } this.m_lbRewardInfo.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3331")); this.m_btnReward.Data = this.m_lstTimeShopTable[i].m_nUnique; break; } } IL_492 :; } this.m_bRequestReward = false; }