Beispiel #1
0
        public override void OnPrepareNewGame()
        {
            base.OnPrepareNewGame();

            m_boss = Game.CreateBoss(bossID, 888, 590, -1, 0);
            m_boss.SetRelateDemagemRect(-41, -187, 83, 140);
            m_boss.FallFrom(888, 690, "fall", 0, 2, 1000);
            m_front.PlayMovie("in", 2000, 0);
            m_kingMoive.PlayMovie("in", 1000, 0);
            m_kingMoive.PlayMovie("out", 4800, 0);

            m_boss.AddDelay(16);

            Game.BossCardCount = 1;

            //再试一次跳过剧情动画
            if (Game.WantTryAgain == 1)
            {
                return;
            }

            m_boss.SetRect(-191, -226, 44, 58);
            m_king.ChangeDirection(1, 5000);

            m_boss.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.CHM1277.msg13"), 2, 6000);
            m_boss.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.CHM1277.msg14"), 2, 10000);
            m_boss.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.CHM1277.msg15"), 2, 14000);
            m_boss.PlayMovie("cast", 18500, 0);
            m_boss.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.CHM1277.msg16"), 2, 18000);

            Game.AddAction(new FocusAction(m_king.X, m_king.Y - 30, 0, 22000, 0));
            m_king.ChangeDirection(-1, 22000);
            m_king.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.CHM1277.msg17"), 2, 23000);
            m_king.ChangeDirection(1, 25000);
            m_king.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.CHM1277.msg18"), 2, 27000);

            if (m_king.ShootPoint(m_boss.X, m_boss.Y, 61, 1000, 10000, 1, 1, 28300))
            {
                m_king.PlayMovie("beat2", 27500, 0, new LivingCallBack(Game.SendSyncLifeTime));
            }
            m_king.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.CHM1277.msg19"), 2, 31000);


            Game.AddAction(new FocusAction(736, 515, 0, 29500, 0));
            m_boss.PlayMovie("beatA", 28300, 0);
            m_boss.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.CHM1277.msg20"), 2, 28500);
            m_boss.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.CHM1277.msg21"), 2, 36000);
            m_boss.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.CHM1277.msg22"), 2, 40000);

            m_boss.PlayMovie("mantra", 46000, 0);
            m_boss.Seal(m_king, 2, 48000);
            m_boss.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.CHM1277.msg23"), 2, 44000);

            m_king.ChangeDirection(-1, 50000);
            m_king.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.CHM1277.msg24"), 2, 51000);
            m_king.PlayMovie("out", 55000, 0);
            m_king.OffSeal(m_king, 55000);

            Game.AddAction(new PlayBackgroundSoundAction(true, 55000));
        }
Beispiel #2
0
        public override void OnPrepareNewGame()
        {
            base.OnPrepareNewGame();
            m_kingMoive = Game.Createlayer(0, 0, "moive", "game.asset.living.BossBgAsset", "out", 1, 1, 0);
            m_kingFront = Game.Createlayer(900, 200, "font", "game.asset.living.boguoLeaderAsset", "out", 1, 1, 0);

            Game.AddAction(new FocusAction(350, 0, 0, 150, 1000));
            hawkBoss = Game.CreateWingBoss(hawkBossID, 800, 300, -1, 0);
            hawkBoss.SetRelateDemagemRect(-30, -75, 60, 70);
            hawkBoss.Degree = 1;
            hawkBoss.Say("沙漠神鹰就是我了,要签名的赶快过来~", 0, 3000);
            hawkBoss.AddDelay(16);

            Game.AddAction(new FocusAction(1000, 400, 0, 7000, 1000));
            wolfBoss = Game.CreateBoss(wolfBossID, 1000, 400, -1, 0);
            wolfBoss.FallFrom(1000, 450, "fall", 0, 2, 1000);
            wolfBoss.SetRelateDemagemRect(-116, -111, 157, 119);
            wolfBoss.Degree = 2;
            wolfBoss.Say("沙漠血狼就是我了,要签名的赶快过来~", 0, 9000);
            wolfBoss.AddDelay(16);
            m_kingMoive.PlayMovie("in", 15000, 0);
            m_kingFront.PlayMovie("in", 15000, 0);
            m_kingMoive.PlayMovie("out", 20000, 0);
            m_kingFront.PlayMovie("out", 20400, 0);
        }
Beispiel #3
0
        public override void OnPrepareNewGame()
        {
            base.OnPrepareNewGame();
            m_kingMoive = Game.Createlayer(0, 0, "moive", "game.asset.living.BossBgAsset", "out", 1, 1, 0);
            m_kingFront = Game.Createlayer(630, 400, "font", "game.asset.living.ClanBrotherAsset", "out", 1, 1, 0);

            seconBoss = Game.CreateBoss(bossSecondID, 1352, 300, -1, 1);
            firstBoss = Game.CreateBoss(bossFrontID, 241, 300, 1, 1);

            Game.AddAction(new ShowBloodItem(firstBoss.Id, 0, 0));
            Game.AddAction(new ShowBloodItem(seconBoss.Id, 7000, 0));
            seconBoss.FallFrom(1352, 346, "fall", 0, 2, 1000);
            firstBoss.FallFrom(241, 346, "fall", 0, 2, 1000);

            firstBoss.SetRelateDemagemRect(-12, -52, 26, 38);
            firstBoss.Degree = 1;
            firstBoss.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.TTSM3303.msg1"), 0, 3000);
            firstBoss.PlayMovie("call", 3000, 0);
            firstBoss.AddDelay(16);

            Game.AddAction(new FocusAction(1352, 346, 0, 7000, 1000));
            seconBoss.SetRelateDemagemRect(-12, -52, 26, 38);
            seconBoss.Degree = 2;
            seconBoss.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.TTSM3303.msg2"), 0, 9000);
            seconBoss.PlayMovie("castA", 9000, 0);
            Game.AddAction(new FocusAction(800, 500, 0, 13000, 1000));
            seconBoss.AddDelay(16);
            m_kingMoive.PlayMovie("in", 15000, 0);
            m_kingFront.PlayMovie("in", 15000, 0);
            m_kingMoive.PlayMovie("out", 20000, 0);
            m_kingFront.PlayMovie("out", 20400, 0);
        }
Beispiel #4
0
        public override void OnPrepareNewGame()
        {
            base.OnPrepareNewGame();
            m_moive = Game.Createlayer(0, 0, "moive", "game.asset.living.BossBgAsset", "out", 1, 1, 0);
            m_front = Game.Createlayer(1131, 150, "font", "game.asset.living.AntQueenAsset", "out", 1, 1, 0);
            boss    = Game.CreateBoss(bossID, 1316, 444, -1, 1);
            boss.SetRelateDemagemRect(-42, -200, 84, 194);
            boss.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.DCNM2102.msg1"), 0, 200, 0);

            m_moive.PlayMovie("in", 6000, 0);
            m_front.PlayMovie("in", 6100, 0);
            m_moive.PlayMovie("out", 10000, 1000);
            m_front.PlayMovie("out", 9900, 0);
        }
Beispiel #5
0
        public override void OnPrepareGameOver()
        {
            if (Game.TurnIndex == Game.TotalTurn)
            {
                for (int i = 0; i < 12; i++)
                {
                    foreach (Player player in Game.GetAllFightPlayers())
                    {
                        if (player.X > m_bord[i].X - 40 && player.X < m_bord[i].X + 40 && player.Y <m_bord[i].Y + 40 && player.Y> m_bord[i].Y - 40)
                        {
                            if (m_bord[i].CurrentAction == "2")
                            {
                                m_bord[i].PlayMovie("3", 0, 0);
                                keyIndex = string.Format("Key{0}", i);
                                Game.RemovePhysicalObj(Game.FindPhysicalObjByName(keyIndex)[0], true);
                                m_count++;
                                Game.SendUpdateUiData();
                            }
                        }
                    }
                }
            }

            if (m_count == Game.TotalCount)
            {
                Game.SendGameObjectFocus(2, "door", 0, 6000);
                Game.AddAction(new PlaySoundAction("201", 0));
                m_door.PlayMovie("end", 4000, 5000);
                Game.AddAction(new PlaySoundAction("202", 3000));
            }
        }
Beispiel #6
0
        public override void OnPrepareNewGame()
        {
            base.OnPrepareNewGame();
            m_kingMoive = Game.Createlayer(0, 0, "moive", "game.asset.living.BossBgAsset", "out", 1, 1, 0);
            m_kingFront = Game.Createlayer(900, 300, "font", "game.asset.living.boguoLeaderAsset", "out", 1, 1, 0);

            cattleBoss = Game.CreateBoss(bossID, 1000, 450, -1, 0);
            cattleBoss.FallFrom(1000, 500, "fall", 0, 2, 1000);
            cattleBoss.SetRelateDemagemRect(-35, -130, 70, 130);
            cattleBoss.Say("我就是老牛!你们就是嫩草!", 0, 3000);
            cattleBoss.ChangeMaxBeatDis = 1500;
            cattleBoss.AddDelay(16);
            m_kingMoive.PlayMovie("in", 8000, 0);
            m_kingFront.PlayMovie("in", 8000, 0);
            m_kingMoive.PlayMovie("out", 12000, 0);
            m_kingFront.PlayMovie("out", 12400, 0);
        }
Beispiel #7
0
        public override void OnPrepareNewGame()
        {
            base.OnPrepareNewGame();

            m_kingMoive = Game.Createlayer(0, 0, "kingmoive", "game.asset.living.BossBgAsset", "out", 1, 1, 0);
            m_kingFront = Game.Createlayer(720, 495, "font", "game.asset.living.boguoKingAsset", "out", 1, 1, 0);
            m_king      = Game.CreateBoss(m_state, 888, 590, -1, 0);
            m_king.FallFrom(888, 690, "fall", 0, 2, 1000);
            m_king.SetRelateDemagemRect(-21, -87, 72, 59);
            m_king.AddDelay(10);

            m_king.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.CHM1076.msg2"), 0, 3000);
            m_kingMoive.PlayMovie("in", 9000, 0);
            m_kingFront.PlayMovie("in", 9000, 0);
            m_kingMoive.PlayMovie("out", 13000, 0);
            m_kingFront.PlayMovie("out", 13400, 0);
            turn = Game.TurnIndex;
        }
Beispiel #8
0
        public override void OnPrepareNewGame()
        {
            base.OnPrepareNewGame();

            m_moive = Game.Createlayer(0, 0, "moive", "game.asset.living.BossBgAsset", "out", 1, 1, 0);
            m_front = Game.Createlayer(680, 330, "font", "game.asset.living.boguoLeaderAsset", "out", 1, 1, 0);
            m_boss  = Game.CreateBoss(bossID, 770, -1500, -1, 1);

            m_boss.FallFrom(770, 301, "fall", 0, 2, 1000);
            m_boss.SetRelateDemagemRect(34, -35, 11, 18);
            m_boss.AddDelay(10);
            m_boss.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.CHM1073.msg2"), 0, 6000);
            m_boss.PlayMovie("call", 5900, 0);
            m_moive.PlayMovie("in", 9000, 0);
            m_boss.PlayMovie("weakness", 10000, 5000);
            m_front.PlayMovie("in", 9000, 0);
            m_moive.PlayMovie("out", 15000, 0);
        }
Beispiel #9
0
 public override void OnGameOverMovie()
 {
     Game.SendGameObjectFocus(2, "door", 0, 6000);
     Game.SendPlaySound("201");
     m_door.PlayMovie("end", 4000, 3000);
     Game.SendPlaySound("202");
     Game.SendUpdateUiData();
     Game.TurnQueue.Clear();
 }
Beispiel #10
0
        public override void OnPrepareNewGame()
        {
            base.OnPrepareNewGame();
            m_kingMoive = Game.Createlayer(0, 0, "moive", "game.asset.living.BossBgAsset", "out", 1, 1, 0);
            m_kingFront = Game.Createlayer(570, 300, "font", "game.asset.living.ClanLeaderAsset", "out", 1, 1, 0);

            firstBoss = Game.CreateBoss(firstbossID, 745, 410, -1, 0);
            firstBoss.FallFrom(745, 578, "fall", 0, 2, 1000);
            firstBoss.SetRelateDemagemRect(-15, -117, 26, 96);
            firstBoss.AddDelay(16);
            firstBoss.Say(LanguageMgr.GetTranslation("GameServerScript.AI.Messions.THSM3006.msg1"), 0, 3000);
            firstBoss.PlayMovie("", 3000, 5000);

            m_kingMoive.PlayMovie("in", 10000, 0);
            m_kingFront.PlayMovie("in", 10000, 0);
            m_kingMoive.PlayMovie("out", 15000, 0);
            m_kingFront.PlayMovie("out", 15400, 0);
        }
Beispiel #11
0
        public override void OnStartGame()
        {
            base.OnStartGame();
            m_kingMoive = Game.Createlayer(0, 0, "kingmoive", "game.asset.living.BossBgAsset", "out", 1, 0);
            m_kingFront = Game.Createlayer(610, 380, "font", "game.asset.living.boguoKingAsset", "out", 1, 0);
            m_king      = Game.CreateBoss(m_state, 750, 668, -1, 0);

            m_king.FallFrom(750, 640, "fall", 0, 2, 1000);
            m_king.SetRelateDemagemRect(-21, -79, 72, 51);
            m_king.AddDelay(10);

            m_king.Say("你们这些低等的庶民,竟敢来到我的王国放肆!", 3000, 0);
            m_kingMoive.PlayMovie("in", 9000, 0);
            m_kingFront.PlayMovie("in", 9000, 0);
            m_kingMoive.PlayMovie("out", 13000, 0);
            m_kingFront.PlayMovie("out", 13400, 0);
            turn = Game.TurnIndex;
        }
Beispiel #12
0
        public override void OnStartGame()
        {
            base.OnStartGame();
            m_moive = Game.Createlayer(0, 0, "moive", "game.asset.living.BossBgAsset", "out", 1, 0);
            m_front = Game.Createlayer(680, 330, "font", "game.asset.living.boguoLeaderAsset", "out", 1, 0);
            m_boss  = Game.CreateBoss(bossID, 770, -1500, -1, 1);

            m_boss.FallFrom(770, 301, "fall", 0, 2, 1000);
            m_boss.SetRelateDemagemRect(34, -35, 11, 18);
            m_boss.AddDelay(10);
            m_boss.Say("你们胆敢闯入我的地盘,准备受死吧!", 0, 6000);
            m_boss.PlayMovie("call", 5900, 0);
            m_moive.PlayMovie("in", 9000, 0);
            m_boss.PlayMovie("weakness", 10000, 5000);
            m_front.PlayMovie("in", 9000, 0);
            m_moive.PlayMovie("out", 15000, 0);

            //设置本关卡为Boss关卡,关卡胜利后,玩家可以翻一张牌
            Game.BossCardCount = 1;
        }
Beispiel #13
0
 public override void OnPrepareNewGame()
 {
     base.OnPrepareNewGame();
     m_kingMoive = Game.Createlayer(0, 0, "kingmoive", "game.asset.living.BossBgAsset", "out", 1, 1, 0);
     m_front     = Game.Createlayer(710, 380, "font", "game.asset.living.BombKingAsset", "out", 1, 1, 0);
     m_king      = Game.CreateBoss(bossID, 888, 590, -1, 0);
     m_king.FallFrom(888, 690, "fall", 0, 2, 1000);
     m_king.SetRelateDemagemRect(-41, -187, 83, 140);
     m_kingMoive.PlayMovie("in", 1000, 0);
     m_front.PlayMovie("in", 2000, 2000);
     m_king.AddDelay(16);
 }
Beispiel #14
0
        public override bool CanGameOver()
        {
            base.CanGameOver();

            if (battleNpc != null && !battleNpc.IsLiving)
            {
                Game.IsWin = true;
                Game.AddAction(new FocusAction(977, 163, 0, 150, 0));
                eyeObj.PlayMovie("die", 1000, 0);
                Game.AddAction(new FocusAction(1394, 715, 0, 3000, 0));
                doorObj.PlayMovie("die", 4000, 2000);
                return(true);
            }

            return(false);
        }
Beispiel #15
0
        public override bool CanGameOver()
        {
            for (int i = 0; i < 12; i++)
            {
                foreach (Player player in Game.GetAllFightPlayers())
                {
                    if (player.X > m_bord[i].X - 40 && player.X < m_bord[i].X + 40 && player.Y <m_bord[i].Y && player.Y> m_bord[i].Y - 40)
                    {
                        if (m_bord[i].CurrentAction == "2")
                        {
                            m_bord[i].PlayMovie("3", 0, 0);
                            KeyIndex = string.Format("Key{0}", i);
                            Game.RemovePhysicalObj(Game.FindPhysicalObjByName(KeyIndex)[0], true);
                            m_count++;
                        }
                    }
                }
            }

            if (m_count == Game.TotalCount)
            {
                Game.SendGameObjectFocus(2, "door", 0, 6000);
                Game.SendPlaySound("201");
                m_door.PlayMovie("end", 4000, 3000);
                Game.SendPlaySound("202");
                Game.SendUpdateUiData();
                Game.TurnQueue.Clear();
            }

            if (Game.TurnIndex > Game.TotalTurn - 1 && m_count != Game.TotalCount)
            {
                return(true);
            }

            if (m_door.CurrentAction == "end")
            {
                return(true);
            }

            return(false);
        }
Beispiel #16
0
        //public override void OnPrepareNewGame()
        //{
        //    base.OnPrepareNewGame();
        //}

        public override void OnNewTurnStarted()
        {
            List <ItemInfo>         items = new List <ItemInfo>();
            List <ItemTemplateInfo> goods = new List <ItemTemplateInfo>();

            if (Game.CurrentPlayer.Delay < Game.PveGameDelay)
            {
                if (tip.CurrentAction == "Empty")
                {
                    tip.PlayMovie("tip1", 0, 3000);
                }

                if (Game.TotalKillCount >= 1 && indexOf < 1)
                {
                    isLoadItems = true;
                    tip.PlayMovie("tip2", 0, 2000);
                    indexOf++;
                }
                if (isPlayMovie)
                {
                    bool isHiden = false;
                    tip.PlayMovie("tip3", 0, 2000);
                    foreach (Player p in Game.GetAllFightPlayers())
                    {
                        if (p.Dander < 200)
                        {
                            isHiden = true;
                            break;
                        }
                    }
                    if (isHiden)
                    {
                        tip.PlayMovie("tip4", 0, 2000);
                    }
                }

                if (isLoadItems)
                {
                    goods.Add(Bussiness.Managers.ItemMgr.FindItemTemplate(10001));
                    goods.Add(Bussiness.Managers.ItemMgr.FindItemTemplate(10003));
                    goods.Add(Bussiness.Managers.ItemMgr.FindItemTemplate(10018));

                    foreach (ItemTemplateInfo info in goods)
                    {
                        items.Add(ItemInfo.CreateFromTemplate(info, 1, 101));
                    }

                    foreach (Player player in Game.GetAllFightPlayers())
                    {
                        player.CanGetProp = false;
                        player.PlayerDetail.ClearFightBag();
                        foreach (ItemInfo item in items)
                        {
                            player.PlayerDetail.AddTemplate(item, eBageType.FightBag, item.Count);
                        }

                        if (isDander == false)
                        {
                            player.Dander = 200;
                            isPlayMovie   = true;
                            isDander      = true;
                        }
                    }
                    isLoadItems = false;
                }
            }
        }
Beispiel #17
0
        public override bool CanGameOver()
        {
            base.CanGameOver();
            //回合数到100的时候结束游戏
            if (Game.TurnIndex > Game.MissionInfo.TotalTurn - 1)
            {
                return(true);
            }

            if (m_king.IsLiving == false)
            {
                if (m_state == firstBossID)
                {
                    m_state++;
                }
            }

            if (m_state == secondBossID && m_secondKing == null)
            {
                m_kingMoive  = Game.Createlayer(0, 0, "moive", "game.asset.living.BossBgAsset", "out", 1, 0);
                m_secondKing = Game.CreateBoss(m_state, m_king.X, m_king.Y, m_king.Direction, 1);
                Game.RemoveLiving(m_king.Id);

                if (m_secondKing.Direction == -1)
                {
                    m_secondKing.SetRectBomb(24, -159, 66, 38);
                    m_secondKing.SetRelateDemagemRect(58, -142, 5, 3);
                }
                else
                {
                    m_secondKing.SetRectBomb(-90, -159, 66, 38);
                    m_secondKing.SetRelateDemagemRect(-63, -142, 5, 3);
                }


                m_secondKing.Say("<span class='red'>你们把我激怒了,我饶不了你们!</span>", 0, 3000);
                m_kingMoive.PlayMovie("in", 5000, 0);
                m_secondKing.PlayMovie("weakness", 6100, 0);
                m_kingMoive.PlayMovie("out", 12000, 0);

                List <Player> players  = Game.GetAllFightPlayers();
                int           minDelay = Game.FindRandomPlayer().Delay;
                foreach (Player player in players)
                {
                    if (player.Delay < minDelay)
                    {
                        minDelay = player.Delay;
                    }
                }

                m_secondKing.AddDelay(minDelay - 2000);
                turn = Game.TurnIndex;
            }

            if (m_secondKing != null && m_secondKing.IsLiving == false)
            {
                m_leftWall  = Game.FindPhysicalObjByName("wallLeft", false);
                m_rightWall = Game.FindPhysicalObjByName("wallRight", false);

                if (m_leftWall != null)
                {
                    Game.RemovePhysicalObj(m_leftWall[0], true);
                }

                if (m_rightWall != null)
                {
                    Game.RemovePhysicalObj(m_rightWall[0], true);
                }

                PhysicalObj objKing = Game.CreatePhysicalObj(m_secondKing.X, m_secondKing.Y, "king", "game.living.LivingRecover005", "0", 0, 0);
                objKing.PlayMovie("1", 0, 2000);
                if (objKing.CurrentAction == "1")
                {
                    m_kill++;
                    return(true);
                }
            }

            return(false);
        }
Beispiel #18
0
        public override void OnNewTurnStarted()
        {
            List <ItemTemplateInfo> goods = new List <ItemTemplateInfo>();

            List <ItemInfo> items = new List <ItemInfo>();

            foreach (Player player in Game.GetAllFightPlayers())
            {
                foreach (SimpleNpc npc in Game.GetLivedLivings())
                {
                    if (npc.Distance(player.X, player.Y) <= 100)
                    {
                        canPlayMovie = true;
                    }
                }
            }

            if (Game.TurnIndex > 1 && Game.CurrentPlayer.Delay > Game.PveGameDelay)
            {
                for (int i = 0; i < 5; i++)
                {
                    if (SomeNpc.Count < 15)
                    {
                        SomeNpc.Add(Game.CreateNpc(201, (i + 1) * 100, 500, 1));
                    }
                    else
                    {
                        break;
                    }
                }
            }

            if (Game.CurrentPlayer.Delay < Game.PveGameDelay)
            {
                if (Tip.CurrentAction == "Empty")
                {
                    Tip.PlayMovie("tip1", 0, 3000);
                }
                if (preKillNum < Game.TotalKillCount && killCount < 2)
                {
                    killCount++;
                }

                if (killCount == 2)
                {
                    Tip.PlayMovie("tip2", 0, 2000);
                }

                if (canPlayMovie)
                {
                    Tip.PlayMovie("tip3", 0, 2000);
                }

                goods.Add(Bussiness.Managers.ItemMgr.FindItemTemplate(10001));
                goods.Add(Bussiness.Managers.ItemMgr.FindItemTemplate(10003));
                goods.Add(Bussiness.Managers.ItemMgr.FindItemTemplate(10018));

                foreach (ItemTemplateInfo info in goods)
                {
                    items.Add(ItemInfo.CreateFromTemplate(info, 1, 101));
                }

                foreach (Player player in Game.GetAllFightPlayers())
                {
                    player.CanGetProp = false;
                    player.PlayerDetail.ClearFightBag();
                    foreach (ItemInfo item in items)
                    {
                        player.PlayerDetail.AddTemplate(item, eBageType.FightBag, item.Count);
                    }
                }
            }
        }
Beispiel #19
0
        public override void OnNewTurnStarted()
        {
            List <ItemInfo>         items = new List <ItemInfo>();
            List <ItemTemplateInfo> goods = new List <ItemTemplateInfo>();
            PVEGame pveGame     = Game as PVEGame;
            int     turnNpcRank = pveGame.FindTurnNpcRank();

            if ((isUsePw || isUseProp) && !isShooted)
            {
                Game.CurrentLiving.Delay = 0;
            }

            if (Game.CurrentPlayer.Delay < pveGame.NpcTurnQueue[turnNpcRank])
            {
                if (Game.TotalKillCount >= 1)
                {
                    if (indexOf == 0)
                    {
                        isPlayPropMovie = true;
                        indexOf++;
                    }

                    Game.CurrentPlayer.BeforePlayerShoot += new PlayerShootEventHandle(Shooted);
                }

                if (isPlayPropMovie)
                {
                    Game.CurrentPlayer.PlayerUseProp += new PlayerUserPropEventHandle(UseProp);
                }

                if (isPlayPwMovie)
                {
                    Game.CurrentPlayer.PlayerUseSpecialSkill += new PlayerUseSpecialSkillEventHandle(UseSpecialSkill);
                    Game.CurrentPlayer.AddDander(200);
                }

                if (tip.CurrentAction == "Empty")
                {
                    tip.PlayMovie("tip1", 0, 3000);
                }
                else if (isPlayPropMovie)
                {
                    //播放使用道具
                    if (tag == 0)
                    {
                        tip.PlayMovie("tip2", 0, 2000);
                        tag++;
                    }
                    else
                    {
                        if (!isUseProp && !isShooted && isAgain == false)
                        {
                            tip.PlayMovie("tip2", 0, 2000);
                        }
                        else//再试一次
                        {
                            isAgain   = true;
                            isUseProp = false;
                            tip.PlayMovie("tip3", 0, 2000);
                        }
                    }
                }
                else if (isPlayPwMovie)
                {
                    isUseProp = false;
                    //播放使用必杀
                    if (tag == 0)
                    {
                        isAgain = false;
                        tip.PlayMovie("tip4", 0, 2000);
                        tag++;
                    }
                    else
                    {
                        if (!isUsePw && !isShooted && isAgain == false)
                        {
                            tip.PlayMovie("tip4", 0, 2000);
                        }
                        else//再试一次
                        {
                            isAgain = true;
                            isUsePw = false;
                            tip.PlayMovie("tip5", 0, 2000);
                        }
                    }
                }
                else if (isPlayKillAll)
                {
                    //播放杀死所有的怪
                    tip.PlayMovie("tip6", 0, 2000);
                }
            }
        }