private void Click_PreViewHero(IUIObject obj) { if (obj == null) { return; } if (!(obj.Data is int)) { return; } int num = (int)obj.Data; if (NrTSingleton <NkCharManager> .Instance.GetChar(1) == null) { return; } NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(num); if (charKindInfo == null) { TsLog.LogOnlyEditor(" [Click_PreViewHero] == SOL CHARKIND ERROR {0}" + num + " !!"); return; } MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI == null) { return; } msgBoxUI.SetMsg(new YesDelegate(this.MessageBox_PreviewHero), charKindInfo.GetCharKind(), NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3293"), NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("438"), eMsgType.MB_OK_CANCEL, 2); msgBoxUI.Show(); }
private void OnIntroMovieButton(IUIObject obj) { if (obj == null) { return; } int num = (int)obj.Data; NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(num); if (charKindInfo == null) { TsLog.LogOnlyEditor("!!!! SOL CHARKIND ERROR {0}" + num + " !!"); return; } string sOLINTRO = charKindInfo.GetCHARKIND_INFO().SOLINTRO; if (NrTSingleton <NrGlobalReference> .Instance.localWWW) { if (NrTSingleton <NrGlobalReference> .Instance.useCache) { string str = string.Format("{0}SOLINTRO/", Option.GetProtocolRootPath(Protocol.HTTP)); NmMainFrameWork.PlayMovieURL(str + sOLINTRO + ".mp4", true, false, true); } else { NmMainFrameWork.PlayMovieURL("http://klohw.ndoors.com/at2mobile_android/SOLINTRO/" + sOLINTRO + ".mp4", true, false, true); } } else { string str2 = string.Format("{0}SOLINTRO/", NrTSingleton <NrGlobalReference> .Instance.basePath); NmMainFrameWork.PlayMovieURL(str2 + sOLINTRO + ".mp4", true, false, true); } }
public void SetSolKind(int i32CharKind, byte bGrade, int level) { NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(i32CharKind); if (charKindInfo == null) { TsLog.LogOnlyEditor("!!!! SOL CHARKIND ERROR {0}" + i32CharKind + " !!"); return; } this.m_SolInterfaceTool.m_kSelectCharKindInfo = charKindInfo; this.m_SolInterfaceTool.SetCharImg(bGrade - 1, string.Empty); this.m_SolInterfaceTool.SetHeroEventLabel(bGrade); this.m_SolInterfaceTool.SetSkillInfo_MaxLevel(); this.m_Button_MovieBtn.data = i32CharKind; int num = charKindInfo.GetGradePlusSTR((int)(bGrade - 1)); int num2 = charKindInfo.GetGradePlusDEX((int)(bGrade - 1)); int num3 = charKindInfo.GetGradePlusINT((int)(bGrade - 1)); int num4 = charKindInfo.GetGradePlusVIT((int)(bGrade - 1)); num += charKindInfo.GetIncSTR((int)(bGrade - 1), level); num2 += charKindInfo.GetIncDEX((int)(bGrade - 1), level); num3 += charKindInfo.GetIncINT((int)(bGrade - 1), level); num4 += charKindInfo.GetIncVIT((int)(bGrade - 1), level); 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()); this.m_ScrollLabel_SolInfo.SetScrollLabel(charKindInfo.GetDesc()); this.m_cMythSkillControl.ShowInfo(i32CharKind, (int)bGrade); }
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); }
private void SetLegendReincarnateListBox(ref NewListItem item, int i, int i32CharKind, byte bCharRank, bool bLastElement) { NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(i32CharKind); if (charKindInfo == null) { TsLog.LogOnlyEditor("!!!!!!!!!! SolGuild - Element CharKind " + i32CharKind + " Error"); return; } NkListSolInfo nkListSolInfo = new NkListSolInfo(); nkListSolInfo.SolCharKind = i32CharKind; nkListSolInfo.SolGrade = (int)(bCharRank - 1); if (bLastElement) { item.SetListItemData(0, false); item.SetListItemData(1, true); } else { item.SetListItemData(0, true); item.SetListItemData(1, false); } item.SetListItemData(3, nkListSolInfo, null, null, null); item.SetListItemData(4, charKindInfo.GetName(), null, null, null); string elementSolMsg = base.GetElementSolMsg(this.m_eElement_Msg[i]); item.SetListItemData(5, elementSolMsg, null, null, null); item.SetListItemData(6, false); if (bLastElement) { item.SetListItemData(7, false); } else { item.SetListItemData(7, nkListSolInfo, null, null, null); } item.SetListItemData(8, false); item.SetListItemData(9, false); if (bLastElement) { item.SetListItemData(10, true); } else { item.SetListItemData(10, false); } item.SetListItemData(10, string.Empty, 0, new EZValueChangedDelegate(this.OnElementClick), null); item.SetListItemData(11, false); }
protected virtual void Click_PreViewHero(IUIObject obj) { if (obj == null) { return; } NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(this.m_CharKind_Legendinfo.i32Element_LegendCharkind); if (charKindInfo == null) { TsLog.LogOnlyEditor(" [Click_PreViewHero] == SOL CHARKIND ERROR {0}" + this.m_CharKind_Legendinfo.i32Element_LegendCharkind + " !!"); return; } MsgBoxUI msgBoxUI = NrTSingleton <FormsManager> .Instance.LoadForm(G_ID.MSGBOX_DLG) as MsgBoxUI; if (msgBoxUI == null) { return; } msgBoxUI.SetMsg(new YesDelegate(this.MessageBox_PreviewHero), charKindInfo.GetCharKind(), NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("3293"), NrTSingleton <NrTextMgr> .Instance.GetTextFromMessageBox("438"), eMsgType.MB_OK_CANCEL, 2); msgBoxUI.Show(); }
private void GetSolGradeCheck(ref NkSoldierInfo pkSolinfo, ref eElement_MsgType eElement_Msg, NkSoldierInfo pkReadySolinfo, byte bCharGrade) { if (NrTSingleton <ContentsLimitManager> .Instance.IsSolGuideCharKindInfo(pkReadySolinfo.GetCharKind())) { eElement_Msg = eElement_MsgType.eElement_NOTSOL; TsLog.LogOnlyEditor("!!!! CONTENTLIMIT SOL CHARKIND ERROR {0}" + this.m_SelectSlotData.i32KindInfo + " !!"); return; } if (pkReadySolinfo == null) { return; } if (pkReadySolinfo.IsCostumeEquip()) { return; } if (pkReadySolinfo.GetMaxSkillLevel()) { if (pkReadySolinfo.GetGrade() >= bCharGrade) { if (pkReadySolinfo.GetGrade() == bCharGrade) { if (eElement_Msg == eElement_MsgType.eElement_OK) { if (pkSolinfo.GetEvolutionExp() > pkReadySolinfo.GetEvolutionExp()) { pkSolinfo = pkReadySolinfo; } } else { eElement_Msg = eElement_MsgType.eElement_OK; pkSolinfo = pkReadySolinfo; } } else if (eElement_Msg < eElement_MsgType.eElement_NEEDGRADE) { eElement_Msg = eElement_MsgType.eElement_SOLHEIGHT; pkSolinfo = pkReadySolinfo; } else if (eElement_Msg == eElement_MsgType.eElement_SOLHEIGHT && pkSolinfo.GetEvolutionExp() > pkReadySolinfo.GetEvolutionExp()) { pkSolinfo = pkReadySolinfo; } } else if (eElement_Msg < eElement_MsgType.eElement_NEEDGRADE) { eElement_Msg = eElement_MsgType.eElement_NEEDGRADE; pkSolinfo = pkReadySolinfo; } else if (eElement_Msg == eElement_MsgType.eElement_NEEDGRADE && pkSolinfo.GetEvolutionExp() > pkReadySolinfo.GetEvolutionExp()) { pkSolinfo = pkReadySolinfo; } } else if (eElement_Msg < eElement_MsgType.eElement_NEEDEXP) { eElement_Msg = eElement_MsgType.eElement_NEEDEXP; pkSolinfo = pkReadySolinfo; } else if (eElement_Msg == eElement_MsgType.eElement_NEEDEXP && pkSolinfo.GetEvolutionExp() > pkReadySolinfo.GetEvolutionExp()) { pkSolinfo = pkReadySolinfo; } }
private void SetReincarnateListBox(ref NewListItem item, int i, int i32CharKind, byte bCharRank, bool bElement) { string text = string.Empty; NkSoldierInfo battleSolDataCheck = this.GetBattleSolDataCheck(ref this.m_eElement_Msg[i], i32CharKind, bCharRank); NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(i32CharKind); if (charKindInfo == null) { TsLog.LogOnlyEditor("!!!!!!!!!! SolGuild - Element CharKind " + i32CharKind + " Error"); return; } item.SetListItemData(8, false); item.SetListItemData(9, false); item.SetListItemData(10, false); item.SetListItemData(11, false); NkListSolInfo nkListSolInfo = new NkListSolInfo(); nkListSolInfo.SolCharKind = i32CharKind; nkListSolInfo.SolGrade = (int)(bCharRank - 1); item.SetListItemData(3, nkListSolInfo, null, null, null); item.SetListItemData(4, charKindInfo.GetName(), null, null, null); text = this.GetElementSolMsg(this.m_eElement_Msg[i]); item.SetListItemData(5, text, null, null, null); if (this.m_eElement_Msg[i] == eElement_MsgType.eElement_OK || this.m_eElement_Msg[i] == eElement_MsgType.eElement_SOLHEIGHT) { item.SetListItemData(0, true); item.SetListItemData(1, false); item.SetListItemData(7, battleSolDataCheck.GetListSolInfo(false), null, null, null); } else { item.SetListItemData(0, false); item.SetListItemData(1, true); if (battleSolDataCheck == null) { item.SetListItemData(7, false); return; } item.SetListItemData(7, battleSolDataCheck.GetListSolInfo(false), null, null, null); } if (bElement) { bool flag = false; for (int j = 0; j < 6; j++) { if (battleSolDataCheck.GetEquipItemInfo() != null) { ITEM item2 = battleSolDataCheck.GetEquipItemInfo().m_kItem[j].GetItem(); if (item2 == null) { TsLog.LogWarning("!!!!!!!!!!!!!! CharKind {0} : Item pos{1} == ITEM NULL ", new object[] { i32CharKind, j }); } else if (item2.m_nItemUnique != 0) { flag = true; } } } if (flag) { item.SetListItemData(5, false); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("627"); item.SetListItemData(8, true); item.SetListItemData(9, true); item.SetListItemData(9, text, battleSolDataCheck, new EZValueChangedDelegate(this.OnClickReleaseEquip), null); } else if (battleSolDataCheck.GetFriendPersonID() != 0L) { item.SetListItemData(5, false); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("74"); item.SetListItemData(8, true); item.SetListItemData(9, true); item.SetListItemData(9, text, battleSolDataCheck, new EZValueChangedDelegate(this.OnClickUnsetSolHelp), null); } } item.Data = battleSolDataCheck.GetSolID(); }
public void SetElementGui() { this.m_Button_Reincarnate.SetEnabled(false); this.m_NewListBox_Reincarnate.Clear(); NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(this.m_SelectSlotData.i32KindInfo); if (charKindInfo == null) { TsLog.LogOnlyEditor("!!!! SOL CHARKIND ERROR {0}" + this.m_SelectSlotData.i32KindInfo + " !!"); return; } if (this.m_SolInterfaceTool == null) { TsLog.LogOnlyEditor("!!!! SOL CHARKIND ERROR {0}" + this.m_SelectSlotData.i32KindInfo + " !!"); return; } this.m_SolInterfaceTool.m_kSelectCharKindInfo = charKindInfo; if (this.m_MaterialSol == null) { TsLog.LogOnlyEditor("!!!! m_MaterialSol ERROR {0}" + this.m_SelectSlotData.i32KindInfo + " !!"); return; } if (this.m_MaterialSol.i32BaseCharKind != this.m_SelectSlotData.i32KindInfo) { this.m_MaterialSol.Init(); } byte b = 0; if (this.m_MaterialSol.i32BaseCharKind == this.m_SelectSlotData.i32KindInfo) { b = this.m_MaterialSol.i8BaseGrade; } if (b < 0) { b = 0; } this.m_SolInterfaceTool.m_DrawTexture_rank.Visible = true; short legendType = NrTSingleton <NrCharKindInfoManager> .Instance.GetLegendType(this.m_SelectSlotData.i32KindInfo, (int)(b - 1)); UIBaseInfoLoader solLargeGradeImg = NrTSingleton <NrCharKindInfoManager> .Instance.GetSolLargeGradeImg(this.m_SelectSlotData.i32KindInfo, (int)(b - 1)); if (0 < legendType) { this.m_SolInterfaceTool.m_DrawTexture_rank.SetSize(solLargeGradeImg.UVs.width, solLargeGradeImg.UVs.height); } this.m_SolInterfaceTool.m_DrawTexture_rank.SetTexture(solLargeGradeImg); if (this.m_SelectSlotData.i32KindInfo == 0) { this.m_Toolbar.Control_Tab[2].Visible = false; this.m_Toolbar.Control_Tab[1].Visible = false; return; } this.m_SolInterfaceTool.SetSeason(b); this.m_SolInterfaceTool.SetHeroEventLabel(b); int num = 0; byte bCharRank = 0; for (int i = 0; i < 5; i++) { if (this.m_MaterialSol.i32BaseCharKind == this.m_SelectSlotData.i32KindInfo) { this.m_MaterialSol.GetCharData((byte)i, ref num, ref bCharRank); } this.m_eElement_Msg[i] = eElement_MsgType.eElement_NONE; if (num != 0) { NewListItem item = new NewListItem(this.m_NewListBox_Reincarnate.ColumnNum, true, string.Empty); this.m_eElement_Msg[i] = eElement_MsgType.eElement_NOTSOL; this.SetReincarnateListBox(ref item, i, num, bCharRank, false); this.m_NewListBox_Reincarnate.Add(item); } } this.m_NewListBox_Reincarnate.RepositionItems(); bool flag = this.SetButtonReincarnate(); this.m_Button_Reincarnate.SetEnabled(flag); if (flag) { num = 0; bCharRank = 0; this.m_NewListBox_Reincarnate.Clear(); for (int j = 0; j < 5; j++) { if (this.m_MaterialSol.i32BaseCharKind == this.m_SelectSlotData.i32KindInfo) { this.m_MaterialSol.GetCharData((byte)j, ref num, ref bCharRank); } this.m_eElement_Msg[j] = eElement_MsgType.eElement_NONE; if (num != 0) { NewListItem item2 = new NewListItem(this.m_NewListBox_Reincarnate.ColumnNum, true, string.Empty); this.m_eElement_Msg[j] = eElement_MsgType.eElement_NOTSOL; this.SetReincarnateListBox(ref item2, j, num, bCharRank, true); this.m_NewListBox_Reincarnate.Add(item2); } } this.m_NewListBox_Reincarnate.RepositionItems(); } long num2 = 0L; if (this.m_MaterialSol.i32BaseCharKind == this.m_SelectSlotData.i32KindInfo) { num2 = this.m_MaterialSol.i64Money; } this.m_Label_Gold.SetText(ANNUALIZED.Convert(num2)); }
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); }
private void ProcessOTPReady(eOTPRequestType eReqType) { if (this.szOTPAuthKey[(int)eReqType].Length > 0) { switch (eReqType) { case eOTPRequestType.OTPREQ_USERAUTH: { bool flag = false; NrWebViewObject gameObject = NrWebViewObject.GetGameObject(); if (!gameObject.FirstNoticeOpen || gameObject.MainmenuNoticeOpen) { flag = true; } if (flag) { string strCharName = string.Empty; NrCharBase @char = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (@char != null) { strCharName = @char.GetCharName(); } NrMobileNoticeWeb nrMobileNoticeWeb = new NrMobileNoticeWeb(); nrMobileNoticeWeb.OnGameNotice(this.szOTPAuthKey[0], strCharName); } gameObject.FirstNoticeOpen = true; gameObject.MainmenuNoticeOpen = false; break; } case eOTPRequestType.OTPREQ_CHARPORTRAIT: { NrCharBase char2 = NrTSingleton <NkCharManager> .Instance.GetChar(1); if (char2 != null) { NrPersonInfoUser charPersonInfo = NrTSingleton <NkCharManager> .Instance.GetCharPersonInfo(1); NkSoldierInfo leaderSoldierInfo = charPersonInfo.GetLeaderSoldierInfo(); string arg = string.Empty; if (charPersonInfo != null && leaderSoldierInfo != null) { arg = this.GetProcessLeaderHero(leaderSoldierInfo.GetCharKind()); } string url = string.Format("http://{0}/mobilephoto/user.aspx?otp={1}&type={2}", NrGlobalReference.strWebPageDomain, this.szOTPAuthKey[1], arg); Application.OpenURL(url); } break; } case eOTPRequestType.OTPREQ_GUILDMARK: if (0L < NrTSingleton <NewGuildManager> .Instance.GetGuildID()) { string url2 = string.Format("http://{0}/mobilephoto/guild.aspx?otp={1}", NrGlobalReference.strWebPageDomain, this.szOTPAuthKey[2]); Application.OpenURL(url2); } break; case eOTPRequestType.OTPREQ_EMAIL: { string text = string.Format("http://{0}/member/member_confirm1.aspx?OTP={1}", NrGlobalReference.strWebPageDomain, this.szOTPAuthKey[3]); NrMobileNoticeWeb nrMobileNoticeWeb2 = new NrMobileNoticeWeb(); nrMobileNoticeWeb2.OpenWebURL(text); TsLog.LogOnlyEditor("!!!!!!!!!!!!!!!! OTPREQ_EMAIL :{0}" + text); break; } case eOTPRequestType.OTPREQ_HP_AUTH: { string url3 = string.Format("http://{0}/mobileAuth/auth.aspx?otp={1}", NrGlobalReference.strWebPageDomain, this.szOTPAuthKey[4]); Application.OpenURL(url3); NrTSingleton <NrMainSystem> .Instance.QuitGame(false); break; } case eOTPRequestType.OTPREQ_GUESTID: { string url4 = string.Empty; if (TsPlatform.IsAndroid) { url4 = string.Format("http://{0}/member/AuthPlatformSync_auth.aspx?OTP={1}&platform=android", NrGlobalReference.strWebPageDomain, this.szOTPAuthKey[5]); } else { url4 = string.Format("http://{0}/member/AuthPlatformSync_auth.aspx?OTP={1}&platform=ios", NrGlobalReference.strWebPageDomain, this.szOTPAuthKey[5]); } NrMobileNoticeWeb nrMobileNoticeWeb3 = new NrMobileNoticeWeb(); nrMobileNoticeWeb3.OpenWebURL(url4); break; } case eOTPRequestType.OTPREQ_HELPQUESTION: { NrMobileNoticeWeb nrMobileNoticeWeb4 = new NrMobileNoticeWeb(); nrMobileNoticeWeb4.OnGameQuestion(this.szOTPAuthKey[6], string.Empty); break; } case eOTPRequestType.OTPREQ_UNREGISTER: { NrMobileNoticeWeb nrMobileNoticeWeb5 = new NrMobileNoticeWeb(); nrMobileNoticeWeb5.OnGameUnregister(this.szOTPAuthKey[7]); break; } } this.szOTPAuthKey[(int)eReqType] = string.Empty; } }
public BountyHuntNPCInfo UpdateClientNpc(int iMapIndex) { if (Scene.CurScene != Scene.Type.WORLD) { return(null); } if (iMapIndex == 0) { iMapIndex = NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.m_kCharMapInfo.m_nMapIndex; } for (int i = 0; i < this.m_ClientNpcList.Count; i++) { BountyHuntNPCInfo bountyHuntNPCInfo = this.m_ClientNpcList[i]; if (bountyHuntNPCInfo != null) { NrTSingleton <NkCharManager> .Instance.DeleteChar(bountyHuntNPCInfo.CharID); } } this.m_ClientNpcList.Clear(); BountyInfoData bountyInfoDataFromUnique = this.GetBountyInfoDataFromUnique(NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.BountyHuntUnique); if (bountyInfoDataFromUnique != null) { if (iMapIndex != bountyInfoDataFromUnique.i32MapIndex) { return(null); } if (!NrTSingleton <BountyHuntManager> .Instance.GetBountyInfoDataTime(bountyInfoDataFromUnique.i16Unique)) { NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.BountyHuntUnique = 0; NrTSingleton <NkCharManager> .Instance.m_kMyCharInfo.ClearBountyHuntClearInfo(); } else { NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(bountyInfoDataFromUnique.i32NPCCharKind); if (charKindInfo != null) { int num = UnityEngine.Random.Range(0, 5); NEW_MAKECHAR_INFO nEW_MAKECHAR_INFO = new NEW_MAKECHAR_INFO(); nEW_MAKECHAR_INFO.CharName = TKString.StringChar(charKindInfo.GetName()); nEW_MAKECHAR_INFO.CharPos.x = bountyInfoDataFromUnique.fFixPosX[num]; nEW_MAKECHAR_INFO.CharPos.y = 0f; nEW_MAKECHAR_INFO.CharPos.z = bountyInfoDataFromUnique.fFixPosZ[num]; int num2 = bountyInfoDataFromUnique.iDirection[num]; float f = (float)num2 * 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 = charKindInfo.GetCharKind(); nEW_MAKECHAR_INFO.CharKindType = 3; nEW_MAKECHAR_INFO.CharUnique = NrTSingleton <NkCharManager> .Instance.GetClientNpcUnique(); if (nEW_MAKECHAR_INFO.CharUnique == 0) { GS_BOUNTYHUNT_LOG_REQ gS_BOUNTYHUNT_LOG_REQ = new GS_BOUNTYHUNT_LOG_REQ(); gS_BOUNTYHUNT_LOG_REQ.i16BountyHuntUnique = bountyInfoDataFromUnique.i16Unique; gS_BOUNTYHUNT_LOG_REQ.i32CharID = (int)nEW_MAKECHAR_INFO.CharUnique; gS_BOUNTYHUNT_LOG_REQ.i32MapIndex = iMapIndex; SendPacket.GetInstance().SendObject(1930, gS_BOUNTYHUNT_LOG_REQ); } int num3 = NrTSingleton <NkCharManager> .Instance.SetChar(nEW_MAKECHAR_INFO, false, false); TsLog.LogOnlyEditor(string.Concat(new object[] { "BountyHunt UpdateClientNpc MapIndex : ", iMapIndex, " : ", num3 })); BountyHuntNPCInfo bountyHuntNPCInfo2 = new BountyHuntNPCInfo(); bountyHuntNPCInfo2.MapIndex = iMapIndex; bountyHuntNPCInfo2.CharID = num3; bountyHuntNPCInfo2.BountyHuntUnique = bountyInfoDataFromUnique.i16Unique; bountyHuntNPCInfo2.Pos = nEW_MAKECHAR_INFO.CharPos; bountyHuntNPCInfo2.RandIndex = num; this.m_ClientNpcList.Add(bountyHuntNPCInfo2); return(bountyHuntNPCInfo2); } } } return(null); }
public void AddLegendElement(NkSoldierInfo kSoldierInfo, int iCount) { byte b = this.m_CharKind_Legendinfo.ui8Base_LegendGrade[iCount] - 1; NkSoldierInfo nkSoldierInfo = null; eElement_MsgType eElement_MsgType = eElement_MsgType.eElement_NONE; this.GetLegendSolGradeCheck(ref nkSoldierInfo, ref eElement_MsgType, kSoldierInfo, b); if (nkSoldierInfo == null) { return; } NewListItem newListItem = new NewListItem(this.m_NewListBox_Reincarnate.ColumnNum, true, string.Empty); NrCharKindInfo charKindInfo = NrTSingleton <NrCharKindInfoManager> .Instance.GetCharKindInfo(nkSoldierInfo.GetCharKind()); if (charKindInfo == null) { TsLog.LogOnlyEditor("!!!!!!!!!! SolGuild - Element CharKind " + nkSoldierInfo.GetCharKind() + " Error"); return; } int num = COMMON_CONSTANT_Manager.GetInstance().GetValue(eCOMMON_CONSTANT.eCOMMON_CONSTANT_LEGEND_ADVENT_HERO); if (num < 0) { num = 0; } this.m_eElement_Msg[iCount] = eElement_MsgType; if (kSoldierInfo.GetCharKind() == num) { this.m_eElement_Msg[iCount] = eElement_MsgType.eElement_OK; } newListItem.SetListItemData(8, false); newListItem.SetListItemData(9, false); newListItem.SetListItemData(3, new NkListSolInfo { SolCharKind = this.m_CharKind_Legendinfo.i32Base_CharKind[iCount], SolGrade = (int)b }, null, null, null); newListItem.SetListItemData(4, charKindInfo.GetName(), null, null, null); string text = this.GetElementSolMsg(this.m_eElement_Msg[iCount]); newListItem.SetListItemData(5, text, null, null, null); if (nkSoldierInfo == null) { UIBaseInfoLoader uIBaseInfoLoader = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary("Win_B_Addlist"); if (uIBaseInfoLoader != null) { newListItem.SetListItemData(10, uIBaseInfoLoader, iCount, new EZValueChangedDelegate(this.OnClickUseSol), null); } else { newListItem.SetListItemData(10, string.Empty, iCount, new EZValueChangedDelegate(this.OnClickUseSol), null); } } else { UIBaseInfoLoader uIBaseInfoLoader2 = NrTSingleton <UIImageInfoManager> .Instance.FindUIImageDictionary("Win_B_Addlist"); if (uIBaseInfoLoader2 != null) { newListItem.SetListItemData(10, uIBaseInfoLoader2, iCount, new EZValueChangedDelegate(this.OnClickUseSol), null); } } if (this.m_eElement_Msg[iCount] == eElement_MsgType.eElement_OK || this.m_eElement_Msg[iCount] == eElement_MsgType.eElement_SOLHEIGHT) { newListItem.SetListItemData(0, true); newListItem.SetListItemData(1, false); newListItem.SetListItemData(11, false); if (nkSoldierInfo == null) { newListItem.SetListItemData(6, false); newListItem.SetListItemData(7, false); return; } newListItem.SetListItemData(6, true); newListItem.SetListItemData(7, nkSoldierInfo.GetListSolInfo(false), null, null, null); this.m_Element_SolID.SetLegendSol(nkSoldierInfo, iCount); } else { newListItem.SetListItemData(0, false); newListItem.SetListItemData(1, true); if (nkSoldierInfo == null) { newListItem.SetListItemData(6, false); newListItem.SetListItemData(7, false); newListItem.SetListItemData(11, false); return; } newListItem.SetListItemData(6, true); newListItem.SetListItemData(7, nkSoldierInfo.GetListSolInfo(false), null, null, null); newListItem.SetListItemData(11, true); this.m_Element_SolID.SetLegendSol(nkSoldierInfo, iCount); } bool flag = false; for (int i = 0; i < 6; i++) { if (nkSoldierInfo.GetEquipItemInfo() != null) { ITEM item = nkSoldierInfo.GetEquipItemInfo().m_kItem[i].GetItem(); if (item == null) { TsLog.LogWarning("!!!!!!!!!!!!!! CharKind {0} : Item pos{1} == ITEM NULL ", new object[] { nkSoldierInfo.GetCharKind(), i }); } else if (item.m_nItemUnique != 0) { flag = true; } } } if (flag) { newListItem.SetListItemData(5, false); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("627"); newListItem.SetListItemData(8, true); newListItem.SetListItemData(9, true); newListItem.SetListItemData(9, text, nkSoldierInfo, new EZValueChangedDelegate(this.OnClickReleaseEquip), null); } else if (nkSoldierInfo.GetFriendPersonID() != 0L) { newListItem.SetListItemData(5, false); text = NrTSingleton <NrTextMgr> .Instance.GetTextFromInterface("74"); newListItem.SetListItemData(8, true); newListItem.SetListItemData(9, true); newListItem.SetListItemData(9, text, nkSoldierInfo, new EZValueChangedDelegate(this.OnClickUnsetSolHelp), null); } newListItem.Data = nkSoldierInfo.GetSolID(); this.m_NewListBox_Reincarnate.RemoveAdd(iCount, newListItem); this.m_NewListBox_Reincarnate.RepositionItems(); this.SetButtonLegendReincarnate(); bool flag2 = this.SetButtonLegendTime(); if (!flag2) { this.m_btn_Legend.SetEnabled(flag2); } this.GetTimeToString(); }