| | |
| | | foreach (var key in BackpackDic.Keys)
|
| | | {
|
| | | var item = BackpackDic[key];
|
| | | if (item.config.Type == 111 && item.config.ExpireTime == 0 |
| | | if (item.config.Type == 111 && item.config.ExpireTime == 0
|
| | | && ItemLogicUtility.Instance.IsJobCompatibleItem(item.itemId))
|
| | | {
|
| | | WindowJumpMgr.Instance.WindowJumpTo(JumpUIType.KnapSackFunc1Type2);//跳到背包
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | | } |
| | | }
|
| | | if (mainModel.TaskId_Skill.Contains(Task_ID))
|
| | | {
|
| | | mainModel.TaskSkillID = Task_ID;
|
| | |
| | | TaskAllocation.Instance.TaskTime = TimeUtility.ServerNow;
|
| | | OpenPanel(Task_ID);
|
| | | }
|
| | | |
| | |
|
| | | break;
|
| | | case 1:
|
| | | var taskPower = TaskPowerConfig.Get(Task_ID);
|
| | | if (taskPower!=null && taskPower.FabaoID!=0)
|
| | | if (taskPower != null && taskPower.FabaoID != 0)
|
| | | {
|
| | | var _treasureId = taskPower.FabaoID;
|
| | | var treasureConfig = TreasureConfig.Get(_treasureId);
|
| | |
| | | {
|
| | | npcConfig = mapnpcConfig.GetValues();
|
| | | }
|
| | | // var npcConfig = mapnpcConfig.GetValues();
|
| | | // var npcConfig = mapnpcConfig.GetValues();
|
| | | foreach (var value in npcConfig)
|
| | | {
|
| | | if (value.NPCID == npcId && value.MapID != mapID)
|
| | |
| | | {
|
| | | return;
|
| | | }
|
| | |
|
| | | //--------------特殊任务的传送逻辑
|
| | | mainModel.FlyShoseTaskID = Task_ID;
|
| | | string _FlyID = FuncConfigConfig.Get("TransportPay").Numerical1;
|
| | |
| | | if (ModelCenter.Instance.GetModel<VipModel>().GetVipPrivilegeCnt(VipPrivilegeType.FreeTransfer) > 0)
|
| | | {
|
| | | HeroAIRecorder.ClearRecord();
|
| | | TaskAllocation.Instance.TaskTime= TimeUtility.ServerNow;
|
| | | TaskAllocation.Instance.TaskTime = TimeUtility.ServerNow;
|
| | | m_ContentText.ExcuteHref(1);
|
| | | MapTransferUtility.Instance.StopMovetoNpc();
|
| | | return;
|
| | | }
|
| | | if (itemNumber > 0)
|
| | |
| | | HeroAIRecorder.ClearRecord();
|
| | | TaskAllocation.Instance.TaskTime = TimeUtility.ServerNow;
|
| | | m_ContentText.ExcuteHref(1);
|
| | | MapTransferUtility.Instance.StopMovetoNpc();
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | HeroAIRecorder.ClearRecord();
|
| | | TaskAllocation.Instance.TaskTime = TimeUtility.ServerNow;
|
| | | m_ContentText.ExcuteHref(1);
|
| | | MapTransferUtility.Instance.StopMovetoNpc();
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | public void FlyingShoes_Task(int TaskID)
|
| | | {
|
| | |
| | | m_TitleText.text = "<color=#ec4bf6>" + TaskTitle(TaskID) + "</color>";
|
| | | }
|
| | | string str = taskmodel.allMissionDict[TaskID].InforList;
|
| | | var taskinfo = TASKINFOConfig.Get(str); |
| | | var taskinfo = TASKINFOConfig.Get(str);
|
| | | if (taskinfo != null)
|
| | | {
|
| | | var taskPower = TaskPowerConfig.Get(TaskID);
|
| | | string StrText= taskinfo.show_writing;
|
| | | if (taskPower != null && taskPower.ISJUMP!=0)
|
| | | string StrText = taskinfo.show_writing;
|
| | | if (taskPower != null && taskPower.ISJUMP != 0)
|
| | | {
|
| | | if (PlayerDatas.Instance.baseData.FightPoint >= taskPower.Power)
|
| | | {
|
| | |
| | | {
|
| | | m_ContentText.text = StrText;
|
| | | }
|
| | | |
| | |
|
| | | }
|
| | | else
|
| | | {
|
| | |
| | | DemonMissionTypeList.Add(DemonMissionType[i]);
|
| | | DemonMissionTypeListKey.Add(DemonMissionType1[i]);
|
| | | }
|
| | | var TransportTaskConfig= FuncConfigConfig.Get("TransportTask").Numerical1;
|
| | | var TransportTaskConfig = FuncConfigConfig.Get("TransportTask").Numerical1;
|
| | | int[] TransportTaskList = ConfigParse.GetMultipleStr<int>(TransportTaskConfig);
|
| | | TransportTask.Clear();
|
| | | for (int i = 0; i < TransportTaskList.Length; i++)
|
| | |
| | | if (taskmodel.FairyAuDic.ContainsKey(_taskID))
|
| | | {
|
| | | int FairyNumber = TaskAllocation.Instance.FairyAuNumber();
|
| | | if (FairyNumber == 10 )
|
| | | if (FairyNumber == 10)
|
| | | {
|
| | | WindowCenter.Instance.Close<MainInterfaceWin>();
|
| | | WindowCenter.Instance.Open<FairyAuTaskWin>();
|