Пример #1
0
    public bool IsRegister()
    {
        short auctionUseLevel = NrTSingleton <ContentsLimitManager> .Instance.GetAuctionUseLevel();

        if (0 >= auctionUseLevel)
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("270"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return(false);
        }
        if (auctionUseLevel > (short)NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetLevel())
        {
            string empty = string.Empty;
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
            {
                NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("628"),
                "count",
                auctionUseLevel
            });

            Main_UI_SystemMessage.ADDMessage(empty, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return(false);
        }
        if (0L >= this.m_lSellRegisterCost)
        {
            return(false);
        }
        if (this.m_lSellRegisterCost > NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_Money)
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("1255"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return(false);
        }
        if (0L < this.m_lSellDirectCost)
        {
            long directCostMin = AuctionMainDlg.GetDirectCostMin(this.m_ePayType, this.m_lSellCost);
            if (this.m_lSellDirectCost < directCostMin)
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("271"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return(false);
            }
        }
        if (this.m_SelectItem != null)
        {
        }
        if (this.m_SelectSoldierInfo != null)
        {
            if (this.m_SelectSoldierInfo.GetLevel() < AuctionMainDlg.GetSolLevelLimit())
            {
                string empty2 = string.Empty;
                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty2, new object[]
                {
                    NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("649"),
                    "level1",
                    AuctionMainDlg.GetSolLevelLimit(),
                    "level2",
                    AuctionMainDlg.GetSolSkillLevelLimit()
                });

                Main_UI_SystemMessage.ADDMessage(empty2, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return(false);
            }
            if (this.m_SelectSoldierInfo.GetLevel() < AuctionMainDlg.GetSolSkillLevelLimit())
            {
                string empty3 = string.Empty;
                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty3, new object[]
                {
                    NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("649"),
                    "level1",
                    AuctionMainDlg.GetSolLevelLimit(),
                    "level2",
                    AuctionMainDlg.GetSolSkillLevelLimit()
                });

                Main_UI_SystemMessage.ADDMessage(empty3, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return(false);
            }
            if (this.m_SelectSoldierInfo.IsEquipItem())
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("304"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return(false);
            }
            if (this.m_SelectSoldierInfo.IsInjuryStatus())
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("407"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return(false);
            }
            if (this.m_SelectSoldierInfo.IsAwakening())
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("814"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return(false);
            }
            if (this.m_SelectSoldierInfo.IsAtbCommonFlag(1L))
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("879"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return(false);
            }
        }
        int num = (int)NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.GetCharDetail(19);

        if (AuctionMainDlg.GetDailySellLimit() <= num)
        {
            string empty4 = string.Empty;
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty4, new object[]
            {
                NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("656"),
                "count",
                num
            });

            Main_UI_SystemMessage.ADDMessage(empty4, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return(false);
        }
        return(true);
    }