| | |
| | | public int currentMission { get; private set; }
|
| | | public int currentMissionState { get; private set; }
|
| | |
|
| | | public int GetNowTaskID { get; set; }
|
| | | public int GetNowTaskID { get; set; }//获取当前选中条的任务ID
|
| | |
|
| | | private bool AutomaticityBool = false;//控制是否自动进行自动任务
|
| | | private int retainTaskID = 0;
|
| | | private float BossDelayTimeint = 0;
|
| | | private List<int> FaBaoNPCIdList = new List<int>();//用于获取需要消失的法宝NPCID;
|
| | | public Vector3 UIeffectFabaoVec = new Vector3();//法宝NPC消失时获取的坐标
|
| | |
|
| | |
|
| | | PlayerPackModel _playerPack;
|
| | | PlayerPackModel playerPack
|
| | | {
|
| | |
| | |
|
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | GlobalTimeEvent.Instance.secondEvent -= secondEvent;
|
| | | GlobalTimeEvent.Instance.secondEvent += secondEvent;
|
| | | AutomaticityBool = true;
|
| | | }
|
| | |
|
| | | |
| | |
|
| | | private void onStageLoadFinish()//地图切换时调用
|
| | | {
|
| | |
| | | {
|
| | | try
|
| | | {
|
| | | if (AutomaticityBool && MissionState!=3)
|
| | | {
|
| | | TaskupToDate = MissionID;
|
| | | }
|
| | | var pytaskM = Config.Instance.Get<PyTaskConfig>(MissionID);
|
| | | if (pytaskM == null)
|
| | | {
|
| | |
| | | }
|
| | | catch (Exception ex)
|
| | | {
|
| | | DebugEx.Log(ex);
|
| | | DebugEx.Log(ex.StackTrace);
|
| | | }
|
| | |
|
| | | }
|
| | |
| | |
|
| | | void DefaultDialogue()//关于打开默认对话界面
|
| | | {
|
| | | if (NewBieCenter.Instance.inGuiding || ModelCenter.Instance.GetModel<TreasureModel>().newGotShowing)
|
| | | {
|
| | | return;
|
| | | }
|
| | | bool IsOpenMain = WindowCenter.Instance.CheckOpen<MainInterfaceWin>();
|
| | | if (!WindowCenter.Instance.CheckOpen<DefaultDialogueBoxWin>() && IsOpenMain)
|
| | | {
|
| | |
| | | {
|
| | | if (MainTaskDic.ContainsKey(_MissionId) && MainCardLevelChange != null && _DictValue == 0)
|
| | | {
|
| | | |
| | | if (IsGetOnBool)
|
| | | {
|
| | | GetNowTaskID = _MissionId;
|
| | | }
|
| | | MainCardLevelChange(_MissionId);
|
| | | |
| | | }
|
| | |
|
| | | }
|
| | | }
|
| | | else
|
| | |
| | | {
|
| | | CardLevelChange(_MissionId);
|
| | | }
|
| | | if (MainTaskDic.ContainsKey(_MissionId) && MainCardLevelChange != null)
|
| | | {
|
| | | MainCardLevelChange(_MissionId);
|
| | | if (MainTaskDic.ContainsKey(_MissionId))
|
| | | { |
| | | if (IsGetOnBool)
|
| | | {
|
| | | GetNowTaskID = _MissionId;
|
| | | }
|
| | | if (MainCardLevelChange != null)
|
| | | {
|
| | | MainCardLevelChange(_MissionId);
|
| | | }
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | //if (_NpcID == allMissionDict[key].LightList.NpcId)
|
| | | //{
|
| | | // if (allMissionDict[key].LightList.StateLight > Light)
|
| | | // {
|
| | | // Light = allMissionDict[key].LightList.StateLight;
|
| | | // }
|
| | |
|
| | | //}
|
| | | }
|
| | |
|
| | | return Light;
|
| | |
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | | if (FairyAuDic.Count != 0)
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | |
|
| | | }
|
| | | public void DailyBountyMove()//日常赏金任务
|
| | | {
|
| | |
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | | if (BountyDic.Count != 0)
|
| | | {
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | private int Autotasking(int taskID)
|
| | |
| | | return;
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | | else if (FairyAuDic.ContainsKey(_taskID))//仙盟任务
|
| | | {
|
| | |
| | | {
|
| | | break;
|
| | | }
|
| | |
|
| | | if (MapTransferUtility.Instance.MapTransferDoType != MapTransferUtility.E_MapTransferDoType.None)
|
| | | {
|
| | | break;
|
| | |
| | | GA_NpcFunc.SetNpcFuncVisible(Npcid, true);
|
| | | }
|
| | | }
|
| | |
|
| | | }
|
| | | }
|
| | |
|
| | |
| | | {
|
| | | return -1;
|
| | | }
|
| | |
|
| | | }
|
| | |
|
| | | public int GetQuestState(int _taskId)
|
| | |
| | | return -1;
|
| | | }
|
| | | }
|
| | | //--------主要用于记录任务列表选中条的智能性 (-_-||)
|
| | | public int TaskupToDate = 0;//获取最新任务ID
|
| | | public int GetOnTaskId = 0;
|
| | | public bool IsGetOnBool = false;
|
| | | private int NeedTime = 10;
|
| | | private DateTime dateTimeA;
|
| | | public void GetTaskGetOnNow(int TaskID, string DictKey)//记录下信息字典的ID
|
| | | {
|
| | | string key1Str = "on_kill_" + TaskID;
|
| | | string key2Str = "get_byid_" + TaskID;
|
| | | if (TaskID > 1 && (key1Str== DictKey || key2Str== DictKey))
|
| | | {
|
| | | GetOnTaskId = TaskID;
|
| | | dateTimeA =DateTime.Now;
|
| | | }
|
| | |
|
| | | }
|
| | | private void secondEvent()
|
| | | {
|
| | | TimeSpan timeS =DateTime.Now- dateTimeA;
|
| | | int timeSend = timeS.Seconds;
|
| | | if (timeSend >= NeedTime)
|
| | | {
|
| | | IsGetOnBool = true;
|
| | | GetOnTaskId = GetNowTaskID;//获取当前选中的ID |
| | | }
|
| | | else
|
| | | {
|
| | | IsGetOnBool = false;
|
| | | }
|
| | | }
|
| | | }
|