添加配置表

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,30 @@
-- 地图配置
scene_config = {
begin_pos = { x = 0.0, z = -2500.0 },
size = { x = 2048.0, z = 2048.0 },
born_pos = { x = 498.000, y = 609.000, z = -1650.000 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
born_point_list = {
{ pos = { x = 427.939, y = 615.224, z = -1632.580 }, rot = { x = 0.000, y = 244.214, z = 0.000 } },
{ pos = { x = 424.275, y = 615.224, z = -1627.914 }, rot = { x = 0.000, y = 240.875, z = 0.000 } },
{ pos = { x = 430.926, y = 615.039, z = -1630.760 }, rot = { x = 0.000, y = 253.876, z = 0.000 } },
{ pos = { x = 427.935, y = 615.039, z = -1626.457 }, rot = { x = 0.000, y = 243.657, z = 0.000 } }
},
die_y = -50,
city_id = 1,
vision_anchor = { x = 0.0, z = -3000.0 }
}
-- 所有的区块
blocks = { 35852 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = 0.0, z = -2500.0 }, max = { x = 2048.0, z = -452.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,10 @@
-- 所有的group
groups = {
{ id = 235852001, refresh_id = 1002, pos = { x = 152.365, y = 649.368, z = -1839.097 } },
{ id = 235852002, pos = { x = 398.826, y = 613.406, z = -1639.054 } },
{ id = 235852003, refresh_id = 1, pos = { x = 404.983, y = 672.244, z = -1639.329 } },
{ id = 235852004, refresh_id = 1002, pos = { x = 196.761, y = 634.126, z = -1733.785 } },
{ id = 235852005, pos = { x = 298.594, y = 625.315, z = -1675.707 } },
{ id = 235852006, pos = { x = 205.903, y = 634.444, z = -1776.893 } },
{ id = 235852007, pos = { x = 284.495, y = 596.530, z = -1676.417 } }
}
@@ -0,0 +1,405 @@
-- 基础信息
local base_info = {
group_id = 235852001
}
-- DEFS_MISCS
local defs = {
--起始操作台
starter = 1001 ,
--起始操作台选项
option_id = 94,
--波次之间延时 秒
delay = 2,
--挑战总时限 秒
time_limit = 300,
challenge_id = 2010047,
--怪物潮信息
--monsters填入怪物configID
--当场上本列表的怪数量小于min时触发补怪,补至max。max勿超过mosnters数量
--mona_buffs:莫娜地城限定,本次怪物潮对应的buff。1-弹飞 2-增伤 3-怪物群控。
tide_cfg = {
[1] = { monsters = {1002,1003,1004,1005,1006,1007,1008,1009,1010,1011,1012}, min =4, max = 6,mona_buffs = {1,2,3}},
[2] = { monsters = {1013,1014,1015}, min = 3, max = 3, mona_buffs = {2}},
[3] = { monsters = {1016,1017,1018,1019}, min = 2, max = 4, mona_buffs = {1,2}},
[4] = { monsters = {1020,1021,1022,1023,1024}, min = 3, max = 4,mona_buffs = {1,2,3}},
[5] = { monsters = {1025,1026,1027,1028,1029}, min = 3, max = 4,mona_buffs = {1,2,3}},
[6] = { monsters = {1030,1031,1032,1033,1034,1035}, min = 4, max = 6,mona_buffs = {1,2,3}},
},
--怪物潮随机表
--随机固定顺序怪物潮组合 每次进地城随机取key。
--key对应value代表依序出现的MonsterTide,小花括号内配置复数个表示同时刷出。
rand_table = {
[1] =
{
{1},
{3},
{2},
{4},
{5},
},
[2] =
{
{3},
{1},
{4},
{6},
{2},
},
[3] =
{
{5},
{2},
{3},
{1},
{4},
},
},
--谁的地城 1-万叶 2-辛焱 3-菲谢尔 4-莫娜
type = 4,
--莫娜、辛焱需配这里-随机suite池
rand_suites = {3},
--莫娜地城星星和压板对应关系
stars = {
--suite x
[3] = {{1038, 1044}, {1039,1045}, {1040,1046}, {1041,1047}, {1042,1048}, {1043,1049}},
},
move_water = { config_id = 1050 ,point_array = 54 ,point = {2,1} },
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[1002] = { config_id = 1002, monster_id = 21010501, pos = { x = 154.442, y = 649.374, z = -1845.478 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1003] = { config_id = 1003, monster_id = 21010501, pos = { x = 149.160, y = 649.347, z = -1844.211 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1004] = { config_id = 1004, monster_id = 21010701, pos = { x = 142.780, y = 649.370, z = -1840.993 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1005] = { config_id = 1005, monster_id = 21010701, pos = { x = 140.289, y = 649.366, z = -1838.757 }, rot = { x = 0.000, y = 107.237, z = 0.000 }, level = 1 },
[1006] = { config_id = 1006, monster_id = 21010301, pos = { x = 150.562, y = 649.362, z = -1827.737 }, rot = { x = 0.000, y = 185.173, z = 0.000 }, level = 1 },
[1007] = { config_id = 1007, monster_id = 21010301, pos = { x = 145.881, y = 649.360, z = -1831.595 }, rot = { x = 0.000, y = 185.173, z = 0.000 }, level = 1 },
[1008] = { config_id = 1008, monster_id = 21010601, pos = { x = 159.345, y = 649.374, z = -1846.103 }, rot = { x = 0.000, y = 328.247, z = 0.000 }, level = 1 },
[1009] = { config_id = 1009, monster_id = 21010601, pos = { x = 158.712, y = 649.372, z = -1843.466 }, rot = { x = 0.000, y = 322.901, z = 0.000 }, level = 1 },
[1010] = { config_id = 1010, monster_id = 21030301, pos = { x = 160.933, y = 649.369, z = -1840.799 }, rot = { x = 0.000, y = 287.675, z = 0.000 }, level = 1 },
[1011] = { config_id = 1011, monster_id = 21030601, pos = { x = 140.939, y = 649.361, z = -1833.392 }, rot = { x = 0.000, y = 107.237, z = 0.000 }, level = 1 },
[1012] = { config_id = 1012, monster_id = 21030101, pos = { x = 154.064, y = 649.360, z = -1823.707 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1013] = { config_id = 1013, monster_id = 22010101, pos = { x = 138.848, y = 649.362, z = -1831.851 }, rot = { x = 0.000, y = 107.237, z = 0.000 }, level = 1 },
[1014] = { config_id = 1014, monster_id = 22010101, pos = { x = 159.037, y = 649.365, z = -1834.010 }, rot = { x = 0.000, y = 218.960, z = 0.000 }, level = 1 },
[1015] = { config_id = 1015, monster_id = 22010101, pos = { x = 155.260, y = 649.374, z = -1845.865 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1016] = { config_id = 1016, monster_id = 21020101, pos = { x = 150.818, y = 649.373, z = -1844.440 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1017] = { config_id = 1017, monster_id = 21020101, pos = { x = 145.961, y = 649.371, z = -1843.274 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1018] = { config_id = 1018, monster_id = 21020201, pos = { x = 152.136, y = 649.360, z = -1830.239 }, rot = { x = 0.000, y = 185.173, z = 0.000 }, level = 1 },
[1019] = { config_id = 1019, monster_id = 21020201, pos = { x = 148.237, y = 649.360, z = -1830.790 }, rot = { x = 0.000, y = 185.173, z = 0.000 }, level = 1 },
[1020] = { config_id = 1020, monster_id = 21010701, pos = { x = 154.475, y = 649.362, z = -1831.548 }, rot = { x = 0.000, y = 203.320, z = 0.000 }, level = 1 },
[1021] = { config_id = 1021, monster_id = 21010701, pos = { x = 156.988, y = 649.363, z = -1831.810 }, rot = { x = 0.000, y = 206.146, z = 0.000 }, level = 1 },
[1022] = { config_id = 1022, monster_id = 21010701, pos = { x = 142.586, y = 649.363, z = -1835.738 }, rot = { x = 0.000, y = 107.237, z = 0.000 }, level = 1 },
[1023] = { config_id = 1023, monster_id = 21010701, pos = { x = 139.782, y = 649.366, z = -1836.406 }, rot = { x = 0.000, y = 107.237, z = 0.000 }, level = 1 },
[1024] = { config_id = 1024, monster_id = 21010701, pos = { x = 141.050, y = 649.364, z = -1834.019 }, rot = { x = 0.000, y = 107.237, z = 0.000 }, level = 1 },
[1025] = { config_id = 1025, monster_id = 21020201, pos = { x = 143.348, y = 649.371, z = -1842.363 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1026] = { config_id = 1026, monster_id = 21020201, pos = { x = 147.758, y = 649.372, z = -1844.242 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1027] = { config_id = 1027, monster_id = 21020201, pos = { x = 152.630, y = 649.373, z = -1845.493 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1028] = { config_id = 1028, monster_id = 21010601, pos = { x = 157.078, y = 649.374, z = -1845.904 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1029] = { config_id = 1029, monster_id = 21010601, pos = { x = 158.530, y = 649.372, z = -1848.440 }, rot = { x = 0.000, y = 325.767, z = 0.000 }, level = 1 },
[1030] = { config_id = 1030, monster_id = 21010601, pos = { x = 160.662, y = 649.371, z = -1844.489 }, rot = { x = 0.000, y = 325.767, z = 0.000 }, level = 1 },
[1031] = { config_id = 1031, monster_id = 20011301, pos = { x = 161.861, y = 649.370, z = -1841.079 }, rot = { x = 0.000, y = 287.675, z = 0.000 }, level = 1 },
[1032] = { config_id = 1032, monster_id = 20011301, pos = { x = 160.355, y = 649.366, z = -1837.722 }, rot = { x = 0.000, y = 285.016, z = 0.000 }, level = 1 },
[1033] = { config_id = 1033, monster_id = 20011301, pos = { x = 142.157, y = 649.360, z = -1833.659 }, rot = { x = 0.000, y = 107.237, z = 0.000 }, level = 1 },
[1034] = { config_id = 1034, monster_id = 20011301, pos = { x = 149.513, y = 649.360, z = -1830.211 }, rot = { x = 0.000, y = 185.173, z = 0.000 }, level = 1 },
[1035] = { config_id = 1035, monster_id = 20011301, pos = { x = 143.976, y = 649.360, z = -1831.024 }, rot = { x = 0.000, y = 185.173, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[1001] = { config_id = 1001, gadget_id = 70360010, pos = { x = 151.374, y = 649.290, z = -1834.159 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 94 } } },
[1036] = { config_id = 1036, gadget_id = 70900201, pos = { x = 151.374, y = 649.365, z = -1834.159 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1038] = { config_id = 1038, gadget_id = 70220119, pos = { x = 125.080, y = 673.610, z = -1861.873 }, rot = { x = 0.000, y = 41.408, z = 0.000 }, level = 1, server_global_value_config = { ["SGV_Constellation_Mark"]= 1038, ["SGV_Constellation_Target"]= 1039} },
[1039] = { config_id = 1039, gadget_id = 70220119, pos = { x = 125.014, y = 666.783, z = -1861.815 }, rot = { x = 0.000, y = 41.408, z = 0.000 }, level = 1, server_global_value_config = { ["SGV_Constellation_Mark"]= 1039, ["SGV_Constellation_Target"]= 1040} },
[1040] = { config_id = 1040, gadget_id = 70220119, pos = { x = 124.497, y = 662.400, z = -1854.562 }, rot = { x = 0.000, y = 41.408, z = 0.000 }, level = 1, server_global_value_config = { ["SGV_Constellation_Mark"]= 1040, ["SGV_Constellation_Target"]= 1041} },
[1041] = { config_id = 1041, gadget_id = 70220119, pos = { x = 118.897, y = 665.753, z = -1849.623 }, rot = { x = 0.000, y = 41.408, z = 0.000 }, level = 1, server_global_value_config = { ["SGV_Constellation_Mark"]= 1041, ["SGV_Constellation_Target"]= 1042} },
[1042] = { config_id = 1042, gadget_id = 70220119, pos = { x = 120.367, y = 657.136, z = -1850.919 }, rot = { x = 0.000, y = 41.408, z = 0.000 }, level = 1, server_global_value_config = { ["SGV_Constellation_Mark"]= 1042, ["SGV_Constellation_Target"]= 1043} },
[1043] = { config_id = 1043, gadget_id = 70220119, pos = { x = 129.423, y = 657.349, z = -1858.906 }, rot = { x = 0.000, y = 41.408, z = 0.000 }, level = 1, server_global_value_config = { ["SGV_Constellation_Mark"]= 1043, ["SGV_Constellation_Target"]= 1042} },
[1044] = { config_id = 1044, gadget_id = 70310323, pos = { x = 143.254, y = 649.355, z = -1850.449 }, rot = { x = 0.000, y = 321.849, z = 0.000 }, level = 1 },
[1045] = { config_id = 1045, gadget_id = 70310323, pos = { x = 150.702, y = 649.371, z = -1844.903 }, rot = { x = 0.000, y = 324.714, z = 0.000 }, level = 1 },
[1046] = { config_id = 1046, gadget_id = 70310323, pos = { x = 151.065, y = 649.366, z = -1836.738 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[1047] = { config_id = 1047, gadget_id = 70310323, pos = { x = 144.433, y = 649.364, z = -1833.137 }, rot = { x = 0.000, y = 17.398, z = 0.000 }, level = 1 },
[1048] = { config_id = 1048, gadget_id = 70310323, pos = { x = 157.278, y = 649.361, z = -1826.494 }, rot = { x = 0.000, y = 64.014, z = 0.000 }, level = 1 },
[1049] = { config_id = 1049, gadget_id = 70310323, pos = { x = 163.603, y = 649.369, z = -1838.530 }, rot = { x = 0.000, y = 332.614, z = 0.000 }, level = 1 },
[1050] = { config_id = 1050, gadget_id = 70380012, pos = { x = 148.915, y = 637.795, z = -1835.635 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
[1053] = { config_id = 1053, gadget_id = 70310457, pos = { x = 144.412, y = 649.354, z = -1849.603 }, rot = { x = 270.000, y = 143.002, z = 0.000 }, level = 1 },
[1054] = { config_id = 1054, gadget_id = 70310457, pos = { x = 145.109, y = 649.353, z = -1849.076 }, rot = { x = 270.000, y = 143.002, z = 0.000 }, level = 1 },
[1055] = { config_id = 1055, gadget_id = 70310457, pos = { x = 145.773, y = 649.352, z = -1848.575 }, rot = { x = 270.000, y = 143.002, z = 0.000 }, level = 1 },
[1056] = { config_id = 1056, gadget_id = 70310457, pos = { x = 146.448, y = 649.352, z = -1848.067 }, rot = { x = 270.000, y = 143.002, z = 0.000 }, level = 1 },
[1057] = { config_id = 1057, gadget_id = 70310457, pos = { x = 147.087, y = 649.351, z = -1847.584 }, rot = { x = 270.000, y = 143.002, z = 0.000 }, level = 1 },
[1058] = { config_id = 1058, gadget_id = 70310457, pos = { x = 147.765, y = 649.350, z = -1847.074 }, rot = { x = 270.000, y = 143.002, z = 0.000 }, level = 1 },
[1059] = { config_id = 1059, gadget_id = 70310457, pos = { x = 148.430, y = 649.350, z = -1846.573 }, rot = { x = 270.000, y = 143.002, z = 0.000 }, level = 1 },
[1060] = { config_id = 1060, gadget_id = 70310457, pos = { x = 148.845, y = 649.372, z = -1846.268 }, rot = { x = 270.000, y = 143.002, z = 0.000 }, level = 1 },
-- 分割线
[1061] = { config_id = 1061, gadget_id = 70310457, pos = { x = 149.525, y = 649.372, z = -1845.755 }, rot = { x = 270.000, y = 143.002, z = 0.000 }, level = 1 },
[1062] = { config_id = 1062, gadget_id = 70310457, pos = { x = 150.831, y = 649.372, z = -1844.413 }, rot = { x = 270.000, y = 91.980, z = 0.000 }, level = 1 },
[1063] = { config_id = 1063, gadget_id = 70310457, pos = { x = 150.861, y = 649.372, z = -1843.541 }, rot = { x = 270.000, y = 91.980, z = 0.000 }, level = 1 },
[1064] = { config_id = 1064, gadget_id = 70310457, pos = { x = 150.890, y = 649.372, z = -1842.709 }, rot = { x = 270.000, y = 91.980, z = 0.000 }, level = 1 },
[1065] = { config_id = 1065, gadget_id = 70310457, pos = { x = 150.919, y = 649.372, z = -1841.864 }, rot = { x = 270.000, y = 91.980, z = 0.000 }, level = 1 },
[1066] = { config_id = 1066, gadget_id = 70310457, pos = { x = 150.946, y = 649.372, z = -1841.065 }, rot = { x = 270.000, y = 91.980, z = 0.000 }, level = 1 },
[1067] = { config_id = 1067, gadget_id = 70310457, pos = { x = 150.975, y = 649.372, z = -1840.216 }, rot = { x = 270.000, y = 91.980, z = 0.000 }, level = 1 },
[1068] = { config_id = 1068, gadget_id = 70310457, pos = { x = 151.004, y = 649.372, z = -1839.384 }, rot = { x = 270.000, y = 91.980, z = 0.000 }, level = 1 },
[1069] = { config_id = 1069, gadget_id = 70310457, pos = { x = 151.030, y = 649.372, z = -1838.622 }, rot = { x = 270.000, y = 91.980, z = 0.000 }, level = 1 },
-- 分割线
[1070] = { config_id = 1070, gadget_id = 70310457, pos = { x = 151.060, y = 649.372, z = -1837.771 }, rot = { x = 270.000, y = 91.980, z = 0.000 }, level = 1 },
[1071] = { config_id = 1071, gadget_id = 70310457, pos = { x = 151.055, y = 649.372, z = -1836.475 }, rot = { x = 270.000, y = 28.644, z = 0.000 }, level = 1 },
[1072] = { config_id = 1072, gadget_id = 70310457, pos = { x = 150.290, y = 649.372, z = -1836.057 }, rot = { x = 270.000, y = 28.644, z = 0.000 }, level = 1 },
[1073] = { config_id = 1073, gadget_id = 70310457, pos = { x = 149.559, y = 649.372, z = -1835.658 }, rot = { x = 270.000, y = 28.644, z = 0.000 }, level = 1 },
[1074] = { config_id = 1074, gadget_id = 70310457, pos = { x = 148.817, y = 649.372, z = -1835.253 }, rot = { x = 270.000, y = 28.644, z = 0.000 }, level = 1 },
[1075] = { config_id = 1075, gadget_id = 70310457, pos = { x = 148.115, y = 649.372, z = -1834.870 }, rot = { x = 270.000, y = 28.644, z = 0.000 }, level = 1 },
[1076] = { config_id = 1076, gadget_id = 70310457, pos = { x = 147.369, y = 649.372, z = -1834.462 }, rot = { x = 270.000, y = 28.644, z = 0.000 }, level = 1 },
[1077] = { config_id = 1077, gadget_id = 70310457, pos = { x = 146.639, y = 649.372, z = -1834.063 }, rot = { x = 270.000, y = 28.644, z = 0.000 }, level = 1 },
[1078] = { config_id = 1078, gadget_id = 70310457, pos = { x = 145.970, y = 649.372, z = -1833.698 }, rot = { x = 270.000, y = 28.644, z = 0.000 }, level = 1 },
-- 分割线
[1079] = { config_id = 1079, gadget_id = 70310457, pos = { x = 145.222, y = 649.372, z = -1833.290 }, rot = { x = 270.000, y = 28.644, z = 0.000 }, level = 1 },
[1080] = { config_id = 1080, gadget_id = 70310457, pos = { x = 151.647, y = 649.372, z = -1829.385 }, rot = { x = 270.000, y = 332.826, z = 0.000 }, level = 1 },
[1081] = { config_id = 1081, gadget_id = 70310457, pos = { x = 150.871, y = 649.372, z = -1829.784 }, rot = { x = 270.000, y = 332.826, z = 0.000 }, level = 1 },
[1082] = { config_id = 1082, gadget_id = 70310457, pos = { x = 150.130, y = 649.372, z = -1830.164 }, rot = { x = 270.000, y = 332.826, z = 0.000 }, level = 1 },
[1083] = { config_id = 1083, gadget_id = 70310457, pos = { x = 149.378, y = 649.372, z = -1830.550 }, rot = { x = 270.000, y = 332.826, z = 0.000 }, level = 1 },
[1084] = { config_id = 1084, gadget_id = 70310457, pos = { x = 148.667, y = 649.372, z = -1830.916 }, rot = { x = 270.000, y = 332.826, z = 0.000 }, level = 1 },
[1085] = { config_id = 1085, gadget_id = 70310457, pos = { x = 147.911, y = 649.372, z = -1831.303 }, rot = { x = 270.000, y = 332.826, z = 0.000 }, level = 1 },
[1086] = { config_id = 1086, gadget_id = 70310457, pos = { x = 147.170, y = 649.372, z = -1831.684 }, rot = { x = 270.000, y = 332.826, z = 0.000 }, level = 1 },
[1087] = { config_id = 1087, gadget_id = 70310457, pos = { x = 146.492, y = 649.372, z = -1832.033 }, rot = { x = 270.000, y = 332.826, z = 0.000 }, level = 1 },
[1088] = { config_id = 1088, gadget_id = 70310457, pos = { x = 145.735, y = 649.372, z = -1832.422 }, rot = { x = 270.000, y = 332.826, z = 0.000 }, level = 1 },
[1089] = { config_id = 1089, gadget_id = 70310457, pos = { x = 155.299, y = 649.372, z = -1827.509 }, rot = { x = 270.000, y = 332.826, z = 0.000 }, level = 1 },
[1090] = { config_id = 1090, gadget_id = 70310457, pos = { x = 154.523, y = 649.372, z = -1827.908 }, rot = { x = 270.000, y = 332.826, z = 0.000 }, level = 1 },
[1091] = { config_id = 1091, gadget_id = 70310457, pos = { x = 153.783, y = 649.372, z = -1828.288 }, rot = { x = 270.000, y = 332.826, z = 0.000 }, level = 1 },
[1092] = { config_id = 1092, gadget_id = 70310457, pos = { x = 153.031, y = 649.372, z = -1828.674 }, rot = { x = 270.000, y = 332.826, z = 0.000 }, level = 1 },
[1093] = { config_id = 1093, gadget_id = 70310457, pos = { x = 152.320, y = 649.372, z = -1829.040 }, rot = { x = 270.000, y = 332.826, z = 0.000 }, level = 1 },
-- 分割线
[1094] = { config_id = 1094, gadget_id = 70310457, pos = { x = 155.940, y = 649.372, z = -1827.182 }, rot = { x = 270.000, y = 332.826, z = 0.000 }, level = 1 },
[1095] = { config_id = 1095, gadget_id = 70310457, pos = { x = 160.804, y = 649.372, z = -1833.185 }, rot = { x = 270.000, y = 62.068, z = 0.000 }, level = 1 },
[1096] = { config_id = 1096, gadget_id = 70310457, pos = { x = 160.394, y = 649.372, z = -1832.414 }, rot = { x = 270.000, y = 62.068, z = 0.000 }, level = 1 },
[1097] = { config_id = 1097, gadget_id = 70310457, pos = { x = 160.005, y = 649.372, z = -1831.678 }, rot = { x = 270.000, y = 62.068, z = 0.000 }, level = 1 },
[1098] = { config_id = 1098, gadget_id = 70310457, pos = { x = 159.609, y = 649.372, z = -1830.932 }, rot = { x = 270.000, y = 62.068, z = 0.000 }, level = 1 },
[1099] = { config_id = 1099, gadget_id = 70310457, pos = { x = 159.234, y = 649.372, z = -1830.226 }, rot = { x = 270.000, y = 62.068, z = 0.000 }, level = 1 },
[1100] = { config_id = 1100, gadget_id = 70310457, pos = { x = 158.837, y = 649.372, z = -1829.474 }, rot = { x = 270.000, y = 62.068, z = 0.000 }, level = 1 },
[1101] = { config_id = 1101, gadget_id = 70310457, pos = { x = 158.446, y = 649.372, z = -1828.739 }, rot = { x = 270.000, y = 62.068, z = 0.000 }, level = 1 },
[1102] = { config_id = 1102, gadget_id = 70310457, pos = { x = 158.088, y = 649.372, z = -1828.065 }, rot = { x = 270.000, y = 62.068, z = 0.000 }, level = 1 },
[1103] = { config_id = 1103, gadget_id = 70310457, pos = { x = 157.689, y = 649.372, z = -1827.313 }, rot = { x = 270.000, y = 62.068, z = 0.000 }, level = 1 },
[1104] = { config_id = 1104, gadget_id = 70310457, pos = { x = 162.728, y = 649.372, z = -1836.812 }, rot = { x = 270.000, y = 62.068, z = 0.000 }, level = 1 },
[1105] = { config_id = 1105, gadget_id = 70310457, pos = { x = 162.319, y = 649.372, z = -1836.041 }, rot = { x = 270.000, y = 62.068, z = 0.000 }, level = 1 },
[1106] = { config_id = 1106, gadget_id = 70310457, pos = { x = 161.929, y = 649.372, z = -1835.306 }, rot = { x = 270.000, y = 62.068, z = 0.000 }, level = 1 },
[1107] = { config_id = 1107, gadget_id = 70310457, pos = { x = 161.533, y = 649.372, z = -1834.559 }, rot = { x = 270.000, y = 62.068, z = 0.000 }, level = 1 },
[1108] = { config_id = 1108, gadget_id = 70310457, pos = { x = 161.158, y = 649.372, z = -1833.853 }, rot = { x = 270.000, y = 62.068, z = 0.000 }, level = 1 },
-- 分割线
[1109] = { config_id = 1109, gadget_id = 70310457, pos = { x = 163.063, y = 649.372, z = -1837.448 }, rot = { x = 270.000, y = 62.068, z = 0.000 }, level = 1 },
[1110] = { config_id = 1110, gadget_id = 70310075, pos = { x = 168.546, y = 649.541, z = -1827.859 }, rot = { x = 0.000, y = 61.091, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
[1052] = { config_id = 1052, shape = RegionShape.SPHERE, radius = 15, pos = { x = 152.365, y = 649.368, z = -1834.358 } }
}
-- 触发器
triggers = {
{ config_id = 1001037, name = "SELECT_OPTION_1037", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1037", action = "action_EVENT_SELECT_OPTION_1037", trigger_count = 0 },
{ config_id = 1001051, name = "CHALLENGE_FAIL_1051", event = EventType.EVENT_CHALLENGE_FAIL, source = "2010055", condition = "", action = "action_EVENT_CHALLENGE_FAIL_1051", trigger_count = 0 },
{ config_id = 1001052, name = "ENTER_REGION_1052", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1052", action = "action_EVENT_ENTER_REGION_1052", trigger_count = 0 },
{ config_id = 1001111, name = "CHALLENGE_SUCCESS_1111", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "2010055", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_1111", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1050 },
regions = { 1052 },
triggers = { "SELECT_OPTION_1037", "CHALLENGE_FAIL_1051", "ENTER_REGION_1052", "CHALLENGE_SUCCESS_1111" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 1038, 1039, 1040, 1041, 1042, 1043, 1044, 1045, 1046, 1047, 1048, 1049, 1053, 1054, 1055, 1056, 1057, 1058, 1059, 1060, 1061, 1062, 1063, 1064, 1065, 1066, 1067, 1068, 1069, 1070, 1071, 1072, 1073, 1074, 1075, 1076, 1077, 1078, 1079, 1080, 1081, 1082, 1083, 1084, 1085, 1086, 1087, 1088, 1089, 1090, 1091, 1092, 1093, 1094, 1095, 1096, 1097, 1098, 1099, 1100, 1101, 1102, 1103, 1104, 1105, 1106, 1107, 1108, 1109 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 1036 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_1037(context, evt)
-- 判断是gadgetid 1001 option_id 94
if 1001 ~= evt.param1 then
return false
end
if 94 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1037(context, evt)
-- 将configid为 1001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 235852001 ;指定config1001;物件身上指定option94
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 235852001, 1001, 94) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 创建id为1110的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1110 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_1051(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 235852001, 1001, {94}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将configid为 1001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1110 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1052(context, evt)
if evt.param1 ~= 1052 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_1052(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 235852001, EntityType.GADGET, 1036 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_1111(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1110 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
require "V2_8/DLActivityDungeon"
@@ -0,0 +1,322 @@
-- 基础信息
local base_info = {
group_id = 235852002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70310436, pos = { x = 400.302, y = 613.406, z = -1655.037 }, rot = { x = 0.000, y = 309.580, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2002, gadget_id = 70310436, pos = { x = 390.031, y = 613.406, z = -1647.706 }, rot = { x = 0.000, y = 333.854, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2003, gadget_id = 70310436, pos = { x = 389.800, y = 613.406, z = -1635.385 }, rot = { x = 0.000, y = 333.854, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2004, gadget_id = 70310436, pos = { x = 405.245, y = 613.406, z = -1639.928 }, rot = { x = 0.000, y = 330.619, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2005, gadget_id = 70310436, pos = { x = 407.748, y = 613.406, z = -1632.368 }, rot = { x = 0.000, y = 330.909, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2006, gadget_id = 70310436, pos = { x = 415.369, y = 613.406, z = -1634.412 }, rot = { x = 0.000, y = 332.412, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2007, gadget_id = 70310436, pos = { x = 415.439, y = 613.406, z = -1647.059 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2008, gadget_id = 70310075, pos = { x = 343.817, y = 625.333, z = -1672.974 }, rot = { x = 359.944, y = 61.067, z = 0.608 }, level = 1 },
{ config_id = 2010, gadget_id = 70900201, pos = { x = 399.703, y = 613.406, z = -1642.797 }, rot = { x = 0.000, y = 64.052, z = 0.000 }, level = 1 },
{ config_id = 2012, gadget_id = 70310457, pos = { x = 398.983, y = 613.681, z = -1654.035 }, rot = { x = 270.000, y = 216.453, z = 0.000 }, level = 1 },
{ config_id = 2013, gadget_id = 70310457, pos = { x = 398.291, y = 613.681, z = -1653.524 }, rot = { x = 270.000, y = 216.453, z = 0.000 }, level = 1 },
{ config_id = 2014, gadget_id = 70310457, pos = { x = 397.594, y = 613.681, z = -1653.009 }, rot = { x = 270.000, y = 216.453, z = 0.000 }, level = 1 },
{ config_id = 2015, gadget_id = 70310457, pos = { x = 396.903, y = 613.681, z = -1652.499 }, rot = { x = 270.000, y = 216.453, z = 0.000 }, level = 1 },
{ config_id = 2016, gadget_id = 70310457, pos = { x = 396.231, y = 613.681, z = -1652.003 }, rot = { x = 270.000, y = 216.453, z = 0.000 }, level = 1 },
{ config_id = 2017, gadget_id = 70310457, pos = { x = 395.583, y = 613.681, z = -1651.523 }, rot = { x = 270.000, y = 216.453, z = 0.000 }, level = 1 },
{ config_id = 2018, gadget_id = 70310457, pos = { x = 394.943, y = 613.681, z = -1651.050 }, rot = { x = 270.000, y = 216.453, z = 0.000 }, level = 1 },
{ config_id = 2019, gadget_id = 70310457, pos = { x = 394.354, y = 613.681, z = -1650.615 }, rot = { x = 270.000, y = 216.453, z = 0.000 }, level = 1 },
{ config_id = 2020, gadget_id = 70310457, pos = { x = 393.681, y = 613.681, z = -1650.118 }, rot = { x = 270.000, y = 216.453, z = 0.000 }, level = 1 },
{ config_id = 2021, gadget_id = 70310457, pos = { x = 393.002, y = 613.681, z = -1649.617 }, rot = { x = 270.000, y = 216.453, z = 0.000 }, level = 1 },
{ config_id = 2022, gadget_id = 70310457, pos = { x = 392.344, y = 613.681, z = -1649.131 }, rot = { x = 270.000, y = 216.453, z = 0.000 }, level = 1 },
{ config_id = 2023, gadget_id = 70310457, pos = { x = 391.658, y = 613.681, z = -1648.624 }, rot = { x = 270.000, y = 216.453, z = 0.000 }, level = 1 },
-- 分割线
{ config_id = 2024, gadget_id = 70310457, pos = { x = 390.999, y = 613.681, z = -1648.138 }, rot = { x = 270.000, y = 216.453, z = 0.000 }, level = 1 },
{ config_id = 2025, gadget_id = 70310457, pos = { x = 390.270, y = 613.681, z = -1646.671 }, rot = { x = 270.000, y = 269.953, z = 0.000 }, level = 1 },
{ config_id = 2026, gadget_id = 70310457, pos = { x = 390.269, y = 613.681, z = -1645.810 }, rot = { x = 270.000, y = 269.953, z = 0.000 }, level = 1 },
{ config_id = 2027, gadget_id = 70310457, pos = { x = 390.269, y = 613.681, z = -1644.943 }, rot = { x = 270.000, y = 269.953, z = 0.000 }, level = 1 },
{ config_id = 2028, gadget_id = 70310457, pos = { x = 390.267, y = 613.681, z = -1644.085 }, rot = { x = 270.000, y = 269.953, z = 0.000 }, level = 1 },
{ config_id = 2029, gadget_id = 70310457, pos = { x = 390.267, y = 613.681, z = -1643.250 }, rot = { x = 270.000, y = 269.953, z = 0.000 }, level = 1 },
{ config_id = 2030, gadget_id = 70310457, pos = { x = 390.267, y = 613.681, z = -1642.443 }, rot = { x = 270.000, y = 269.953, z = 0.000 }, level = 1 },
{ config_id = 2031, gadget_id = 70310457, pos = { x = 390.266, y = 613.681, z = -1641.648 }, rot = { x = 270.000, y = 269.953, z = 0.000 }, level = 1 },
{ config_id = 2032, gadget_id = 70310457, pos = { x = 390.266, y = 613.681, z = -1640.916 }, rot = { x = 270.000, y = 269.953, z = 0.000 }, level = 1 },
{ config_id = 2033, gadget_id = 70310457, pos = { x = 390.265, y = 613.681, z = -1640.079 }, rot = { x = 270.000, y = 269.953, z = 0.000 }, level = 1 },
{ config_id = 2034, gadget_id = 70310457, pos = { x = 390.264, y = 613.681, z = -1639.235 }, rot = { x = 270.000, y = 269.953, z = 0.000 }, level = 1 },
{ config_id = 2035, gadget_id = 70310457, pos = { x = 390.264, y = 613.681, z = -1638.418 }, rot = { x = 270.000, y = 269.953, z = 0.000 }, level = 1 },
{ config_id = 2036, gadget_id = 70310457, pos = { x = 390.263, y = 613.681, z = -1637.564 }, rot = { x = 270.000, y = 269.953, z = 0.000 }, level = 1 },
-- 分割线
{ config_id = 2037, gadget_id = 70310457, pos = { x = 390.262, y = 613.681, z = -1636.746 }, rot = { x = 270.000, y = 269.953, z = 0.000 }, level = 1 },
{ config_id = 2038, gadget_id = 70310457, pos = { x = 391.206, y = 613.681, z = -1635.785 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2039, gadget_id = 70310457, pos = { x = 392.030, y = 613.681, z = -1636.034 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2040, gadget_id = 70310457, pos = { x = 392.860, y = 613.681, z = -1636.285 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2041, gadget_id = 70310457, pos = { x = 393.681, y = 613.681, z = -1636.533 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2042, gadget_id = 70310457, pos = { x = 394.480, y = 613.681, z = -1636.775 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2043, gadget_id = 70310457, pos = { x = 395.252, y = 613.681, z = -1637.008 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2044, gadget_id = 70310457, pos = { x = 396.014, y = 613.681, z = -1637.239 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2045, gadget_id = 70310457, pos = { x = 396.714, y = 613.681, z = -1637.451 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2046, gadget_id = 70310457, pos = { x = 397.515, y = 613.681, z = -1637.693 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2047, gadget_id = 70310457, pos = { x = 398.323, y = 613.681, z = -1637.937 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2048, gadget_id = 70310457, pos = { x = 399.105, y = 613.681, z = -1638.174 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2049, gadget_id = 70310457, pos = { x = 399.923, y = 613.681, z = -1638.421 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2050, gadget_id = 70310457, pos = { x = 400.706, y = 613.681, z = -1638.657 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2051, gadget_id = 70310457, pos = { x = 401.454, y = 613.681, z = -1638.884 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2052, gadget_id = 70310457, pos = { x = 402.244, y = 613.681, z = -1639.123 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2053, gadget_id = 70310457, pos = { x = 403.080, y = 613.681, z = -1639.376 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
-- 分割线
{ config_id = 2054, gadget_id = 70310457, pos = { x = 403.881, y = 613.681, z = -1639.617 }, rot = { x = 270.000, y = 16.825, z = 0.000 }, level = 1 },
{ config_id = 2055, gadget_id = 70310457, pos = { x = 405.542, y = 613.681, z = -1639.056 }, rot = { x = 270.000, y = 287.830, z = 0.000 }, level = 1 },
{ config_id = 2056, gadget_id = 70310457, pos = { x = 405.805, y = 613.681, z = -1638.237 }, rot = { x = 270.000, y = 287.830, z = 0.000 }, level = 1 },
{ config_id = 2057, gadget_id = 70310457, pos = { x = 406.071, y = 613.681, z = -1637.411 }, rot = { x = 270.000, y = 287.830, z = 0.000 }, level = 1 },
{ config_id = 2058, gadget_id = 70310457, pos = { x = 406.333, y = 613.681, z = -1636.594 }, rot = { x = 270.000, y = 287.830, z = 0.000 }, level = 1 },
{ config_id = 2059, gadget_id = 70310457, pos = { x = 406.589, y = 613.681, z = -1635.800 }, rot = { x = 270.000, y = 287.830, z = 0.000 }, level = 1 },
{ config_id = 2060, gadget_id = 70310457, pos = { x = 406.836, y = 613.681, z = -1635.032 }, rot = { x = 270.000, y = 287.830, z = 0.000 }, level = 1 },
{ config_id = 2061, gadget_id = 70310457, pos = { x = 407.080, y = 613.681, z = -1634.274 }, rot = { x = 270.000, y = 287.830, z = 0.000 }, level = 1 },
-- 分割线
{ config_id = 2062, gadget_id = 70310457, pos = { x = 407.304, y = 613.681, z = -1633.578 }, rot = { x = 270.000, y = 287.830, z = 0.000 }, level = 1 },
{ config_id = 2063, gadget_id = 70310457, pos = { x = 408.691, y = 613.681, z = -1632.652 }, rot = { x = 270.000, y = 14.416, z = 0.000 }, level = 1 },
{ config_id = 2064, gadget_id = 70310457, pos = { x = 409.524, y = 613.681, z = -1632.866 }, rot = { x = 270.000, y = 14.416, z = 0.000 }, level = 1 },
{ config_id = 2065, gadget_id = 70310457, pos = { x = 410.365, y = 613.681, z = -1633.083 }, rot = { x = 270.000, y = 14.416, z = 0.000 }, level = 1 },
{ config_id = 2066, gadget_id = 70310457, pos = { x = 411.196, y = 613.681, z = -1633.296 }, rot = { x = 270.000, y = 14.416, z = 0.000 }, level = 1 },
{ config_id = 2067, gadget_id = 70310457, pos = { x = 412.003, y = 613.681, z = -1633.504 }, rot = { x = 270.000, y = 14.416, z = 0.000 }, level = 1 },
{ config_id = 2068, gadget_id = 70310457, pos = { x = 412.785, y = 613.681, z = -1633.705 }, rot = { x = 270.000, y = 14.416, z = 0.000 }, level = 1 },
{ config_id = 2069, gadget_id = 70310457, pos = { x = 413.556, y = 613.681, z = -1633.903 }, rot = { x = 270.000, y = 14.416, z = 0.000 }, level = 1 },
-- 分割线
{ config_id = 2070, gadget_id = 70310457, pos = { x = 414.264, y = 613.681, z = -1634.085 }, rot = { x = 270.000, y = 14.416, z = 0.000 }, level = 1 },
{ config_id = 2071, gadget_id = 70310457, pos = { x = 415.856, y = 613.681, z = -1635.888 }, rot = { x = 270.000, y = 92.407, z = 0.000 }, level = 1 },
{ config_id = 2072, gadget_id = 70310457, pos = { x = 415.820, y = 613.681, z = -1636.747 }, rot = { x = 270.000, y = 92.407, z = 0.000 }, level = 1 },
{ config_id = 2073, gadget_id = 70310457, pos = { x = 415.783, y = 613.681, z = -1637.614 }, rot = { x = 270.000, y = 92.407, z = 0.000 }, level = 1 },
{ config_id = 2074, gadget_id = 70310457, pos = { x = 415.747, y = 613.681, z = -1638.472 }, rot = { x = 270.000, y = 92.407, z = 0.000 }, level = 1 },
{ config_id = 2075, gadget_id = 70310457, pos = { x = 415.712, y = 613.681, z = -1639.305 }, rot = { x = 270.000, y = 92.407, z = 0.000 }, level = 1 },
{ config_id = 2076, gadget_id = 70310457, pos = { x = 415.678, y = 613.681, z = -1640.111 }, rot = { x = 270.000, y = 92.407, z = 0.000 }, level = 1 },
{ config_id = 2077, gadget_id = 70310457, pos = { x = 415.645, y = 613.681, z = -1640.906 }, rot = { x = 270.000, y = 92.407, z = 0.000 }, level = 1 },
{ config_id = 2078, gadget_id = 70310457, pos = { x = 415.614, y = 613.681, z = -1641.637 }, rot = { x = 270.000, y = 92.407, z = 0.000 }, level = 1 },
{ config_id = 2079, gadget_id = 70310457, pos = { x = 415.575, y = 613.681, z = -1642.469 }, rot = { x = 270.000, y = 92.407, z = 0.000 }, level = 1 },
{ config_id = 2080, gadget_id = 70310457, pos = { x = 415.540, y = 613.681, z = -1643.302 }, rot = { x = 270.000, y = 92.407, z = 0.000 }, level = 1 },
{ config_id = 2081, gadget_id = 70310457, pos = { x = 415.506, y = 613.681, z = -1644.108 }, rot = { x = 270.000, y = 92.407, z = 0.000 }, level = 1 },
{ config_id = 2082, gadget_id = 70310457, pos = { x = 415.473, y = 613.681, z = -1644.903 }, rot = { x = 270.000, y = 92.407, z = 0.000 }, level = 1 },
-- 分割线
{ config_id = 2083, gadget_id = 70310457, pos = { x = 415.438, y = 613.681, z = -1645.726 }, rot = { x = 270.000, y = 92.407, z = 0.000 }, level = 1 },
{ config_id = 2085, gadget_id = 70310075, pos = { x = 469.492, y = 612.784, z = -1606.767 }, rot = { x = 359.972, y = 58.441, z = 0.610 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 2011, shape = RegionShape.SPHERE, radius = 15, pos = { x = 400.070, y = 613.406, z = -1642.706 } },
{ config_id = 2084, shape = RegionShape.SPHERE, radius = 18, pos = { x = 404.757, y = 613.406, z = -1639.958 } },
{ config_id = 2086, shape = RegionShape.SPHERE, radius = 5, pos = { x = 398.826, y = 613.406, z = -1639.054 } }
}
-- 触发器
triggers = {
{ config_id = 1002009, name = "GADGET_STATE_CHANGE_2009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2009", action = "action_EVENT_GADGET_STATE_CHANGE_2009", trigger_count = 0 },
{ config_id = 1002011, name = "ENTER_REGION_2011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2011", action = "action_EVENT_ENTER_REGION_2011", trigger_count = 0 },
{ config_id = 1002084, name = "ENTER_REGION_2084", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2084", action = "action_EVENT_ENTER_REGION_2084" },
{ config_id = 1002086, name = "ENTER_REGION_2086", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2086", action = "action_EVENT_ENTER_REGION_2086", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "camera", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2010, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026, 2027, 2028, 2029, 2030, 2031, 2032, 2033, 2034, 2035, 2036, 2037, 2038, 2039, 2040, 2041, 2042, 2043, 2044, 2045, 2046, 2047, 2048, 2049, 2050, 2051, 2052, 2053, 2054, 2055, 2056, 2057, 2058, 2059, 2060, 2061, 2062, 2063, 2064, 2065, 2066, 2067, 2068, 2069, 2070, 2071, 2072, 2073, 2074, 2075, 2076, 2077, 2078, 2079, 2080, 2081, 2082, 2083, 2085 },
regions = { 2011, 2084, 2086 },
triggers = { "GADGET_STATE_CHANGE_2009", "ENTER_REGION_2011", "ENTER_REGION_2084", "ENTER_REGION_2086" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2009(context, evt)
if 2005 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2009(context, evt)
-- 触发镜头注目,注目位置为坐标(343,625,-1672),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=343, y=625, z=-1672}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, 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
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 235852004, 4)
-- 将configid为 2001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2003 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2006 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2007 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2011(context, evt)
if evt.param1 ~= 2011 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_2011(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 235852002, EntityType.GADGET, 2010 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2084(context, evt)
if evt.param1 ~= 2084 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
if 0~=ScriptLib.GetExhibitionAccumulableData(context,context.uid,11402108) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2084(context, evt)
ScriptLib.AddExhibitionAccumulableData(context, context.uid,"Activity_SummerTimeV2_Mona_Guide1", 1)
ScriptLib.ShowClientTutorial(context,867,{})
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2086(context, evt)
if evt.param1 ~= 2086 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"camera"为0
if ScriptLib.GetGroupVariableValue(context, "camera") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2086(context, evt)
-- 触发镜头注目,注目位置为坐标(401,653,-1640),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=401, y=653, z=-1640}
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
-- 将本组内变量名为 "camera" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "camera", 1, 235852002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
@@ -0,0 +1,113 @@
-- 基础信息
local base_info = {
group_id = 235852003
}
-- DEFS_MISCS
local defs = {
--连线形态
patterns =
{
--形态1
[1] =
{
[3001] = 3002,
[3002] = 3003,
[3003] = 3004,
[3004] = 3005,
[3005] = 3006,
[3006] = 3007,
[3007] = 0,
},
--形态2
[2] =
{
[35001] = 35003,
[35002] = 35004,
[35003] = 35004,
[35004] = 35006,
[35005] = 35001,
[35006] = 35001,
},
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[3001] = { config_id = 3001, gadget_id = 70310179, pos = { x = 400.273, y = 654.578, z = -1650.073 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[3002] = { config_id = 3002, gadget_id = 70310179, pos = { x = 393.353, y = 654.578, z = -1646.118 }, rot = { x = 0.000, y = 62.587, z = 0.000 }, level = 1 },
[3003] = { config_id = 3003, gadget_id = 70310179, pos = { x = 390.775, y = 651.818, z = -1636.949 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[3004] = { config_id = 3004, gadget_id = 70310179, pos = { x = 401.728, y = 653.236, z = -1640.526 }, rot = { x = 0.000, y = 336.491, z = 0.000 }, level = 1 },
[3005] = { config_id = 3005, gadget_id = 70310179, pos = { x = 405.367, y = 654.578, z = -1635.178 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearAction2 },
[3006] = { config_id = 3006, gadget_id = 70310179, pos = { x = 410.304, y = 654.578, z = -1636.323 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[3007] = { config_id = 3007, gadget_id = 70310179, pos = { x = 409.377, y = 654.578, z = -1644.079 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[3008] = { config_id = 3008, gadget_id = 70310389, pos = { x = 401.480, y = 654.578, z = -1641.332 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[3009] = { config_id = 3009, gadget_id = 70310179, pos = { x = 405.367, y = 654.578, z = -1635.178 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3003, 3004, 3005, 3006, 3007, 3008, 3009 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V2_8/ConstellationPattern"
@@ -0,0 +1,375 @@
-- 基础信息
local base_info = {
group_id = 235852004
}
-- DEFS_MISCS
local defs = {
--起始操作台
starter = 4001 ,
--起始操作台选项
option_id = 94 ,
--波次之间延时 秒
delay = 2,
--挑战总时限 秒
time_limit = 90,
is_tutorial = 1,
challenge_id = 2010055,
type = 4,
rand_suites = {3},
--怪物潮信息
--monsters填入怪物configID,为一组怪物的集合,即一波怪物
--当场上本列表的怪数量小于min时触发补怪,补至max。max勿超过mosnters数量【max是代表一次性刷出的最大数量,min代表的是当小于该值时会触发补怪,每只怪物在一个集合内只能使用一次】
--spec_event:随着本怪物潮的出现而发生的关卡事件。为LD约定好的枚举。(即希望随着怪物潮出现的BUFF)
tide_cfg = {
[1] = { monsters = {4002,4003,4004,4005,4006,4007,4008,4009,4010,4011}, min =10, max = 10,mona_buffs = {1}},
},
stars = {
--suite x
[3] = {{4012, 4019}, {4013,4020}, {4014,4021}, {4015,4022}, {4016,4023}, {4017,4024},{4018,4025}},
},
--怪物潮随机表
--随机固定顺序怪物潮组合 每次进地城随机取key。
--key对应value代表依序出现的MonsterTide【即上面tide_cfg中配置的参数】,小花括号内配置复数个表示同时刷出。【即table配置不同的怪物波次的组合,允许复数个怪物波次为一波一次性刷出】
rand_table = {
[1] =
{
{1},
},
},
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[4002] = { config_id = 4002, monster_id = 21020201, pos = { x = 192.812, y = 634.126, z = -1745.411 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4003] = { config_id = 4003, monster_id = 21020201, pos = { x = 200.920, y = 634.126, z = -1719.519 }, rot = { x = 0.000, y = 179.349, z = 0.000 }, level = 1 },
[4004] = { config_id = 4004, monster_id = 21010501, pos = { x = 211.088, y = 634.126, z = -1736.750 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4005] = { config_id = 4005, monster_id = 21010501, pos = { x = 179.536, y = 634.126, z = -1730.259 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4006] = { config_id = 4006, monster_id = 21011001, pos = { x = 183.587, y = 634.126, z = -1738.814 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4007] = { config_id = 4007, monster_id = 21011001, pos = { x = 207.208, y = 634.126, z = -1726.210 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4008] = { config_id = 4008, monster_id = 21010701, pos = { x = 200.437, y = 634.126, z = -1740.115 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4009] = { config_id = 4009, monster_id = 21010701, pos = { x = 196.539, y = 634.126, z = -1741.557 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4010] = { config_id = 4010, monster_id = 21011201, pos = { x = 189.375, y = 634.126, z = -1730.467 }, rot = { x = 0.000, y = 136.681, z = 0.000 }, level = 1 },
[4011] = { config_id = 4011, monster_id = 21011201, pos = { x = 195.992, y = 634.126, z = -1726.914 }, rot = { x = 0.000, y = 138.268, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[4001] = { config_id = 4001, gadget_id = 70360010, pos = { x = 196.697, y = 633.804, z = -1732.698 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, autopick = true, worktop_config = { init_options = { 94 } } },
[4012] = { config_id = 4012, gadget_id = 70220119, pos = { x = 219.801, y = 648.279, z = -1753.214 }, rot = { x = 0.000, y = 59.847, z = 0.000 }, level = 1, is_guest_can_operate = true, server_global_value_config = { ["SGV_Constellation_Mark"]= 4012, ["SGV_Constellation_Target"]= 4013} },
[4013] = { config_id = 4013, gadget_id = 70220119, pos = { x = 216.744, y = 645.686, z = -1754.990 }, rot = { x = 0.000, y = 59.847, z = 0.000 }, level = 1, server_global_value_config = { ["SGV_Constellation_Mark"]= 4013, ["SGV_Constellation_Target"]= 4014} },
[4014] = { config_id = 4014, gadget_id = 70220119, pos = { x = 220.794, y = 643.037, z = -1752.637 }, rot = { x = 0.000, y = 59.847, z = 0.000 }, level = 1, server_global_value_config = { ["SGV_Constellation_Mark"]= 4014, ["SGV_Constellation_Target"]= 4012} },
[4015] = { config_id = 4015, gadget_id = 70220119, pos = { x = 212.637, y = 647.189, z = -1757.376 }, rot = { x = 0.000, y = 59.847, z = 0.000 }, level = 1, server_global_value_config = { ["SGV_Constellation_Mark"]= 4015, ["SGV_Constellation_Target"]= 4013} },
[4016] = { config_id = 4016, gadget_id = 70220119, pos = { x = 208.893, y = 646.196, z = -1759.551 }, rot = { x = 0.000, y = 59.847, z = 0.000 }, level = 1, server_global_value_config = { ["SGV_Constellation_Mark"]= 4016, ["SGV_Constellation_Target"]= 4015} },
[4017] = { config_id = 4017, gadget_id = 70220119, pos = { x = 205.486, y = 650.002, z = -1759.401 }, rot = { x = 0.000, y = 59.847, z = 0.000 }, level = 1, server_global_value_config = { ["SGV_Constellation_Mark"]= 4017, ["SGV_Constellation_Target"]= 4016} },
[4018] = { config_id = 4018, gadget_id = 70220119, pos = { x = 204.787, y = 643.902, z = -1760.652 }, rot = { x = 0.000, y = 59.847, z = 0.000 }, level = 1, server_global_value_config = { ["SGV_Constellation_Mark"]= 4018, ["SGV_Constellation_Target"]= 4017} },
[4019] = { config_id = 4019, gadget_id = 70310323, pos = { x = 206.052, y = 634.126, z = -1733.528 }, rot = { x = 0.000, y = 14.937, z = 0.000 }, level = 1 },
[4020] = { config_id = 4020, gadget_id = 70310323, pos = { x = 198.951, y = 634.126, z = -1731.091 }, rot = { x = 0.000, y = 17.574, z = 0.000 }, level = 1 },
[4021] = { config_id = 4021, gadget_id = 70310323, pos = { x = 202.395, y = 634.126, z = -1725.949 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4022] = { config_id = 4022, gadget_id = 70310323, pos = { x = 195.619, y = 634.126, z = -1735.932 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4023] = { config_id = 4023, gadget_id = 70310323, pos = { x = 190.020, y = 634.126, z = -1736.001 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4024] = { config_id = 4024, gadget_id = 70310323, pos = { x = 187.814, y = 634.126, z = -1743.454 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4025] = { config_id = 4025, gadget_id = 70310323, pos = { x = 182.516, y = 634.126, z = -1733.837 }, rot = { x = 0.000, y = 19.142, z = 0.000 }, level = 1 },
[4027] = { config_id = 4027, gadget_id = 70310075, pos = { x = 199.829, y = 635.710, z = -1768.140 }, rot = { x = 0.000, y = 330.914, z = 0.000 }, level = 1 },
[4028] = { config_id = 4028, gadget_id = 70900201, pos = { x = 196.697, y = 634.126, z = -1732.698 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
[4032] = { config_id = 4032, gadget_id = 70310457, pos = { x = 204.566, y = 634.049, z = -1733.097 }, rot = { x = 270.000, y = 199.000, z = 0.000 }, level = 1 },
[4033] = { config_id = 4033, gadget_id = 70310457, pos = { x = 203.768, y = 634.049, z = -1732.822 }, rot = { x = 270.000, y = 199.000, z = 0.000 }, level = 1 },
[4034] = { config_id = 4034, gadget_id = 70310457, pos = { x = 202.963, y = 634.049, z = -1732.545 }, rot = { x = 270.000, y = 199.000, z = 0.000 }, level = 1 },
[4035] = { config_id = 4035, gadget_id = 70310457, pos = { x = 202.161, y = 634.049, z = -1732.269 }, rot = { x = 270.000, y = 199.000, z = 0.000 }, level = 1 },
[4036] = { config_id = 4036, gadget_id = 70310457, pos = { x = 201.344, y = 634.049, z = -1731.988 }, rot = { x = 270.000, y = 199.000, z = 0.000 }, level = 1 },
-- 分割线
[4037] = { config_id = 4037, gadget_id = 70310457, pos = { x = 200.629, y = 634.049, z = -1731.742 }, rot = { x = 270.000, y = 199.000, z = 0.000 }, level = 1 },
[4038] = { config_id = 4038, gadget_id = 70310457, pos = { x = 199.362, y = 634.049, z = -1729.850 }, rot = { x = 270.000, y = 307.932, z = 0.000 }, level = 1 },
[4039] = { config_id = 4039, gadget_id = 70310457, pos = { x = 199.881, y = 634.049, z = -1729.183 }, rot = { x = 270.000, y = 307.932, z = 0.000 }, level = 1 },
[4040] = { config_id = 4040, gadget_id = 70310457, pos = { x = 200.405, y = 634.049, z = -1728.513 }, rot = { x = 270.000, y = 307.932, z = 0.000 }, level = 1 },
[4041] = { config_id = 4041, gadget_id = 70310457, pos = { x = 200.926, y = 634.049, z = -1727.843 }, rot = { x = 270.000, y = 307.932, z = 0.000 }, level = 1 },
[4042] = { config_id = 4042, gadget_id = 70310457, pos = { x = 201.457, y = 634.049, z = -1727.162 }, rot = { x = 270.000, y = 307.932, z = 0.000 }, level = 1 },
-- 分割线
[4043] = { config_id = 4043, gadget_id = 70310457, pos = { x = 201.921, y = 634.049, z = -1726.565 }, rot = { x = 270.000, y = 307.932, z = 0.000 }, level = 1 },
[4044] = { config_id = 4044, gadget_id = 70310457, pos = { x = 204.653, y = 634.049, z = -1731.073 }, rot = { x = 270.000, y = 241.396, z = 0.000 }, level = 1 },
[4045] = { config_id = 4045, gadget_id = 70310457, pos = { x = 204.248, y = 634.049, z = -1730.331 }, rot = { x = 270.000, y = 241.396, z = 0.000 }, level = 1 },
[4046] = { config_id = 4046, gadget_id = 70310457, pos = { x = 203.842, y = 634.049, z = -1729.584 }, rot = { x = 270.000, y = 241.396, z = 0.000 }, level = 1 },
[4047] = { config_id = 4047, gadget_id = 70310457, pos = { x = 203.435, y = 634.049, z = -1728.839 }, rot = { x = 270.000, y = 241.396, z = 0.000 }, level = 1 },
[4048] = { config_id = 4048, gadget_id = 70310457, pos = { x = 203.021, y = 634.049, z = -1728.081 }, rot = { x = 270.000, y = 241.396, z = 0.000 }, level = 1 },
[4049] = { config_id = 4049, gadget_id = 70310457, pos = { x = 202.659, y = 634.049, z = -1727.417 }, rot = { x = 270.000, y = 241.396, z = 0.000 }, level = 1 },
[4050] = { config_id = 4050, gadget_id = 70310457, pos = { x = 205.053, y = 634.049, z = -1731.806 }, rot = { x = 270.000, y = 241.396, z = 0.000 }, level = 1 },
-- 分割线
[4051] = { config_id = 4051, gadget_id = 70310457, pos = { x = 205.411, y = 634.049, z = -1732.463 }, rot = { x = 270.000, y = 241.396, z = 0.000 }, level = 1 },
[4052] = { config_id = 4052, gadget_id = 70310457, pos = { x = 195.833, y = 634.049, z = -1734.621 }, rot = { x = 270.000, y = 307.932, z = 0.000 }, level = 1 },
[4053] = { config_id = 4053, gadget_id = 70310457, pos = { x = 196.352, y = 634.049, z = -1733.954 }, rot = { x = 270.000, y = 307.932, z = 0.000 }, level = 1 },
[4054] = { config_id = 4054, gadget_id = 70310457, pos = { x = 196.875, y = 634.049, z = -1733.284 }, rot = { x = 270.000, y = 307.932, z = 0.000 }, level = 1 },
[4055] = { config_id = 4055, gadget_id = 70310457, pos = { x = 197.396, y = 634.049, z = -1732.614 }, rot = { x = 270.000, y = 307.932, z = 0.000 }, level = 1 },
[4056] = { config_id = 4056, gadget_id = 70310457, pos = { x = 197.927, y = 634.049, z = -1731.933 }, rot = { x = 270.000, y = 307.932, z = 0.000 }, level = 1 },
-- 分割线
[4057] = { config_id = 4057, gadget_id = 70310457, pos = { x = 198.392, y = 634.049, z = -1731.336 }, rot = { x = 270.000, y = 307.932, z = 0.000 }, level = 1 },
[4058] = { config_id = 4058, gadget_id = 70310457, pos = { x = 191.172, y = 634.049, z = -1735.970 }, rot = { x = 270.000, y = 359.796, z = 0.000 }, level = 1 },
[4059] = { config_id = 4059, gadget_id = 70310457, pos = { x = 192.017, y = 634.049, z = -1735.967 }, rot = { x = 270.000, y = 359.796, z = 0.000 }, level = 1 },
[4060] = { config_id = 4060, gadget_id = 70310457, pos = { x = 192.867, y = 634.049, z = -1735.964 }, rot = { x = 270.000, y = 359.796, z = 0.000 }, level = 1 },
[4061] = { config_id = 4061, gadget_id = 70310457, pos = { x = 193.716, y = 634.049, z = -1735.960 }, rot = { x = 270.000, y = 359.796, z = 0.000 }, level = 1 },
[4062] = { config_id = 4062, gadget_id = 70310457, pos = { x = 194.579, y = 634.049, z = -1735.957 }, rot = { x = 270.000, y = 359.796, z = 0.000 }, level = 1 },
-- 分割线
[4063] = { config_id = 4063, gadget_id = 70310457, pos = { x = 195.336, y = 634.049, z = -1735.954 }, rot = { x = 270.000, y = 359.796, z = 0.000 }, level = 1 },
[4064] = { config_id = 4064, gadget_id = 70310457, pos = { x = 188.189, y = 634.049, z = -1741.076 }, rot = { x = 270.000, y = 285.465, z = 0.000 }, level = 1 },
[4065] = { config_id = 4065, gadget_id = 70310457, pos = { x = 188.419, y = 634.049, z = -1740.257 }, rot = { x = 270.000, y = 285.465, z = 0.000 }, level = 1 },
[4066] = { config_id = 4066, gadget_id = 70310457, pos = { x = 188.646, y = 634.049, z = -1739.438 }, rot = { x = 270.000, y = 285.465, z = 0.000 }, level = 1 },
[4067] = { config_id = 4067, gadget_id = 70310457, pos = { x = 188.871, y = 634.049, z = -1738.620 }, rot = { x = 270.000, y = 285.465, z = 0.000 }, level = 1 },
[4068] = { config_id = 4068, gadget_id = 70310457, pos = { x = 189.102, y = 634.049, z = -1737.787 }, rot = { x = 270.000, y = 285.465, z = 0.000 }, level = 1 },
[4069] = { config_id = 4069, gadget_id = 70310457, pos = { x = 189.303, y = 634.049, z = -1737.058 }, rot = { x = 270.000, y = 285.465, z = 0.000 }, level = 1 },
-- 分割线
[4070] = { config_id = 4070, gadget_id = 70310457, pos = { x = 187.971, y = 634.049, z = -1741.865 }, rot = { x = 270.000, y = 285.465, z = 0.000 }, level = 1 },
[4071] = { config_id = 4071, gadget_id = 70310457, pos = { x = 185.095, y = 634.049, z = -1738.722 }, rot = { x = 270.000, y = 62.571, z = 0.000 }, level = 1 },
[4072] = { config_id = 4072, gadget_id = 70310457, pos = { x = 185.483, y = 634.049, z = -1739.478 }, rot = { x = 270.000, y = 62.571, z = 0.000 }, level = 1 },
[4073] = { config_id = 4073, gadget_id = 70310457, pos = { x = 185.875, y = 634.049, z = -1740.233 }, rot = { x = 270.000, y = 62.571, z = 0.000 }, level = 1 },
[4074] = { config_id = 4074, gadget_id = 70310457, pos = { x = 186.266, y = 634.049, z = -1740.985 }, rot = { x = 270.000, y = 62.571, z = 0.000 }, level = 1 },
[4075] = { config_id = 4075, gadget_id = 70310457, pos = { x = 186.665, y = 634.049, z = -1741.752 }, rot = { x = 270.000, y = 62.571, z = 0.000 }, level = 1 },
[4076] = { config_id = 4076, gadget_id = 70310457, pos = { x = 187.014, y = 634.049, z = -1742.424 }, rot = { x = 270.000, y = 62.571, z = 0.000 }, level = 1 },
[4077] = { config_id = 4077, gadget_id = 70310457, pos = { x = 184.718, y = 634.049, z = -1737.995 }, rot = { x = 270.000, y = 62.571, z = 0.000 }, level = 1 },
[4079] = { config_id = 4079, gadget_id = 70310075, pos = { x = 225.753, y = 637.841, z = -1716.446 }, rot = { x = 0.000, y = 241.790, z = 0.000 }, level = 1 },
[4080] = { config_id = 4080, gadget_id = 70310457, pos = { x = 183.203, y = 634.049, z = -1735.077 }, rot = { x = 270.000, y = 62.571, z = 0.000 }, level = 1 },
[4081] = { config_id = 4081, gadget_id = 70310457, pos = { x = 183.594, y = 634.049, z = -1735.828 }, rot = { x = 270.000, y = 62.571, z = 0.000 }, level = 1 },
[4082] = { config_id = 4082, gadget_id = 70310457, pos = { x = 183.993, y = 634.049, z = -1736.595 }, rot = { x = 270.000, y = 62.571, z = 0.000 }, level = 1 },
-- 分割线
[4083] = { config_id = 4083, gadget_id = 70310457, pos = { x = 184.342, y = 634.049, z = -1737.267 }, rot = { x = 270.000, y = 62.571, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
[4031] = { config_id = 4031, shape = RegionShape.SPHERE, radius = 15, pos = { x = 196.761, y = 634.126, z = -1733.785 } },
[4078] = { config_id = 4078, shape = RegionShape.SPHERE, radius = 15, pos = { x = 196.761, y = 634.126, z = -1733.785 } }
}
-- 触发器
triggers = {
{ config_id = 1004026, name = "CHALLENGE_SUCCESS_4026", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "2010055", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_4026", trigger_count = 0 },
{ config_id = 1004029, name = "SELECT_OPTION_4029", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4029", action = "action_EVENT_SELECT_OPTION_4029", trigger_count = 0 },
{ config_id = 1004030, name = "CHALLENGE_FAIL_4030", event = EventType.EVENT_CHALLENGE_FAIL, source = "2010055", condition = "", action = "action_EVENT_CHALLENGE_FAIL_4030", trigger_count = 0 },
{ config_id = 1004031, name = "ENTER_REGION_4031", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4031", action = "action_EVENT_ENTER_REGION_4031", trigger_count = 0 },
{ config_id = 1004078, name = "ENTER_REGION_4078", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4078", action = "action_EVENT_ENTER_REGION_4078" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4027, 4052, 4053, 4054, 4055, 4056, 4057, 4058, 4059, 4060, 4061, 4062, 4063, 4064, 4065, 4066, 4067, 4068, 4069, 4070, 4071, 4072, 4073, 4074, 4075, 4076, 4077, 4080, 4081, 4082, 4083 },
regions = { 4031, 4078 },
triggers = { "CHALLENGE_SUCCESS_4026", "SELECT_OPTION_4029", "CHALLENGE_FAIL_4030", "ENTER_REGION_4031", "ENTER_REGION_4078" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 4002, 4003, 4004, 4005, 4006, 4007, 4008, 4009, 4010, 4011 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 4012, 4013, 4014, 4015, 4016, 4017, 4018, 4019, 4020, 4021, 4022, 4023, 4024, 4025, 4032, 4033, 4034, 4035, 4036, 4037, 4038, 4039, 4040, 4041, 4042, 4043, 4044, 4045, 4046, 4047, 4048, 4049, 4050, 4051 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 4028 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_4026(context, evt)
-- 触发镜头注目,注目位置为坐标(199,635,-1768),持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=199, y=635, z=-1768}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, 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
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4027 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 235852006, 2)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4079 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4029(context, evt)
-- 判断是gadgetid 4001 option_id 94
if 4001 ~= evt.param1 then
return false
end
if 94 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4029(context, evt)
-- 将configid为 4001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 235852004 ;指定config4001;物件身上指定option94
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 235852004, 4001, 94) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 创建id为4079的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4079 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_4030(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 235852004, 4001, {94}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将configid为 4001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4079 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4031(context, evt)
if evt.param1 ~= 4031 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_4031(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 235852004, EntityType.GADGET, 4028 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4078(context, evt)
if evt.param1 ~= 4078 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
if 0~=ScriptLib.GetExhibitionAccumulableData(context,context.uid,11402109) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_4078(context, evt)
ScriptLib.AddExhibitionAccumulableData(context, context.uid,"Activity_SummerTimeV2_Mona_Guide2", 1)
ScriptLib.ShowClientTutorial(context,868,{})
return 0
end
require "V2_8/DLActivityDungeon"
@@ -0,0 +1,149 @@
-- 基础信息
local base_info = {
group_id = 235852005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5002, gadget_id = 70310446, pos = { x = 294.000, y = 626.040, z = -1675.250 }, rot = { x = 9.270, y = 86.770, z = 4.770 }, level = 1, persistent = true },
{ config_id = 5003, gadget_id = 70310459, pos = { x = 279.200, y = 629.250, z = -1689.000 }, rot = { x = 11.860, y = 20.540, z = 356.443 }, level = 1, persistent = true },
{ config_id = 5004, gadget_id = 70310459, pos = { x = 263.360, y = 632.800, z = -1700.469 }, rot = { x = 13.155, y = 97.045, z = 7.406 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 5001, shape = RegionShape.SPHERE, radius = 8, pos = { x = 298.594, y = 625.315, z = -1675.707 } },
{ config_id = 5005, shape = RegionShape.SPHERE, radius = 8, pos = { x = 281.206, y = 627.789, z = -1679.588 } },
{ config_id = 5006, shape = RegionShape.SPHERE, radius = 8, pos = { x = 271.918, y = 631.449, z = -1699.468 } }
}
-- 触发器
triggers = {
{ config_id = 1005001, name = "ENTER_REGION_5001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5001", action = "action_EVENT_ENTER_REGION_5001", trigger_count = 0 },
{ config_id = 1005005, name = "ENTER_REGION_5005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5005", action = "action_EVENT_ENTER_REGION_5005", trigger_count = 0 },
{ config_id = 1005006, name = "ENTER_REGION_5006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5006", action = "action_EVENT_ENTER_REGION_5006", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 5001, 5005, 5006 },
triggers = { "ENTER_REGION_5001", "ENTER_REGION_5005", "ENTER_REGION_5006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_5001(context, evt)
if evt.param1 ~= 5001 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_5001(context, evt)
-- 创建id为5002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5005(context, evt)
if evt.param1 ~= 5005 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_5005(context, evt)
-- 创建id为5003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5006(context, evt)
if evt.param1 ~= 5006 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_5006(context, evt)
-- 创建id为5004的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,116 @@
-- 基础信息
local base_info = {
group_id = 235852006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70310448, pos = { x = 204.880, y = 640.130, z = -1794.254 }, rot = { x = 1.000, y = 3.229, z = 359.170 }, level = 1 },
{ config_id = 6003, gadget_id = 70900201, pos = { x = 206.335, y = 634.439, z = -1778.534 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 6002, shape = RegionShape.SPHERE, radius = 8, pos = { x = 205.903, y = 634.444, z = -1776.893 } }
}
-- 触发器
triggers = {
{ config_id = 1006002, name = "ENTER_REGION_6002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6002", action = "action_EVENT_ENTER_REGION_6002", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 6002 },
triggers = { "ENTER_REGION_6002" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_6002(context, evt)
if evt.param1 ~= 6002 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_6002(context, evt)
-- 创建id为6001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 6001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 235852006, EntityType.GADGET, 6003 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 235852001, 4)
return 0
end
@@ -0,0 +1,133 @@
-- 基础信息
local base_info = {
group_id = 235852007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 7001, shape = RegionShape.CUBIC, size = { x = 100.000, y = 20.000, z = 100.000 }, pos = { x = 284.495, y = 596.530, z = -1676.417 } },
{ config_id = 7003, shape = RegionShape.CUBIC, size = { x = 100.000, y = 20.000, z = 100.000 }, pos = { x = 195.854, y = 603.811, z = -1802.165 } }
}
-- 触发器
triggers = {
{ config_id = 1007001, name = "ENTER_REGION_7001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7001", action = "action_EVENT_ENTER_REGION_7001", trigger_count = 0 },
{ config_id = 1007003, name = "ENTER_REGION_7003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7003", action = "action_EVENT_ENTER_REGION_7003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 7001, 7003 },
triggers = { "ENTER_REGION_7001", "ENTER_REGION_7003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_7001(context, evt)
if evt.param1 ~= 7001 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_7001(context, evt)
-- 将使用操作台的玩家传送至目标点
if evt.uid ~= nil then
local t_pos = {x=307.8, y=625.1, z=-1671}
if 0 ~= ScriptLib.TransPlayerToPos(context, {uid_list = {evt.uid}, pos = t_pos, rot = {x=0, y=-120, z=0}}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
else
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_7003(context, evt)
if evt.param1 ~= 7003 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_7003(context, evt)
-- 将使用操作台的玩家传送至目标点
if evt.uid ~= nil then
local t_pos = {x=197, y=645, z=-1810}
if 0 ~= ScriptLib.TransPlayerToPos(context, {uid_list = {evt.uid}, pos = t_pos, rot = {x=0, y=-120, z=0}}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
else
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
return 0
end
@@ -0,0 +1,471 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 200.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 233.8237,
"y": 607.9987,
"z": -1718.995
},
"rot": {
"x": 0.0,
"y": 327.2863,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 10.0,
"heightType": "Center",
"length": 200.0,
"useHeight": true,
"width": 200.0
},
"stringParam": "",
"tranPos": {
"x": 452.0,
"y": 613.0,
"z": -1615.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"2": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 200.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 363.4798,
"y": 580.8363,
"z": -1635.713
},
"rot": {
"x": 0.0,
"y": 327.2863,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 10.0,
"heightType": "Center",
"length": 200.0,
"useHeight": true,
"width": 200.0
},
"stringParam": "",
"tranPos": {
"x": 452.0,
"y": 613.0,
"z": -1615.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"3": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 1000.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 271.3297,
"y": 642.9987,
"z": -1814.712
},
"rot": {
"x": 0.0,
"y": 327.2863,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 100.0,
"heightType": "Center",
"length": 1.0,
"useHeight": true,
"width": 1000.0
},
"stringParam": "",
"tranPos": {
"x": 452.0,
"y": 613.0,
"z": -1615.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"4": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 300.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 69.88839,
"y": 603.4838,
"z": -1824.295
},
"rot": {
"x": 0.0,
"y": 327.2863,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 10.0,
"heightType": "Center",
"length": 200.0,
"useHeight": true,
"width": 200.0
},
"stringParam": "",
"tranPos": {
"x": 452.0,
"y": 613.0,
"z": -1615.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"5": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 1000.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": 174.4649,
"y": 642.9987,
"z": -1663.909
},
"rot": {
"x": 0.0,
"y": 327.2863,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 100.0,
"heightType": "Center",
"length": 1.0,
"useHeight": true,
"width": 1000.0
},
"stringParam": "",
"tranPos": {
"x": 452.0,
"y": 613.0,
"z": -1615.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 499.9856,
"y": 612.2707,
"z": -1569.239
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": -1.330757,
"y": -7.232945,
"z": 93.71742
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70310387,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 229.4629,
"y": 637.7,
"z": -1709.155
},
"rot": {
"x": 0.0,
"y": 148.7715,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 10.0,
"z": 10.0
},
"tranPos": {
"x": 232.0,
"y": 637.0,
"z": -1714.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"3": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70310387,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 463.8521,
"y": 612.77,
"z": -1609.843
},
"rot": {
"x": 0.0,
"y": 242.7462,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 10.0,
"z": 10.0
},
"tranPos": {
"x": 454.0,
"y": 612.0,
"z": -1612.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"4": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70310387,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 315.674,
"y": 625.36,
"z": -1656.928
},
"rot": {
"x": 0.0,
"y": 151.1142,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 15.0,
"z": 35.0
},
"tranPos": {
"x": 318.0,
"y": 625.0,
"z": -1662.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}
File diff suppressed because it is too large Load Diff