添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,27 @@
-- 地图配置
scene_config = {
begin_pos = { x = 0.0, z = 0.0 },
size = { x = 1024.0, z = 1024.0 },
born_pos = { x = 777.090, y = 56.380, z = 923.411 },
born_rot = { x = 0.000, y = 92.392, z = 0.000 },
born_point_list = {
{ pos = { x = 777.090, y = 56.380, z = 923.411 }, rot = { x = 0.000, y = 92.392, z = 0.000 } }
},
die_y = -20,
city_id = 102,
vision_anchor = { x = 0.0, z = 0.0 }
}
-- 所有的区块
blocks = { 20136 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = 0.0, z = 0.0 }, max = { x = 1024.0, z = 1024.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,14 @@
-- 所有的group
groups = {
{ id = 220136001, pos = { x = 777.548, y = 0.000, z = 699.298 } },
{ id = 220136002, pos = { x = 818.869, y = 53.840, z = 922.456 } },
{ id = 220136003, pos = { x = 292.177, y = 71.660, z = 845.580 } },
{ id = 220136004, pos = { x = 775.964, y = 0.000, z = 676.209 } },
{ id = 220136005, pos = { x = 281.768, y = 0.000, z = 634.904 } },
{ id = 220136006, refresh_id = 1, pos = { x = 784.930, y = 23.514, z = 712.684 } },
{ id = 220136007, pos = { x = 775.964, y = 0.000, z = 676.209 } },
{ id = 220136008, pos = { x = 290.656, y = -6.680, z = 632.672 } },
{ id = 220136009, pos = { x = 773.554, y = 103.910, z = 769.895 } },
{ id = 220136010, pos = { x = 353.783, y = 91.855, z = 618.852 } },
{ id = 220136011, pos = { x = 778.656, y = 0.000, z = 685.036 } }
}
@@ -0,0 +1,30 @@
dummy_points = {
["diveinpoint1"] = { pos = { x = 769.918, y = 0.000, z = 675.895 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["diveinpoint2"] = { pos = { x = 294.635, y = 0.000, z = 636.618 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4007408"] = { pos = { x = 775.893, y = 78.766, z = 773.403 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4007507"] = { pos = { x = 772.656, y = 11.006, z = 804.750 }, rot = { x = 0.000, y = 182.065, z = 0.000 } },
["guide_Q4007611"] = { pos = { x = 320.742, y = 102.292, z = 731.399 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["guide_Q4007612"] = { pos = { x = 295.000, y = 0.594, z = 633.685 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007408_transmit"] = { pos = { x = 755.000, y = 56.883, z = 923.000 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q4007410_guide"] = { pos = { x = 775.414, y = 1.013, z = 676.828 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007412_guide"] = { pos = { x = 765.197, y = 0.000, z = 681.883 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007412_N10011"] = { pos = { x = 765.403, y = 0.000, z = 683.431 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q4007412_N10095"] = { pos = { x = 766.339, y = 0.000, z = 680.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007412_N1032"] = { pos = { x = 764.595, y = 0.000, z = 682.236 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["Q4007412_N1042"] = { pos = { x = 765.269, y = 0.000, z = 680.940 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007414_guide"] = { pos = { x = 775.951, y = 2.995, z = 657.253 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007506_guide"] = { pos = { x = 770.872, y = 0.000, z = 681.640 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007509_N10000005"] = { pos = { x = 745.027, y = 0.000, z = 662.278 }, rot = { x = 0.000, y = 94.671, z = 0.000 } },
["Q4007610_transmit"] = { pos = { x = 290.000, y = 71.696, z = 876.000 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["Q4007615_guide"] = { pos = { x = 294.103, y = 0.000, z = 633.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q4007615_N10095"] = { pos = { x = 293.098, y = 0.000, z = 633.701 }, rot = { x = 0.000, y = 90.000, z = 0.000 } },
["T4007412_N10000005"] = { pos = { x = 767.393, y = 0.000, z = 682.310 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["T4007412_N10012"] = { pos = { x = 766.396, y = 0.000, z = 683.089 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4007412_N1005"] = { pos = { x = 767.365, y = 0.000, z = 681.263 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["T4007615_fischl"] = { pos = { x = 294.326, y = 0.000, z = 634.942 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["T4007615_kazuha"] = { pos = { x = 295.007, y = 0.000, z = 633.791 }, rot = { x = 0.000, y = 280.000, z = 0.000 } },
["T4007615_oz"] = { pos = { x = 293.658, y = 0.000, z = 634.799 }, rot = { x = 0.000, y = 150.000, z = 0.000 } },
["T4007615_paimon"] = { pos = { x = 294.662, y = 0.000, z = 632.866 }, rot = { x = 0.000, y = 330.000, z = 0.000 } },
["T4007615_player"] = { pos = { x = 293.756, y = 0.000, z = 632.576 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T4007615_xinyan"] = { pos = { x = 295.013, y = 0.000, z = 634.766 }, rot = { x = 0.000, y = 230.000, z = 0.000 } }
}
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,342 @@
-- 基础信息
local base_info = {
group_id = 220136004
}
-- DEFS_MISCS
local defs = {
queue = {
[1] = { config_id = 4010, bullet_type = 3, duration = 5, shoot_time = 6, shoot_interval = 0.6, point_array = 2, point_id = {1,2},route_type = 1},
[2] = { config_id = 4040, bullet_type = 2, duration = 5, shoot_time = 6, shoot_interval = 0.6, point_array = 9, point_id = {1,2},route_type = 1},
[3] = { config_id = 4003, bullet_type = 1, duration = 5, shoot_time = 8, shoot_interval = 0.3, point_array = 7, point_id = {1,2},turn_mode = true,route_type = 1},
[4] = { config_id = 4012, bullet_type = 1, duration = 5, shoot_time = 8, shoot_interval = 0.3, point_array = 3, point_id = {2,1},turn_mode = true,route_type = 1},
[5] ={ config_id = 4011, bullet_type = 1, duration = 5, shoot_time = 10, shoot_interval = 0.25, point_array = 4, point_id = {1,2},route_type = 1},
[6] = { config_id = 4013, bullet_type = 1, duration = 5, shoot_time = 5, shoot_interval = 0.5, point_array = 5, point_id = {1,2},route_type = 1},
[7] = { config_id = 4035, bullet_type = 1, duration = 0, shoot_time = 5, shoot_interval = 0.4, point_array = 10, point_id = {1,2},turn_mode = true,route_type = 1},
[8] = { config_id = 4036, bullet_type = 1, duration = 0, shoot_time = 5, shoot_interval = 0.4, point_array = 10, point_id = {3,1},turn_mode = true,route_type = 1},
[9] = { config_id = 4037, bullet_type = 1, duration = 0, shoot_time = 5, shoot_interval = 0.4, point_array = 11, point_id = {2,3},turn_mode = true,route_type = 1},
[10] = { config_id = 4038, bullet_type = 1, duration = 5, shoot_time = 5, shoot_interval = 0.4, point_array = 11, point_id = {1,2},turn_mode = true,route_type = 1},
[11] = { config_id = 4011, bullet_type = 1, duration = 0, shoot_time = 10, shoot_interval = 0.5, point_array = 14, point_id = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36},route_type = 1},
[12] = { config_id = 4003, bullet_type = 1, duration = 0, shoot_time = 10, shoot_interval = 0.5, point_array = 14, point_id = {10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,1,2,3,4,5,6,7,8,9},route_type = 1},
[13] = { config_id = 4037, bullet_type = 1, duration = 10, shoot_time = 10, shoot_interval = 0.5, point_array = 14, point_id = {21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20},route_type = 1},
[14] = { config_id = 4039, bullet_type = 3, duration = 0, shoot_time = 10, shoot_interval = 0.5, point_array = 12, point_id = {1,2},turn_mode = true,route_type = 1},
[15] = { config_id = 4041, bullet_type = 3, duration = 0, shoot_time = 10, shoot_interval = 0.5, point_array = 13, point_id = {1,2},turn_mode = true,route_type = 1},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[4001] = { config_id = 4001, gadget_id = 70310439, pos = { x = 775.951, y = 0.000, z = 657.253 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true },
-- 左
[4003] = { config_id = 4003, gadget_id = 70310246, pos = { x = 787.884, y = 0.000, z = 676.853 }, rot = { x = 0.000, y = 309.809, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[4004] = { config_id = 4004, gadget_id = 70310240, pos = { x = 783.154, y = 0.000, z = 686.199 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4005] = { config_id = 4005, gadget_id = 70310180, pos = { x = 778.165, y = 0.000, z = 678.602 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 左
[4010] = { config_id = 4010, gadget_id = 70310246, pos = { x = 787.884, y = 0.000, z = 676.853 }, rot = { x = 0.000, y = 270.274, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 上
[4011] = { config_id = 4011, gadget_id = 70310246, pos = { x = 785.197, y = 0.000, z = 663.463 }, rot = { x = 0.000, y = 359.295, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 右
[4012] = { config_id = 4012, gadget_id = 70310246, pos = { x = 763.195, y = 0.000, z = 677.645 }, rot = { x = 0.000, y = 131.992, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 下
[4013] = { config_id = 4013, gadget_id = 70310246, pos = { x = 766.672, y = 0.000, z = 687.847 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[4015] = { config_id = 4015, gadget_id = 70310240, pos = { x = 779.139, y = 0.000, z = 686.199 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4016] = { config_id = 4016, gadget_id = 70310240, pos = { x = 775.121, y = 0.000, z = 686.199 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4017] = { config_id = 4017, gadget_id = 70310240, pos = { x = 771.258, y = 0.000, z = 686.199 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4018] = { config_id = 4018, gadget_id = 70310240, pos = { x = 767.866, y = 0.000, z = 686.199 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4019] = { config_id = 4019, gadget_id = 70310240, pos = { x = 785.466, y = 0.000, z = 672.682 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[4020] = { config_id = 4020, gadget_id = 70310240, pos = { x = 785.468, y = 0.000, z = 676.700 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[4021] = { config_id = 4021, gadget_id = 70310240, pos = { x = 785.468, y = 0.000, z = 680.563 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[4022] = { config_id = 4022, gadget_id = 70310240, pos = { x = 785.469, y = 0.000, z = 683.955 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[4023] = { config_id = 4023, gadget_id = 70310240, pos = { x = 785.466, y = 0.000, z = 668.667 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[4024] = { config_id = 4024, gadget_id = 70310240, pos = { x = 765.866, y = 0.000, z = 672.682 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[4025] = { config_id = 4025, gadget_id = 70310240, pos = { x = 765.867, y = 0.000, z = 676.700 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[4026] = { config_id = 4026, gadget_id = 70310240, pos = { x = 765.868, y = 0.000, z = 680.563 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[4027] = { config_id = 4027, gadget_id = 70310240, pos = { x = 765.868, y = 0.000, z = 683.955 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[4028] = { config_id = 4028, gadget_id = 70310240, pos = { x = 765.865, y = 0.000, z = 668.667 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[4029] = { config_id = 4029, gadget_id = 70310240, pos = { x = 783.397, y = 0.000, z = 667.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4030] = { config_id = 4030, gadget_id = 70310240, pos = { x = 779.382, y = 0.000, z = 667.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4031] = { config_id = 4031, gadget_id = 70310240, pos = { x = 775.364, y = 0.000, z = 667.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4032] = { config_id = 4032, gadget_id = 70310240, pos = { x = 771.501, y = 0.000, z = 667.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4033] = { config_id = 4033, gadget_id = 70310240, pos = { x = 768.109, y = 0.000, z = 667.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 右移动
[4034] = { config_id = 4034, gadget_id = 70310246, pos = { x = 763.195, y = 0.000, z = 677.645 }, rot = { x = 359.352, y = 91.158, z = 348.188 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 左上
[4035] = { config_id = 4035, gadget_id = 70310246, pos = { x = 787.494, y = 0.000, z = 665.303 }, rot = { x = 0.000, y = 270.272, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 右上
[4036] = { config_id = 4036, gadget_id = 70310246, pos = { x = 764.267, y = 0.000, z = 665.301 }, rot = { x = 0.000, y = 358.210, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 右下
[4037] = { config_id = 4037, gadget_id = 70310246, pos = { x = 763.569, y = 0.000, z = 687.659 }, rot = { x = 0.000, y = 90.315, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 左下
[4038] = { config_id = 4038, gadget_id = 70310246, pos = { x = 788.399, y = 0.000, z = 687.523 }, rot = { x = 0.000, y = 180.215, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 上旋转
[4039] = { config_id = 4039, gadget_id = 70310246, pos = { x = 774.235, y = 0.000, z = 664.033 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 右
[4040] = { config_id = 4040, gadget_id = 70310246, pos = { x = 763.195, y = 0.000, z = 677.645 }, rot = { x = 0.000, y = 90.112, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 下
[4041] = { config_id = 4041, gadget_id = 70310246, pos = { x = 776.128, y = 0.000, z = 688.840 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[4045] = { config_id = 4045, gadget_id = 70310148, pos = { x = 776.183, y = 0.225, z = 676.312 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4046] = { config_id = 4046, gadget_id = 70360001, pos = { x = 775.998, y = 0.000, z = 675.855 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
[4002] = { config_id = 4002, shape = RegionShape.SPHERE, radius = 3, pos = { x = 775.951, y = 0.000, z = 657.253 } },
-- 到达底部
[4043] = { config_id = 4043, shape = RegionShape.SPHERE, radius = 7, pos = { x = 775.473, y = -1.185, z = 676.840 } },
-- 失败重新挑战
[4048] = { config_id = 4048, shape = RegionShape.SPHERE, radius = 7, pos = { x = 775.473, y = -1.185, z = 676.840 }, team_ability_group_list = { "MonaDreamland_Enter_StartChallenge_Handle" } }
}
-- 触发器
triggers = {
{ config_id = 1004002, name = "ENTER_REGION_4002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4002", action = "action_EVENT_ENTER_REGION_4002", trigger_count = 0 },
{ config_id = 1004008, name = "CHALLENGE_SUCCESS_4008", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "260", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_4008", trigger_count = 0 },
{ config_id = 1004009, name = "CHALLENGE_FAIL_4009", event = EventType.EVENT_CHALLENGE_FAIL, source = "260", condition = "", action = "action_EVENT_CHALLENGE_FAIL_4009", trigger_count = 0 },
{ config_id = 1004014, name = "QUEST_START_4014", event = EventType.EVENT_QUEST_START, source = "4007410", condition = "condition_EVENT_QUEST_START_4014", action = "action_EVENT_QUEST_START_4014", trigger_count = 0 },
-- 到达底部
{ config_id = 1004043, name = "ENTER_REGION_4043", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4043", action = "action_EVENT_ENTER_REGION_4043", trigger_count = 0 },
-- 加保底光柱提示
{ config_id = 1004044, name = "GROUP_LOAD_4044", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_4044", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "once", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 4006, gadget_id = 70350083, pos = { x = 775.999, y = 0.000, z = 677.671 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 175 } } }
},
triggers = {
{ config_id = 1004007, name = "SELECT_OPTION_4007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4007", action = "action_EVENT_SELECT_OPTION_4007", trigger_count = 0 },
{ config_id = 1004042, name = "GROUP_LOAD_4042", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_4042", trigger_count = 0 },
{ config_id = 1004047, name = "TIME_AXIS_PASS_4047", event = EventType.EVENT_TIME_AXIS_PASS, source = "star", condition = "", action = "action_EVENT_TIME_AXIS_PASS_4047", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 4,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4046 },
regions = { 4043, 4048 },
triggers = { "CHALLENGE_SUCCESS_4008", "CHALLENGE_FAIL_4009", "QUEST_START_4014", "ENTER_REGION_4043", "GROUP_LOAD_4044" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 4001 },
regions = { 4002 },
triggers = { "ENTER_REGION_4002" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 4003, 4004, 4005, 4010, 4011, 4012, 4013, 4015, 4016, 4017, 4018, 4019, 4020, 4021, 4022, 4023, 4024, 4025, 4026, 4027, 4028, 4029, 4030, 4031, 4032, 4033, 4034, 4035, 4036, 4037, 4038, 4039, 4040, 4041 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 4045 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_4002(context, evt)
if evt.param1 ~= 4002 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_4002(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "challenge1complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_4008(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220136004, 2)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220136004, 3)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "ballchallengecomplete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 将本组内变量名为 "star_shooter" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "star_shooter", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_4009(context, evt)
-- 将本组内变量名为 "star_shooter" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "star_shooter", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220136004, 3)
-- 创建id为4045的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4045 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_4014(context, evt)
-- 判断变量"once"为0
if ScriptLib.GetGroupVariableValue(context, "once") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_4014(context, evt)
-- 创建父挑战
ScriptLib.CreateFatherChallenge(context, 260, 262, 61, {success = 1, fail = 1, fail_on_wipe = true})
ScriptLib.StartFatherChallenge(context, 260)
ScriptLib.AttachChildChallenge(context, 260, 262, 260,{3, 777, 30, 0, 0},{},{success=1, fail=1})
ScriptLib.AttachChildChallenge(context, 260, 261, 261,{60, 0},{},{success=1, fail=1})
ScriptLib.SetGroupVariableValue(context, "star_shooter", 1)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220136004, 3)
ScriptLib.SetGroupVariableValue(context, "once", 1)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4043(context, evt)
if evt.param1 ~= 4043 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_4043(context, evt)
ScriptLib.AddQuestProgress(context, "monamaze1complete")
ScriptLib.KillEntityByConfigId(context, { config_id = 4045 })
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_4044(context, evt)
ScriptLib.SetGroupVariableValue(context, "once", 0)
if ScriptLib.GetHostQuestState(context,4007408)==2 then
ScriptLib.CreateGadget(context, { config_id = 4045 })
end
return 0
end
require "V2_8/StarShooter"
@@ -0,0 +1,137 @@
-- 基础信息
local base_info = {
group_id = 220136005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5004, gadget_id = 70310244, pos = { x = 277.390, y = 0.594, z = 633.685 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, route_id = 122 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005001, name = "QUEST_START_5001", event = EventType.EVENT_QUEST_START, source = "4007612", condition = "", action = "action_EVENT_QUEST_START_5001", trigger_count = 0 },
-- 4007612 任务保底
{ config_id = 1005002, name = "QUEST_START_5002", event = EventType.EVENT_QUEST_START, source = "4007612", condition = "condition_EVENT_QUEST_START_5002", action = "action_EVENT_QUEST_START_5002", trigger_count = 0 },
{ config_id = 1005005, name = "ANY_GADGET_DIE_5005", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_5005", action = "action_EVENT_ANY_GADGET_DIE_5005", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 1,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5004 },
regions = { },
triggers = { "QUEST_START_5001", "QUEST_START_5002", "ANY_GADGET_DIE_5005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "QUEST_START_5001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_START_5001(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220136005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_START_5002(context, evt)
-- 判断指定group组剩余gadget数量是否是0
if ScriptLib.CheckRemainGadgetCountByGroupId(context, {group_id = 220136005}) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_5002(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "challenge3complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_5005(context, evt)
if 5004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_5005(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "challenge3complete") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,191 @@
-- 基础信息
local base_info = {
group_id = 220136006
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{ [6001] = 6002,
[6002] = 6003,
[6003] = 6004,
[6004] = 6005,
[6005] = 6025,
[6006] = 6005,
[6007] = 6008,
[6008] = 6026
,
[6009] = 6027,
[6010] = 6031,
[6011] = 6012,
[6012] = 6013,
[6013] = 6027,
[6014] = 6011,
[6015] = 6014,
[6016] = 6015,
[6017] = 6015,
[6018] = 6017,
[6019] = 6018,
[6020] = 6019,
[6021] = 6020,
[6022] = 6021,
[6023] = 6022,
[6024] = 6008,
[6025] = 6005,
[6025] = 6005,
[6026] = 0,
[6027] = 6013,
[6028] = 6027,
[6029] = 6028,
[6030] = 6029,
[6031] = 6030,
},
--形态2
[2] =
{
[35001] = 35003,
[35002] = 35004,
[35003] = 35004,
[35004] = 35006,
[35005] = 35001,
[35006] = 35001,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[6001] = { config_id = 6001, gadget_id = 70310179, pos = { x = 773.586, y = 14.036, z = 759.380 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6002] = { config_id = 6002, gadget_id = 70310179, pos = { x = 773.507, y = 24.296, z = 751.430 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6003] = { config_id = 6003, gadget_id = 70310179, pos = { x = 765.080, y = 24.352, z = 751.386 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6004] = { config_id = 6004, gadget_id = 70310179, pos = { x = 764.821, y = 34.298, z = 743.680 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6005] = { config_id = 6005, gadget_id = 70310179, pos = { x = 769.372, y = 34.213, z = 743.746 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6006] = { config_id = 6006, gadget_id = 70310179, pos = { x = 769.453, y = 44.002, z = 736.163 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6007] = { config_id = 6007, gadget_id = 70310179, pos = { x = 765.129, y = 27.933, z = 748.613 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6008] = { config_id = 6008, gadget_id = 70310179, pos = { x = 773.546, y = 28.207, z = 748.400 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6009] = { config_id = 6009, gadget_id = 70310179, pos = { x = 787.339, y = 27.933, z = 748.613 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6010] = { config_id = 6010, gadget_id = 70310179, pos = { x = 773.511, y = 37.783, z = 740.981 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6011] = { config_id = 6011, gadget_id = 70310179, pos = { x = 778.736, y = 20.170, z = 754.627 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6012] = { config_id = 6012, gadget_id = 70310179, pos = { x = 778.736, y = 23.933, z = 751.712 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6013] = { config_id = 6013, gadget_id = 70310179, pos = { x = 782.652, y = 23.933, z = 751.712 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6014] = { config_id = 6014, gadget_id = 70310179, pos = { x = 791.823, y = 20.170, z = 754.627 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6015] = { config_id = 6015, gadget_id = 70310179, pos = { x = 791.823, y = 23.899, z = 751.737 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6016] = { config_id = 6016, gadget_id = 70310179, pos = { x = 787.495, y = 23.899, z = 751.737 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6017] = { config_id = 6017, gadget_id = 70310179, pos = { x = 791.823, y = 31.069, z = 746.183 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6018] = { config_id = 6018, gadget_id = 70310179, pos = { x = 799.341, y = 31.069, z = 746.183 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6019] = { config_id = 6019, gadget_id = 70310179, pos = { x = 799.341, y = 34.371, z = 743.624 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6020] = { config_id = 6020, gadget_id = 70310179, pos = { x = 782.760, y = 34.656, z = 743.403 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6021] = { config_id = 6021, gadget_id = 70310179, pos = { x = 782.782, y = 40.923, z = 738.548 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6022] = { config_id = 6022, gadget_id = 70310179, pos = { x = 773.718, y = 40.923, z = 738.548 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6023] = { config_id = 6023, gadget_id = 70310179, pos = { x = 773.718, y = 44.410, z = 735.845 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6024] = { config_id = 6024, gadget_id = 70310179, pos = { x = 773.718, y = 31.482, z = 745.862 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6025] = { config_id = 6025, gadget_id = 70310179, pos = { x = 769.372, y = 31.547, z = 745.812 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6026] = { config_id = 6026, gadget_id = 70310179, pos = { x = 778.683, y = 28.207, z = 748.400 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6027] = { config_id = 6027, gadget_id = 70310179, pos = { x = 782.616, y = 28.207, z = 748.400 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6028] = { config_id = 6028, gadget_id = 70310179, pos = { x = 782.616, y = 31.608, z = 745.765 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6029] = { config_id = 6029, gadget_id = 70310179, pos = { x = 778.482, y = 31.608, z = 745.765 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6030] = { config_id = 6030, gadget_id = 70310179, pos = { x = 778.366, y = 34.752, z = 743.329 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 },
[6031] = { config_id = 6031, gadget_id = 70310179, pos = { x = 773.603, y = 34.752, z = 743.329 }, rot = { x = 307.768, y = 180.000, z = 180.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006032, name = "GROUP_LOAD_6032", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_6032", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "finish", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001, 6002, 6003, 6004, 6005, 6006, 6007, 6008, 6009, 6010, 6011, 6012, 6013, 6014, 6015, 6016, 6017, 6018, 6019, 6020, 6021, 6022, 6023, 6024, 6025, 6026, 6027, 6028, 6029, 6030, 6031 },
regions = { },
triggers = { "GROUP_LOAD_6032" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_LOAD_6032" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_LOAD_6032" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_LOAD_6032(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220136006, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,334 @@
-- 基础信息
local base_info = {
group_id = 220136007
}
-- DEFS_MISCS
local defs = {
queue = {
[1] = { config_id = 7006, bullet_type = 3, duration = 5, shoot_time = 8, shoot_interval = 0.75, point_array = 3, point_id = {1,2},turn_mode = true,route_type = 1},
--右转
[2] = { config_id = 7004, bullet_type = 2, duration = 5, shoot_time = 8, shoot_interval = 0.75, point_array = 2, point_id = {1,2},route_type = 1},
--上不规则移动单
[3] = { config_id = 7013, bullet_type = 1, duration = 0, shoot_time = 30, shoot_interval = 0.5, point_array = 15, point_id = {1,2,3,4},turn_mode = true,route_type = 2},
--下往复旋转发五个
[4] = { config_id = 7006, bullet_type = 3, duration = 1, shoot_time = 10, shoot_interval = 1, point_array = 9, point_id = {1,2},route_type = 1},
[5] = { config_id = 7004, bullet_type = 3, duration = 9, shoot_time = 9, shoot_interval = 1, point_array = 2, point_id = {1,2},route_type = 1},
[6] = { config_id = 7005, bullet_type = 3, duration = 2, shoot_time = 7, shoot_interval = 0.5, point_array = 12, point_id = {1,2},turn_mode = true,route_type = 1},
[7] = { config_id = 7007, bullet_type = 3, duration = 3, shoot_time = 8, shoot_interval = 0.5, point_array = 13, point_id = {1,2},turn_mode = true,route_type = 1},
[8] = { config_id = 7007, bullet_type = 1, duration = 5, shoot_time = 10, shoot_interval = 0.5, point_array = 13, point_id = {1,2},turn_mode = true,route_type = 1},
[9] = { config_id = 7014, bullet_type = 1, duration = 0, shoot_time = 10, shoot_interval = 0.5, point_array = 10, point_id = {1,2},turn_mode = true,route_type = 1},
[10] = { config_id = 7015, bullet_type = 1, duration = 0, shoot_time = 10, shoot_interval = 0.5, point_array = 10, point_id = {3,1},turn_mode = true,route_type = 1},
[11] = { config_id = 7016, bullet_type = 1, duration = 0, shoot_time = 10, shoot_interval = 0.5, point_array = 11, point_id = {2,3},turn_mode = true,route_type = 1},
[12] = { config_id = 7017, bullet_type = 1, duration = 10, shoot_time = 10, shoot_interval = 0.5, point_array = 11, point_id = {1,2},turn_mode = true,route_type = 1},
[13] = { config_id = 7005, bullet_type = 2, duration = 0, shoot_time = 15, shoot_interval = 1, point_array = 14, point_id = {1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36},route_type = 1},
[14] = { config_id = 7007, bullet_type = 2, duration = 10, shoot_time = 15, shoot_interval = 1, point_array = 14, point_id = {18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17},route_type = 1},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[7001] = { config_id = 7001, gadget_id = 70310439, pos = { x = 775.951, y = 0.000, z = 657.253 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
[7002] = { config_id = 7002, gadget_id = 70310180, pos = { x = 778.165, y = 0.000, z = 678.602 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7003] = { config_id = 7003, gadget_id = 70350083, pos = { x = 775.999, y = 0.000, z = 677.671 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 175 } } },
-- 左
[7004] = { config_id = 7004, gadget_id = 70310246, pos = { x = 796.446, y = 0.000, z = 677.237 }, rot = { x = 0.000, y = 270.274, z = 0.000 }, level = 1, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 上
[7005] = { config_id = 7005, gadget_id = 70310246, pos = { x = 775.962, y = 0.000, z = 652.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 右
[7006] = { config_id = 7006, gadget_id = 70310246, pos = { x = 756.540, y = 0.000, z = 677.251 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 下
[7007] = { config_id = 7007, gadget_id = 70310246, pos = { x = 777.737, y = 0.000, z = 696.852 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 中心
[7013] = { config_id = 7013, gadget_id = 70310246, pos = { x = 775.807, y = 0.000, z = 677.333 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 左上
[7014] = { config_id = 7014, gadget_id = 70310246, pos = { x = 787.494, y = 0.000, z = 665.303 }, rot = { x = 0.000, y = 352.994, z = 0.000 }, level = 1, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 右上
[7015] = { config_id = 7015, gadget_id = 70310246, pos = { x = 764.267, y = 0.000, z = 665.301 }, rot = { x = 0.000, y = 358.210, z = 0.000 }, level = 1, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 右下
[7016] = { config_id = 7016, gadget_id = 70310246, pos = { x = 763.569, y = 0.000, z = 687.659 }, rot = { x = 0.000, y = 90.315, z = 0.000 }, level = 1, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
-- 左下
[7017] = { config_id = 7017, gadget_id = 70310246, pos = { x = 788.399, y = 0.000, z = 687.523 }, rot = { x = 0.000, y = 180.215, z = 0.000 }, level = 1, persistent = true, is_use_point_array = true, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
[7018] = { config_id = 7018, gadget_id = 70310240, pos = { x = 783.154, y = 1.558, z = 686.268 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7019] = { config_id = 7019, gadget_id = 70310240, pos = { x = 779.139, y = 1.558, z = 686.268 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7020] = { config_id = 7020, gadget_id = 70310240, pos = { x = 775.121, y = 1.558, z = 686.268 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7021] = { config_id = 7021, gadget_id = 70310240, pos = { x = 771.258, y = 1.558, z = 686.268 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7022] = { config_id = 7022, gadget_id = 70310240, pos = { x = 767.866, y = 1.558, z = 686.268 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7023] = { config_id = 7023, gadget_id = 70310240, pos = { x = 785.466, y = 1.558, z = 672.682 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7024] = { config_id = 7024, gadget_id = 70310240, pos = { x = 785.468, y = 1.558, z = 676.700 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7025] = { config_id = 7025, gadget_id = 70310240, pos = { x = 785.468, y = 1.558, z = 680.563 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7026] = { config_id = 7026, gadget_id = 70310240, pos = { x = 785.469, y = 1.558, z = 683.955 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7027] = { config_id = 7027, gadget_id = 70310240, pos = { x = 785.466, y = 1.558, z = 668.667 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7028] = { config_id = 7028, gadget_id = 70310240, pos = { x = 765.866, y = 1.558, z = 672.682 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7029] = { config_id = 7029, gadget_id = 70310240, pos = { x = 765.867, y = 1.558, z = 676.700 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7030] = { config_id = 7030, gadget_id = 70310240, pos = { x = 765.868, y = 1.558, z = 680.563 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7031] = { config_id = 7031, gadget_id = 70310240, pos = { x = 765.868, y = 1.558, z = 683.955 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7032] = { config_id = 7032, gadget_id = 70310240, pos = { x = 765.865, y = 1.558, z = 668.667 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7033] = { config_id = 7033, gadget_id = 70310240, pos = { x = 783.397, y = 1.558, z = 667.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7034] = { config_id = 7034, gadget_id = 70310240, pos = { x = 779.382, y = 1.558, z = 667.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7035] = { config_id = 7035, gadget_id = 70310240, pos = { x = 775.364, y = 1.558, z = 667.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7036] = { config_id = 7036, gadget_id = 70310240, pos = { x = 771.501, y = 1.558, z = 667.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7037] = { config_id = 7037, gadget_id = 70310240, pos = { x = 768.109, y = 1.558, z = 667.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- -
[7038] = { config_id = 7038, gadget_id = 70310240, pos = { x = 783.154, y = 4.999, z = 686.450 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7039] = { config_id = 7039, gadget_id = 70310240, pos = { x = 779.139, y = 4.999, z = 686.450 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7040] = { config_id = 7040, gadget_id = 70310240, pos = { x = 775.121, y = 4.999, z = 686.450 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7041] = { config_id = 7041, gadget_id = 70310240, pos = { x = 771.258, y = 4.999, z = 686.450 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7042] = { config_id = 7042, gadget_id = 70310240, pos = { x = 767.866, y = 4.999, z = 686.450 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7043] = { config_id = 7043, gadget_id = 70310240, pos = { x = 785.466, y = 4.999, z = 672.485 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7044] = { config_id = 7044, gadget_id = 70310240, pos = { x = 785.468, y = 4.999, z = 676.700 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7045] = { config_id = 7045, gadget_id = 70310240, pos = { x = 785.468, y = 4.999, z = 680.563 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7046] = { config_id = 7046, gadget_id = 70310240, pos = { x = 785.469, y = 4.999, z = 683.955 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7047] = { config_id = 7047, gadget_id = 70310240, pos = { x = 785.466, y = 4.999, z = 668.667 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7048] = { config_id = 7048, gadget_id = 70310240, pos = { x = 765.866, y = 4.999, z = 672.682 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7049] = { config_id = 7049, gadget_id = 70310240, pos = { x = 765.867, y = 4.999, z = 676.700 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7050] = { config_id = 7050, gadget_id = 70310240, pos = { x = 765.868, y = 4.999, z = 680.563 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7051] = { config_id = 7051, gadget_id = 70310240, pos = { x = 765.868, y = 4.999, z = 683.955 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7052] = { config_id = 7052, gadget_id = 70310240, pos = { x = 765.865, y = 4.999, z = 668.667 }, rot = { x = 0.000, y = 90.014, z = 0.000 }, level = 1 },
[7053] = { config_id = 7053, gadget_id = 70310240, pos = { x = 783.397, y = 4.999, z = 667.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7054] = { config_id = 7054, gadget_id = 70310240, pos = { x = 779.382, y = 4.999, z = 667.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7055] = { config_id = 7055, gadget_id = 70310240, pos = { x = 775.364, y = 4.999, z = 667.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7056] = { config_id = 7056, gadget_id = 70310240, pos = { x = 771.501, y = 4.999, z = 667.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7057] = { config_id = 7057, gadget_id = 70310240, pos = { x = 768.109, y = 4.999, z = 667.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[7058] = { config_id = 7058, gadget_id = 70310241, pos = { x = 774.268, y = 7.440, z = 677.046 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
[7008] = { config_id = 7008, shape = RegionShape.SPHERE, radius = 3, pos = { x = 775.951, y = 0.000, z = 657.253 } }
}
-- 触发器
triggers = {
{ config_id = 1007008, name = "ENTER_REGION_7008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7008", action = "action_EVENT_ENTER_REGION_7008", trigger_count = 0 },
{ config_id = 1007009, name = "SELECT_OPTION_7009", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7009", action = "action_EVENT_SELECT_OPTION_7009", trigger_count = 0 },
{ config_id = 1007010, name = "CHALLENGE_SUCCESS_7010", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "262", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_7010", trigger_count = 0 },
{ config_id = 1007011, name = "CHALLENGE_FAIL_7011", event = EventType.EVENT_CHALLENGE_FAIL, source = "262", condition = "", action = "action_EVENT_CHALLENGE_FAIL_7011", trigger_count = 0 },
-- 刷新时把别的传送门保证刷掉
{ config_id = 1007059, name = "GROUP_REFRESH_7059", event = EventType.EVENT_GROUP_REFRESH, source = "", condition = "", action = "action_EVENT_GROUP_REFRESH_7059", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 7012, gadget_id = 70211121, pos = { x = 775.341, y = 0.000, z = 664.425 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 16, drop_tag = "解谜高级群岛", isOneoff = true, persistent = true }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 4,
end_suite = 5,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7003 },
regions = { },
triggers = { "SELECT_OPTION_7009", "CHALLENGE_SUCCESS_7010", "CHALLENGE_FAIL_7011", "GROUP_REFRESH_7059" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 7001 },
regions = { 7008 },
triggers = { "ENTER_REGION_7008" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 7002, 7004, 7005, 7006, 7007, 7013, 7014, 7015, 7016, 7017, 7018, 7019, 7020, 7021, 7022, 7023, 7024, 7025, 7026, 7027, 7028, 7029, 7030, 7031, 7032, 7033, 7034, 7035, 7036, 7037, 7038, 7039, 7040, 7041, 7042, 7043, 7044, 7045, 7046, 7047, 7048, 7049, 7050, 7051, 7052, 7053, 7054, 7055, 7056, 7057, 7058 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_7008(context, evt)
if evt.param1 ~= 7008 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_7008(context, evt)
ScriptLib.AddQuestProgress(context, "dreamback1")
ScriptLib.GoToGroupSuite(context, 220136007, 5)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_7009(context, evt)
-- 判断是gadgetid 7003 option_id 175
if 7003 ~= evt.param1 then
return false
end
if 175 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_7009(context, evt)
-- 创建父挑战
ScriptLib.CreateFatherChallenge(context, 262, 262, 61, {success = 1, fail = 1, fail_on_wipe = true})
-- 在父挑战上创建编号为260的子挑战。,EVENT_VARIABLE_CHANGE,Tag = 777, 触发次数为
ScriptLib.AttachChildChallenge(context, 262, 260, 260,{3, 777, 10, 0, 0},{},{success=1, fail=1})
ScriptLib.AttachChildChallenge(context, 262, 261, 261,{60, 0},{},{success=1, fail=1})
ScriptLib.StartFatherChallenge(context, 262)
-- 将本组内变量名为 "star_shooter" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "star_shooter", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220136007, 3)
-- 删除指定group 220136004 ;指定config7003;物件身上指定option175
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220136007, 7003, 175) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_7010(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220136007, 2)
-- 将本组内变量名为 "star_shooter" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "star_shooter", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220136007, 3)
-- 将configid为 7003 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7003, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_7011(context, evt)
-- 将本组内变量名为 "star_shooter" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "star_shooter", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220136007, 3)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220136007, 7003, {175}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_REFRESH_7059(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220136004, suite = 4 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
require "V2_8/StarShooter"
@@ -0,0 +1,598 @@
-- 基础信息
local base_info = {
group_id = 220136008
}
-- DEFS_MISCS
local defs = {
is_movable = 1,
--连线形态
patterns =
{
--形态1
[1] = {
[8001] = {connect =8004 , point_array = 8, point_id = {1}} ,
[8002] = {connect =8006 , point_array = 8, point_id = {2}} ,
[8003] = {connect =8002 , point_array = 8, point_id = {3}} ,
[8004] = {connect =8003, point_array = 8, point_id = {4}} ,
[8005] = {connect =8006, point_array = 8, point_id = {5}} ,
[8006] = {connect =8005, point_array = 8, point_id = {6}} ,
},
--形态2
[2] = {
[8001] = {connect =8004 , point_array = 0, point_id = {0}} ,
[8002] = {connect =8006 , point_array = 0, point_id = {0}} ,
[8003] = {connect =8002 , point_array = 8, point_id = {1}} ,
[8004] = {connect =8003, point_array = 0, point_id = {0}} ,
[8005] = {connect =8006, point_array = 0, point_id = {0}} ,
[8006] = {connect =8005, point_array = 0, point_id = {0}} ,
},
[3] = {
[8001] = {connect =8004 , point_array = 0, point_id = {0}} ,
[8002] = {connect =8006 , point_array = 0, point_id = {0}} ,
[8003] = {connect =8002 , point_array = 8, point_id = {2}} ,
[8004] = {connect =8003, point_array = 0, point_id = {0}} ,
[8005] = {connect =8006, point_array = 0, point_id = {0}} ,
[8006] = {connect =8005, point_array = 0, point_id = {0}} ,
},
[4] = {
[8001] = {connect =8004 , point_array = 0, point_id = {0}} ,
[8002] = {connect =8006 , point_array = 0, point_id = {0}} ,
[8003] = {connect =8002 , point_array = 8, point_id = {3}} ,
[8004] = {connect =8003, point_array = 0, point_id = {0}} ,
[8005] = {connect =8006, point_array = 0, point_id = {0}} ,
[8006] = {connect =8005, point_array = 0, point_id = {0}} ,
},
[5] = {
[8001] = {connect =8004 , point_array = 0, point_id = {0}} ,
[8002] = {connect =8006 , point_array = 0, point_id = {0}} ,
[8003] = {connect =8002 , point_array = 8, point_id = {4}} ,
[8004] = {connect =8003, point_array = 0, point_id = {0}} ,
[8005] = {connect =8006, point_array = 0, point_id = {0}} ,
[8006] = {connect =8005, point_array = 0, point_id = {0}} ,
},
[6] = {
[8001] = {connect =8004 , point_array = 0, point_id = {0}} ,
[8002] = {connect =8006 , point_array = 0, point_id = {0}} ,
[8003] = {connect =8002 , point_array = 8, point_id = {5}} ,
[8004] = {connect =8003, point_array = 0, point_id = {0}} ,
[8005] = {connect =8006, point_array = 0, point_id = {0}} ,
[8006] = {connect =8005, point_array = 0, point_id = {0}} ,
},
[7] = {
[8001] = {connect =8004 , point_array = 0, point_id = {0}} ,
[8002] = {connect =8006 , point_array = 0, point_id = {0}} ,
[8003] = {connect =8002 , point_array = 8, point_id = {6}} ,
[8004] = {connect =8003, point_array = 0, point_id = {0}} ,
[8005] = {connect =8006, point_array = 0, point_id = {0}} ,
[8006] = {connect =8005, point_array = 0, point_id = {0}} ,
},
[8] = {
[8001] = {connect =8004 , point_array = 0, point_id = {0}} ,
[8002] = {connect =8006 , point_array = 0, point_id = {0}} ,
[8003] = {connect =8002 , point_array = 8, point_id = {7}} ,
[8004] = {connect =8003, point_array = 0, point_id = {0}} ,
[8005] = {connect =8006, point_array = 0, point_id = {0}} ,
[8006] = {connect =8005, point_array = 0, point_id = {0}} ,
},
[9]= {
[8001] = {connect =8004 , point_array = 0, point_id = {0}} ,
[8002] = {connect =8006 , point_array = 0, point_id = {0}} ,
[8003] = {connect =8002 , point_array = 8, point_id = {8}} ,
[8004] = {connect =8003, point_array = 0, point_id = {0}} ,
[8005] = {connect =8006, point_array = 0, point_id = {0}} ,
[8006] = {connect =8005, point_array = 0, point_id = {0}} ,
},
[10] = {
[8001] = {connect =8004 , point_array = 0, point_id = {0}} ,
[8002] = {connect =8006 , point_array = 0, point_id = {0}} ,
[8003] = {connect =8002 , point_array = 8, point_id = {9}} ,
[8004] = {connect =8003, point_array = 0, point_id = {0}} ,
[8005] = {connect =8006, point_array = 0, point_id = {0}} ,
[8006] = {connect =8005, point_array = 0, point_id = {0}} ,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[8001] = { config_id = 8001, gadget_id = 70310231, pos = { x = 215.097, y = 50.907, z = 632.168 }, rot = { x = 0.000, y = 0.000, z = 41.662 }, level = 1, persistent = true, is_use_point_array = true },
[8002] = { config_id = 8002, gadget_id = 70310231, pos = { x = 210.124, y = 46.482, z = 642.019 }, rot = { x = 0.000, y = 0.000, z = 41.662 }, level = 1, persistent = true, is_use_point_array = true },
[8003] = { config_id = 8003, gadget_id = 70310231, pos = { x = 213.581, y = 49.558, z = 629.633 }, rot = { x = 0.000, y = 0.000, z = 41.662 }, level = 1, persistent = true, is_use_point_array = true },
[8004] = { config_id = 8004, gadget_id = 70310231, pos = { x = 211.247, y = 47.481, z = 629.311 }, rot = { x = 0.000, y = 0.000, z = 41.662 }, level = 1, persistent = true, is_use_point_array = true },
[8005] = { config_id = 8005, gadget_id = 70310231, pos = { x = 203.572, y = 40.652, z = 629.491 }, rot = { x = 0.000, y = 0.000, z = 41.662 }, level = 1, persistent = true, is_use_point_array = true },
[8006] = { config_id = 8006, gadget_id = 70310231, pos = { x = 203.505, y = 40.592, z = 641.963 }, rot = { x = 0.000, y = 0.000, z = 41.662 }, level = 1, persistent = true, is_use_point_array = true },
[8007] = { config_id = 8007, gadget_id = 70310388, pos = { x = 284.763, y = 0.000, z = 635.598 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[8008] = { config_id = 8008, gadget_id = 70310389, pos = { x = 208.680, y = 45.197, z = 635.696 }, rot = { x = 0.000, y = 0.000, z = 41.662 }, level = 1 },
-- 上
[8009] = { config_id = 8009, gadget_id = 70310436, pos = { x = 278.367, y = 0.000, z = 635.485 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
-- 左
[8010] = { config_id = 8010, gadget_id = 70310436, pos = { x = 284.973, y = 0.000, z = 627.950 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true },
-- 右
[8011] = { config_id = 8011, gadget_id = 70310436, pos = { x = 284.973, y = 0.000, z = 643.350 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true },
-- 下
[8012] = { config_id = 8012, gadget_id = 70310436, pos = { x = 291.971, y = 0.000, z = 635.447 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true },
[8014] = { config_id = 8014, gadget_id = 70310439, pos = { x = 257.735, y = 0.000, z = 633.710 }, rot = { x = 0.000, y = 84.129, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true }
}
-- 区域
regions = {
[8015] = { config_id = 8015, shape = RegionShape.SPHERE, radius = 5, pos = { x = 257.735, y = 0.000, z = 633.710 } }
}
-- 触发器
triggers = {
{ config_id = 1008015, name = "ENTER_REGION_8015", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8015", action = "action_EVENT_ENTER_REGION_8015", trigger_count = 0 },
{ config_id = 1008016, name = "GADGET_STATE_CHANGE_8016", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8016", action = "action_EVENT_GADGET_STATE_CHANGE_8016", trigger_count = 0 },
{ config_id = 1008017, name = "GADGET_STATE_CHANGE_8017", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8017", action = "action_EVENT_GADGET_STATE_CHANGE_8017", trigger_count = 0 },
{ config_id = 1008018, name = "GADGET_STATE_CHANGE_8018", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8018", action = "action_EVENT_GADGET_STATE_CHANGE_8018", trigger_count = 0 },
{ config_id = 1008019, name = "GADGET_STATE_CHANGE_8019", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8019", action = "action_EVENT_GADGET_STATE_CHANGE_8019", trigger_count = 0 },
-- 踩上
{ config_id = 1008020, name = "GADGET_STATE_CHANGE_8020", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8020", action = "action_EVENT_GADGET_STATE_CHANGE_8020", trigger_count = 0 },
-- 踩左
{ config_id = 1008021, name = "GADGET_STATE_CHANGE_8021", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8021", action = "action_EVENT_GADGET_STATE_CHANGE_8021", trigger_count = 0 },
-- 踩右
{ config_id = 1008022, name = "GADGET_STATE_CHANGE_8022", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8022", action = "action_EVENT_GADGET_STATE_CHANGE_8022", trigger_count = 0 },
-- 踩下
{ config_id = 1008023, name = "GADGET_STATE_CHANGE_8023", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8023", action = "action_EVENT_GADGET_STATE_CHANGE_8023", trigger_count = 0 },
{ config_id = 1008025, name = "PLATFORM_REACH_POINT_8025", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_8025", action = "action_EVENT_PLATFORM_REACH_POINT_8025", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "curpoint", value = 1, no_refresh = true }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 8013, gadget_id = 70211021, pos = { x = 266.928, y = 0.000, z = 634.394 }, rot = { x = 0.000, y = 266.530, z = 0.000 }, level = 16, drop_tag = "战斗高级群岛", isOneoff = true, persistent = true }
},
triggers = {
{ config_id = 1008024, name = "VARIABLE_CHANGE_8024", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_8024", action = "action_EVENT_VARIABLE_CHANGE_8024", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 3,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001, 8002, 8003, 8004, 8005, 8006, 8007, 8008, 8009, 8010, 8011, 8012 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_8016", "GADGET_STATE_CHANGE_8017", "GADGET_STATE_CHANGE_8018", "GADGET_STATE_CHANGE_8019", "GADGET_STATE_CHANGE_8020", "GADGET_STATE_CHANGE_8021", "GADGET_STATE_CHANGE_8022", "GADGET_STATE_CHANGE_8023", "PLATFORM_REACH_POINT_8025" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 8014 },
regions = { 8015 },
triggers = { "ENTER_REGION_8015" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_8015(context, evt)
if evt.param1 ~= 8015 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_8015(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "dreamback2") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8016(context, evt)
if 8009 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8016(context, evt)
-- 将configid为 8009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8017(context, evt)
if 8010 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8017(context, evt)
-- 将configid为 8010 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8010, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8018(context, evt)
if 8011 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8018(context, evt)
-- 将configid为 8011 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8011, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8019(context, evt)
if 8012 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8019(context, evt)
-- 将configid为 8012 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8012, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8020(context, evt)
if 8009 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8020(context, evt)
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 4 then
ScriptLib.SetGroupVariableValue(context, "pattern", 2)
ScriptLib.SetGroupVariableValue(context, "curpoint", 1)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 5 then
ScriptLib.SetGroupVariableValue(context, "pattern", 3)
ScriptLib.SetGroupVariableValue(context, "curpoint", 2)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 6 then
ScriptLib.SetGroupVariableValue(context, "pattern", 4)
ScriptLib.SetGroupVariableValue(context, "curpoint", 3)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 7 then
ScriptLib.SetGroupVariableValue(context, "pattern", 5)
ScriptLib.SetGroupVariableValue(context, "curpoint", 4)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 8 then
ScriptLib.SetGroupVariableValue(context, "pattern", 6)
ScriptLib.SetGroupVariableValue(context, "curpoint", 5)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 9 then
ScriptLib.SetGroupVariableValue(context, "pattern", 7)
ScriptLib.SetGroupVariableValue(context, "curpoint", 6)
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8021(context, evt)
if 8010 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8021(context, evt)
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 2 then
ScriptLib.SetGroupVariableValue(context, "pattern", 2)
ScriptLib.SetGroupVariableValue(context, "curpoint", 1)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 3 then
ScriptLib.SetGroupVariableValue(context, "pattern", 3)
ScriptLib.SetGroupVariableValue(context, "curpoint", 2)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 5 then
ScriptLib.SetGroupVariableValue(context, "pattern", 5)
ScriptLib.SetGroupVariableValue(context, "curpoint", 4)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 6 then
ScriptLib.SetGroupVariableValue(context, "pattern", 6)
ScriptLib.SetGroupVariableValue(context, "curpoint", 5)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 8 then
ScriptLib.SetGroupVariableValue(context, "pattern", 8)
ScriptLib.SetGroupVariableValue(context, "curpoint", 7)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 9then
ScriptLib.SetGroupVariableValue(context, "pattern", 9)
ScriptLib.SetGroupVariableValue(context, "curpoint", 8)
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8022(context, evt)
if 8011 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8022(context, evt)
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 1 then
ScriptLib.SetGroupVariableValue(context, "pattern", 3)
ScriptLib.SetGroupVariableValue(context, "curpoint", 2)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 2 then
ScriptLib.SetGroupVariableValue(context, "pattern", 4)
ScriptLib.SetGroupVariableValue(context, "curpoint", 3)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 4 then
ScriptLib.SetGroupVariableValue(context, "pattern", 6)
ScriptLib.SetGroupVariableValue(context, "curpoint", 5)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 5 then
ScriptLib.SetGroupVariableValue(context, "pattern", 7)
ScriptLib.SetGroupVariableValue(context, "curpoint", 6)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 7 then
ScriptLib.SetGroupVariableValue(context, "pattern", 9)
ScriptLib.SetGroupVariableValue(context, "curpoint", 8)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 8 then
ScriptLib.SetGroupVariableValue(context, "pattern", 10)
ScriptLib.SetGroupVariableValue(context, "curpoint", 9)
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8023(context, evt)
if 8012 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_8023(context, evt)
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 1 then
ScriptLib.SetGroupVariableValue(context, "pattern", 5)
ScriptLib.SetGroupVariableValue(context, "curpoint", 4)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 2 then
ScriptLib.SetGroupVariableValue(context, "pattern", 6)
ScriptLib.SetGroupVariableValue(context, "curpoint", 5)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 3 then
ScriptLib.SetGroupVariableValue(context, "pattern", 7)
ScriptLib.SetGroupVariableValue(context, "curpoint", 6)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 4 then
ScriptLib.SetGroupVariableValue(context, "pattern", 8)
ScriptLib.SetGroupVariableValue(context, "curpoint", 7)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 5 then
ScriptLib.SetGroupVariableValue(context, "pattern", 9)
ScriptLib.SetGroupVariableValue(context, "curpoint", 8)
end
if ScriptLib.GetGroupVariableValue(context,"curpoint") == 6 then
ScriptLib.SetGroupVariableValue(context, "pattern", 10)
ScriptLib.SetGroupVariableValue(context, "curpoint", 9)
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_8025(context, evt)
-- 判断是gadgetid 为 8003的移动平台,是否到达了8 的点集中的 5 点
if 8003 ~= evt.param1 then
return false
end
if 8 ~= evt.param2 then
return false
end
if 5 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_8025(context, evt)
-- 触发镜头注目,注目位置为坐标(257,0,633),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=257, y=0, z=633}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220136008, 2)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 220136008, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
require "V2_8/ConstellationPattern"
@@ -0,0 +1,755 @@
-- 基础信息
local base_info = {
group_id = 220136009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 语音——一直以来
{ config_id = 9001, shape = RegionShape.SPHERE, radius = 8, pos = { x = 775.833, y = 56.690, z = 923.533 } },
-- 语音——人们得知我会占卜
{ config_id = 9002, shape = RegionShape.SPHERE, radius = 5, pos = { x = 795.857, y = 61.447, z = 865.494 } },
-- 语音——别开玩笑了
{ config_id = 9003, shape = RegionShape.SPHERE, radius = 8, pos = { x = 774.692, y = 80.846, z = 744.842 } },
-- 语音——我深信
{ config_id = 9004, shape = RegionShape.SPHERE, radius = 5, pos = { x = 816.289, y = 51.400, z = 895.263 } },
-- 语音——我失踪的儿子
{ config_id = 9005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 756.911, y = 53.200, z = 864.393 } },
-- 语音——真诚的我
{ config_id = 9008, shape = RegionShape.SPHERE, radius = 5, pos = { x = 786.185, y = 56.740, z = 805.071 } },
-- 语音——诚实会招来厌恶
{ config_id = 9009, shape = RegionShape.SPHERE, radius = 5, pos = { x = 789.139, y = 82.300, z = 787.033 } },
-- 语音——占星术就是骗人的
{ config_id = 9010, shape = RegionShape.SPHERE, radius = 8, pos = { x = 774.692, y = 82.795, z = 764.213 } },
-- 语音——我想静一静
{ config_id = 9011, shape = RegionShape.SPHERE, radius = 8, pos = { x = 774.495, y = 79.830, z = 727.314 } },
-- 语音——他们的失落感
{ config_id = 9012, shape = RegionShape.SPHERE, radius = 8, pos = { x = 773.757, y = 76.294, z = 676.381 } }
}
-- 触发器
triggers = {
-- 语音——一直以来
{ config_id = 1009001, name = "ENTER_REGION_9001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9001", action = "action_EVENT_ENTER_REGION_9001", trigger_count = 0 },
-- 语音——人们得知我会占卜
{ config_id = 1009002, name = "ENTER_REGION_9002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9002", action = "action_EVENT_ENTER_REGION_9002", trigger_count = 0 },
-- 语音——别开玩笑了
{ config_id = 1009003, name = "ENTER_REGION_9003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9003", action = "action_EVENT_ENTER_REGION_9003", trigger_count = 0 },
-- 语音——我深信
{ config_id = 1009004, name = "ENTER_REGION_9004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9004", action = "action_EVENT_ENTER_REGION_9004", trigger_count = 0 },
-- 语音——我失踪的儿子
{ config_id = 1009005, name = "ENTER_REGION_9005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9005", action = "action_EVENT_ENTER_REGION_9005", trigger_count = 0 },
-- 重新进入场景清变量
{ config_id = 1009006, name = "GROUP_LOAD_9006", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_9006", trigger_count = 0 },
-- 重新进入场景清变量
{ config_id = 1009007, name = "GROUP_REFRESH_9007", event = EventType.EVENT_GROUP_REFRESH, source = "", condition = "", action = "action_EVENT_GROUP_REFRESH_9007", trigger_count = 0 },
-- 语音——真诚的我
{ config_id = 1009008, name = "ENTER_REGION_9008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9008", action = "action_EVENT_ENTER_REGION_9008", trigger_count = 0 },
-- 语音——诚实会招来厌恶
{ config_id = 1009009, name = "ENTER_REGION_9009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9009", action = "action_EVENT_ENTER_REGION_9009", trigger_count = 0 },
-- 语音——占星术就是骗人的
{ config_id = 1009010, name = "ENTER_REGION_9010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9010", action = "action_EVENT_ENTER_REGION_9010", trigger_count = 0 },
-- 语音——我想静一静
{ config_id = 1009011, name = "ENTER_REGION_9011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9011", action = "action_EVENT_ENTER_REGION_9011", trigger_count = 0 },
-- 语音——他们的失落感
{ config_id = 1009012, name = "ENTER_REGION_9012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9012", action = "action_EVENT_ENTER_REGION_9012", trigger_count = 0 },
-- 任务结束,刷新为空
{ config_id = 1009014, name = "QUEST_FINISH_9014", event = EventType.EVENT_QUEST_FINISH, source = "4007408", condition = "condition_EVENT_QUEST_FINISH_9014", action = "action_EVENT_QUEST_FINISH_9014", trigger_count = 0 },
-- 判断任务是否已结束
{ config_id = 1009015, name = "GROUP_LOAD_9015", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_9015", action = "action_EVENT_GROUP_LOAD_9015", trigger_count = 0 },
-- 意外情况保底
{ config_id = 1009016, name = "GROUP_LOAD_9016", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_9016", trigger_count = 0 },
-- 任务开始(断线)清变量
{ config_id = 1009017, name = "QUEST_START_9017", event = EventType.EVENT_QUEST_START, source = "4007408", condition = "", action = "action_EVENT_QUEST_START_9017", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "finishRmd1", value = 0, no_refresh = false },
{ config_id = 2, name = "finishRmd2", value = 0, no_refresh = false },
{ config_id = 3, name = "finishRmd3", value = 0, no_refresh = false },
{ config_id = 4, name = "finishRmd4", value = 0, no_refresh = false },
{ config_id = 5, name = "finishRmd5", value = 0, no_refresh = false },
{ config_id = 8, name = "finishRmd8", value = 0, no_refresh = false },
{ config_id = 9, name = "finishRmd9", value = 0, no_refresh = false },
{ config_id = 10, name = "finishRmd10", value = 0, no_refresh = false },
{ config_id = 11, name = "finishRmd11", value = 0, no_refresh = false },
{ config_id = 12, name = "finishRmd12", value = 0, no_refresh = false },
{ config_id = 13, name = "questFinishPart1", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 9001, 9002, 9003, 9004, 9005, 9008, 9009, 9010, 9011, 9012 },
triggers = { "ENTER_REGION_9001", "ENTER_REGION_9002", "ENTER_REGION_9003", "ENTER_REGION_9004", "ENTER_REGION_9005", "GROUP_LOAD_9006", "GROUP_REFRESH_9007", "ENTER_REGION_9008", "ENTER_REGION_9009", "ENTER_REGION_9010", "ENTER_REGION_9011", "ENTER_REGION_9012", "QUEST_FINISH_9014", "GROUP_LOAD_9015", "QUEST_START_9017" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_LOAD_9016", "QUEST_START_9017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_9001(context, evt)
if evt.param1 ~= 9001 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd1"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd1") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9001(context, evt)
-- 调用提示id为 1110538 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110538) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9002(context, evt)
if evt.param1 ~= 9002 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd2"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd2") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9002(context, evt)
-- 调用提示id为 1110542 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110542) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9003(context, evt)
if evt.param1 ~= 9003 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd3"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd3") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9003(context, evt)
-- 调用提示id为 1110549 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110549) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd3" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd3", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9004(context, evt)
if evt.param1 ~= 9004 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd4"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd4") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9004(context, evt)
-- 调用提示id为 1110540 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110540) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd4" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd4", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9005(context, evt)
if evt.param1 ~= 9005 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd5"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd5") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9005(context, evt)
-- 调用提示id为 1110543 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110543) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd5" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd5", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_9006(context, evt)
-- 将本组内变量名为 "finishRmd1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd3", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd4", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd5" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd5", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd8" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd8", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd9" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd9", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd10" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd10", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd11" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd11", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd12" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd12", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_REFRESH_9007(context, evt)
-- 将本组内变量名为 "finishRmd1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd3", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd4", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd5" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd5", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd8" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd8", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd9" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd9", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd10" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd10", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd11" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd11", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd12" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd12", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9008(context, evt)
if evt.param1 ~= 9008 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd8"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd8") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9008(context, evt)
-- 调用提示id为 1110546 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110546) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd8" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd8", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9009(context, evt)
if evt.param1 ~= 9009 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd9"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd9") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9009(context, evt)
-- 调用提示id为 1110547 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110547) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd9" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd9", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9010(context, evt)
if evt.param1 ~= 9010 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd10"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd10") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9010(context, evt)
-- 调用提示id为 1110548 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110548) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd10" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd10", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9011(context, evt)
if evt.param1 ~= 9011 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd11"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd11") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9011(context, evt)
-- 调用提示id为 1110550 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110550) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd11" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd11", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9012(context, evt)
if evt.param1 ~= 9012 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd12"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd12") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_9012(context, evt)
-- 调用提示id为 1110551 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110551) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd12" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd12", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_9014(context, evt)
--检查ID为4007408的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 4007408 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_9014(context, evt)
-- 将本组内变量名为 "questFinishPart1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "questFinishPart1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220136009, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_9015(context, evt)
-- 判断变量"questFinishPart1"为1
if ScriptLib.GetGroupVariableValue(context, "questFinishPart1") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_9015(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220136009, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_9016(context, evt)
if ScriptLib.GetHostQuestState(context,4007408)==2 then
ScriptLib.RefreshGroup(context, { group_id = 220136009, suite = 1 })
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_9017(context, evt)
-- 将本组内变量名为 "finishRmd1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd3", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd4", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd5" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd5", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd8" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd8", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd9" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd9", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd10" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd10", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd11" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd11", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd12" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd12", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "questFinishPart1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "questFinishPart1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220136009, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,640 @@
-- 基础信息
local base_info = {
group_id = 220136010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 语音——占星术士能够
{ config_id = 10001, shape = RegionShape.SPHERE, radius = 5, pos = { x = 290.800, y = 71.845, z = 851.305 } },
-- 语音——我第一次明白
{ config_id = 10002, shape = RegionShape.SPHERE, radius = 5, pos = { x = 342.843, y = 71.660, z = 798.667 } },
-- 语音——无法更改,不可违逆
{ config_id = 10003, shape = RegionShape.SPHERE, radius = 5, pos = { x = 362.486, y = 72.382, z = 742.000 } },
-- 语音——我懂得事物运行的
{ config_id = 10004, shape = RegionShape.SPHERE, radius = 5, pos = { x = 362.691, y = 71.018, z = 669.007 } },
-- 语音——世上没有十全十美的传说
{ config_id = 10005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 350.977, y = 72.120, z = 630.582 } },
-- 语音——是抓住自己的命运
{ config_id = 10006, shape = RegionShape.SPHERE, radius = 20, pos = { x = 294.717, y = 64.710, z = 630.452 } },
-- 语音——看起来又到了尽头
{ config_id = 10007, shape = RegionShape.SPHERE, radius = 20, pos = { x = 294.717, y = 10.673, z = 630.452 } },
-- 语音——你不应该感到迷茫
{ config_id = 10008, shape = RegionShape.SPHERE, radius = 5, pos = { x = 302.203, y = 71.660, z = 819.903 } }
}
-- 触发器
triggers = {
-- 语音——占星术士能够
{ config_id = 1010001, name = "ENTER_REGION_10001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10001", action = "action_EVENT_ENTER_REGION_10001", trigger_count = 0 },
-- 语音——我第一次明白
{ config_id = 1010002, name = "ENTER_REGION_10002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10002", action = "action_EVENT_ENTER_REGION_10002", trigger_count = 0 },
-- 语音——无法更改,不可违逆
{ config_id = 1010003, name = "ENTER_REGION_10003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10003", action = "action_EVENT_ENTER_REGION_10003", trigger_count = 0 },
-- 语音——我懂得事物运行的
{ config_id = 1010004, name = "ENTER_REGION_10004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10004", action = "action_EVENT_ENTER_REGION_10004", trigger_count = 0 },
-- 语音——世上没有十全十美的传说
{ config_id = 1010005, name = "ENTER_REGION_10005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10005", action = "action_EVENT_ENTER_REGION_10005", trigger_count = 0 },
-- 语音——是抓住自己的命运
{ config_id = 1010006, name = "ENTER_REGION_10006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10006", action = "action_EVENT_ENTER_REGION_10006", trigger_count = 0 },
-- 语音——看起来又到了尽头
{ config_id = 1010007, name = "ENTER_REGION_10007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10007", action = "action_EVENT_ENTER_REGION_10007", trigger_count = 0 },
-- 语音——你不应该感到迷茫
{ config_id = 1010008, name = "ENTER_REGION_10008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10008", action = "action_EVENT_ENTER_REGION_10008", trigger_count = 0 },
-- 任务开始(断线)清变量
{ config_id = 1010009, name = "QUEST_START_10009", event = EventType.EVENT_QUEST_START, source = "4007611", condition = "", action = "action_EVENT_QUEST_START_10009", trigger_count = 0 },
-- 任务结束切空
{ config_id = 1010010, name = "QUEST_FINISH_10010", event = EventType.EVENT_QUEST_FINISH, source = "4007611", condition = "condition_EVENT_QUEST_FINISH_10010", action = "action_EVENT_QUEST_FINISH_10010", trigger_count = 0 },
-- 任务已结束
{ config_id = 1010011, name = "GROUP_LOAD_10011", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_10011", action = "action_EVENT_GROUP_LOAD_10011", trigger_count = 0 },
{ config_id = 1010012, name = "GROUP_LOAD_10012", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_10012" },
-- 重进场景清变量
{ config_id = 1010013, name = "GROUP_LOAD_10013", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_10013", trigger_count = 0 },
-- 后续任务回滚清变量
{ config_id = 1010014, name = "GROUP_REFRESH_10014", event = EventType.EVENT_GROUP_REFRESH, source = "", condition = "", action = "action_EVENT_GROUP_REFRESH_10014", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "finishRmd1", value = 0, no_refresh = false },
{ config_id = 2, name = "finishRmd2", value = 0, no_refresh = false },
{ config_id = 3, name = "finishRmd3", value = 0, no_refresh = false },
{ config_id = 4, name = "finishRmd4", value = 0, no_refresh = false },
{ config_id = 5, name = "finishRmd5", value = 0, no_refresh = false },
{ config_id = 6, name = "finishRmd6", value = 0, no_refresh = false },
{ config_id = 7, name = "finishRmd7", value = 0, no_refresh = false },
{ config_id = 8, name = "finishRmd8", value = 0, no_refresh = false },
{ config_id = 9, name = "questFinishPart3", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 10001, 10002, 10003, 10004, 10005, 10006, 10007, 10008 },
triggers = { "ENTER_REGION_10001", "ENTER_REGION_10002", "ENTER_REGION_10003", "ENTER_REGION_10004", "ENTER_REGION_10005", "ENTER_REGION_10006", "ENTER_REGION_10007", "ENTER_REGION_10008", "QUEST_START_10009", "QUEST_FINISH_10010", "GROUP_LOAD_10011", "GROUP_LOAD_10013", "GROUP_REFRESH_10014" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "QUEST_START_10009", "GROUP_LOAD_10012" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_10001(context, evt)
if evt.param1 ~= 10001 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd1"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd1") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_10001(context, evt)
-- 调用提示id为 1110976 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110976) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10002(context, evt)
if evt.param1 ~= 10002 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd2"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd2") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_10002(context, evt)
-- 调用提示id为 1110983 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110983) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10003(context, evt)
if evt.param1 ~= 10003 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd3"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd3") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_10003(context, evt)
-- 调用提示id为 1110984 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110984) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd3" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd3", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10004(context, evt)
if evt.param1 ~= 10004 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd4"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd4") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_10004(context, evt)
-- 调用提示id为 1110985 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110985) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd4" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd4", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10005(context, evt)
if evt.param1 ~= 10005 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd5"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd5") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_10005(context, evt)
-- 调用提示id为 1110986 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110986) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd5" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd5", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10006(context, evt)
if evt.param1 ~= 10006 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd6"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd6") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_10006(context, evt)
-- 调用提示id为 1110987 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110987) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd6" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd6", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10007(context, evt)
if evt.param1 ~= 10007 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd7"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd7") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_10007(context, evt)
-- 调用提示id为 1110988 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110988) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd7" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd7", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10008(context, evt)
if evt.param1 ~= 10008 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd8"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd8") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_10008(context, evt)
-- 调用提示id为 1110980 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110980) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd8" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd8", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_10009(context, evt)
-- 将本组内变量名为 "finishRmd1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd3", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd4", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd5" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd5", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd6" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd6", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd7" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd7", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd8" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd8", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "questFinishPart3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "questFinishPart3", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220136010, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_10010(context, evt)
--检查ID为4007611的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 4007611 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_10010(context, evt)
-- 将本组内变量名为 "questFinishPart3" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "questFinishPart3", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220136010, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_10011(context, evt)
-- 判断变量"questFinishPart3"为1
if ScriptLib.GetGroupVariableValue(context, "questFinishPart3") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_10011(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220136010, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_10012(context, evt)
if ScriptLib.GetHostQuestState(context,4007611)==2 then
ScriptLib.RefreshGroup(context, { group_id = 220136010, suite = 1 })
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_10013(context, evt)
-- 将本组内变量名为 "finishRmd1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd3", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd4", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd5" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd5", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd6" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd6", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd7" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd7", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd8" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd8", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_REFRESH_10014(context, evt)
-- 将本组内变量名为 "finishRmd1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd3", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd4", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd5" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd5", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd6" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd6", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd7" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd7", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd8" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd8", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
@@ -0,0 +1,607 @@
-- 基础信息
local base_info = {
group_id = 220136011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 语音——不过这件事始终
{ config_id = 11001, shape = RegionShape.SPHERE, radius = 5, pos = { x = 772.592, y = 7.704, z = 781.736 } },
-- 语音——占星术,令真实
{ config_id = 11002, shape = RegionShape.SPHERE, radius = 5, pos = { x = 750.988, y = 0.000, z = 661.545 } },
-- 语音——在山上遇见了冒险家
{ config_id = 11004, shape = RegionShape.SPHERE, radius = 5, pos = { x = 798.306, y = 0.000, z = 659.416 } },
-- 语音——他沉默了
{ config_id = 11005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 776.205, y = 0.000, z = 690.946 } },
-- 语音——他一次都没回头
{ config_id = 11006, shape = RegionShape.SPHERE, radius = 5, pos = { x = 773.072, y = 0.000, z = 712.526 } },
-- 语音——毫无必要
{ config_id = 11007, shape = RegionShape.CUBIC, size = { x = 50.000, y = 10.000, z = 10.000 }, pos = { x = 774.625, y = 3.073, z = 746.222 } }
}
-- 触发器
triggers = {
-- 语音——不过这件事始终
{ config_id = 1011001, name = "ENTER_REGION_11001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11001", action = "action_EVENT_ENTER_REGION_11001", trigger_count = 0 },
-- 语音——占星术,令真实
{ config_id = 1011002, name = "ENTER_REGION_11002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11002", action = "action_EVENT_ENTER_REGION_11002", trigger_count = 0 },
-- 任务开始清变量
{ config_id = 1011003, name = "QUEST_START_11003", event = EventType.EVENT_QUEST_START, source = "4007506", condition = "", action = "action_EVENT_QUEST_START_11003", trigger_count = 0 },
-- 语音——在山上遇见了冒险家
{ config_id = 1011004, name = "ENTER_REGION_11004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11004", action = "action_EVENT_ENTER_REGION_11004", trigger_count = 0 },
-- 语音——他沉默了
{ config_id = 1011005, name = "ENTER_REGION_11005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11005", action = "action_EVENT_ENTER_REGION_11005", trigger_count = 0 },
-- 语音——他一次都没回头
{ config_id = 1011006, name = "ENTER_REGION_11006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11006", action = "action_EVENT_ENTER_REGION_11006", trigger_count = 0 },
-- 语音——毫无必要
{ config_id = 1011007, name = "ENTER_REGION_11007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11007", action = "action_EVENT_ENTER_REGION_11007", trigger_count = 0 },
-- 结束改变量+切
{ config_id = 1011008, name = "QUEST_FINISH_11008", event = EventType.EVENT_QUEST_FINISH, source = "4007506", condition = "condition_EVENT_QUEST_FINISH_11008", action = "action_EVENT_QUEST_FINISH_11008", trigger_count = 0 },
-- 任务已结束判断
{ config_id = 1011009, name = "GROUP_LOAD_11009", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_11009", action = "action_EVENT_GROUP_LOAD_11009", trigger_count = 0 },
-- 清变量
{ config_id = 1011010, name = "QUEST_START_11010", event = EventType.EVENT_QUEST_START, source = "4007507", condition = "", action = "action_EVENT_QUEST_START_11010", trigger_count = 0 },
{ config_id = 1011011, name = "QUEST_FINISH_11011", event = EventType.EVENT_QUEST_FINISH, source = "4007507", condition = "condition_EVENT_QUEST_FINISH_11011", action = "action_EVENT_QUEST_FINISH_11011", trigger_count = 0 },
-- 在后续任务中退出,回滚
{ config_id = 1011012, name = "GROUP_LOAD_11012", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_11012", trigger_count = 0 },
-- group重载清变量
{ config_id = 1011013, name = "GROUP_LOAD_11013", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_11013", trigger_count = 0 },
-- 清变量
{ config_id = 1011014, name = "GROUP_REFRESH_11014", event = EventType.EVENT_GROUP_REFRESH, source = "", condition = "", action = "action_EVENT_GROUP_REFRESH_11014", trigger_count = 0 },
-- 回滚到suite1清变量
{ config_id = 1011015, name = "GROUP_REFRESH_11015", event = EventType.EVENT_GROUP_REFRESH, source = "", condition = "", action = "action_EVENT_GROUP_REFRESH_11015", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "finishRmd1", value = 0, no_refresh = false },
{ config_id = 2, name = "finishRmd2", value = 0, no_refresh = false },
{ config_id = 3, name = "finishRmd3", value = 0, no_refresh = false },
{ config_id = 4, name = "finishRmd4", value = 0, no_refresh = false },
{ config_id = 5, name = "finishRmd5", value = 0, no_refresh = false },
{ config_id = 6, name = "finishRmd6", value = 0, no_refresh = false },
{ config_id = 7, name = "questFinishPart2a", value = 0, no_refresh = true },
{ config_id = 8, name = "questFinishPart2b", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 3,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 11002, 11004, 11005, 11006, 11007 },
triggers = { "ENTER_REGION_11002", "QUEST_START_11003", "ENTER_REGION_11004", "ENTER_REGION_11005", "ENTER_REGION_11006", "ENTER_REGION_11007", "QUEST_FINISH_11008", "GROUP_LOAD_11009", "GROUP_LOAD_11013", "GROUP_REFRESH_11015" },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 11001 },
triggers = { "ENTER_REGION_11001", "QUEST_START_11003", "QUEST_START_11010", "QUEST_FINISH_11011", "GROUP_REFRESH_11014" },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "QUEST_START_11003", "GROUP_LOAD_11012" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_11001(context, evt)
if evt.param1 ~= 11001 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd1"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd1") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11001(context, evt)
-- 调用提示id为 1110970 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110970) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11002(context, evt)
if evt.param1 ~= 11002 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd2"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd2") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11002(context, evt)
-- 调用提示id为 1110958 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110958) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_11003(context, evt)
-- 将本组内变量名为 "finishRmd6" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd6", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd3", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd4", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd5" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd5", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "questFinishPart2a" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "questFinishPart2a", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220136011, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11004(context, evt)
if evt.param1 ~= 11004 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd3"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd3") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11004(context, evt)
-- 调用提示id为 1110962 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110962) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd3" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd3", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11005(context, evt)
if evt.param1 ~= 11005 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd4"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd4") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11005(context, evt)
-- 调用提示id为 1110965 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110965) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 针对当前group内变量名为 "finishRmd4" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "finishRmd4", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11006(context, evt)
if evt.param1 ~= 11006 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd5"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd5") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11006(context, evt)
-- 调用提示id为 1110968 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110968) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd5" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd5", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11007(context, evt)
if evt.param1 ~= 11007 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"finishRmd6"为0
if ScriptLib.GetGroupVariableValue(context, "finishRmd6") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11007(context, evt)
-- 调用提示id为 1110969 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110969) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将本组内变量名为 "finishRmd6" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd6", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_11008(context, evt)
--检查ID为4007506的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 4007506 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_11008(context, evt)
-- 将本组内变量名为 "questFinishPart2a" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "questFinishPart2a", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220136011, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_11009(context, evt)
-- 判断变量"questFinishPart2a"为1
if ScriptLib.GetGroupVariableValue(context, "questFinishPart2a") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_11009(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220136011, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_11010(context, evt)
-- 将本组内变量名为 "questFinishPart2b" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "questFinishPart2b", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_11011(context, evt)
--检查ID为4007507的任务的完成状态是否为1(1=完成,0=失败)
--此事件需要配合Quest表使用,在Quest表里的完成执行中配置“通知group脚本”,则该任务完成后服务端会向对应的group发送通知,参数1填写场景ID,参数2填写group ID(如果不填则会通知所有group)
--检查任务ID
if 4007507 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_11011(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220136011, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将本组内变量名为 "questFinishPart2b" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "questFinishPart2b", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_11012(context, evt)
if ScriptLib.GetHostQuestState(context,4007506) == 2 then
ScriptLib.RefreshGroup(context, { suite=1})
ScriptLib.SetGroupVariableValue(context, "questFinishPart2a", 0)
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_11013(context, evt)
-- 将本组内变量名为 "finishRmd6" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd6", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd3", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd4", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd5" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd5", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_REFRESH_11014(context, evt)
-- 将本组内变量名为 "finishRmd1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_REFRESH_11015(context, evt)
-- 将本组内变量名为 "finishRmd6" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd6", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd3" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd3", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd4" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd4", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd5" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd5", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 将本组内变量名为 "finishRmd1" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "finishRmd1", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
@@ -0,0 +1,45 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 105.4999,
"y": -9.372852,
"z": 2.565123
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": 105.4999,
"y": -9.372852,
"z": 2.565123
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "TOWER",
"unlocked": false
}
},
"transRadius": 0.0
}
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,141 @@
[
{
"area_id": 10090,
"bottom": -1000.0,
"isUseHeightBorder": true,
"points": [
{
"x": 867.3198,
"y": 788.654663
},
{
"x": 883.067,
"y": 659.7775
},
{
"x": 852.230164,
"y": 546.389648
},
{
"x": 647.5152,
"y": 533.1626
},
{
"x": 666.5805,
"y": 685.1048
},
{
"x": 713.549,
"y": 847.302856
}
],
"top": 45.0
},
{
"area_id": 10091,
"points": [
{
"x": 867.3198,
"y": 788.654663
},
{
"x": 883.067,
"y": 659.7775
},
{
"x": 852.230164,
"y": 546.389648
},
{
"x": 647.5152,
"y": 533.1626
},
{
"x": 666.5805,
"y": 685.1048
},
{
"x": 713.549,
"y": 847.302856
}
]
},
{
"area_id": 10092,
"points": [
{
"x": 867.3198,
"y": 788.654663
},
{
"x": 883.067,
"y": 659.7775
},
{
"x": 852.230164,
"y": 546.389648
},
{
"x": 647.5152,
"y": 533.1626
},
{
"x": 666.5805,
"y": 685.1048
},
{
"x": 713.549,
"y": 847.302856
}
]
},
{
"area_id": 10093,
"bottom": -1000.0,
"isUseHeightBorder": true,
"points": [
{
"x": 481.2328,
"y": 438.1939
},
{
"x": 446.099335,
"y": 770.376953
},
{
"x": 258.2748,
"y": 862.597839
},
{
"x": 54.70002,
"y": 759.7843
},
{
"x": 98.8591156,
"y": 392.35144
}
],
"top": 50.0
},
{
"area_id": 10107,
"points": [
{
"x": 867.8819,
"y": 361.636047
},
{
"x": 887.72345,
"y": 947.5287
},
{
"x": 137.309631,
"y": 954.3161
},
{
"x": 178.790817,
"y": 379.0849
}
]
}
]