예제 #1
0
    public static long GetExpeditionMoneyFromGrade(byte grade)
    {
        EXPEDITION_DATA expeditionDataFromGrade = BASE_EXPEDITION_DATA.GetExpeditionDataFromGrade(grade);

        if (expeditionDataFromGrade != null)
        {
            return(expeditionDataFromGrade.Expedition_SEARCH_MONEY);
        }
        return(0L);
    }
예제 #2
0
    public static int GetExpeditionMoneyFromSolPossibleLevel(byte grade)
    {
        EXPEDITION_DATA expeditionDataFromGrade = BASE_EXPEDITION_DATA.GetExpeditionDataFromGrade(grade);

        if (expeditionDataFromGrade != null)
        {
            return((int)expeditionDataFromGrade.SolPossiblelevel);
        }
        return(0);
    }
예제 #3
0
 public override bool ParseDataFromNDT(TsDataReader dr)
 {
     foreach (TsDataReader.Row data in dr)
     {
         EXPEDITION_DATA eXPEDITION_DATA = new EXPEDITION_DATA();
         eXPEDITION_DATA.SetData(data);
         BASE_EXPEDITION_DATA.m_listExpeditionData.Add(eXPEDITION_DATA);
     }
     return(true);
 }
    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 static bool IsNotExcludeSol(NkSoldierInfo pkSolinfo, eSOLDIER_BATCH_MODE eSoldierBatchMode)
 {
     if (pkSolinfo == null || pkSolinfo.GetSolID() <= 0L)
     {
         return(true);
     }
     if (eSoldierBatchMode == eSOLDIER_BATCH_MODE.MODE_MINE_MAKEUP || eSoldierBatchMode == eSOLDIER_BATCH_MODE.MODE_EXPEDITION_MAKEUP)
     {
         if (pkSolinfo.GetSolPosType() == 2)
         {
             return(true);
         }
         if (pkSolinfo.GetSolPosType() == 6)
         {
             return(true);
         }
     }
     if (eSoldierBatchMode == eSOLDIER_BATCH_MODE.MODE_NEWEXPLORATION)
     {
         if (pkSolinfo.IsAtbCommonFlag(16L))
         {
             return(true);
         }
         if (pkSolinfo.GetLevel() < NrTSingleton <ContentsLimitManager> .Instance.NewExplorationLimitLevel())
         {
             return(true);
         }
     }
     else if (eSoldierBatchMode == eSOLDIER_BATCH_MODE.MODE_MINE_MAKEUP)
     {
         int mineMoneyFromSolPossibleLevel = BASE_MINE_DATA.GetMineMoneyFromSolPossibleLevel(SoldierBatch.MINE_INFO.m_nMineGrade);
         if ((int)pkSolinfo.GetLevel() < mineMoneyFromSolPossibleLevel)
         {
             return(true);
         }
     }
     else if (eSoldierBatchMode == eSOLDIER_BATCH_MODE.MODE_EXPEDITION_MAKEUP)
     {
         EXPEDITION_DATA expeditionDataFromGrade = BASE_EXPEDITION_DATA.GetExpeditionDataFromGrade((byte)SoldierBatch.EXPEDITION_INFO.m_eExpeditionGrade);
         if (expeditionDataFromGrade != null && pkSolinfo.GetLevel() < expeditionDataFromGrade.SolPossiblelevel)
         {
             return(true);
         }
     }
     return(false);
 }
예제 #6
0
    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 bool IsStartBattle()
    {
        int num = 0;
        EXPEDITION_CREATE_DATA expeditionCreateDataFromID = BASE_EXPEDITION_CREATE_DATA.GetExpeditionCreateDataFromID(this.m_expeditionSearch_info.ui8ExpeditionGrade, (int)this.m_expeditionSearch_info.i16xpeditionCreateDataID);

        if (expeditionCreateDataFromID == null)
        {
            return(false);
        }
        EXPEDITION_DATA expeditionDataFromGrade = BASE_EXPEDITION_DATA.GetExpeditionDataFromGrade(expeditionCreateDataFromID.GetGrade());

        if (expeditionDataFromGrade == null)
        {
            return(false);
        }
        NkReadySolList readySolList = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetReadySolList();

        if (readySolList == null)
        {
            return(false);
        }
        foreach (NkSoldierInfo current in readySolList.GetList().Values)
        {
            if (current.GetSolID() > 0L)
            {
                if (current.GetSolPosType() != 6)
                {
                    if (current.GetSolPosType() != 2)
                    {
                        int expeditionMoneyFromSolPossibleLevel = BASE_EXPEDITION_DATA.GetExpeditionMoneyFromSolPossibleLevel(expeditionDataFromGrade.GetGrade());
                        if ((int)current.GetLevel() >= expeditionMoneyFromSolPossibleLevel)
                        {
                            num++;
                        }
                    }
                }
            }
        }
        return(num > 0);
    }
    public void Expedition_ModeCheck(eExpeditionSearchDetailInfo_Mode eMode)
    {
        string str  = string.Empty;
        string text = string.Empty;

        if (eMode == eExpeditionSearchDetailInfo_Mode.eEXPEDITION_DETAILDLG_SEARCH)
        {
            this.SetEcoMoninfo(eMode);
        }
        else
        {
            EXPEDITION_CREATE_DATA expedtionCreateData = BASE_EXPEDITION_CREATE_DATA.GetExpedtionCreateData(this.m_expeditiondetailinfo.i16ExpeditionCreateDataID);
            if (expedtionCreateData == null)
            {
                return;
            }
            EXPEDITION_DATA expeditionDataFromGrade = BASE_EXPEDITION_DATA.GetExpeditionDataFromGrade(expedtionCreateData.GetGrade());
            if (expeditionDataFromGrade == null)
            {
                return;
            }
            if (this.m_expeditiondetailinfo.ui8ExpeditionState == 2 || this.m_expeditiondetailinfo.ui8ExpeditionState == 1 || this.m_expeditiondetailinfo.ui8ExpeditionState == 4)
            {
                if (this.m_bHaveMilitary)
                {
                    this.SetOccupySolInfo(eMode);
                    text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2734");

                    this.m_lTitle.SetText(text);
                    str = expeditionDataFromGrade.Expedition_BG1_NAME;
                }
                else
                {
                    this.SetEcoMoninfo(eMode);
                    text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2735");

                    this.m_lTitle.SetText(text);
                    str = expeditionDataFromGrade.Expedition_BG_NAME;
                }
                this.m_laOccExpeditionNum.SetText(this.m_expeditiondetailinfo.i32ExpeditionMonPlunderItemNum.ToString());
            }
            else if (this.m_expeditiondetailinfo.ui8ExpeditionState == 3)
            {
                if (this.m_bHaveMilitary)
                {
                    this.SetOccupySolInfo(eMode);
                    text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2734");

                    this.m_lTitle.SetText(text);
                    str = expeditionDataFromGrade.Expedition_BG_NAME;
                }
                else
                {
                    this.SetEcoMoninfo(eMode);
                    text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2735");

                    this.m_lTitle.SetText(text);
                    str = expeditionDataFromGrade.Expedition_BG1_NAME;
                }
                this.m_laOccExpeditionNum.SetText(this.m_expeditiondetailinfo.i32ExpeditionRewardItemNum.ToString());
            }
        }
        this.m_dtBG.SetTextureFromBundle("UI/Mine/" + str);
    }
    public void ShowExpeditionInfo(eExpeditionSearchDetailInfo_Mode eMode)
    {
        string text  = string.Empty;
        string text2 = string.Empty;
        string str   = string.Empty;

        if (eMode == eExpeditionSearchDetailInfo_Mode.eEXPEDITION_DETAILDLG_SEARCH)
        {
            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;
            }
            if (eMode == eExpeditionSearchDetailInfo_Mode.eEXPEDITION_DETAILDLG_SEARCH)
            {
                DirectionDLG directionDLG = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.DLG_DIRECTION) as DirectionDLG;

                if (directionDLG != null)
                {
                    directionDLG.ShowDirection(DirectionDLG.eDIRECTIONTYPE.eDIRECTION_MINESEARCH, (int)expeditionCreateDataFromID.GetGrade());
                }
            }
            this.Expedition_ModeCheck(eMode);
            string text3 = string.Empty;
            str   = expeditionDataFromGrade.Expedition_BG_NAME;
            text3 = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1322");

            this.m_lTitle.SetText(text3);
            this.m_dtBG.SetTextureFromBundle("UI/Mine/" + str);
            this.m_dtMineIcon2.SetTexture(expeditionDataFromGrade.Expedition_UI_ICON);
            this.m_laExpeditionCurNum.SetText(this.m_expeditionSearch_info.i32ExpeditionNum.ToString());
            this.m_laOccExpeditionNum.SetText(this.m_expeditionSearch_info.i32MonPlunderItemNum.ToString());
            if (100 <= NrTSingleton <NkCharManager> .Instance.m_kCharAccountInfo.m_nMasterLevel)
            {
                text2 = text2 + " " + this.m_expeditionSearch_info.i16xpeditionCreateDataID.ToString();
            }
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1775");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref text2, new object[]
            {
                text,
                "gold",
                expeditionDataFromGrade.Expedition_SEARCH_MONEY
            });

            this.m_laSearchMoney.SetText(text2);
        }
        else
        {
            EXPEDITION_CREATE_DATA expedtionCreateData = BASE_EXPEDITION_CREATE_DATA.GetExpedtionCreateData(this.m_expeditiondetailinfo.i16ExpeditionCreateDataID);
            if (expedtionCreateData == null)
            {
                return;
            }
            EXPEDITION_DATA expeditionDataFromGrade2 = BASE_EXPEDITION_DATA.GetExpeditionDataFromGrade(expedtionCreateData.GetGrade());
            if (expeditionDataFromGrade2 == null)
            {
                return;
            }
            this.m_dtMineIcon2.SetTexture(expeditionDataFromGrade2.Expedition_UI_ICON);
            this.m_laExpeditionCurNum.SetText(this.m_expeditiondetailinfo.i32ExpeditionTotalItemNum.ToString());
            this.Expedition_ModeCheck(eMode);
        }
        this.Show();
    }
예제 #10
0
    public void SetList()
    {
        NrMyCharInfo kMyCharInfo = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;

        this.m_lbCurrentStatus.Clear();
        string text  = string.Empty;
        string empty = string.Empty;
        int    num   = 0;

        foreach (EXPEDITION_CURRENT_STATE_INFO current in this.m_listExpedition_CurrentStatus)
        {
            NewListItem newListItem = new NewListItem(this.m_lbCurrentStatus.ColumnNum, true, string.Empty);
            if ((current.ui8ExpeditionState == 1 || current.ui8ExpeditionState == 3) && current.i64Time == current.i64CheckBattleTime)
            {
                newListItem.SetListItemData(0, true);
                newListItem.SetListItemData(0, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1615"), current, new EZValueChangedDelegate(this.OnClickBackMove), null);
            }
            else
            {
                newListItem.SetListItemData(0, false);
            }
            newListItem.SetListItemData(1, this.GetExpeditionState(current), null, null, null);
            if (current.ui8ExpeditionState == 1 || current.ui8ExpeditionState == 2 || current.ui8ExpeditionState == 4)
            {
                NkExpeditionMilitaryInfo validExpeditionMilitaryInfo = kMyCharInfo.GetMilitaryList().GetValidExpeditionMilitaryInfo(current.ui8ExpeditionMilitaryUniq);
                if (validExpeditionMilitaryInfo != null)
                {
                    NkSoldierInfo leaderSolInfo = validExpeditionMilitaryInfo.GetLeaderSolInfo();
                    if (leaderSolInfo != null)
                    {
                        EVENT_HERODATA eventHeroCharCode = NrTSingleton <NrTableEvnetHeroManager> .Instance.GetEventHeroCharCode(leaderSolInfo.GetCharKind(), leaderSolInfo.GetGrade());

                        if (eventHeroCharCode != null)
                        {
                            newListItem.SetListItemData(5, "Win_I_EventSol", null, null, null);
                        }
                        else
                        {
                            UIBaseInfoLoader legendFrame = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendFrame(leaderSolInfo.GetCharKind(), (int)leaderSolInfo.GetGrade());

                            if (legendFrame != null)
                            {
                                newListItem.SetListItemData(5, legendFrame, null, null, null);
                            }
                            else
                            {
                                newListItem.SetListItemData(5, "Win_I_Cancel", null, null, null);
                            }
                        }
                        newListItem.SetListItemData(7, leaderSolInfo.GetListSolInfo(false), null, null, null);
                        newListItem.SetListItemData(3, string.Empty, current, new EZValueChangedDelegate(this.OnClickDetailInfo), null);
                    }
                    newListItem.SetListItemData(9, leaderSolInfo.GetCharKindInfo().GetName(), null, null, null);
                }
                EXPEDITION_CREATE_DATA expedtionCreateData = BASE_EXPEDITION_CREATE_DATA.GetExpedtionCreateData(current.i16ExpeditionCreateDataID);
                if (expedtionCreateData != null)
                {
                    EXPEDITION_DATA expeditionDataFromGrade = BASE_EXPEDITION_DATA.GetExpeditionDataFromGrade(expedtionCreateData.EXPEDITION_GRADE);
                    if (expeditionDataFromGrade != null)
                    {
                        newListItem.SetListItemData(8, false);
                        UIBaseInfoLoader uIBaseInfoLoader = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary(expeditionDataFromGrade.Expedition_ICON_NAME);

                        if (uIBaseInfoLoader != null)
                        {
                            newListItem.SetListItemData(4, uIBaseInfoLoader, current, new EZValueChangedDelegate(this.OnClickMonDetailInfo), null);
                        }
                        newListItem.SetListItemData(10, NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(expeditionDataFromGrade.Expedition_GRADE_INTERFACEKEY), null, null, null);
                    }
                }
            }
            else if (current.ui8ExpeditionState == 3)
            {
                EXPEDITION_CREATE_DATA expedtionCreateData2 = BASE_EXPEDITION_CREATE_DATA.GetExpedtionCreateData(current.i16ExpeditionCreateDataID);
                if (expedtionCreateData2 != null)
                {
                    int num2 = expedtionCreateData2.EXPEDITION_ECO[0];
                    ECO eco  = NrTSingleton <NrBaseTableManager> .Instance.GetEco(num2.ToString());

                    if (eco != null)
                    {
                        newListItem.SetListItemData(7, NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(eco.szCharCode[0]), null, null, null);
                        newListItem.SetListItemData(3, NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(eco.szCharCode[0]), current, new EZValueChangedDelegate(this.OnClickMonDetailInfo), null);
                        newListItem.SetListItemData(9, NrTSingleton <NrCharKindInfoManager> .Instance.GetName(NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(eco.szCharCode[0])), null, null, null);
                    }
                }
                NkExpeditionMilitaryInfo validExpeditionMilitaryInfo2 = kMyCharInfo.GetMilitaryList().GetValidExpeditionMilitaryInfo(current.ui8ExpeditionMilitaryUniq);
                if (validExpeditionMilitaryInfo2 != null)
                {
                    NkSoldierInfo leaderSolInfo2 = validExpeditionMilitaryInfo2.GetLeaderSolInfo();
                    if (leaderSolInfo2 != null)
                    {
                        UIBaseInfoLoader legendFrame2 = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendFrame(leaderSolInfo2.GetCharKind(), (int)leaderSolInfo2.GetGrade());

                        if (legendFrame2 != null)
                        {
                            newListItem.SetListItemData(6, legendFrame2, null, null, null);
                        }
                        else
                        {
                            newListItem.SetListItemData(6, "Win_I_Cancel", null, null, null);
                        }
                        newListItem.SetListItemData(8, leaderSolInfo2.GetListSolInfo(false), null, null, null);
                    }
                    newListItem.SetListItemData(4, string.Empty, current, new EZValueChangedDelegate(this.OnClickDetailInfo), null);
                    newListItem.SetListItemData(10, leaderSolInfo2.GetCharKindInfo().GetName(), null, null, null);
                }
            }
            newListItem.Data = current;
            this.m_lbCurrentStatus.Add(newListItem);
            num++;
        }
        text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1633");

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
        {
            text,
            "count1",
            this.m_Page,
            "count2",
            this.m_MaxPage
        });

        this.m_bxPage.SetText(empty);
        this.m_lbCurrentStatus.RepositionItems();
    }
예제 #11
0
    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);
    }