public void SetGoldenEggPoint(int curPoint)
    {
        int num = 0;
        AGIT_NPC_SUB_DATA agitNPCSubDataFromNPCType = NrTSingleton <NewGuildManager> .Instance.GetAgitNPCSubDataFromNPCType(5);

        if (agitNPCSubDataFromNPCType != null)
        {
            AgitNPCData agitNPCData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitNPCData(agitNPCSubDataFromNPCType.ui8NPCType.ToString());

            if (agitNPCData != null)
            {
                num = agitNPCData.i32LevelRate[(int)(agitNPCSubDataFromNPCType.i16NPCLevel - 1)];
            }
        }
        string empty = string.Empty;

        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
        {
            NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("603"),
            "count1",
            curPoint,
            "count2",
            num
        });

        this.m_lbProgress.SetText(empty);
        float num2 = 0f;

        if (curPoint != 0 && num != 0)
        {
            num2 = (float)curPoint / (float)num;
        }
        this.m_dtProgressBar.SetSize(this.m_fProgressBarMaxWidth * num2, this.m_dtProgressBar.height);
    }
Example #2
0
    public void MsgOKNPCInvite(object a_oObject)
    {
        AgitNPCData agitNPCData = (AgitNPCData)a_oObject;

        if (agitNPCData == null)
        {
            return;
        }
        NrTSingleton <NewGuildManager> .Instance.Send_GS_NEWGUILD_AGIT_ADD_NPC_REQ(agitNPCData.ui8NPCType, this.m_i16NPCLevel);
    }
    public void MakeAgitNPC(byte iNPCType)
    {
        AgitNPCData agitNPCData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitNPCData(iNPCType.ToString());

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

        if (charKindInfoFromCode == null)
        {
            return;
        }
        if (NrTSingleton <NkCharManager> .Instance.GetCharByCharKind(charKindInfoFromCode.GetCharKind()) != null)
        {
            return;
        }
        NEW_MAKECHAR_INFO nEW_MAKECHAR_INFO = new NEW_MAKECHAR_INFO();

        nEW_MAKECHAR_INFO.CharName  = TKString.StringChar(charKindInfoFromCode.GetName());
        nEW_MAKECHAR_INFO.CharPos.x = agitNPCData.fPosX;
        nEW_MAKECHAR_INFO.CharPos.y = 0f;
        nEW_MAKECHAR_INFO.CharPos.z = agitNPCData.fPosY;
        float f = agitNPCData.fDirection * 0.0174532924f;

        nEW_MAKECHAR_INFO.Direction.x  = 1f * Mathf.Sin(f);
        nEW_MAKECHAR_INFO.Direction.y  = 0f;
        nEW_MAKECHAR_INFO.Direction.z  = 1f * Mathf.Cos(f);
        nEW_MAKECHAR_INFO.CharKind     = charKindInfoFromCode.GetCharKind();
        nEW_MAKECHAR_INFO.CharKindType = 3;
        nEW_MAKECHAR_INFO.CharUnique   = NrTSingleton <NkCharManager> .Instance.GetClientNpcUnique();

        if (nEW_MAKECHAR_INFO.CharUnique == 0)
        {
        }
        int num = NrTSingleton <NkCharManager> .Instance.SetChar(nEW_MAKECHAR_INFO, false, false);

        TsLog.LogOnlyEditor(string.Concat(new object[]
        {
            "AgitNPC : ",
            agitNPCData.ui8NPCType,
            " : ",
            num
        }));
        AgitNPCInfo agitNPCInfo = new AgitNPCInfo();

        agitNPCInfo.SetCharID(num);
        agitNPCInfo.SetNPCType(agitNPCData.ui8NPCType);
        this.m_NewGuildAgit.AddNPCInfo(agitNPCInfo);
    }
Example #4
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);
    }
    public int GetAgitNPCCharKindFromNPCType(byte iNPCType)
    {
        AgitNPCData agitNPCData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitNPCData(iNPCType.ToString());

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

        if (charKindInfoFromCode == null)
        {
            return(0);
        }
        return(charKindInfoFromCode.GetCharKind());
    }
Example #6
0
    public void RefreshInfoInviteNPC()
    {
        this.m_dlNPCLevel.SetVisible(true);
        this.m_i16NPCLevel = NrTSingleton <NewGuildManager> .Instance.GetAgitLevel();

        this.m_dlNPCLevel.SetViewArea((int)this.m_i16NPCLevel);
        if (this.m_dlNPCLevel.Count > 0)
        {
            this.m_dlNPCLevel.Clear();
        }
        for (int i = 0; i < (int)this.m_i16NPCLevel; i++)
        {
            short num = (short)(i + 1);
            this.m_strText = string.Format("{0}", num);
            this.m_dlNPCLevel.AddItem(this.m_strText, num);
        }
        this.m_dlNPCLevel.RepositionItems();
        if (this.m_dlNPCLevel.Count <= 1)
        {
            this.m_dlNPCLevel.SetFirstItem();
        }
        else
        {
            this.m_dlNPCLevel.SetIndex((int)(this.m_i16NPCLevel - 1));
        }
        this.m_dlNPCLevel.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnChangeNPCLevel));
        this.m_nlbInviteNPC.Clear();
        for (int i = 2; i < 6; i++)
        {
            AgitNPCData agitNPCData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitNPCData(i.ToString());

            if (agitNPCData != null)
            {
                if (agitNPCData.ui8NPCType != 3)
                {
                    if (agitNPCData.ui8NPCType != 4)
                    {
                        this.MakeNPCInfo(agitNPCData);
                    }
                }
            }
        }
        this.m_nlbInviteNPC.RepositionItems();
    }
    public NewGuildDefine.eNEWGUILD_NPC_TYPE GetAgitNPCTypeFromCharKind(int i32CharKind)
    {
        for (int i = 1; i < 6; i++)
        {
            AgitNPCData agitNPCData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitNPCData(i.ToString());

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

                if (charKindInfoFromCode != null)
                {
                    if (charKindInfoFromCode.GetCharKind() == i32CharKind)
                    {
                        return((NewGuildDefine.eNEWGUILD_NPC_TYPE)i);
                    }
                }
            }
        }
        return(NewGuildDefine.eNEWGUILD_NPC_TYPE.eNEWGUILD_NPC_TYPE_NONE);
    }
    public void UpdateAgitNPC(int iMapIdx)
    {
        if (NrTSingleton <ContentsLimitManager> .Instance.IsAgitLimit())
        {
            return;
        }
        if (iMapIdx != 12)
        {
            return;
        }
        this.m_NewGuildAgit.ClearNPCInfo();
        for (byte b = 1; b < 6; b += 1)
        {
            AgitNPCData agitNPCData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitNPCData(b.ToString());

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

                if (charKindInfoFromCode != null)
                {
                    NrCharBase charByCharKind = NrTSingleton <NkCharManager> .Instance.GetCharByCharKind(charKindInfoFromCode.GetCharKind());

                    if (charByCharKind != null)
                    {
                        NrTSingleton <NkCharManager> .Instance.DeleteChar(charByCharKind.GetID());
                    }
                }
            }
        }
        for (int i = 0; i < this.m_NewGuildAgit.GetAgitNPCSubDataCount(); i++)
        {
            AGIT_NPC_SUB_DATA agitNPCSubData = this.m_NewGuildAgit.GetAgitNPCSubData(i);
            if (agitNPCSubData != null)
            {
                this.MakeAgitNPC(agitNPCSubData.ui8NPCType);
            }
        }
        this.ShowAgitInfoDLG();
    }
Example #9
0
    public bool SetData(NrTableData kData)
    {
        NrTableData.eResourceType typeIndex = kData.GetTypeIndex();
        int    num      = (int)typeIndex;
        string kDataKey = string.Empty;

        switch (typeIndex)
        {
        case NrTableData.eResourceType.eRT_WEAPONTYPE_INFO:
        {
            WEAPONTYPE_INFO wEAPONTYPE_INFO = kData as WEAPONTYPE_INFO;
            int             weaponType      = NrTSingleton <NkWeaponTypeInfoManager> .Instance.GetWeaponType(wEAPONTYPE_INFO.WEAPONCODE);

            kDataKey = weaponType.ToString();
            NrTSingleton <NkWeaponTypeInfoManager> .Instance.SetWeaponTypeInfo(weaponType, ref wEAPONTYPE_INFO);

            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_ATTACKINFO:
        {
            CHARKIND_ATTACKINFO cHARKIND_ATTACKINFO = kData as CHARKIND_ATTACKINFO;
            cHARKIND_ATTACKINFO.nWeaponType = NrTSingleton <NkWeaponTypeInfoManager> .Instance.GetWeaponType(cHARKIND_ATTACKINFO.WEAPONCODE);

            kDataKey = cHARKIND_ATTACKINFO.ATTACKTYPE.ToString();
            NrTSingleton <NrCharKindInfoManager> .Instance.SetAttackTypeCodeInfo(cHARKIND_ATTACKINFO.ATTACKTYPE, cHARKIND_ATTACKINFO.ATTACKCODE);

            NrCharDataCodeInfo charDataCodeInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharDataCodeInfo();

            if (charDataCodeInfo != null)
            {
                cHARKIND_ATTACKINFO.nJobType = charDataCodeInfo.GetCharJobType(cHARKIND_ATTACKINFO.JOBTYPE);
            }
            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_CLASSINFO:
        {
            CHARKIND_CLASSINFO cHARKIND_CLASSINFO = kData as CHARKIND_CLASSINFO;
            long num2       = 1L;
            int  cLASSINDEX = cHARKIND_CLASSINFO.CLASSINDEX;
            cHARKIND_CLASSINFO.CLASSTYPE = num2 << cLASSINDEX - 1;
            kDataKey = cHARKIND_CLASSINFO.CLASSTYPE.ToString();
            NrTSingleton <NrCharKindInfoManager> .Instance.SetClassTypeCodeInfo(cHARKIND_CLASSINFO.CLASSCODE, cHARKIND_CLASSINFO.CLASSTYPE);

            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_INFO:
        {
            CHARKIND_INFO cHARKIND_INFO = kData as CHARKIND_INFO;
            kDataKey = cHARKIND_INFO.CHARKIND.ToString();
            cHARKIND_INFO.nClassType = NrTSingleton <NrCharKindInfoManager> .Instance.GetClassType(cHARKIND_INFO.CLASSTYPE);

            cHARKIND_INFO.nAttackType = NrTSingleton <NrCharKindInfoManager> .Instance.GetAttackType(cHARKIND_INFO.ATTACKTYPE);

            cHARKIND_INFO.nATB = NrTSingleton <NkATB_Manager> .Instance.ParseCharATB(cHARKIND_INFO.ATB);

            NrTSingleton <NrCharKindInfoManager> .Instance.SetCharKindInfo(ref cHARKIND_INFO);

            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_STATINFO:
        {
            CHARKIND_STATINFO cHARKIND_STATINFO = kData as CHARKIND_STATINFO;
            int charKindByCode = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(cHARKIND_STATINFO.CharCode);

            kDataKey = charKindByCode.ToString();
            NrTSingleton <NrCharKindInfoManager> .Instance.SetStatInfo(charKindByCode, ref cHARKIND_STATINFO);

            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_MONSTERINFO:
        {
            CHARKIND_MONSTERINFO cHARKIND_MONSTERINFO = kData as CHARKIND_MONSTERINFO;
            int charKindByCode2 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(cHARKIND_MONSTERINFO.CharCode);

            kDataKey = charKindByCode2.ToString();
            NrTSingleton <NrCharKindInfoManager> .Instance.SetMonsterInfo(charKindByCode2, ref cHARKIND_MONSTERINFO);

            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_MONSTATINFO:
        {
            CHARKIND_MONSTATINFO cHARKIND_MONSTATINFO = kData as CHARKIND_MONSTATINFO;
            kDataKey = NkUtil.MakeLong(cHARKIND_MONSTATINFO.MonType, (long)cHARKIND_MONSTATINFO.LEVEL).ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_NPCINFO:
        {
            CHARKIND_NPCINFO cHARKIND_NPCINFO = kData as CHARKIND_NPCINFO;
            int charKindByCode3 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(cHARKIND_NPCINFO.CHARCODE);

            kDataKey = charKindByCode3.ToString();
            NrTSingleton <NrCharKindInfoManager> .Instance.SetNPCInfo(charKindByCode3, ref cHARKIND_NPCINFO);

            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_ANIINFO:
        {
            CHARKIND_ANIINFO cHARKIND_ANIINFO = kData as CHARKIND_ANIINFO;
            kDataKey = cHARKIND_ANIINFO.BUNDLENAME.ToString();
            NrTSingleton <NrCharAniInfoManager> .Instance.SetAniInfo(ref cHARKIND_ANIINFO);

            NrTSingleton <NrCharKindInfoManager> .Instance.SetAniInfo(ref cHARKIND_ANIINFO);

            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_LEGENDINFO:
        {
            CHARKIND_LEGENDINFO cHARKIND_LEGENDINFO = kData as CHARKIND_LEGENDINFO;
            int charKindByCode4 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(cHARKIND_LEGENDINFO.CharCode);

            cHARKIND_LEGENDINFO.i32Element_LegendCharkind = charKindByCode4;
            for (int i = 0; i < 5; i++)
            {
                int charKindByCode5 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(cHARKIND_LEGENDINFO.i32Base_LegendCharCode[i]);

                cHARKIND_LEGENDINFO.i32Base_CharKind[i] = charKindByCode4;
            }
            kDataKey = charKindByCode4.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_SOLDIERINFO:
        {
            CHARKIND_SOLDIERINFO cHARKIND_SOLDIERINFO = kData as CHARKIND_SOLDIERINFO;
            for (int j = 0; j < 5; j++)
            {
                int charKindByCode6 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(cHARKIND_SOLDIERINFO.kElement_CharData[j].Element_CharCode);

                cHARKIND_SOLDIERINFO.kElement_CharData[j].SetChar(charKindByCode6);
            }
            int charKindByCode7 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(cHARKIND_SOLDIERINFO.CharCode);

            cHARKIND_SOLDIERINFO.i32BaseCharKind = charKindByCode7;
            kDataKey = charKindByCode7.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_CHARKIND_SOLGRADEINFO:
        {
            BASE_SOLGRADEINFO bASE_SOLGRADEINFO = kData as BASE_SOLGRADEINFO;
            int charKindByCode8 = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(bASE_SOLGRADEINFO.CharCode);

            kDataKey = charKindByCode8.ToString();
            NrTSingleton <NrCharKindInfoManager> .Instance.SetSolGradeInfo(charKindByCode8, ref bASE_SOLGRADEINFO);

            break;
        }

        case NrTableData.eResourceType.eRT_ITEMTYPE_INFO:
        {
            ITEMTYPE_INFO iTEMTYPE_INFO = kData as ITEMTYPE_INFO;
            iTEMTYPE_INFO.OPTION1 = NrTSingleton <ItemManager> .Instance.GetItemOption(iTEMTYPE_INFO.szOption1);

            iTEMTYPE_INFO.OPTION2 = NrTSingleton <ItemManager> .Instance.GetItemOption(iTEMTYPE_INFO.szOption2);

            iTEMTYPE_INFO.ITEMPART = NrTSingleton <ItemManager> .Instance.GetItemPart(iTEMTYPE_INFO.szItemPart);

            iTEMTYPE_INFO.ITEMTYPE = NrTSingleton <ItemManager> .Instance.GetItemType(iTEMTYPE_INFO.ITEMTYPECODE);

            iTEMTYPE_INFO.ATB = NrTSingleton <NkATB_Manager> .Instance.ParseItemTypeATB(iTEMTYPE_INFO.szATB);

            iTEMTYPE_INFO.ATTACKTYPE = NrTSingleton <NrCharKindInfoManager> .Instance.GetAttackType(iTEMTYPE_INFO.szAttackTypeCode);

            CHARKIND_ATTACKINFO charAttackInfo = NrTSingleton <NrBaseTableManager> .Instance.GetCharAttackInfo(iTEMTYPE_INFO.ATTACKTYPE.ToString());

            if (charAttackInfo != null)
            {
                iTEMTYPE_INFO.WEAPONTYPE = charAttackInfo.nWeaponType;
            }
            else
            {
                iTEMTYPE_INFO.WEAPONTYPE = 0;
            }
            iTEMTYPE_INFO.EQUIPCLASSTYPE = NrTSingleton <NrCharKindInfoManager> .Instance.ParseClassTypeCode(iTEMTYPE_INFO.szClassTypeCode);

            kDataKey = iTEMTYPE_INFO.ITEMTYPE.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_QUEST_NPC_POS_INFO:
        {
            QUEST_NPC_POS_INFO qUEST_NPC_POS_INFO = kData as QUEST_NPC_POS_INFO;
            kDataKey = qUEST_NPC_POS_INFO.strUnique;
            break;
        }

        case NrTableData.eResourceType.eRT_ECO_TALK:
        {
            ECO_TALK eCO_TALK = kData as ECO_TALK;
            kDataKey = eCO_TALK.strCharCode;
            break;
        }

        case NrTableData.eResourceType.eRT_ECO:
        {
            ECO eCO = kData as ECO;
            kDataKey = eCO.GroupUnique.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_MAP_INFO:
        {
            MAP_INFO mAP_INFO = kData as MAP_INFO;
            mAP_INFO.MAP_ATB = NrTSingleton <NkATB_Manager> .Instance.ParseMapATB(mAP_INFO.strMapATB);

            ICollection gateInfo_Col = NrTSingleton <NrBaseTableManager> .Instance.GetGateInfo_Col();

            foreach (GATE_INFO gATE_INFO in gateInfo_Col)
            {
                if (mAP_INFO.MAP_INDEX == gATE_INFO.SRC_MAP_IDX)
                {
                    mAP_INFO.AddGateInfo(gATE_INFO);
                }
                if (mAP_INFO.MAP_INDEX == gATE_INFO.DST_MAP_IDX)
                {
                    mAP_INFO.AddDSTGateInfo(gATE_INFO);
                }
            }
            kDataKey = mAP_INFO.MAP_INDEX.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_MAP_UNIT:
        {
            MAP_UNIT mAP_UNIT = kData as MAP_UNIT;
            kDataKey = mAP_UNIT.MAP_UNIQUE.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_GATE_INFO:
        {
            GATE_INFO gATE_INFO2 = kData as GATE_INFO;
            kDataKey = gATE_INFO2.GATE_IDX.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_ITEM_ACCESSORY:
        {
            ITEM_ACCESSORY pkItem = kData as ITEM_ACCESSORY;
            NrTSingleton <ItemManager> .Instance.AddAccessory(pkItem);

            return(true);
        }

        case NrTableData.eResourceType.eRT_ITEM_ARMOR:
        {
            ITEM_ARMOR iTEM_ARMOR = kData as ITEM_ARMOR;
            NrTSingleton <ItemManager> .Instance.AddArmor(iTEM_ARMOR);

            kDataKey = iTEM_ARMOR.ITEMUNIQUE.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_ITEM_BOX:
        {
            ITEM_BOX pkItem2 = kData as ITEM_BOX;
            NrTSingleton <ItemManager> .Instance.AddBox(pkItem2);

            return(true);
        }

        case NrTableData.eResourceType.eRT_ITEM_MATERIAL:
        {
            ITEM_MATERIAL pkItem3 = kData as ITEM_MATERIAL;
            NrTSingleton <ItemManager> .Instance.AddMaterial(pkItem3);

            return(true);
        }

        case NrTableData.eResourceType.eRT_ITEM_QUEST:
        {
            ITEM_QUEST pkItem4 = kData as ITEM_QUEST;
            NrTSingleton <ItemManager> .Instance.AddQuest(pkItem4);

            return(true);
        }

        case NrTableData.eResourceType.eRT_ITEM_SECONDEQUIP:
        {
            ITEM_SECONDEQUIP pkItem5 = kData as ITEM_SECONDEQUIP;
            NrTSingleton <ItemManager> .Instance.AddSecondEquip(pkItem5);

            return(true);
        }

        case NrTableData.eResourceType.eRT_ITEM_SUPPLIES:
        {
            ITEM_SUPPLIES pkItem6 = kData as ITEM_SUPPLIES;
            NrTSingleton <ItemManager> .Instance.AddSupply(pkItem6);

            return(true);
        }

        case NrTableData.eResourceType.eRT_ITEM_WEAPON:
        {
            ITEM_WEAPON pkItem7 = kData as ITEM_WEAPON;
            NrTSingleton <ItemManager> .Instance.AddWeapon(pkItem7);

            return(true);
        }

        case NrTableData.eResourceType.eRT_INDUN_INFO:
        {
            INDUN_INFO iNDUN_INFO = kData as INDUN_INFO;
            iNDUN_INFO.m_eIndun_Type = INDUN_DEFINE.GetIndunType(iNDUN_INFO.strIndunType);
            iNDUN_INFO.m_nNpcCode    = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(iNDUN_INFO.strNpcCode);

            kDataKey = iNDUN_INFO.m_nIndunIDX.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_GAMEGUIDE:
        {
            TableData_GameGuideInfo tableData_GameGuideInfo = kData as TableData_GameGuideInfo;
            if (tableData_GameGuideInfo.gameGuideInfo.m_eType == GameGuideType.DEFAULT)
            {
                NrTSingleton <GameGuideManager> .Instance.AddDefaultGuid(tableData_GameGuideInfo.gameGuideInfo);
            }
            else
            {
                NrTSingleton <GameGuideManager> .Instance.AddGameGuide(tableData_GameGuideInfo.gameGuideInfo);
            }
            return(true);
        }

        case NrTableData.eResourceType.eRT_LOCALMAP_INFO:
        {
            LOCALMAP_INFO lOCALMAP_INFO = kData as LOCALMAP_INFO;
            kDataKey = lOCALMAP_INFO.LOCALMAP_IDX.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_WORLDMAP_INFO:
        {
            WORLDMAP_INFO wORLDMAP_INFO = kData as WORLDMAP_INFO;
            if (wORLDMAP_INFO.TEXTKEY != string.Empty)
            {
                wORLDMAP_INFO.WORLDMAP_NAME = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface(wORLDMAP_INFO.TEXTKEY);
            }
            kDataKey = wORLDMAP_INFO.WORLDMAP_IDX.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_ADVENTURE:
        {
            TableData_AdventureInfo tableData_AdventureInfo = kData as TableData_AdventureInfo;
            NrTSingleton <NkAdventureManager> .Instance.AddAdventure(tableData_AdventureInfo.adventure);

            return(true);
        }

        case NrTableData.eResourceType.eRT_SOLDIER_EVOLUTIONEXP:
        {
            Evolution_EXP evolution_EXP = kData as Evolution_EXP;
            kDataKey = (evolution_EXP.Grade - 1).ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_SOLDIER_TICKETINFO:
        {
            Ticket_Info ticket_Info = kData as Ticket_Info;
            kDataKey = (ticket_Info.Grade - 1).ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_CHARSOL_GUIDE:
        {
            SOL_GUIDE sOL_GUIDE = kData as SOL_GUIDE;
            kDataKey = sOL_GUIDE.m_i32CharKind.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_ITEM_REDUCE:
        {
            ItemReduceInfo itemReduceInfo = kData as ItemReduceInfo;
            kDataKey = itemReduceInfo.iGroupUnique.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_RECOMMEND_REWARD:
        {
            RECOMMEND_REWARD rECOMMEND_REWARD = kData as RECOMMEND_REWARD;
            kDataKey = rECOMMEND_REWARD.i8RecommendCount.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_SUPPORTER_REWARD:
        {
            SUPPORTER_REWARD sUPPORTER_REWARD = kData as SUPPORTER_REWARD;
            kDataKey = sUPPORTER_REWARD.i8SupporterLevel.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_GMHELPINFO:
        {
            GMHELP_INFO gMHELP_INFO = kData as GMHELP_INFO;
            kDataKey = gMHELP_INFO.m_bGMKind.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_SOLWAREHOUSE:
        {
            SolWarehouseInfo solWarehouseInfo = kData as SolWarehouseInfo;
            kDataKey = solWarehouseInfo.iWarehouseNumber.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_CHARSPEND:
        {
            charSpend charSpend = kData as charSpend;
            kDataKey = charSpend.iLevel.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_REINCARNATIONINFO:
        {
            ReincarnationInfo reincarnationInfo = kData as ReincarnationInfo;
            for (int k = 0; k < 6; k++)
            {
                reincarnationInfo.iCharKind[k] = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindByCode(reincarnationInfo.strText[k]);
            }
            kDataKey = reincarnationInfo.iType.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_ITEM_BOX_GROUP:
        {
            ITEM_BOX_GROUP_DATA pkItemBoxGroupData = kData as ITEM_BOX_GROUP_DATA;
            NrTSingleton <ItemManager> .Instance.AddBoxGroup(pkItemBoxGroupData);

            return(true);
        }

        case NrTableData.eResourceType.eRT_ITEM_TICKET:
        {
            ITEM_TICKET pkItem8 = kData as ITEM_TICKET;
            NrTSingleton <ItemManager> .Instance.AddTicket(pkItem8);

            return(true);
        }

        case NrTableData.eResourceType.eRT_AGIT_INFO:
        {
            AgitInfoData agitInfoData = kData as AgitInfoData;
            kDataKey = agitInfoData.i16Level.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_AGIT_NPC:
        {
            AgitNPCData agitNPCData = kData as AgitNPCData;
            kDataKey = agitNPCData.ui8NPCType.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_AGIT_MERCHNAT:
        {
            AgitMerchantData agitMerchantData = kData as AgitMerchantData;
            kDataKey = agitMerchantData.i16SellType.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_LEVELUPGUIDE:
        {
            LEVELUPGUIDE_INFO lEVELUPGUIDE_INFO = kData as LEVELUPGUIDE_INFO;
            for (int l = 0; l < lEVELUPGUIDE_INFO.explainList.Count; l++)
            {
                if (lEVELUPGUIDE_INFO.explainList[l] == "0")
                {
                    break;
                }
                AlarmManager.GetInstance().SetLevelupInfo(lEVELUPGUIDE_INFO.LEVEL, "1", lEVELUPGUIDE_INFO.explainList[l]);
            }
            break;
        }

        case NrTableData.eResourceType.eRT_MYTHRAIDINFO:
        {
            MYTHRAIDINFO_DATA mYTHRAIDINFO_DATA = kData as MYTHRAIDINFO_DATA;
            CHARKIND_INFO     baseCharKindInfo  = NrTSingleton <NrCharKindInfoManager> .Instance.GetBaseCharKindInfo(mYTHRAIDINFO_DATA.GetBossCode());

            if (baseCharKindInfo == null)
            {
                Debug.LogError("BossCode Wrong : " + mYTHRAIDINFO_DATA.GetBossCode());
            }
            else
            {
                mYTHRAIDINFO_DATA.nMainBossCharKind = baseCharKindInfo.CHARKIND;
                kDataKey = mYTHRAIDINFO_DATA.nRaidSeason.ToString() + mYTHRAIDINFO_DATA.nRaidType.ToString();
            }
            break;
        }

        case NrTableData.eResourceType.eRT_MYTHRAIDCLEARREWARD:
        {
            MYTHRAID_CLEAR_REWARD_INFO mYTHRAID_CLEAR_REWARD_INFO = kData as MYTHRAID_CLEAR_REWARD_INFO;
            kDataKey = MYTHRAID_CLEAR_REWARD_INFO.setDataKey(mYTHRAID_CLEAR_REWARD_INFO.CLEARMODE, mYTHRAID_CLEAR_REWARD_INFO.ROUND).ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_MYTHRAIDRANKREWARD:
            kDataKey = this.m_dicResourceInfo[num].Count.ToString();
            break;

        case NrTableData.eResourceType.eRT_MYTHRAIDGUARDIANANGEL:
        {
            MYTHRAID_GUARDIANANGEL_INFO mYTHRAID_GUARDIANANGEL_INFO = kData as MYTHRAID_GUARDIANANGEL_INFO;
            kDataKey = mYTHRAID_GUARDIANANGEL_INFO.UNIQUE.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_AUTOSELL:
        {
            AutoSell_info autoSell_info = kData as AutoSell_info;
            kDataKey = autoSell_info.i32SellNumber.ToString();
            break;
        }

        case NrTableData.eResourceType.eRT_ITEM_GROUP_SOL_TICKET:
        {
            GROUP_SOL_TICKET gROUP_SOL_TICKET = kData as GROUP_SOL_TICKET;
            if (kData != null)
            {
                NrTSingleton <ItemManager> .Instance.Add_GroupSolTicket(gROUP_SOL_TICKET.i64GroupUnique, gROUP_SOL_TICKET);
            }
            break;
        }

        case NrTableData.eResourceType.eRT_MYTH_EVOLUTION_SPEND:
        {
            MYTH_EVOLUTION mYTH_EVOLUTION = kData as MYTH_EVOLUTION;
            kDataKey = mYTH_EVOLUTION.m_bSeason.ToString();
            break;
        }
        }
        return(this.AddResourceInfo(num, kDataKey, kData));
    }
Example #10
0
    public void SelectNPCLevel()
    {
        AgitInfoData agitData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitData(this.m_i16NPCLevel.ToString());

        if (agitData == null)
        {
            return;
        }
        for (int i = 0; i < this.m_nlbInviteNPC.Count; i++)
        {
            UIListItemContainer item = this.m_nlbInviteNPC.GetItem(i);
            if (!(item == null))
            {
                if (item.Data != null)
                {
                    AgitNPCData agitNPCData = item.Data as AgitNPCData;
                    if (agitNPCData != null)
                    {
                        Label label = item.GetElement(0) as Label;
                        if (label != null)
                        {
                            label.SetText(ANNUALIZED.Convert(agitData.i32NPCCost));
                        }
                        Label label2 = item.GetElement(4) as Label;
                        if (label2 != null)
                        {
                            this.m_strText = string.Empty;
                            int num = agitNPCData.i32LevelRate[(int)(this.m_i16NPCLevel - 1)];
                            switch (agitNPCData.ui8NPCType)
                            {
                            case 2:
                                this.m_strInfo = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2747");

                                num /= 100;
                                break;

                            case 3:
                                this.m_strInfo = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2751");

                                num /= 100;
                                break;

                            case 4:
                                this.m_strInfo = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2750");

                                num /= 100;
                                break;

                            case 5:
                                this.m_strInfo = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2794");

                                break;
                            }
                            NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[]
                            {
                                this.m_strInfo,
                                "count",
                                num
                            });

                            label2.SetText(this.m_strText);
                        }
                    }
                }
            }
        }
    }
Example #11
0
    public void MakeNPCInfo(AgitNPCData Data)
    {
        short agitLevel = NrTSingleton <NewGuildManager> .Instance.GetAgitLevel();

        AgitInfoData agitData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitData(agitLevel.ToString());

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

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

        nkListSolInfo.SolCharKind = charKindInfoFromCode.GetCharKind();
        nkListSolInfo.SolGrade    = -1;
        nkListSolInfo.SolLevel    = NrTSingleton <NewGuildManager> .Instance.GetAgitLevel();

        NewListItem newListItem = new NewListItem(this.m_nlbInviteNPC.ColumnNum, true, string.Empty);

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

        newListItem.SetListItemData(3, this.m_strText, null, null, null);
        this.m_strText = string.Empty;
        int num = Data.i32LevelRate[(int)(agitLevel - 1)];

        switch (Data.ui8NPCType)
        {
        case 2:
            this.m_strInfo = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2747");

            num /= 100;
            break;

        case 3:
            this.m_strInfo = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2751");

            num /= 100;
            break;

        case 4:
            this.m_strInfo = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2750");

            num /= 100;
            break;

        case 5:
            this.m_strInfo = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2794");

            break;
        }
        NrTSingleton <CTextParser> .Instance.ReplaceParam(ref this.m_strText, new object[]
        {
            this.m_strInfo,
            "count",
            num
        });

        newListItem.SetListItemData(4, this.m_strText, null, null, null);
        newListItem.Data = Data;
        this.m_nlbInviteNPC.Add(newListItem);
    }
Example #12
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);
    }
Example #13
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);
    }
Example #14
0
    public override void SetComponent()
    {
        this.m_txItemBG = (base.GetControl("DrawTexture_DrawTexture22") as DrawTexture);
        this.m_txBG     = (base.GetControl("DrawTexture_subbg") as DrawTexture);
        this.m_txBG.SetTextureFromBundle("UI/Etc/reforge");
        this.m_btConfirm = (base.GetControl("Button_confirm") as Button);
        this.m_btConfirm.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickConfirm));
        this.m_lbItemName     = (base.GetControl("Label_equip") as Label);
        this.m_lbHaveMoney    = (base.GetControl("Label_text3") as Label);
        this.m_lbRequestMoney = (base.GetControl("Label_text5") as Label);
        this.m_lbItemGrade    = (base.GetControl("Label_grade") as Label);
        this.m_dHelpBack      = (base.GetControl("DrawTexture_TicketHelp1") as DrawTexture);
        this.m_dHelpBack.SetLocationZ(-0.3f);
        this.m_lbHelp = (base.GetControl("Label_TicketHelp") as Label);
        this.m_lbHelp.SetLocationZ(-0.4f);
        this.m_ivReforgeItem = (base.GetControl("ImageView_equip") as ImageView);
        this.m_ivReforgeItem.SetImageView(1, 1, 80, 80, 1, 1, (int)this.m_ivReforgeItem.GetSize().y);
        this.m_ivReforgeItem.spacingAtEnds = false;
        this.m_ivReforgeItem.touchScroll   = false;
        this.m_ivReforgeItem.clipContents  = false;
        this.m_ivReforgeItem.ListDrag      = false;
        if (TsPlatform.IsMobile)
        {
            this.m_ivReforgeItem.AddValueChangedDelegate(new EZValueChangedDelegate(this.On_Mouse_Over));
        }
        else
        {
            this.m_ivReforgeItem.AddValueChangedDelegate(new EZValueChangedDelegate(this.On_Mouse_Click));
            this.m_ivReforgeItem.AddMouseOutDelegate(new EZValueChangedDelegate(this.On_Mouse_Out));
        }
        this.m_ivReforgeItemTiket = (base.GetControl("ImageView_Ticket") as ImageView);
        this.m_ivReforgeItemTiket.SetImageView(1, 1, 80, 80, 1, 1, (int)this.m_ivReforgeItem.GetSize().y);
        this.m_ivReforgeItemTiket.spacingAtEnds = false;
        this.m_ivReforgeItemTiket.touchScroll   = false;
        this.m_ivReforgeItemTiket.clipContents  = false;
        this.m_ivReforgeItemTiket.ListDrag      = false;
        this.m_btnReforgeHelp = (base.GetControl("Button_TicketHelp") as Button);
        this.m_btnReforgeHelp.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickTicketHelp));
        this.m_btnReforgeHelp.Visible = false;
        this.m_btnReforgeTicket       = (base.GetControl("Button_Ticket") as Button);
        this.m_btnReforgeTicket.AddValueChangedDelegate(new EZValueChangedDelegate(this.OnClickShowTicket));
        this.m_btnReforgeTicket.Visible = false;
        this.m_lbRequestTicketCount     = (base.GetControl("Label_Ticket4") as Label);
        this.m_lbHaveTicketCount        = (base.GetControl("Label_Ticket5") as Label);
        this.m_lbTicketName             = (base.GetControl("Label_Ticket1") as Label);
        this.m_lbAgitNPCInfo            = (base.GetControl("Label_AgitNPC") as Label);
        if (NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.IsGuildAgit() && NrTSingleton <NewGuildManager> .Instance.IsAgitNPC(2))
        {
            AGIT_NPC_SUB_DATA agitNPCSubDataFromNPCType = NrTSingleton <NewGuildManager> .Instance.GetAgitNPCSubDataFromNPCType(2);

            AgitNPCData agitNPCData = NrTSingleton <NrBaseTableManager> .Instance.GetAgitNPCData(agitNPCSubDataFromNPCType.ui8NPCType.ToString());

            if (agitNPCSubDataFromNPCType != null && agitNPCData != null)
            {
                string empty = string.Empty;
                NrTSingleton <CTextParser> .Instance.ReplaceParam(ref empty, new object[]
                {
                    NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("2747"),
                    "count",
                    agitNPCData.i32LevelRate[(int)(agitNPCSubDataFromNPCType.i16NPCLevel - 1)] / 100
                });

                this.m_lbAgitNPCInfo.SetText(empty);
                this.m_bAgitNPC = true;
            }
        }
        if (!this.m_bAgitNPC)
        {
            this.m_lbAgitNPCInfo.Visible = false;
        }
        this.ItemSlotClear();
        float x = (GUICamera.width - base.GetSizeX() * 2f) / 2f;
        float y = (GUICamera.height - base.GetSizeY()) / 2f;

        base.SetLocation(x, y);
        this.m_lbHaveMoney.Text = Protocol_Item.Money_Format(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_Money);
        ReforgeSelectDlg reforgeSelectDlg = base.SetChildForm(G_ID.REFORGESELECT_DLG, Form.ChildLocation.RIGHT) as ReforgeSelectDlg;

        if (reforgeSelectDlg != null)
        {
            reforgeSelectDlg.Show();
        }
        TsAudioManager.Instance.AudioContainer.RequestAudioClip("UI_SFX", "PRODUCTION", "OPEN", new PostProcPerItem(NrAudioClipDownloaded.OnEventAudioClipDownloadedImmedatePlay));
        NrTSingleton <FiveRocksEventManager> .Instance.Placement("itemreforgedlg_open");

        base.SetShowLayer(3, false);
        base.SetShowLayer(4, false);
    }