Ejemplo n.º 1
0
    public void ClickOK(IUIObject obj)
    {
        AgitInfoData agitData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitData(NrTSingleton <NewGuildManager> .Instance.GetAgitLevel().ToString());

        if (agitData == null)
        {
            return;
        }
        if (NrTSingleton <NewGuildManager> .Instance.GetFund() < agitData.i64NeedGuildFund)
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("754"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return;
        }
        NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID);

        if (memberInfoFromPersonID == null)
        {
            return;
        }
        if (memberInfoFromPersonID.GetRank() < NewGuildDefine.eNEWGUILD_MEMBER_RANK.eNEWGUILD_MEMBER_RANK_OFFICER)
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("769"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return;
        }
        NrTSingleton <NewGuildManager> .Instance.Send_GS_NEWGUILD_AGIT_LEVEL_REQ();

        this.Close();
    }
Ejemplo n.º 2
0
    public string GetTextGreeting(NrCharKindInfo kChar)
    {
        string strTextKey = string.Empty;
        int    charKind   = kChar.GetCharKind();

        if (kChar.IsATB(18014398509481984L))
        {
            NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1);

            long           personID = charPersonInfo.GetPersonID();
            NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(personID);

            if (memberInfoFromPersonID == null || memberInfoFromPersonID.GetRank() <= NewGuildDefine.eNEWGUILD_MEMBER_RANK.eNEWGUILD_MEMBER_RANK_INITIATE)
            {
                if (memberInfoFromPersonID == null)
                {
                    NrTSingleton <NewGuildManager> .Instance.Send_GS_NEWGUILD_INFO_REQ(0);
                }
                strTextKey = this.m_dicNPC[charKind].GetExceptionTalkTextKey();
                return(NrTSingleton <NrTextMgr> .Instance.GetTextFromCharInfo(strTextKey));
            }
        }
        strTextKey = kChar.GetCHARKIND_NPCINFO().GetTextGreeting();
        return(NrTSingleton <NrTextMgr> .Instance.GetTextFromCharInfo(strTextKey));
    }
Ejemplo n.º 3
0
    private int CompareNameASC(NewGuildMember a, NewGuildMember b)
    {
        int num = a.GetRank().CompareTo(b.GetRank());

        if (num == 0)
        {
            return(a.GetCharName().CompareTo(b.GetCharName()));
        }
        return(num);
    }
 public void SetChangeMember(NewGuildMember GuildMember)
 {
     this.m_GuildMember = GuildMember;
     if (GuildMember != null)
     {
         for (int i = 0; i < 5; i++)
         {
             this.ActiveToggle(i, true);
             if (i == this.ToIndex(GuildMember.GetRank()))
             {
                 this.ActiveToggle(i, false);
             }
         }
         NewGuildDefine.eNEWGUILD_MEMBER_RANK rank = GuildMember.GetRank();
         if (NewGuildDefine.eNEWGUILD_MEMBER_RANK.eNEWGUILD_MEMBER_RANK_SUB_MASTER > rank)
         {
             this.ActiveToggle(this.ToIndex(NewGuildDefine.eNEWGUILD_MEMBER_RANK.eNEWGUILD_MEMBER_RANK_MASTER), false);
         }
     }
 }
Ejemplo n.º 5
0
    public void ClickAgieDelNPC(IUIObject obj)
    {
        if (obj == null)
        {
            return;
        }
        if (obj.Data == null)
        {
            return;
        }
        AGIT_NPC_SUB_DATA aGIT_NPC_SUB_DATA = obj.Data as AGIT_NPC_SUB_DATA;

        if (aGIT_NPC_SUB_DATA == null)
        {
            return;
        }
        NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID);

        if (memberInfoFromPersonID == null)
        {
            return;
        }
        if (memberInfoFromPersonID.GetRank() < NewGuildDefine.eNEWGUILD_MEMBER_RANK.eNEWGUILD_MEMBER_RANK_OFFICER)
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("769"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return;
        }
        AgitNPCData agitNPCData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitNPCData(aGIT_NPC_SUB_DATA.ui8NPCType.ToString());

        if (agitNPCData == null)
        {
            return;
        }
        NrCharKindInfo charKindInfoFromCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode(agitNPCData.strCharCode);

        if (charKindInfoFromCode == null)
        {
            return;
        }
        MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI;

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("255"),
            "charname",
            charKindInfoFromCode.GetName()
        });

        msgBoxUI.SetMsg(new YesDelegate(this.MsgOKAgitDelNPC), aGIT_NPC_SUB_DATA.ui8NPCType, NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("254"), this.m_strText, eMsgType.MB_OK_CANCEL, 2);
    }
Ejemplo n.º 6
0
    public void OnClickDefenceMilitaryInfo(IUIObject obj)
    {
        MINE_GUILD_CURRENTSTATUS_INFO mINE_GUILD_CURRENTSTATUS_INFO = obj.Data as MINE_GUILD_CURRENTSTATUS_INFO;

        if (mINE_GUILD_CURRENTSTATUS_INFO != null)
        {
            if (mINE_GUILD_CURRENTSTATUS_INFO.i64MineID <= 0L)
            {
                return;
            }
            string message = string.Empty;
            if (0L >= NrTSingleton <NewGuildManager> .Instance.GetGuildID())
            {
                return;
            }
            NrMyCharInfo   kMyCharInfo            = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
            NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(kMyCharInfo.m_PersonID);

            if (memberInfoFromPersonID == null)
            {
                return;
            }
            if (memberInfoFromPersonID.GetRank() <= NewGuildDefine.eNEWGUILD_MEMBER_RANK.eNEWGUILD_MEMBER_RANK_INITIATE)
            {
                message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("532");

                Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return;
            }
            byte nMode;
            if (mINE_GUILD_CURRENTSTATUS_INFO.i64DefenceGuildID == NrTSingleton <NewGuildManager> .Instance.GetGuildID())
            {
                nMode = 2;
            }
            else
            {
                nMode = 3;
            }
            GS_MINE_SEARCH_REQ gS_MINE_SEARCH_REQ = new GS_MINE_SEARCH_REQ();
            gS_MINE_SEARCH_REQ.bSearchMineGrade = 0;
            gS_MINE_SEARCH_REQ.m_nMineID        = mINE_GUILD_CURRENTSTATUS_INFO.i64MineID;
            gS_MINE_SEARCH_REQ.m_nGuildID       = 0L;
            gS_MINE_SEARCH_REQ.m_nMode          = nMode;
            SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_MINE_SEARCH_REQ, gS_MINE_SEARCH_REQ);
        }
    }
Ejemplo n.º 7
0
    public void ClickReward(IUIObject obj)
    {
        NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1);

        long           personID = charPersonInfo.GetPersonID();
        NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(personID);

        if (memberInfoFromPersonID == null || memberInfoFromPersonID.GetRank() <= NewGuildDefine.eNEWGUILD_MEMBER_RANK.eNEWGUILD_MEMBER_RANK_INITIATE)
        {
            string textFromNotify = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("785");

            Main_UI_SystemMessage.ADDMessage(textFromNotify, SYSTEM_MESSAGE_TYPE.NORMAL_MESSAGE_GREEN);
            return;
        }
        GS_NEWGUILD_AGIT_GOLDENEGG_GET_REQ obj2 = new GS_NEWGUILD_AGIT_GOLDENEGG_GET_REQ();

        SendPacket.GetInstance().SendObject(2323, obj2);
    }
Ejemplo n.º 8
0
    public void ClickCreateAgit(IUIObject obj)
    {
        if (NrTSingleton <NewGuildManager> .Instance.GetAgitLevel() <= 0)
        {
            NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID);

            if (memberInfoFromPersonID == null)
            {
                return;
            }
            if (memberInfoFromPersonID.GetRank() < NewGuildDefine.eNEWGUILD_MEMBER_RANK.eNEWGUILD_MEMBER_RANK_OFFICER)
            {
                Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("769"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return;
            }
            short        num      = 1;
            AgitInfoData agitData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitData(num.ToString());

            if (agitData == null)
            {
                return;
            }
            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[]
            {
                NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("235"),
                "count",
                agitData.i64NeedGuildFund
            });

            MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI;

            msgBoxUI.SetMsg(new YesDelegate(this.MsgOKCreateAgit), null, NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("234"), this.m_strText, eMsgType.MB_OK_CANCEL, 2);
        }
        else
        {
            NrTSingleton <NewGuildManager> .Instance.Send_GS_NEWGUILD_AGIT_ENTER_REQ();
        }
    }
Ejemplo n.º 9
0
    public void ClickNPCInvite(IUIObject obj)
    {
        UIListItemContainer selectItem = this.m_nlbInviteNPC.GetSelectItem();

        if (selectItem == null)
        {
            return;
        }
        if (selectItem.Data == null)
        {
            return;
        }
        AgitNPCData agitNPCData = (AgitNPCData)selectItem.Data;

        if (agitNPCData == null)
        {
            return;
        }
        AgitInfoData agitData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitData(this.m_i16NPCLevel.ToString());

        if (agitData == null)
        {
            return;
        }
        AgitInfoData agitData2 = NrTSingleton <NrBaseTableManager> .Instance.GetAgitData(NrTSingleton <NewGuildManager> .Instance.GetAgitLevel().ToString());

        if (agitData2 == null)
        {
            return;
        }
        NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID);

        if (memberInfoFromPersonID == null)
        {
            return;
        }
        if (memberInfoFromPersonID.GetRank() < NewGuildDefine.eNEWGUILD_MEMBER_RANK.eNEWGUILD_MEMBER_RANK_OFFICER)
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("769"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return;
        }
        if (NrTSingleton <NewGuildManager> .Instance.GetFund() < (long)agitData.i32NPCCost)
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("754"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return;
        }
        if (NrTSingleton <NewGuildManager> .Instance.GetAgitNPCSubDataCount() >= (int)agitData2.i8NPCNum)
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("770"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return;
        }
        AGIT_NPC_SUB_DATA agitNPCSubDataFromNPCType = NrTSingleton <NewGuildManager> .Instance.GetAgitNPCSubDataFromNPCType(agitNPCData.ui8NPCType);

        if (agitNPCSubDataFromNPCType != null)
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("771"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return;
        }
        NrCharKindInfo charKindInfoFromCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode(agitNPCData.strCharCode);

        if (charKindInfoFromCode == null)
        {
            return;
        }
        MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI;

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("257"),
            "count",
            agitData.i32NPCCost,
            "charname",
            charKindInfoFromCode.GetName(),
            "level",
            this.m_i16NPCLevel
        });

        msgBoxUI.SetMsg(new YesDelegate(this.MsgOKNPCInvite), agitNPCData, NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("256"), this.m_strText, eMsgType.MB_OK_CANCEL, 2);
    }
Ejemplo n.º 10
0
    public void MakeNPCItem(AGIT_NPC_SUB_DATA NPCSubData)
    {
        if (NPCSubData == null)
        {
            return;
        }
        AgitNPCData agitNPCData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitNPCData(NPCSubData.ui8NPCType.ToString());

        if (agitNPCData == null)
        {
            return;
        }
        NrCharKindInfo charKindInfoFromCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode(agitNPCData.strCharCode);

        if (charKindInfoFromCode == null)
        {
            return;
        }
        NkListSolInfo nkListSolInfo = new NkListSolInfo();

        nkListSolInfo.SolCharKind = charKindInfoFromCode.GetCharKind();
        nkListSolInfo.SolGrade    = -1;
        nkListSolInfo.SolLevel    = NPCSubData.i16NPCLevel;
        NewListItem newListItem = new NewListItem(this.m_nlbNPCList.ColumnNum, true, string.Empty);

        newListItem.SetListItemData(1, nkListSolInfo, null, null, null);
        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1435"),
            "charname",
            charKindInfoFromCode.GetName()
        });

        newListItem.SetListItemData(2, this.m_strText, null, null, null);
        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1031"),
            "count",
            NPCSubData.i16NPCLevel
        });

        newListItem.SetListItemData(3, this.m_strText, null, null, null);
        NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_PersonID);

        if (memberInfoFromPersonID == null)
        {
            return;
        }
        if (memberInfoFromPersonID.GetRank() >= NewGuildDefine.eNEWGUILD_MEMBER_RANK.eNEWGUILD_MEMBER_RANK_OFFICER)
        {
            newListItem.SetListItemData(4, string.Empty, NPCSubData, new EZValueChangedDelegate(this.ClickAgieDelNPC), null);
        }
        else
        {
            newListItem.SetListItemData(4, false);
        }
        long i64Time = NPCSubData.i64NPCEndTime - PublicMethod.GetCurTime();

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strTime, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1763"),
            "timestring",
            this.GetTimeToString(i64Time)
        });

        newListItem.SetListItemData(5, this.m_strTime, null, null, null);
        newListItem.Data = NPCSubData;
        this.m_nlbNPCList.Add(newListItem);
    }
Ejemplo n.º 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 (kMyCharInfo.GetMilitaryList().FindEmptyMineMilitaryIndex() == -1)
        {
            message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("691");

            Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return;
        }
        MINE_DATA      mineDataFromGrade      = BASE_MINE_DATA.GetMineDataFromGrade(b);
        NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(kMyCharInfo.m_PersonID);

        if (memberInfoFromPersonID == null)
        {
            return;
        }
        if (memberInfoFromPersonID.GetRank() <= NewGuildDefine.eNEWGUILD_MEMBER_RANK.eNEWGUILD_MEMBER_RANK_INITIATE)
        {
            message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("532");

            Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return;
        }
        if (mineDataFromGrade.MINE_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)mineDataFromGrade.POSSIBLELEVEL)
        {
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("272");

            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref message, new object[]
            {
                text,
                "count",
                mineDataFromGrade.POSSIBLELEVEL,
                "targetname",
                NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(mineDataFromGrade.MINE_INTERFACEKEY)
            });

            Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return;
        }
        if (!NrTSingleton <MineManager> .Instance.IsEnoughMineJoinCount())
        {
            Main_UI_SystemMessage.ADDMessage(NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("405"), SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
            return;
        }
        if (!NrTSingleton <ContentsLimitManager> .Instance.IsValidMineGrade(b))
        {
            return;
        }
        title = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1316");

        text = NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("128");

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref message, new object[]
        {
            text,
            "count",
            mineDataFromGrade.MINE_SEARCH_MONEY,
            "targetname1",
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(mineDataFromGrade.MINE_INTERFACEKEY),
            "targetname2",
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(mineDataFromGrade.MINE_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);
    }
Ejemplo n.º 12
0
    public void OnClickMilitaryBatch(IUIObject obj)
    {
        string text    = string.Empty;
        string message = string.Empty;
        MINE_GUILD_CURRENTSTATUS_INFO mINE_GUILD_CURRENTSTATUS_INFO = obj.Data as MINE_GUILD_CURRENTSTATUS_INFO;

        if (mINE_GUILD_CURRENTSTATUS_INFO != null)
        {
            if (mINE_GUILD_CURRENTSTATUS_INFO.i64MineID <= 0L)
            {
                return;
            }
            if (0L >= NrTSingleton <NewGuildManager> .Instance.GetGuildID())
            {
                return;
            }
            NrMyCharInfo   kMyCharInfo            = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo;
            NewGuildMember memberInfoFromPersonID = NrTSingleton <NewGuildManager> .Instance.GetMemberInfoFromPersonID(kMyCharInfo.m_PersonID);

            if (memberInfoFromPersonID == null)
            {
                return;
            }
            if (memberInfoFromPersonID.GetRank() <= NewGuildDefine.eNEWGUILD_MEMBER_RANK.eNEWGUILD_MEMBER_RANK_INITIATE)
            {
                message = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("532");

                Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return;
            }
            MINE_CREATE_DATA mineCreateDataFromID = BASE_MINE_CREATE_DATA.GetMineCreateDataFromID(mINE_GUILD_CURRENTSTATUS_INFO.i16MineDataID);
            if (mineCreateDataFromID == null)
            {
                return;
            }
            MINE_DATA mineDataFromGrade = BASE_MINE_DATA.GetMineDataFromGrade(BASE_MINE_DATA.ParseGradeFromString(mineCreateDataFromID.MINE_GRADE));
            if (kMyCharInfo.GetLevel() < (int)mineDataFromGrade.POSSIBLELEVEL)
            {
                text = NrTSingleton <NrTextMgr> .Instance.GetTextFromNotify("408");

                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref message, new object[]
                {
                    text,
                    "count",
                    mineDataFromGrade.POSSIBLELEVEL
                });

                Main_UI_SystemMessage.ADDMessage(message, SYSTEM_MESSAGE_TYPE.NAGATIVE_MESSAGE);
                return;
            }
            byte nMode    = 0;
            long nGuildID = 0L;
            if (mINE_GUILD_CURRENTSTATUS_INFO.i64DefenceGuildID == NrTSingleton <NewGuildManager> .Instance.GetGuildID())
            {
                nMode    = 2;
                nGuildID = mINE_GUILD_CURRENTSTATUS_INFO.i64DefenceGuildID;
            }
            else if (mINE_GUILD_CURRENTSTATUS_INFO.i64AttackGuildID == NrTSingleton <NewGuildManager> .Instance.GetGuildID() || mINE_GUILD_CURRENTSTATUS_INFO.i64DefenceGuildID > 0L)
            {
                nMode    = 4;
                nGuildID = NrTSingleton <NewGuildManager> .Instance.GetGuildID();
            }
            GS_MINE_SEARCH_REQ gS_MINE_SEARCH_REQ = new GS_MINE_SEARCH_REQ();
            gS_MINE_SEARCH_REQ.bSearchMineGrade = mineCreateDataFromID.nMine_Grade;
            gS_MINE_SEARCH_REQ.m_nMineID        = mINE_GUILD_CURRENTSTATUS_INFO.i64MineID;
            gS_MINE_SEARCH_REQ.m_nGuildID       = nGuildID;
            gS_MINE_SEARCH_REQ.m_nMode          = nMode;
            SendPacket.GetInstance().SendObject(eGAME_PACKET_ID.GS_MINE_SEARCH_REQ, gS_MINE_SEARCH_REQ);
        }
    }