//批量合成 void ReCombineGem() { if (Selected_Frist_GemData == null || Selected_Second_GemData == null) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(9012), null); return; } if (Core.Data.playerManager.Coin < defaultNum * Core.Data.gemsManager.getGemData(Selected_Frist_GemData.configData.target).coin) { JCRestoreEnergyMsg.OpenUI(ItemManager.COIN_PACKAGE, ItemManager.COIN_BOX, 2); return; } successNum = 0; count = 0; tempId = 0; keylist = new List <int>(); CombineTimes = defaultNum; //Debug.Log (" default == " + defaultNum); for (int i = 0; i < defaultNum; i++) { SendCombineGems(); } ComLoading.Open(); }
void SmallBattleResponse(BaseHttpRequest request, BaseResponse response) { ComLoading.Close(); FBReword = null; if (response != null && response.status != BaseResponse.ERROR) { BattleResponse r = response as BattleResponse; FBReword = r.data; cityFloorManager.ShowReward(FBReword, GoNextFloor); //如果是新手引导点击的 if (IsGuideClick) { Core.Data.guideManger.DelayAutoRun(1.8f); } } else { isCanClick = true; if (response.errorCode == 4002) { JCRestoreEnergyMsg.OpenUI(110015, 110016); } else { ErrorDeal(response.errorCode); } } //UIMiniPlayerController.Instance.freshPlayerInfoView (); //DBUIController.mDBUIInstance.RefreshUserInfo (); }
void OnBtnClick(string BtnName) { if (BtnName == "Btn_Close") { Close(); } else { if (Core.Data.playerManager.curJingLi < NeedEnergy) { JCRestoreEnergyMsg.OpenUI(110015, 110016); } else { int floorID = this.FristFloorID + int.Parse(BtnName); NewFloor floor = null; //如果关卡存在 if (Core.Data.newDungeonsManager.FloorList.TryGetValue(floorID, out floor)) { SelectFightPanelType _type = this.type == 0 ? SelectFightPanelType.EXP_BATTLE:SelectFightPanelType.GEM_BATTLE; FightRoleSelectPanel FPanel = FightRoleSelectPanel.OpenUI(floor.config.TeamSize, _type, floor.config.FightType); if (FPanel != null) { gameObject.SetActive(false); FPanel.CallBack_Fight = (int[] array, int teamID) => { if (array.Length == 0) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(9092)); } else { JCPVEFightLogic.Instance.Fight(floor.config.ID, array, teamID); } }; FPanel.OnClose = () => { gameObject.SetActive(true); }; } } else { SQYAlertViewMove.CreateAlertViewMove("[ff0000]Can't find floor:" + floorID.ToString() + "[-]"); } } } }
void OnBtnShop() { if (!Core.Data.guideManger.isGuiding) { if (_boxType == EMBoxType.QiangHua) { JCRestoreEnergyMsg.OpenUI(ItemManager.SILVER_EXP_PIG, ItemManager.SILVER_PIG_PACKAGE, 4); } else if (_boxType == EMBoxType.Equip_QH_ATK) { JCRestoreEnergyMsg.OpenUI(ItemManager.SILVER_GUN_ONE, ItemManager.SILVER_GUN, 5); } else if (_boxType == EMBoxType.Equip_QH_DEF) { JCRestoreEnergyMsg.OpenUI(ItemManager.SILVER_HUWAN_ONE, ItemManager.SILVER_HUWAN, 3); } } }
void SendOpenBattleBuildMsg() { int tCoin = m_data.config.OpenBattleCostCoin; if (m_data.config.build_kind == BaseBuildingData.BUILD_BATTLE) { if (Core.Data.playerManager.RTData.curCoin < tCoin) { JCRestoreEnergyMsg.OpenUI(ItemManager.COIN_PACKAGE, ItemManager.COIN_BOX, 2); return; } } HttpTask task = new HttpTask(ThreadType.MainThread, TaskResponse.Default_Response); task.AppendCommonParam(RequestType.BATTLE_BUILD_OPEN, new BattleBuildOpenParam(Core.Data.playerManager.PlayerID, m_data.RTData.id, 1)); task.ErrorOccured += testHttpResp_Error; task.afterCompleted += testHttpResp_UI; task.DispatchToRealHandler(); ComLoading.Open(); }
//创建界面 public static void OpenUI(int leftItemNum, int rightItemNum, int type = 0, System.Action CloseUIBack = null) { if (type != 0) { if (LuaTest.Instance != null && !LuaTest.Instance.ConvenientBuy) { if (type == 2) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(35000)); } else if (type == 3) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(5237)); } else if (type == 4) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(5238)); } return; } } if (_mInstance == null) { Object prefab = PrefabLoader.loadFromPack("JC/JCRestoreEnergyMsg"); if (prefab != null) { GameObject obj = Instantiate(prefab) as GameObject; RED.AddChild(obj, DBUIController.mDBUIInstance._TopRoot); obj.transform.localScale = Vector3.one; obj.transform.localPosition = Vector3.zero; obj.transform.localEulerAngles = Vector3.zero; _mInstance = obj.GetComponent <JCRestoreEnergyMsg>(); _mInstance.Init(leftItemNum, rightItemNum, type); CloseUIBack = CloseUIBack; } } }
public void ClickFloorItem(Floor _data, bool isGuideClick = false) { CurClickFloor = _data; IsGuideClick = isGuideClick; //Debug.Log("Click to here!!!"); if (Core.Data.playerManager.RTData.curJingLi < _data.config.needeEnergy) { isCanClick = true; JCRestoreEnergyMsg.OpenUI(110015, 110016); } else { currFloor = _data; if (_data.config.isBoss > 0) { if (!_data.isfree && !isGuideClick) { if (Core.Data.playerManager.RTData.curStone < 10) { isCanClick = true; UIInformation.GetInstance().SetInformation(Core.Data.stringManager.getString(9021), Core.Data.stringManager.getString(5030), UIInformationSure); } else { SendBattleRequest(); } } else { SendBattleRequest(); } } else { SendSmallBattleRequest(); } } }
void OnBtnEvolve() { if (m_data == null) { return; } if (GetCostSoul() > Core.Data.itemManager.GetBagItemCount(ItemManager.HIGH_BATTLE_SOUL)) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(5128)); return; } if (GetCostCoin() > Core.Data.playerManager.RTData.curCoin) { JCRestoreEnergyMsg.OpenUI(ItemManager.COIN_PACKAGE, ItemManager.COIN_BOX, 2); //SQYAlertViewMove.CreateAlertViewMove (Core.Data.stringManager.getString(35000)); return; } UIInformation.GetInstance().SetInformation(Core.Data.stringManager.getString(5130), Core.Data.stringManager.getString(5030), SendEvolveMonMsg, null); }
public void OnBtnPlayerViewID(int ide) { switch (ide) { case SQYPlayerController.ACT_BTN_COIN: // UIDragonMallMgr.GetInstance().OpenUI(ShopItemType.Item); JCRestoreEnergyMsg.OpenUI(110019, 110020, 2); break; case SQYPlayerController.ACT_BTN_STONE: UIDragonMallMgr.GetInstance().SetRechargeMainPanelActive(); break; case SQYPlayerController.ACT_BTN_ENERGY: // UIDragonMallMgr.GetInstance ().OpenUI (ShopItemType.Item); JCRestoreEnergyMsg.OpenUI(110015, 110017, 0); break; case SQYPlayerController.ACT_BTN_POWER: UIDragonMallMgr.GetInstance().OpenUI(ShopItemType.Item); break; } }
//扫荡 void SaoDang(int count) { if (count <= 0) { //战斗次数已满 SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(9107)); return; } if (Core.Data.playerManager.curJingLi < floordata.config.NeedEnergy * count) { JCRestoreEnergyMsg.OpenUI(110015, 110016); return; } ComLoading.Open(); HttpTask task = new HttpTask(ThreadType.MainThread, TaskResponse.Default_Response); task.AppendCommonParam(RequestType.SAODANG, new SaoDangParam(Core.Data.playerManager.PlayerID, floordata.config.ID, count)); task.ErrorOccured += HttpResp_Error; task.afterCompleted += SaoDangSucess; task.DispatchToRealHandler(); }
void OnUpdateBuildingBtn() { BaseBuildingData nextLv = Core.Data.BuildingManager.GetConfigByBuildLv(m_data.RTData.num, m_data.RTData.lv + 1); if (nextLv == null) { RED.LogWarning(m_data.RTData.id + " not find next level build info! " + m_data.RTData.lv); return; } if (nextLv.UpCostCoin != 0 && Core.Data.playerManager.RTData.curCoin < nextLv.UpCostCoin) { JCRestoreEnergyMsg.OpenUI(ItemManager.COIN_PACKAGE, ItemManager.COIN_BOX, 2); return; } else if (nextLv.UpCostStone != 0 && Core.Data.playerManager.RTData.curStone < nextLv.UpCostStone) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(35006)); return; } //talkingdata add by wxl if (nextLv.UpCostStone != 0) { Core.Data.ActivityManager.OnPurchaseVirtualCurrency(ActivityManager.BuildOpenType, 1, nextLv.UpCostStone); } btn_Update.isEnabled = false; HttpTask task = new HttpTask(ThreadType.MainThread, TaskResponse.Default_Response); task.AppendCommonParam(RequestType.BUILD_UPGRADE, new BuildUpgradeParam(Core.Data.playerManager.PlayerID, m_data.RTData.id)); task.ErrorOccured += testHttpResp_Error; task.afterCompleted += testHttpResp_UI; task.DispatchToRealHandler(); ComLoading.Open(); }
/*点击BOSS关卡<执行>按钮后服务器返回的数据 * */ void BattleResponseFUC(BaseHttpRequest request, BaseResponse response) { ComLoading.Close(); if (response != null) { TemporyData temp = Core.Data.temper; if (response.status != BaseResponse.ERROR) { BattleResponse r = response as BattleResponse; ClientBattleResponse resp = response as ClientBattleResponse; if (r != null) { if (r != null && r.data != null && r.data.reward != null && r.data.sync != null) { Core.Data.playerManager.RTData.curVipLevel = r.data.sync.vip; } r.data.battleData.rsty = null; r.data.battleData.rsmg = null; temp.warBattle = r.data; temp.currentBattleType = TemporyData.BattleType.BossBattle; HttpRequest req = request as HttpRequest; BaseRequestParam param = req.ParamMem; //BattleResponse res = response as BattleResponse; BattleParam bp = param as BattleParam; FloorData floorD = Core.Data.dungeonsManager.getFloorData(bp.doorId); if (r.data.battleData.iswin == 1) { if (floorD != null) { Core.Data.ActivityManager.OnMissionComplete(floorD.name); } } else { if (floorD != null) { Core.Data.ActivityManager.OnMissionFail(floorD.name); } } if (bp.flag == 1) { //add by wxl Core.Data.ActivityManager.OnPurchaseVirtualCurrency(ActivityManager.ChapterType, 1, 10); } } if (resp != null) { temp.currentBattleType = TemporyData.BattleType.BossBattle; temp.clientDataResp = resp; #if LOCAL_AUTO temp.Open_StepMode = false; #else temp.Open_StepMode = true; #endif temp.Open_LocalWarMode = true; HttpRequest req = request as HttpRequest; if (req != null) { ClientBattleParam param = req.ParamMem as ClientBattleParam; if (param != null) { temp.clientReqParam = param; } } } Core.Data.deblockingBuildMgr.mFloorRecord = Core.Data.newDungeonsManager.lastFloorId; //跳转至Ban 的场景 JumpToBattleView(); } else { if (response.errorCode == 4002) { JCRestoreEnergyMsg.OpenUI(110015, 110016); } else { ErrorDeal(response.errorCode); } } } }
public void OnBtnClick(string BtnName) { int left = floordata.config.times - floordata.passTimes; switch (BtnName) { case "Btn_SaoDang1": if (isSaoDang) { isSaoDang = false; SaoDang(1); Invoke("IsSaoDang", 0.5f); } break; case "Btn_SaoDang10": if (isUnLockSaoDangs) { SaoDang(left); } else { string content = Core.Data.stringManager.getString(9117); content = content.Replace("{}", Core.Data.vipManager.GetUnLockContinuousSweepingVIPLevel().ToString()); SQYAlertViewMove.CreateAlertViewMove(content); } break; case "Btn_Fight": if (Core.Data.playerManager.curJingLi < floordata.config.NeedEnergy) { JCRestoreEnergyMsg.OpenUI(110015, 110016); return; } if (left <= 0) { //战斗次数已满 SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(9107)); return; } FightRoleSelectPanel FPanel = FightRoleSelectPanel.OpenUI(floordata.config.TeamSize, SelectFightPanelType.STORY_BATTLE, floordata.config.FightType); if (FPanel != null) { JCPVEPlotController.Instance.gameObject.SetActive(false); gameObject.SetActive(false); FPanel.CallBack_Fight = (int[] array, int teamID) => { if (array.Length == 0) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(9092)); } else { #if NewGuide if (Core.Data.guideManger.isGuiding) { FPanel.gameObject.SetActive(false); TopMenuUI.mInstance.gameObject.SetActive(false); DBUIController.mDBUIInstance.UIBackground.SetActive(false); DBUIController.mDBUIInstance.BottomCamera.GetComponent <Camera>().clearFlags = CameraClearFlags.Skybox; //如果在新手引导状态下,播放一个动画 if (floordata.config.ID == 60101) { GuideAnimation2D_2.OpenUI(DBUIController.mDBUIInstance._TopRoot.transform).OnFinished = () => { JCPVEFightLogic.Instance.Fight(floordata.config.ID, array, teamID); }; } else if (floordata.config.ID == 60102) { ChAnimUI3.OpenUI(DBUIController.mDBUIInstance._TopRoot.transform).OnFinished = () => { JCPVEFightLogic.Instance.Fight(floordata.config.ID, array, teamID); }; } else if (floordata.config.ID == 60103) { ChAnimUI4.OpenUI(DBUIController.mDBUIInstance._TopRoot.transform).OnFinished = () => { JCPVEFightLogic.Instance.Fight(floordata.config.ID, array, teamID); }; } } else #endif JCPVEFightLogic.Instance.Fight(floordata.config.ID, array, teamID); } }; FPanel.OnClose = () => { JCPVEPlotController.Instance.gameObject.SetActive(true); gameObject.SetActive(true); }; } break; } }
void OnClickSwap() { if (m_data == null) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(5058)); return; } int needWuXin = 0; int needCoin = 0; if (m_data.RTData.m_nStage == RuntimeMonster.NORMAL_MONSTER) { needWuXin = 5; needCoin = 10000; } else if (m_data.RTData.m_nStage == RuntimeMonster.ZHEN_MONSTER) { needCoin = 50000; needWuXin = 20; } else { RED.LogWarning("monster stage is wrong!"); return; } if (Core.Data.itemManager.GetBagItemCount(ItemManager.WUXINGWAN) < needWuXin) { if (Core.Data.playerManager.RTData.curLevel < 10) { string strText = Core.Data.stringManager.getString(34062); SQYAlertViewMove.CreateAlertViewMove(strText); } else { if (LuaTest.Instance != null && !LuaTest.Instance.ConvenientBuy) { ; } else { UIInformation.GetInstance().SetInformation(Core.Data.stringManager.getString(5205), Core.Data.stringManager.getString(5030), OpenDuihuanUI, null); } } return; } if (Core.Data.playerManager.RTData.curCoin < needCoin) { JCRestoreEnergyMsg.OpenUI(ItemManager.COIN_PACKAGE, ItemManager.COIN_BOX, 2); //SQYAlertViewMove.CreateAlertViewMove (Core.Data.stringManager.getString(35000)); return; } HttpTask task = new HttpTask(ThreadType.MainThread, TaskResponse.Default_Response); task.AppendCommonParam(RequestType.ATTR_SWAP, new AttrSwapParam(Core.Data.playerManager.PlayerID, m_data.pid)); task.ErrorOccured += testHttpResp_Error; task.afterCompleted += testHttpResp_UI; //then you should dispatch to a real handler task.DispatchToRealHandler(); ComLoading.Open(); }
void BuyNormal_OnClick() { if (!CheckVipBuy()) { return; } int mNeedMoney = 0; int mMoneyType = 0; if (_type == ShopItemType.Active) { mMoneyType = ActiveItemdata.mType; if (ActiveItemdata.disPrice == 0) { mNeedMoney = ActiveItemdata.price; } else { mNeedMoney = ActiveItemdata.disPrice; } } else { if (mdata.discount.Length != 0) { mMoneyType = mdata.discount[0]; mNeedMoney = mdata.discount[1]; } else { if (mdata.price.Length != 0) { mMoneyType = mdata.price[0]; mNeedMoney = mdata.price[1]; } } } if (mMoneyType == 0) { if (Core.Data.playerManager.Coin < mNeedMoney) { JCRestoreEnergyMsg.OpenUI(ItemManager.COIN_PACKAGE, ItemManager.COIN_BOX, 2); return; } } else if (mMoneyType == 1) { if (Core.Data.playerManager.Stone < mNeedMoney) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(35006)); return; } // talkingdata add by wxl if (_type == ShopItemType.Active) { TDataOnBuyItem(ActiveItemdata.pid, 1, mNeedMoney); } else { TDataOnBuyItem(mdata.ID, 1, mNeedMoney); } } else { if (mMoneyType != 2 && mMoneyType != 3) { int _battlesoul = 0; ItemData data = null; _battlesoul = Core.Data.itemManager.GetBagItemCount(mMoneyType); data = Core.Data.itemManager.getItemData(mMoneyType); if (_battlesoul < mNeedMoney) { if (data != null) { SQYAlertViewMove.CreateAlertViewMove(string.Format(Core.Data.stringManager.getString(25174), data.name)); } return; } } else { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(7999)); return; } } HttpTask task = new HttpTask(ThreadType.MainThread, TaskResponse.Default_Response); if (_type != ShopItemType.Active) { PurchaseParam param = new PurchaseParam(); param.gid = Core.Data.playerManager.PlayerID; param.propid = mdata.ID; if (this.mdata.max == 0) { param.nm = 1; } else { param.nm = BuyNumber.NumIndex; } task.AppendCommonParam(RequestType.BUY_ITEM, param); } else { BuyActiveShopItemParam param = new BuyActiveShopItemParam(); param.gid = int.Parse(Core.Data.playerManager.PlayerID); param.propid = ActiveItemdata.pid; param.nm = 1; task.AppendCommonParam(RequestType.ACTIVESHOPBUYITEM, param); } if (Core.Data.guideManger.isGuiding) { task.afterCompleted += SecretShopMgr.GetInstance().testHttpResp_UI; } else { task.afterCompleted += SecretShopMgr.GetInstance()._UIDragonMallCell.testHttpResp_UI; } task.DispatchToRealHandler(); ComLoading.Open(); Back_OnClick(); }
bool IsValia(int target) { if (m_nType == 1) { if (target == 1) { if (Core.Data.playerManager.Coin < 3000 * (i_AtkCounting + 1)) { JCRestoreEnergyMsg.OpenUI(ItemManager.COIN_PACKAGE, ItemManager.COIN_BOX, 2); return(false); } } else { if (Core.Data.playerManager.Coin < 3000 * (i_DefCounting + 1)) { JCRestoreEnergyMsg.OpenUI(ItemManager.COIN_PACKAGE, ItemManager.COIN_BOX, 2); return(false); } } } else if (m_nType == 2) { if (target == 1) { if (Core.Data.playerManager.Stone < 10 * (i_AtkCounting + 1)) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(35006)); return(false); } } else { if (Core.Data.playerManager.Stone < 10 * (i_DefCounting + 1)) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(35006)); return(false); } } } if (target == 1) { if (Core.Data.itemManager.GetBagItemCount(ItemManager.CHAOSHENSHUI) <= i_AtkCounting) { if (Core.Data.playerManager.RTData.curLevel < 10) { string strText = Core.Data.stringManager.getString(34060); SQYAlertViewMove.CreateAlertViewMove(strText); } else { UIInformation.GetInstance().SetInformation(Core.Data.stringManager.getString(5204), Core.Data.stringManager.getString(5030), OpenDuiHuanUI, null); } return(false); } } else { if (Core.Data.itemManager.GetBagItemCount(ItemManager.CHAOSHENSHUI) <= i_DefCounting) { if (Core.Data.playerManager.RTData.curLevel < 10) { string strText = Core.Data.stringManager.getString(34060); SQYAlertViewMove.CreateAlertViewMove(strText); } else { UIInformation.GetInstance().SetInformation(Core.Data.stringManager.getString(5204), Core.Data.stringManager.getString(5030), OpenDuiHuanUI, null); } return(false); } } if (target == 1) { if (m_data.curQianli <= i_AtkCounting) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(5117)); return(false); } } else { if (m_data.curQianli <= i_DefCounting) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(5117)); return(false); } } return(true); }
public void SecretShopBuyRequest() { if (m_data == null) { ConsoleEx.DebugLog("m_data is null"); return; } if (m_data.money == null) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(20060)); return; } if (_BuyStatus == SecretShopBuyStatus.Type_SellOut) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(20066)); return; } if (_BuyStatus == SecretShopBuyStatus.Type_Lock) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(20067)); return; } if (_BuyStatus == SecretShopBuyStatus.Type_None) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(35000)); return; } if (m_data.money.Length != 0 && m_data.money.Length == 2) { if (m_data.money[0] == 0) { if (Core.Data.playerManager.Stone < m_data.money[1]) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(35006)); return; } //talkingData add by wxl TDataOnBuyItem(m_data.id, m_data.num, m_data.money[1]); } else if (m_data.money[0] == 1) { if (Core.Data.playerManager.Coin < m_data.money[1]) { JCRestoreEnergyMsg.OpenUI(ItemManager.COIN_PACKAGE, ItemManager.COIN_BOX, 2); return; } } else if (m_data.money[0] == 2) { if (TotalJifen < m_data.money[1]) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(6029)); return; } } else if (m_data.money[0] == 3) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(7999)); return; } else { int _battlesoul = 0; ItemData data = null; _battlesoul = Core.Data.itemManager.GetBagItemCount(m_data.money[0]); data = Core.Data.itemManager.getItemData(m_data.money[0]); if (_battlesoul < m_data.money[1]) { if (data != null) { SQYAlertViewMove.CreateAlertViewMove(string.Format(Core.Data.stringManager.getString(25174), data.name)); } return; } } SecretShopBuyParam param = new SecretShopBuyParam(int.Parse(Core.Data.playerManager.PlayerID), m_data.id, m_data.num, m_data.count, _ShopType); HttpTask task = new HttpTask(ThreadType.MainThread, TaskResponse.Default_Response); task.AppendCommonParam(RequestType.SECRETSHOP_BUY, param); task.afterCompleted += SetSecretShopBuyData; task.DispatchToRealHandler(); ComLoading.Open(); } }
public void OnClickSubZhao(int sub) { m_nCurSubType = (m_nCurType - 1) * 2 + sub; if (!Core.Data.guideManger.isGuiding && !Core.Data.zhaomuMgr.IsZhaomuFree(ZHAOMU_BASE + m_nCurSubType)) { int money = MONEY [m_nCurSubType - 1]; if (m_nCurType == 1) { if (Core.Data.playerManager.RTData.curCoin < money) { JCRestoreEnergyMsg.OpenUI(110019, 110020, 2); return; } } else { if (Core.Data.playerManager.Stone < money) { SQYAlertViewMove.CreateAlertViewMove(Core.Data.stringManager.getString(7310)); return; } } } int equipCnt = Core.Data.EquipManager.GetEquipCount(); int monCnt = Core.Data.monManager.GetMonCnt(); string strText = Core.Data.stringManager.getString(5254); if (m_nCurType == 3) { if (equipCnt >= BAG_MAX) { strText = string.Format(strText, Core.Data.stringManager.getString(5082)); SQYAlertViewMove.CreateAlertViewMove(strText); return; } } else if (m_nCurType == 2) { if (monCnt >= BAG_MAX) { strText = string.Format(strText, Core.Data.stringManager.getString(5081)); SQYAlertViewMove.CreateAlertViewMove(strText); return; } } else { if (equipCnt >= BAG_MAX) { strText = string.Format(strText, Core.Data.stringManager.getString(5082)); SQYAlertViewMove.CreateAlertViewMove(strText); return; } if (monCnt >= BAG_MAX) { strText = string.Format(strText, Core.Data.stringManager.getString(5081)); SQYAlertViewMove.CreateAlertViewMove(strText); return; } } SendZhaomuMsg(); }