| | |
| | |
|
| | | private void OnClickDeliveryButton()//传送符
|
| | | {
|
| | | //--------------特殊任务的传送逻辑
|
| | | if (mainModel.TaskId_Skill1.Contains(Task_ID))
|
| | | {
|
| | | var mapModel = ModelCenter.Instance.GetModel<MapModel>();
|
| | | var point = mapModel.GetRecommendHangPoint();
|
| | | var config = Config.Instance.Get<MapEventPointConfig>(point);
|
| | |
|
| | | var flyBootOwn = ModelCenter.Instance.GetModel<PlayerPackModel>().GetItemCountByID(PackType.rptItem, GeneralConfig.Instance.flyBootItemId);
|
| | | var isVipFreeTransfer = ModelCenter.Instance.GetModel<VipModel>().GetVipPrivilegeCnt(VipPrivilegeType.FreeTransfer) > 0;
|
| | | if (isVipFreeTransfer || flyBootOwn > 0)
|
| | | {
|
| | | MapTransferUtility.Instance.MissionFlyTo(config.MapID, config.NPCID);
|
| | | }
|
| | | else
|
| | | {
|
| | | MapTransferUtility.Instance.MoveToNPC(config.NPCID);
|
| | | }
|
| | | return;
|
| | | }
|
| | | mainModel.FlyShoseTaskID = Task_ID;
|
| | | string _FlyID = Config.Instance.Get<FuncConfigConfig>("TransportPay").Numerical1;
|
| | | int itemNumber = playerPack.GetItemCountByID(PackType.rptItem, int.Parse(_FlyID));//获取飞鞋的数量
|
| | |
| | | int NeedMoney = (int)UIHelper.GetMoneyCnt(1) + (int)UIHelper.GetMoneyCnt(2);
|
| | | if (NeedMoney >= 1)
|
| | | {
|
| | |
|
| | |
|
| | | m_ContentText.ExcuteHref(1);
|
| | | }
|
| | | else
|
| | |
| | | }
|
| | |
|
| | | }
|
| | |
|
| | |
|
| | |
|
| | | public void FlyingShoes_Task(int TaskID)
|
| | | {
|
| | | Task_ID = TaskID;
|