Exemple #1
0
        public override void OnPrepareNewSession()
        {
            // 加载文件
            Game.AddLoadingFile(1, "bombs/12.swf", "tank.resource.bombs.Bomb12");
            Game.AddLoadingFile(1, "bombs/41.swf", "tank.resource.bombs.Bomb41");

            // 远程 与 近身 NPC 编号列表
            remoteIds = new int[] { 101, 102 };
            livingIds = new int[] { 1001, 1002 };

            Game.LoadResources(livingIds);
            Game.LoadResources(remoteIds);
            Game.LoadNpcGameOverResources(livingIds);
            Game.LoadNpcGameOverResources(remoteIds);

            // 设置 关卡地图
            int[] mapIds = { 1093, 1092, 1108, 1089, 1099 };
            Game.SetMap(GetMapId(mapIds, 1093));

            // 设置 刷怪规则
            npcCreateParamSimple = new NpcCreateParam(0, 8, 0, 4, 0, 15);
            npcCreateParamNormal = new NpcCreateParam(0, 12, 0, 4, 0, 15);
            npcCreateParamHard   = new NpcCreateParam(0, 16, 0, 4, 0, 15);
            npcCreateParamTerror = new NpcCreateParam(0, 20, 0, 4, 0, 15);

            // 加载 远程NPC使用炸弹
            ballIds = new Dictionary <int, int>();
            ballIds.Add(101, 12);
            ballIds.Add(102, 41);

            base.OnPrepareNewSession();
        }
Exemple #2
0
        public override void OnPrepareNewSession()
        {
            // 加载文件
            Game.AddLoadingFile(1, "bombs/12.swf", "tank.resource.bombs.Bomb12");
            Game.AddLoadingFile(1, "bombs/41.swf", "tank.resource.bombs.Bomb41");

            // 远程 与 近身 NPC 编号列表
            remoteIds = new int[] { 101, 102 };
            livingIds = new int[] { 1001, 1002 };

            Game.LoadResources(livingIds);
            Game.LoadResources(remoteIds);
            Game.LoadNpcGameOverResources(livingIds);
            Game.LoadNpcGameOverResources(remoteIds);

            // 设置 关卡地图
            int[] mapIds = { 1093, 1092, 1108, 1089, 1099 };
            Game.SetMap(GetMapId(mapIds,1093));

            // 设置 刷怪规则
            npcCreateParamSimple = new NpcCreateParam(0, 8, 0, 4, 0, 15);
            npcCreateParamNormal = new NpcCreateParam(0, 12, 0, 4, 0, 15);
            npcCreateParamHard = new NpcCreateParam(0, 16, 0, 4, 0, 15);
            npcCreateParamTerror = new NpcCreateParam(0, 20, 0, 4, 0, 15);

            // 加载 远程NPC使用炸弹
            ballIds = new Dictionary<int, int>();
            ballIds.Add(101, 12);
            ballIds.Add(102, 41);

            base.OnPrepareNewSession();
        }
Exemple #3
0
        public override void OnPrepareNewSession()
        {
            Game.AddLoadingFile(1, "bombs/12.swf", "tank.resource.bombs.Bomb12");
            Game.AddLoadingFile(1, "bombs/41.swf", "tank.resource.bombs.Bomb41");

            remoteIds = new int[] { 101, 102 };
            livingIds = new int[] { 1001, 1002 };

            Game.LoadResources(livingIds);
            Game.LoadResources(remoteIds);

            Game.LoadNpcGameOverResources(livingIds);
            Game.LoadNpcGameOverResources(remoteIds);

            int[] mapIds = { 1097, 1112, 1105 };
            Game.SetMap(GetMapId(mapIds, 1097));

            npcCreateParamSimple = new NpcCreateParam(0, 12, 0, 6, 0, 15);
            npcCreateParamNormal = new NpcCreateParam(0, 18, 0, 6, 0, 15);
            npcCreateParamHard   = new NpcCreateParam(0, 24, 0, 6, 0, 15);
            npcCreateParamTerror = new NpcCreateParam(0, 30, 0, 6, 0, 15);

            ballIds = new Dictionary <int, int>();
            ballIds.Add(101, 12);
            ballIds.Add(102, 41);
            base.OnPrepareNewSession();
        }
Exemple #4
0
        public override void OnPrepareNewSession()
        {
            Game.AddLoadingFile(1, "bombs/12.swf", "tank.resource.bombs.Bomb12");
            Game.AddLoadingFile(1, "bombs/41.swf", "tank.resource.bombs.Bomb41");

            remoteIds = new int[] { 101, 102 };
            livingIds = new int[] { 1001, 1002 };

            Game.LoadResources(livingIds);
            Game.LoadResources(remoteIds);

            Game.LoadNpcGameOverResources(livingIds);
            Game.LoadNpcGameOverResources(remoteIds);

            int[] mapIds = { 1096, 1098, 1111, 1104, 1100, 1094 };
            Game.SetMap(GetMapId(mapIds,1096));

            npcCreateParamSimple = new NpcCreateParam(2, 8, 1, 4, 5, 10);
            npcCreateParamNormal = new NpcCreateParam(3, 12, 1, 4, 5, 10);
            npcCreateParamHard = new NpcCreateParam(4, 16, 1, 4, 5, 10);
            npcCreateParamTerror = new NpcCreateParam(5, 20, 1, 4, 5, 10);

            ballIds = new Dictionary<int, int>();
            ballIds.Add(101, 12);
            ballIds.Add(102, 41);
            base.OnPrepareNewSession();
        }