Exemplo n.º 1
0
        public void RequestUseSkill(eSkillSlotType slotType)
        {
            InputModel.instance.SendStopMove(null, false);
            if (slotType == eSkillSlotType.SLOT_SKILL_0)
            {
                CSkillButtonManager skillButtonManager = CBattleSystem.instance.GetSkillButtonManager();
                skillButtonManager.SendUseCommonAttack(0, 0u);
                skillButtonManager.SendUseCommonAttack(1, 0u);
            }
            else if (slotType == eSkillSlotType.SLOT_SKILL_4)
            {
                CSkillButtonManager skillButtonManager = CBattleSystem.instance.GetSkillButtonManager();
                skillButtonManager.RequestUseSkillSlot(slotType, 1);
            }
            else
            {
                SkillSlot slot = m_wrapper.actor.pSkillCtrl.GetSkillSlot(slotType);
                if (slot.SkillObj.AppointType == SkillRangeAppointType.Pos)
                {
                    slot.skillIndicator.SetRobotSkillUsePosition();
                }
                m_wrapper.actor.pSkillCtrl.RequestUseSkillSlot(slotType);
            }

            //             RealUseSkill(slotType);
        }
Exemplo n.º 2
0
        private void OnEnemyHeroAtkBtnDown(CUIEvent uiEvent)
        {
            if (uiEvent.m_srcWidget != null)
            {
                int num = int.Parse(uiEvent.m_srcWidget.name.Substring(uiEvent.m_srcWidget.name.IndexOf("_") + 1));
                if (num >= 0 && num < this.m_iCurEnemyPlayerCount)
                {
                    if (this.m_arrBtnInfo[num].actorPtr)
                    {
                        this.m_iCurTargetEnemyBtnIndex = num;
                        uint objID = this.m_arrBtnInfo[num].actorPtr.handle.ObjID;
                        if (Singleton <CBattleSystem> .GetInstance().FightForm != null)
                        {
                            CSkillButtonManager skillButtonManager = Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager;

                            if (skillButtonManager != null)
                            {
                                skillButtonManager.SendUseCommonAttack(1, objID);
                            }
                        }
                    }
                    if (this.m_iLastTargetEnemyBtnIndex >= 0 && this.m_iLastTargetEnemyBtnIndex < this.m_iCurEnemyPlayerCount)
                    {
                        this.SetEnemyHeroBtnHighlight(this.m_iLastTargetEnemyBtnIndex, false);
                    }
                    this.SetEnemyHeroBtnHighlight(this.m_iCurTargetEnemyBtnIndex, true);
                    this.SetEnemyHeroBtnSize(this.m_iCurTargetEnemyBtnIndex, true);
                }
            }
        }
Exemplo n.º 3
0
    public ActorPreloadTab GetGlobalPreload()
    {
        ActorPreloadTab loadInfo = new ActorPreloadTab {
            ageActions    = new List <AssetLoadBase>(),
            parPrefabs    = new List <AssetLoadBase>(),
            mesPrefabs    = new List <AssetLoadBase>(),
            spritePrefabs = new List <AssetLoadBase>(),
            soundBanks    = new List <AssetLoadBase>(),
            behaviorXml   = new List <AssetLoadBase>()
        };

        this.BuildAreaTrigger(ref loadInfo);
        this.BuildActionHelper(ref loadInfo);
        this.BuildActionTrigger(ref loadInfo);
        this.BuildCommonSpawnPoints(ref loadInfo);
        this.BuildEquipInBattle(ref loadInfo);
        EffectPlayComponent.Preload(ref loadInfo);
        HudComponent3D.Preload(ref loadInfo);
        CBattleFloatDigitManager.Preload(ref loadInfo);
        OrganHitEffect.Preload(ref loadInfo);
        OrganWrapper.Preload(ref loadInfo);
        KillNotify.Preload(ref loadInfo);
        SkillIndicateSystem.Preload(ref loadInfo);
        ObjAgent.Preload(ref loadInfo);
        CSkillButtonManager.Preload(ref loadInfo);
        UpdateShadowPlane.Preload(ref loadInfo);
        CBattleSystem.Preload(ref loadInfo);
        CSkillData.Preload(ref loadInfo);
        return(loadInfo);
    }
Exemplo n.º 4
0
    private GameObject ShowBackHomeTip(NewbieGuideWeakConf conf, NewbieWeakGuideControl inControl)
    {
        CSkillButtonManager cSkillButtonManager = (Singleton <CBattleSystem> .GetInstance().FightForm != null) ? Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager : null;

        if (cSkillButtonManager != null)
        {
            SkillButton button = cSkillButtonManager.GetButton(SkillSlotType.SLOT_SKILL_6);
            return(this.AddBubbleEffectInternal(button.m_button, conf, inControl, Singleton <CBattleSystem> .GetInstance().FightFormScript));
        }
        return(null);
    }
Exemplo n.º 5
0
    private void onBattleEuipFormClose(CUIEvent uiEvent)
    {
        if (!this.IsBattleEquipGuideComplete())
        {
            CSkillButtonManager cSkillButtonManager = (Singleton <CBattleSystem> .GetInstance().FightForm != null) ? Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager : null;

            if (cSkillButtonManager != null)
            {
                SkillButton button  = cSkillButtonManager.GetButton(SkillSlotType.SLOT_SKILL_9);
                PlayerKDA   hostKDA = Singleton <BattleStatistic> .GetInstance().m_playerKDAStat.GetHostKDA();

                if (hostKDA == null)
                {
                    return;
                }
                bool flag = false;
                ListView <HeroKDA> .Enumerator enumerator = hostKDA.GetEnumerator();
                while (enumerator.MoveNext())
                {
                    if (enumerator.get_Current().Equips.Length > 0)
                    {
                        flag = true;
                        break;
                    }
                }
                if (button != null && button.m_button.activeSelf && flag)
                {
                    CUIFormScript form = Singleton <CUIManager> .GetInstance().GetForm(FightForm.s_skillBtnFormPath);

                    if (form != null)
                    {
                        Transform transform = form.GetWidget(27).transform.FindChild("Panel_Guide");
                        if (transform != null)
                        {
                            transform.gameObject.CustomSetActive(true);
                            CUITimerScript component = transform.FindChild("Timer").GetComponent <CUITimerScript>();
                            component.ResetTime();
                            component.ReStartTimer();
                            CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

                            if (masterRoleInfo != null)
                            {
                                masterRoleInfo.SetClientBits(6, true, true);
                            }
                        }
                    }
                }
            }
        }
    }
Exemplo n.º 6
0
        private void HandleOnEnemyHeroAtkBtnUp()
        {
            if (Singleton <CBattleSystem> .GetInstance().FightForm != null)
            {
                CSkillButtonManager skillButtonManager = Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager;

                if (skillButtonManager != null)
                {
                    skillButtonManager.SendUseCommonAttack(0, 0u);
                }
                this.SetEnemyHeroBtnSize(this.m_iCurTargetEnemyBtnIndex, false);
                this.m_iLastTargetEnemyBtnIndex = this.m_iCurTargetEnemyBtnIndex;
                this.m_iCurTargetEnemyBtnIndex  = -1;
            }
        }
Exemplo n.º 7
0
        private void UpdateTeleportTargetList()
        {
            this.m_CanTeleportActorList.Clear();
            CSkillButtonManager skillButtonManager = Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager;

            SkillSlotType type;

            if (!skillButtonManager.HasMapSlectTargetSkill(out type))
            {
                return;
            }
            SkillSlot skillSlot  = null;
            Player    hostPlayer = Singleton <GamePlayerCenter> .GetInstance().GetHostPlayer();

            if (hostPlayer == null || !hostPlayer.Captain)
            {
                return;
            }
            if (!hostPlayer.Captain.get_handle().SkillControl.TryGetSkillSlot(type, out skillSlot))
            {
                return;
            }
            if (!skillSlot.IsEnableSkillSlot())
            {
                return;
            }
            List <PoolObjHandle <ActorRoot> > gameActors = Singleton <GameObjMgr> .get_instance().GameActors;

            int count = gameActors.get_Count();

            for (int i = 0; i < count; i++)
            {
                PoolObjHandle <ActorRoot> poolObjHandle = gameActors.get_Item(i);
                if (poolObjHandle && !(poolObjHandle == hostPlayer.Captain))
                {
                    ActorRoot handle = poolObjHandle.get_handle();
                    if (!handle.ActorControl.IsDeadState && handle.IsHostCamp() && handle.InCamera)
                    {
                        uint dwSkillTargetFilter = skillSlot.SkillObj.cfgData.dwSkillTargetFilter;
                        if (((ulong)dwSkillTargetFilter & (ulong)(1L << (int)(handle.TheActorMeta.ActorType & (ActorTypeDef)31))) <= 0uL)
                        {
                            this.m_CanTeleportActorList.Add(poolObjHandle);
                        }
                    }
                }
            }
        }
Exemplo n.º 8
0
        private void SetBtnStateByBtnInfo(int iBtnIndex)
        {
            if (iBtnIndex >= 0 && iBtnIndex < this.m_iCurEnemyPlayerCount && this.m_arrBtnInfo != null && this.m_arrBtnInfo[iBtnIndex].btnTransform != null)
            {
                if (this.m_arrBtnInfo[iBtnIndex].heroState != 0)
                {
                    if (this.m_arrBtnInfo[iBtnIndex].btnTransform.gameObject.activeSelf)
                    {
                        this.m_arrBtnInfo[iBtnIndex].btnTransform.gameObject.CustomSetActive(false);
                        if (this.m_arrBtnInfo[iBtnIndex].objUI3DHp)
                        {
                            this.m_arrBtnInfo[iBtnIndex].objUI3DHp.gameObject.CustomSetActive(false);
                        }
                        this.SetEnemyHeroBtnHighlight(iBtnIndex, false);
                        if (iBtnIndex == this.m_iCurTargetEnemyBtnIndex)
                        {
                            this.HandleOnEnemyHeroAtkBtnUp();
                            this.m_iCurTargetEnemyBtnIndex = -1;
                        }
                        else if (this.m_hostActor && this.m_hostActor.handle.ActorAgent != null && this.m_hostActor.handle.ActorAgent.m_wrapper.myBehavior == ObjBehaviMode.Normal_Attack && this.m_hostActor.handle.ActorAgent.m_wrapper.myTarget && this.m_arrBtnInfo[iBtnIndex].actorPtr && this.m_hostActor.handle.ActorAgent.m_wrapper.myTarget.handle.ObjID == this.m_arrBtnInfo[iBtnIndex].actorPtr.handle.ObjID && Singleton <CBattleSystem> .GetInstance().FightForm != null)
                        {
                            CSkillButtonManager skillButtonManager = Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager;

                            if (skillButtonManager != null)
                            {
                                skillButtonManager.SendUseCommonAttack(1, 0u);
                                skillButtonManager.SendUseCommonAttack(0, 0u);
                            }
                        }
                    }
                }
                else if (!this.m_arrBtnInfo[iBtnIndex].btnTransform.gameObject.activeSelf && Singleton <CBattleSystem> .instance.TheMinimapSys != null && Singleton <CBattleSystem> .instance.TheMinimapSys.CurMapType() != MinimapSys.EMapType.Big && Singleton <CBattleSystem> .instance.TheMinimapSys.CurMapType() != MinimapSys.EMapType.Skill)
                {
                    this.SetBtnHpFillAmount(iBtnIndex);
                    this.SetEnemyHeroBtnAlpha(iBtnIndex, 0.6f);
                    this.m_arrBtnInfo[iBtnIndex].btnTransform.gameObject.CustomSetActive(true);
                    if (this.m_arrBtnInfo[iBtnIndex].objUI3DHp)
                    {
                        this.m_arrBtnInfo[iBtnIndex].objUI3DHp.gameObject.CustomSetActive(true);
                    }
                    CUICommonSystem.PlayAnimation(this.m_arrBtnInfo[iBtnIndex].btnTransform, enSkillButtonAnimationName.CD_End.ToString());
                }
            }
        }
Exemplo n.º 9
0
        private void ShowSkillButtonFlowEffect(bool show)
        {
            if (Singleton <CBattleSystem> .GetInstance().FightForm == null || Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager == null)
            {
                return;
            }
            CSkillButtonManager skillButtonManager = Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager;

            SkillSlotType skillSlotType;

            if (skillButtonManager.HasMapSlectTargetSkill(out skillSlotType))
            {
                SkillButton button = skillButtonManager.GetButton(skillSlotType);
                if (button != null && button.m_button != null)
                {
                    skillButtonManager.SetButtonFlowLight(button.m_button, show);
                }
            }
        }
Exemplo n.º 10
0
        public void OnClickBattleScene(Vector2 _screenPos)
        {
            if (Singleton <WatchController> .get_instance().IsWatching)
            {
                return;
            }
            if (this.m_NeedConfirm && !this.m_bConfirmed)
            {
                return;
            }
            if (MonoSingleton <CameraSystem> .GetInstance().enableLockedCamera&& !this.m_ClickDownStatus)
            {
                return;
            }
            Player hostPlayer = Singleton <GamePlayerCenter> .GetInstance().GetHostPlayer();

            if (hostPlayer == null || !hostPlayer.Captain || hostPlayer.Captain.get_handle().ActorControl == null || hostPlayer.Captain.get_handle().ActorControl.IsDeadState)
            {
                return;
            }
            Ray   ray = Camera.main.ScreenPointToRay(_screenPos);
            float distance;

            if (this.curPlane.Raycast(ray, out distance))
            {
                Vector3 point = ray.GetPoint(distance);
                if (Singleton <CBattleSystem> .GetInstance().FightForm != null)
                {
                    CSkillButtonManager skillButtonManager = Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager;

                    SkillSlotType skillSlotType;
                    if (skillButtonManager != null && skillButtonManager.HasMapSlectTargetSkill(out skillSlotType))
                    {
                        uint num = Singleton <TeleportTargetSearcher> .GetInstance().SearchNearestCanTeleportTarget(ref hostPlayer.Captain, (VInt3)point, 3000);

                        if (num != 0u)
                        {
                            skillButtonManager.SelectedMapTarget(num);
                        }
                    }
                }
            }
        }
Exemplo n.º 11
0
        private void RefreshSkillEnableState()
        {
            if (Singleton <CBattleSystem> .GetInstance().FightForm == null)
            {
                return;
            }
            CSkillButtonManager skillButtonManager = Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager;

            SkillSlotType skillSlotType;

            if (!skillButtonManager.HasMapSlectTargetSkill(out skillSlotType))
            {
                return;
            }
            SkillSlot skillSlot  = null;
            Player    hostPlayer = Singleton <GamePlayerCenter> .GetInstance().GetHostPlayer();

            if (hostPlayer == null || !hostPlayer.Captain)
            {
                return;
            }
            if (!hostPlayer.Captain.get_handle().SkillControl.TryGetSkillSlot(skillSlotType, out skillSlot))
            {
                return;
            }
            this.m_NeedConfirm = (skillButtonManager.GetSkillJoystickMode(skillSlotType) == enSkillJoystickMode.MapSelectOther);
            if (this.m_TargetSkillEnable != skillSlot.IsEnableSkillSlot())
            {
                this.m_TargetSkillEnable = !this.m_TargetSkillEnable;
                if (this.m_TargetSkillEnable)
                {
                    this.OnPlayerSkillEnable();
                }
                else
                {
                    this.OnPlayerSkillDisable();
                }
            }
        }
        private void OnMiniMap_Click_Down(CUIEvent uievent)
        {
            if (Singleton <WatchController> .instance.IsWatching)
            {
                return;
            }
            this.m_ClickDownStatus = true;
            if (Singleton <CBattleSystem> .GetInstance().FightForm != null)
            {
                CSkillButtonManager skillButtonManager = Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager;

                SkillSlotType skillSlotType;
                if (skillButtonManager != null && skillButtonManager.HasMapSlectTargetSkill(out skillSlotType))
                {
                    CUIJoystickScript joystick = Singleton <CBattleSystem> .GetInstance().FightForm.GetJoystick();

                    if (joystick != null)
                    {
                        joystick.ChangeJoystickResponseArea(true);
                    }
                }
            }
        }
    public static bool CheckTriggerCondition(uint id, NewbieGuideTriggerConditionItem condition)
    {
        switch (condition.wType)
        {
        case 1:
            return(NewbieGuideCheckTriggerConditionUtil.CheckCompleteNewbieDungeonCondition(condition));

        case 2:
            return(NewbieGuideCheckTriggerConditionUtil.CheckCompleteNormalDungeonCondition(condition));

        case 3:
            return(NewbieGuideCheckTriggerConditionUtil.CheckOwnCompleteNewbieGuideCondition(condition));

        case 4:
            return(NewbieGuideCheckTriggerConditionUtil.CheckUnCompleteNewbieGuideCondition(condition));

        case 5:
            return(false);

        case 6:
            return(false);

        case 7:
            NewbieGuideCheckTriggerConditionUtil.AvailableTask = null;
            return(Singleton <CTaskSys> .instance.model.AnyTaskOfState(COM_TASK_STATE.COM_TASK_HAVEDONE, RES_TASK_TYPE.RES_TASKTYPE_MAIN, out NewbieGuideCheckTriggerConditionUtil.AvailableTask));

        case 8:
            return(false);

        case 9:
            return(false);

        case 10:
            return(false);

        case 11:
        {
            uint      num            = condition.Param[0];
            uint      num2           = condition.Param[1];
            CRoleInfo masterRoleInfo = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            if (masterRoleInfo != null)
            {
                uint haveHeroCount = (uint)masterRoleInfo.GetHaveHeroCount(false);
                bool result        = false;
                switch (num2)
                {
                case 0u:
                    result = (haveHeroCount == num);
                    break;

                case 1u:
                    result = (haveHeroCount > num);
                    break;

                case 2u:
                    result = (haveHeroCount < num);
                    break;

                default:
                    DebugHelper.Assert(false);
                    break;
                }
                return(result);
            }
            return(false);
        }

        case 12:
        {
            bool flag = false;
            uint num3 = condition.Param[0];
            RES_SHOPBUY_COINTYPE coinType        = (condition.Param[1] == 0u) ? RES_SHOPBUY_COINTYPE.RES_SHOPBUY_TYPE_COUPONS : RES_SHOPBUY_COINTYPE.RES_SHOPBUY_TYPE_PVPCOIN;
            CRoleInfo            masterRoleInfo2 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            if (masterRoleInfo2 != null)
            {
                if (num3 > 0u)
                {
                    flag = masterRoleInfo2.CheckHeroBuyable(num3, coinType);
                }
                else
                {
                    ListView <ResHeroCfgInfo> .Enumerator enumerator = CHeroDataFactory.GetAllHeroList().GetEnumerator();
                    while (enumerator.MoveNext())
                    {
                        num3  = enumerator.Current.dwCfgID;
                        flag |= masterRoleInfo2.CheckHeroBuyable(num3, coinType);
                        if (flag)
                        {
                            break;
                        }
                    }
                }
            }
            if (flag)
            {
                NewbieGuideCheckTriggerConditionUtil.AvailableHeroId = num3;
            }
            return(flag);
        }

        case 13:
            return(Singleton <CShopSystem> .GetInstance().IsNormalShopItemsInited());

        case 14:
            return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().GoldCoin >= condition.Param[0] && Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_SHOP) && Singleton <CShopSystem> .GetInstance().IsNormalShopItemsInited());

        case 15:
            return(CAdventureSys.IsChapterFullStar(Singleton <CAdventureSys> .GetInstance().currentChapter, Singleton <CAdventureSys> .GetInstance().currentDifficulty));

        case 16:
        {
            uint num4 = condition.Param[0];
            return(num4 > 0u && Singleton <CAdventureSys> .GetInstance().IsLevelFinished((int)num4) && CAdventureSys.IsLevelFullStar((int)num4));
        }

        case 17:
            return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_PVPMODE));

        case 18:
        {
            CRoleInfo masterRoleInfo3 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            CUseableContainer useableContainer = masterRoleInfo3.GetUseableContainer(enCONTAINER_TYPE.ITEM);
            int useableStackCount = useableContainer.GetUseableStackCount(COM_ITEM_TYPE.COM_OBJTYPE_ITEMPROP, CAdventureSys.MOPUP_TICKET_ID);
            return((long)useableStackCount >= (long)((ulong)condition.Param[0]));
        }

        case 19:
            return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ZONGSHILIAN));

        case 20:
            return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ZHUANGZIHUANMENG));

        case 21:
            return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_LIUGUOYUANZHENG));

        case 22:
            return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ELITELEVEL));

        case 23:
            return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_UNION));

        case 24:
            return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_SYMBOL));

        case 25:
            return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_BLACKSHOP) && Singleton <CShopSystem> .GetInstance().IsMysteryShopAvailable());

        case 26:
            return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_PVPCOINSHOP));

        case 27:
            return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_TASK));

        case 28:
            return(false);

        case 30:
            return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(26));

        case 31:
            return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(27));

        case 32:
            return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(21));

        case 33:
        {
            CRoleInfo masterRoleInfo4 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            return(masterRoleInfo4 != null && masterRoleInfo4.GoldCoin >= condition.Param[0]);
        }

        case 34:
            return(false);

        case 36:
            return(false);

        case 37:
        {
            bool      flag2           = false;
            uint      num5            = condition.Param[0];
            CRoleInfo masterRoleInfo5 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            if (masterRoleInfo5 != null)
            {
                CUseableContainer useableContainer2 = masterRoleInfo5.GetUseableContainer(enCONTAINER_TYPE.ITEM);
                if (useableContainer2 != null)
                {
                    CUseable useableByBaseID = useableContainer2.GetUseableByBaseID(COM_ITEM_TYPE.COM_OBJTYPE_ITEMPROP, num5);
                    if (useableByBaseID != null)
                    {
                        flag2 = true;
                    }
                }
            }
            NewbieGuideCheckTriggerConditionUtil.AvailableItemId = (flag2 ? num5 : 0u);
            return(flag2);
        }

        case 38:
            return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(9));

        case 39:
        {
            uint      num6            = condition.Param[0];
            CRoleInfo masterRoleInfo6 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            return(masterRoleInfo6 != null && (long)masterRoleInfo6.GetHaveHeroCount(false) >= (long)((ulong)num6));
        }

        case 40:
        {
            CRoleInfo masterRoleInfo7 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            if (masterRoleInfo7 != null)
            {
                masterRoleInfo7.m_symbolInfo.CheckAnyWearSymbol(out NewbieGuideCheckTriggerConditionUtil.AvailableSymbolPos, out NewbieGuideCheckTriggerConditionUtil.AvailableSymbolId, 2);
                return((long)NewbieGuideCheckTriggerConditionUtil.AvailableSymbolPos == (long)((ulong)condition.Param[0]));
            }
            return(false);
        }

        case 41:
            return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ARENA));

        case 42:
            return(Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo().IsGuidedStateSet(44));

        case 43:
        {
            uint      num7            = condition.Param[0];
            CRoleInfo masterRoleInfo8 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            return(masterRoleInfo8 != null && masterRoleInfo8.SymbolCoin >= num7);
        }

        case 44:
            return(Singleton <CFunctionUnlockSys> .GetInstance().FucIsUnlock(RES_SPECIALFUNCUNLOCK_TYPE.RES_SPECIALFUNCUNLOCKTYPE_ADDEDSKILL));

        case 45:
            return(CAddSkillSys.IsSelSkillAvailable());

        case 46:
            return(NewbieGuideCheckTriggerConditionUtil.CheckOwnCompleteNewWeakGuideCondition(condition));

        case 47:
            return(NewbieGuideCheckTriggerConditionUtil.CheckOwnCompleteNewWeakGuideCondition(condition));

        case 48:
        {
            CRoleInfo masterRoleInfo9 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            return(masterRoleInfo9.m_symbolInfo.m_pageCount > 1);
        }

        case 49:
        {
            LevelRewardData levelRewardData = Singleton <CTaskSys> .instance.model.GetLevelRewardData((int)condition.Param[0]);

            return(levelRewardData != null && !levelRewardData.m_bHasGetReward);
        }

        case 50:
        {
            CRoleInfo masterRoleInfo10 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            return(masterRoleInfo10.m_freeDrawInfo[4].dwLeftFreeDrawCnt > 0);
        }

        case 51:
            return(Singleton <CFunctionUnlockSys> .instance.FucIsUnlock((RES_SPECIALFUNCUNLOCK_TYPE)condition.Param[0]));

        case 52:
        {
            CRoleInfo masterRoleInfo11 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            return(masterRoleInfo11 != null && masterRoleInfo11.IsOldPlayer() && !masterRoleInfo11.IsOldPlayerGuided());
        }

        case 53:
        {
            SLevelContext curLvelContext = Singleton <BattleLogic> .GetInstance().GetCurLvelContext();

            return(curLvelContext != null && curLvelContext.IsMultilModeWithWarmBattle());
        }

        case 54:
        {
            bool      result2          = false;
            CRoleInfo masterRoleInfo12 = Singleton <CRoleInfoManager> .GetInstance().GetMasterRoleInfo();

            if (masterRoleInfo12 != null)
            {
                result2 = masterRoleInfo12.IsGuidedStateSet(98);
            }
            return(result2);
        }

        case 55:
            return(CBattleGuideManager.EnableHeroVictoryTips());

        case 56:
            return(Singleton <GameReplayModule> .GetInstance().HasRecord&& Singleton <WatchController> .GetInstance().FightOverJust);

        case 57:
        {
            SLevelContext curLvelContext2 = Singleton <BattleLogic> .GetInstance().GetCurLvelContext();

            return(curLvelContext2 != null && (long)curLvelContext2.m_mapID == (long)((ulong)condition.Param[0]));
        }

        case 58:
        {
            CSkillButtonManager cSkillButtonManager = (Singleton <CBattleSystem> .GetInstance().FightForm == null) ? null : Singleton <CBattleSystem> .GetInstance().FightForm.m_skillButtonManager;

            SkillSlotType skillSlotType;
            return(cSkillButtonManager != null && cSkillButtonManager.HasMapSlectTargetSkill(out skillSlotType) && skillSlotType == SkillSlotType.SLOT_SKILL_5);
        }
        }
        return(false);
    }