Exemplo n.º 1
0
    public void AddNpcPos(ECO kEco)
    {
        if (0f < kEco.kMovePos[0].x || 0f < kEco.kMovePos[0].z)
        {
            return;
        }
        if (0f < kEco.kRanPos.x || 0f < kEco.kRanPos.z)
        {
            return;
        }
        NrCharKindInfo charKindInfoFromCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode(kEco.szCharCode[0]);

        if (charKindInfoFromCode == null)
        {
            return;
        }
        if (charKindInfoFromCode.IsATB(8L))
        {
            NrNpcPos nrNpcPos = new NrNpcPos();
            nrNpcPos.strKey = NrTSingleton <UIDataManager> .Instance.GetString(kEco.szCharCode[0], ((int)kEco.kFixPos.x).ToString(), ((int)kEco.kFixPos.z).ToString());

            charKindInfoFromCode.SetPosKey(nrNpcPos.strKey);
            nrNpcPos.strName   = charKindInfoFromCode.GetName();
            nrNpcPos.nCharKind = charKindInfoFromCode.GetCharKind();
            nrNpcPos.nMapIndex = kEco.MapIndex;
            nrNpcPos.kPos.x    = kEco.kFixPos.x;
            nrNpcPos.kPos.y    = kEco.kFixPos.y;
            nrNpcPos.kPos.z    = kEco.kFixPos.z;
            this.AddNpcPos(nrNpcPos);
        }
    }
Exemplo 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));
    }
Exemplo n.º 3
0
    private void SetNpcList()
    {
        for (int i = 0; i < this.AutoNpc.Length; i++)
        {
            NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(this.AutoNpc[i]);

            if (charKindInfo != null)
            {
                if (!NrTSingleton <ContentsLimitManager> .Instance.IsNPCLimit(charKindInfo.GetCharKind()))
                {
                    if (charKindInfo.IsATB(512L))
                    {
                        if (!NrTSingleton <ContentsLimitManager> .Instance.IsPointExchage())
                        {
                            goto IL_113;
                        }
                    }
                    else if (charKindInfo.IsATB(1152921504606846976L))
                    {
                        if (!NrTSingleton <ContentsLimitManager> .Instance.IsGuildWarExchangeLimit())
                        {
                            goto IL_113;
                        }
                    }
                    else if (charKindInfo.IsATB(549755813888L) && !NrTSingleton <ContentsLimitManager> .Instance.IsItemLevelCheckBlock() && !NrTSingleton <ContentsLimitManager> .Instance.IsItemEvolution(false))
                    {
                        goto IL_113;
                    }
                    NewListItem newListItem = new NewListItem(3, true, string.Empty);
                    newListItem.SetListItemData(1, charKindInfo.GetCharKind(), null, null, null);
                    newListItem.SetListItemData(2, charKindInfo.GetName(), null, null, null);
                    newListItem.Data = charKindInfo.GetCharKind();
                    this.m_NpcAutoMoveList.Add(newListItem);
                }
            }
            IL_113 :;
        }
        this.m_NpcAutoMoveList.RepositionItems();
        this.m_NpcAutoMoveList.SetSelectedItem(0);
        this.OnNPCClick(null);
    }
Exemplo n.º 4
0
    public void SetCharKind(short i16CharUnique, NrCharKindInfo charKindInfo, QUEST_CONST.eQUESTSTATE eState)
    {
        int charKind = charKindInfo.GetCharKind();

        if (this.m_nOldCharUnique == i16CharUnique && charKindInfo.IsATB(8L))
        {
            this.QuestSymbol(charKind, eState);
            this.m_Button_Npc.SetButtonTextureKey("Win_B_NewTileBtnOrange");
            return;
        }
        if (this.m_nOldCharUnique == i16CharUnique && charKindInfo.IsATB(16L))
        {
            this.QuestSymbol(charKind, eState);
            this.m_Button_Npc.SetButtonTextureKey("Win_B_NewTileBtnOrange");
            return;
        }
        if (this.m_nOldCharUnique == i16CharUnique && charKindInfo.IsATB(4L))
        {
            this.BattleSymbol();
            this.m_Button_Npc.SetButtonTextureKey("Win_B_BattleControl");
            return;
        }
        this.m_i16CharUnique  = i16CharUnique;
        this.m_nOldCharUnique = i16CharUnique;
        string name = NrTSingleton <NrCharKindInfoManager> .Instance.GetName(charKind);

        if (name.Length > 5)
        {
            float num;
            if (NrGlobalReference.strLangType.Equals("eng"))
            {
                num = (float)name.Length * this.m_Button_Npc.fontSize / 2f;
            }
            else
            {
                num = (float)name.Length * this.m_Button_Npc.fontSize;
            }
            base.SetSize(num + 50f, base.GetSize().y);
            this.m_Button_Npc.SetSize(num, this.m_Button_Npc.GetSize().y);
        }
        this.m_Button_Npc.Text = name;
        if (this.m_nOldCharUnique == i16CharUnique && charKindInfo.IsATB(8L))
        {
            this.QuestSymbol(charKind, eState);
            this.m_Button_Npc.SetButtonTextureKey("Win_B_NewTileBtnOrange");
        }
        else if (this.m_nOldCharUnique == i16CharUnique && charKindInfo.IsATB(16L))
        {
            this.QuestSymbol(charKind, eState);
            this.m_Button_Npc.SetButtonTextureKey("Win_B_NewTileBtnOrange");
        }
        else if (this.m_nOldCharUnique == i16CharUnique && charKindInfo.IsATB(4L))
        {
            this.BattleSymbol();
            this.m_Button_Npc.SetButtonTextureKey("Win_B_BattleControl");
        }
    }
Exemplo n.º 5
0
    public override eCharAnimationType GetIdleAnimation()
    {
        eCharAnimationType eCharAnimationType = eCharAnimationType.Stay1;

        if (base.IsBattleChar())
        {
            return(this.m_pkBattleChar.GetStayAni());
        }
        NrCharBase parentChar = base.GetParentChar();

        if (parentChar != null && !parentChar.IsSubChar)
        {
            eCharKindType charKindType = parentChar.GetCharKindType();
            if (charKindType == eCharKindType.CKT_NPC)
            {
                if (parentChar.LoadAfterAnimation != eCharAnimationType.TalkStart1 && parentChar.LoadAfterAnimation != eCharAnimationType.TalkStay1)
                {
                    eCharAnimationType = eCharAnimationType.EcoAction1;
                }
                if (!base.IsHaveAnimation(eCharAnimationType))
                {
                    eCharAnimationType = eCharAnimationType.Stay1;
                }
                NrCharKindInfo charKindInfoFromCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromCode(base.GetCharCode());

                if (charKindInfoFromCode != null && charKindInfoFromCode.IsATB(1125899906842624L))
                {
                    eCharAnimationType = eCharAnimationType.Stay1;
                    if (!base.IsHaveAnimation(eCharAnimationType))
                    {
                        eCharAnimationType = eCharAnimationType.BStay1;
                    }
                }
            }
        }
        return(eCharAnimationType);
    }
    public void SetAniInfo(ref CHARKIND_ANIINFO aniinfo)
    {
        int            weaponkey      = 0;
        NrCharKindInfo nrCharKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromBundleName(aniinfo.BUNDLENAME);

        if (nrCharKindInfo != null && nrCharKindInfo.IsATB(1L))
        {
            int weaponType = NrTSingleton <NkWeaponTypeInfoManager> .Instance.GetWeaponType(aniinfo.WEAPONTYPE);

            if (weaponType != nrCharKindInfo.GetWeaponType())
            {
                weaponkey = 1;
            }
        }
        int           charAniTypeForEvent = (int)this.m_kCharDataCodeInfo.GetCharAniTypeForEvent(aniinfo.ANITYPE);
        int           charAniEvent        = (int)this.m_kCharDataCodeInfo.GetCharAniEvent(aniinfo.EVENTTYPE);
        NkCharAniInfo charAniInfo         = this.GetCharAniInfo(aniinfo.BUNDLENAME);

        if (charAniInfo != null)
        {
            charAniInfo.SetAniEventTime(weaponkey, charAniTypeForEvent, charAniEvent, aniinfo.EVENTTIME);
            NkCharAniMapInfo charAniMapInfo = this.GetCharAniMapInfo(aniinfo.BUNDLENAME);
            if (charAniMapInfo != null)
            {
                List <int> charKindList = charAniMapInfo.GetCharKindList();
                foreach (int current in charKindList)
                {
                    nrCharKindInfo = this.GetCharKindInfo(current);
                    if (nrCharKindInfo != null)
                    {
                        nrCharKindInfo.SetAniInfo(ref charAniInfo);
                    }
                }
            }
        }
    }
Exemplo n.º 7
0
    public void SetAniInfo(ref CHARKIND_ANIINFO aniinfo)
    {
        int            weaponkey = 0;
        NrCharKindInfo charKindInfoFromBundleName = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfoFromBundleName(aniinfo.BUNDLENAME);

        if (charKindInfoFromBundleName != null && charKindInfoFromBundleName.IsATB(1L))
        {
            int weaponType = NrTSingleton <NkWeaponTypeInfoManager> .Instance.GetWeaponType(aniinfo.WEAPONTYPE);

            if (weaponType != charKindInfoFromBundleName.GetWeaponType())
            {
                weaponkey = 1;
            }
        }
        int           charAniTypeForEvent = (int)this.m_kCharDataCodeInfo.GetCharAniTypeForEvent(aniinfo.ANITYPE);
        int           charAniEvent        = (int)this.m_kCharDataCodeInfo.GetCharAniEvent(aniinfo.EVENTTYPE);
        NkCharAniInfo charAniInfo         = this.GetCharAniInfo(aniinfo.BUNDLENAME);

        if (charAniInfo == null)
        {
            return;
        }
        charAniInfo.SetAniEventTime(weaponkey, charAniTypeForEvent, charAniEvent, aniinfo.EVENTTIME);
    }
 public bool IsUserCharKind(NrCharKindInfo CharKindInfo)
 {
     return(CharKindInfo != null && CharKindInfo.IsATB(1L));
 }
Exemplo n.º 9
0
    private void SetSolDetailInfo()
    {
        if (this.pkSolinfo == null)
        {
            return;
        }
        this.SetCostumeButton();
        this.pkSolinfo.UpdateSoldierStatInfo();
        NrCharKindInfo charKindInfo = this.pkSolinfo.GetCharKindInfo();

        if (charKindInfo == null)
        {
            return;
        }
        this.m_SolInterfaceTool.m_kSelectCharKindInfo = charKindInfo;
        this.m_SolInterfaceTool.SetHeroEventLabel(this.pkSolinfo.GetGrade() + 1);
        string costumePortraitPath = NrTSingleton <NrCharCostumeTableManager> .Instance.GetCostumePortraitPath(this.m_selectedSolCostumeUnique);

        this.m_SolInterfaceTool.SetCharImg(this.pkSolinfo.GetGrade(), costumePortraitPath);
        this.m_SolInterfaceTool.m_Label_Rank2.Visible = false;
        if (!NrTSingleton <ContentsLimitManager> .Instance.IsReincarnation())
        {
            if (charKindInfo.IsATB(1L))
            {
                this.m_SolInterfaceTool.m_DrawTexture_rank.Visible = false;
            }
            else
            {
                this.m_SolInterfaceTool.m_DrawTexture_rank.Visible = true;
            }
        }
        else
        {
            this.m_SolInterfaceTool.m_DrawTexture_rank.Visible = true;
        }
        SUBDATA_UNION sUBDATA_UNION = default(SUBDATA_UNION);

        sUBDATA_UNION.nSubData = this.pkSolinfo.GetSolSubData(eSOL_SUBDATA.SOL_SUBDATA_AWAKENING_STRDEX);
        SUBDATA_UNION sUBDATA_UNION2 = default(SUBDATA_UNION);

        sUBDATA_UNION2.nSubData = this.pkSolinfo.GetSolSubData(eSOL_SUBDATA.SOL_SUBDATA_AWAKENING_VITINT);
        int statSTR = this.pkSolinfo.GetStatSTR();
        int statDEX = this.pkSolinfo.GetStatDEX();
        int statVIT = this.pkSolinfo.GetStatVIT();
        int statINT = this.pkSolinfo.GetStatINT();

        this.ShowBaseSolStatAwakening(this.SolSTR, statSTR, sUBDATA_UNION.n32SubData_0);
        this.ShowBaseSolStatAwakening(this.SolDEX, statDEX, sUBDATA_UNION.n32SubData_1);
        this.ShowBaseSolStatAwakening(this.SolVIT, statVIT, sUBDATA_UNION2.n32SubData_0);
        this.ShowBaseSolStatAwakening(this.SolINT, statINT, sUBDATA_UNION2.n32SubData_1);
        string text = string.Empty;

        if (charKindInfo.GetCHARKIND_ATTACKINFO().ATTACKTYPE == this.pkSolinfo.GetAttackInfo().ATTACKTYPE)
        {
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(charKindInfo.GetCHARKIND_INFO().SoldierSpec1);
        }
        else
        {
            text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(charKindInfo.GetCHARKIND_INFO().SoldierSpec2);
        }
        this.m_lbSoldierSpec.SetText(text);
        this.SolExplain.SetScrollLabel(charKindInfo.GetDesc());
        int value = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_TRADECOUNT_USE);

        this.TradeCount.Hide(true);
        if (value == 1)
        {
            this.TradeCount.Hide(true);
            this.TradeCountName.Hide(false);
            byte tradeRank = this.pkSolinfo.GetCharKindInfo().GetTradeRank((int)this.pkSolinfo.GetGrade());
            if (tradeRank == 0 || this.pkSolinfo.GetGrade() < tradeRank - 1)
            {
                if (tradeRank == 0)
                {
                    this.TradeCountName.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1980"));
                }
                else if (!this.pkSolinfo.IsAwakening())
                {
                    string empty = string.Empty;
                    NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                    {
                        NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1979"),
                        "count",
                        tradeRank
                    });

                    this.TradeCountName.SetText(empty);
                }
                else
                {
                    this.TradeCountName.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2346"));
                }
            }
            else if (!this.pkSolinfo.IsAwakening())
            {
                this.TradeCountName.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("1206"));
                long solSubData = this.pkSolinfo.GetSolSubData(eSOL_SUBDATA.SOL_SUBDATA_TRADE_COUNT);
                this.TradeCount.SetText(solSubData.ToString());
                this.TradeCount.Hide(false);
            }
            else
            {
                this.TradeCountName.SetText(NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2346"));
            }
        }
        else
        {
            this.TradeCountName.Hide(true);
        }
        this.IntroMovieButton.Visible = false;
        this.IntroMoveieText.Visible  = false;
        this.m_btnSolPreview.Visible  = false;
        if (charKindInfo.IsATB(1L))
        {
            this.IntroMovieButton.Visible = true;
            this.IntroMoveieText.Visible  = true;
        }
        else
        {
            this.m_btnSolPreview.Visible = true;
        }
        this.SetInitiativeValue();
        if (this.pkSolinfo.IsAtbCommonFlag(8L))
        {
            this.m_cOnlySkill.SetCheckState(1);
        }
        else
        {
            this.m_cOnlySkill.SetCheckState(0);
        }
    }
Exemplo n.º 10
0
    public void SetSolKind(SolSlotData SlotData)
    {
        if (SlotData == null)
        {
            return;
        }
        this.m_SelectSlotData = SlotData;
        NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(this.m_SelectSlotData.i32KindInfo);

        if (charKindInfo == null)
        {
            TsLog.LogOnlyEditor("!!!! SOL CHARKIND ERROR {0}" + this.m_SelectSlotData.i32KindInfo + " !!");
            return;
        }
        this.m_SolInterfaceTool.m_kSelectCharKindInfo = charKindInfo;
        this.m_SolInterfaceTool.SetCharImg(this.m_SelectSlotData.bSolGrade - 1, string.Empty);
        this.m_SolInterfaceTool.SetHeroEventLabel(this.m_SelectSlotData.bSolGrade);
        this.m_SolInterfaceTool.SetSkillIcon();
        this.m_SolInterfaceTool.m_Label_Rank2.Visible = false;
        if (!NrTSingleton <ContentsLimitManager> .Instance.IsReincarnation())
        {
            if (charKindInfo.IsATB(1L))
            {
                this.m_SolInterfaceTool.m_DrawTexture_rank.Visible = false;
            }
            else
            {
                this.m_SolInterfaceTool.m_DrawTexture_rank.Visible = true;
            }
        }
        else
        {
            this.m_SolInterfaceTool.m_DrawTexture_rank.Visible = true;
        }
        this.m_Button_MovieBtn.data = this.m_SelectSlotData.i32KindInfo;
        bool visible = NrTSingleton <NrCharCostumeTableManager> .Instance.IsCostumeKind(charKindInfo.GetCharKind());

        if (NrTSingleton <ContentsLimitManager> .Instance.IsCostumeLimit())
        {
            visible = false;
        }
        this.m_Button_Costume.Visible = visible;
        this.m_Label_Costume.Visible  = visible;
        BASE_SOLGRADEINFO cHARKIND_SOLGRADEINFO = charKindInfo.GetCHARKIND_SOLGRADEINFO((int)(this.m_SelectSlotData.bSolGrade - 1));

        if (cHARKIND_SOLGRADEINFO != null)
        {
            int num  = charKindInfo.GetGradePlusSTR((int)(this.m_SelectSlotData.bSolGrade - 1));
            int num2 = charKindInfo.GetGradePlusDEX((int)(this.m_SelectSlotData.bSolGrade - 1));
            int num3 = charKindInfo.GetGradePlusINT((int)(this.m_SelectSlotData.bSolGrade - 1));
            int num4 = charKindInfo.GetGradePlusVIT((int)(this.m_SelectSlotData.bSolGrade - 1));
            num  += charKindInfo.GetIncSTR((int)(this.m_SelectSlotData.bSolGrade - 1), (int)charKindInfo.GetGradeMaxLevel((short)(this.m_SelectSlotData.bSolGrade - 1)));
            num2 += charKindInfo.GetIncDEX((int)(this.m_SelectSlotData.bSolGrade - 1), (int)charKindInfo.GetGradeMaxLevel((short)(this.m_SelectSlotData.bSolGrade - 1)));
            num3 += charKindInfo.GetIncINT((int)(this.m_SelectSlotData.bSolGrade - 1), (int)charKindInfo.GetGradeMaxLevel((short)(this.m_SelectSlotData.bSolGrade - 1)));
            num4 += charKindInfo.GetIncVIT((int)(this.m_SelectSlotData.bSolGrade - 1), (int)charKindInfo.GetGradeMaxLevel((short)(this.m_SelectSlotData.bSolGrade - 1)));
            this.m_Label_Stats_str2.SetText(num.ToString());
            this.m_Label_Stats_dex2.SetText(num2.ToString());
            this.m_Label_Stats_vit2.SetText(num4.ToString());
            this.m_Label_Stats_int2.SetText(num3.ToString());
        }
        else
        {
            this.m_Label_Stats_str2.SetText("0");
            this.m_Label_Stats_dex2.SetText("0");
            this.m_Label_Stats_vit2.SetText("0");
            this.m_Label_Stats_int2.SetText("0");
        }
        this.m_ScrollLabel_info.SetScrollLabel(charKindInfo.GetDesc());
        if (!NrTSingleton <ContentsLimitManager> .Instance.IsElementKind(charKindInfo.GetCharKind()))
        {
            if (!NrTSingleton <NrTableSolGuideManager> .Instance.GetCharKindAlchemy(charKindInfo.GetCharKind()))
            {
                this.m_Toolbar.Control_Tab[2].Visible = false;
            }
            else
            {
                this.m_Toolbar.Control_Tab[2].Visible = true;
                CHARKIND_SOLDIERINFO guide_Col = NrTSingleton <NrBaseTableManager> .Instance.GetGuide_Col(charKindInfo.GetCharKind());

                if (guide_Col != null)
                {
                    int[]  array  = new int[5];
                    byte[] array2 = new byte[5];
                    for (int i = 0; i < 5; i++)
                    {
                        array[i]  = guide_Col.kElement_CharData[i].GetCharCharKind();
                        array2[i] = guide_Col.kElement_CharData[i].GetCharCharRank();
                    }
                    SolDetail_Info_Dlg solDetail_Info_Dlg = NrTSingleton <FormsManager> .Instance.GetForm(G_ID.SOLDETAIL_DLG) as SolDetail_Info_Dlg;

                    solDetail_Info_Dlg.SetElEmentMaterial(guide_Col.i32BaseCharKind, guide_Col.bBaseRank, array, array2, guide_Col.i64NeedMoney);
                }
            }
        }
        if (Scene.CurScene == Scene.Type.SOLDIER_BATCH)
        {
            this.m_Toolbar.Control_Tab[2].Visible = false;
            this.m_Toolbar.Control_Tab[1].Visible = false;
        }
        this.m_cMythSkillControl.ShowInfo(SlotData);
    }
Exemplo n.º 11
0
    public void AddNpc(NrCharKindInfo charkindinfo)
    {
        if (charkindinfo.GetCHARKIND_NPCINFO() == null)
        {
            return;
        }
        int charKind = charkindinfo.GetCharKind();

        if (charKind <= 0)
        {
            return;
        }
        if (this.m_dicNPC.ContainsKey(charKind))
        {
            return;
        }
        if (charkindinfo.IsATB(8L))
        {
            if (charkindinfo.IsATB(2097152L))
            {
                CNpcUI cNpcUI = new CBlackSmith();
                cNpcUI.m_i32CharKind = charKind;
                this.m_dicNPC.Add(cNpcUI.m_i32CharKind, cNpcUI);
            }
            else if (charkindinfo.IsATB(512L))
            {
                if (NrTSingleton <NkCharManager> .Instance.GetMyCharInfo() == null)
                {
                    return;
                }
                CNpcUI cNpcUI2 = new CBuyItem();
                cNpcUI2.m_i32CharKind = charKind;
                this.m_dicNPC.Add(cNpcUI2.m_i32CharKind, cNpcUI2);
            }
            else if (charkindinfo.IsATB(536870912L))
            {
                CNpcUI cNpcUI3 = new CIndunOpen();
                cNpcUI3.m_i32CharKind = charKind;
                ((CIndunOpen)cNpcUI3).SetData();
                this.m_dicNPC.Add(cNpcUI3.m_i32CharKind, cNpcUI3);
            }
            else if (charkindinfo.IsATB(4294967296L))
            {
                CNpcUI cNpcUI4 = new CGuildOpen();
                cNpcUI4.m_i32CharKind = charKind;
                ((CGuildOpen)cNpcUI4).SetData();
                this.m_dicNPC.Add(cNpcUI4.m_i32CharKind, cNpcUI4);
            }
            else if (charkindinfo.IsATB(274877906944L) || charkindinfo.IsATB(1099511627776L))
            {
                CNpcUI cNpcUI5 = new CCharChange();
                cNpcUI5.m_i32CharKind = charKind;
                ((CCharChange)cNpcUI5).SetData();
                this.m_dicNPC.Add(cNpcUI5.m_i32CharKind, cNpcUI5);
            }
            else if (charkindinfo.IsATB(549755813888L))
            {
                CNpcUI cNpcUI6 = new CEquipReduce();
                cNpcUI6.m_i32CharKind = charKind;
                ((CEquipReduce)cNpcUI6).SetData();
                this.m_dicNPC.Add(cNpcUI6.m_i32CharKind, cNpcUI6);
            }
            else if (charkindinfo.IsATB(2199023255552L))
            {
                CNpcUI cNpcUI7 = new CItemSkill();
                cNpcUI7.m_i32CharKind = charKind;
                ((CItemSkill)cNpcUI7).SetData();
                this.m_dicNPC.Add(cNpcUI7.m_i32CharKind, cNpcUI7);
            }
            else if (charkindinfo.IsATB(288230376151711744L))
            {
                CNpcUI cNpcUI8 = new CItemRepair();
                cNpcUI8.m_i32CharKind = charKind;
                ((CItemRepair)cNpcUI8).SetData();
                this.m_dicNPC.Add(cNpcUI8.m_i32CharKind, cNpcUI8);
            }
            else if (charkindinfo.IsATB(4503599627370496L))
            {
                CNpcUI cNpcUI9 = new CExchangeJewelry();
                cNpcUI9.m_i32CharKind = charKind;
                this.m_dicNPC.Add(cNpcUI9.m_i32CharKind, cNpcUI9);
            }
            else if (charkindinfo.IsATB(18014398509481984L))
            {
                CNpcUI cNpcUI10 = new CAgitNPC(charKind);
                cNpcUI10.m_i32CharKind = charKind;
                this.m_dicNPC.Add(cNpcUI10.m_i32CharKind, cNpcUI10);
            }
            else if (charkindinfo.IsATB(36028797018963968L))
            {
                CNpcUI cNpcUI11 = new CExchangeMythice();
                cNpcUI11.m_i32CharKind = charKind;
                this.m_dicNPC.Add(cNpcUI11.m_i32CharKind, cNpcUI11);
            }
            else if (charkindinfo.IsATB(1152921504606846976L))
            {
                CNpcUI cNpcUI12 = new CExchangeGuildWar();
                cNpcUI12.m_i32CharKind = charKind;
                this.m_dicNPC.Add(cNpcUI12.m_i32CharKind, cNpcUI12);
            }
            else if (charkindinfo.IsATB(33554432L))
            {
                CNpcUI cNpcUI13 = new CExchangeEventItem();
                cNpcUI13.m_i32CharKind = charKind;
                this.m_dicNPC.Add(cNpcUI13.m_i32CharKind, cNpcUI13);
            }
            else
            {
                string code = charkindinfo.GetCode();
                if (charkindinfo.GetCode().Equals("TERRITORY_Custodian"))
                {
                    CNpcUI cNpcUI14 = new CCustodian();
                    cNpcUI14.m_i32CharKind = charKind;
                    this.m_dicNPC.Add(cNpcUI14.m_i32CharKind, cNpcUI14);
                }
                else if (code.Equals("Battle_Custodian"))
                {
                    CNpcUI cNpcUI15 = new CBattleCustodian();
                    cNpcUI15.m_i32CharKind = charKind;
                    this.m_dicNPC.Add(cNpcUI15.m_i32CharKind, cNpcUI15);
                }
                else if (code.Equals("NaGwanJoong"))
                {
                    CNpcUI cNpcUI16 = new CQuestReset();
                    cNpcUI16.m_i32CharKind = charKind;
                    this.m_dicNPC.Add(cNpcUI16.m_i32CharKind, cNpcUI16);
                }
                else
                {
                    CNpcUI cNpcUI17 = new CNpcUI();
                    cNpcUI17.m_i32CharKind = charKind;
                    this.m_dicNPC.Add(cNpcUI17.m_i32CharKind, cNpcUI17);
                }
            }
        }
    }