添加配置表

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,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -1000.0, z = -1000.0 },
size = { x = 2000.0, z = 2000.0 },
born_pos = { x = 104.997, y = 11.507, z = -0.546 },
born_rot = { x = 0.000, y = 270.000, z = 0.000 },
die_y = -20,
city_id = 1,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 1015 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -1000.0, z = -1000.0 }, max = { x = 1000.0, z = 1000.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,33 @@
{
"sceneId": 1015,
"routes": [
{
"localId": 1015001,
"name": "Block101",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -4.929842,
"y": 7.126636,
"z": -1.64976859
},
"waitTime": 1.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": -4.929842,
"y": 7.126636,
"z": 4.58070755
},
"waitTime": 1.0,
"targetVelocity": 2.0
}
]
}
]
}
@@ -0,0 +1,6 @@
-- 所有的group
groups = {
{ id = 201015001, refresh_id = 1001, pos = { x = 0.873, y = 0.600, z = 0.217 } },
{ id = 201015002, refresh_id = 1001, pos = { x = 67.898, y = 3.882, z = -0.435 } },
{ id = 201015003, refresh_id = 1001, pos = { x = -81.567, y = 29.917, z = 145.007 } }
}
@@ -0,0 +1,26 @@
dummy_points = {
["Acc01"] = { pos = { x = 3.751, y = 9.265, z = 2.034 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Acc02"] = { pos = { x = -22.262, y = 15.581, z = 1.800 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q48511Ambor"] = { pos = { x = 103.777, y = 10.605, z = -1.887 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q48511Paimon"] = { pos = { x = 103.149, y = 10.604, z = -0.719 }, rot = { x = 0.000, y = 161.500, z = 0.000 } },
["Q48511Player"] = { pos = { x = 103.851, y = 10.604, z = -0.384 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
["QuestNpc"] = { pos = { x = 106.047, y = 10.605, z = -2.673 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["WindBed01"] = { pos = { x = 59.185, y = 0.600, z = 8.081 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindBed02"] = { pos = { x = 58.983, y = 6.100, z = 2.452 }, rot = { x = 0.000, y = 270.000, z = 0.000 } },
["WindBed03"] = { pos = { x = 58.667, y = 6.000, z = -3.748 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindBed04"] = { pos = { x = 59.006, y = 0.600, z = -9.446 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindCushion01"] = { pos = { x = 64.000, y = -66.400, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindCushion02"] = { pos = { x = -149.400, y = -32.720, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindCushion03"] = { pos = { x = -148.000, y = -26.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindUp01"] = { pos = { x = -38.404, y = -4.000, z = 2.480 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindUp02"] = { pos = { x = -70.322, y = 12.000, z = 2.500 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindVertical101"] = { pos = { x = 76.961, y = -13.000, z = -2.911 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindVertical102"] = { pos = { x = 52.476, y = -14.500, z = 23.889 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindVertical103"] = { pos = { x = 32.708, y = -13.500, z = 5.514 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindVertical104"] = { pos = { x = -82.099, y = 13.100, z = 36.900 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindVertical105"] = { pos = { x = -72.697, y = 12.652, z = 68.114 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindVertical106"] = { pos = { x = -83.456, y = 12.000, z = 94.442 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindVertical107"] = { pos = { x = -82.300, y = 11.880, z = 117.394 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindVertical108"] = { pos = { x = -81.998, y = 12.000, z = 137.841 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WindVertical109"] = { pos = { x = -88.572, y = 11.500, z = 80.316 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}
@@ -0,0 +1,125 @@
-- 基础信息
local base_info = {
group_id = 201015001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1002, monster_id = 21010501, pos = { x = -83.075, y = 31.381, z = 68.117 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 1003, monster_id = 21010501, pos = { x = -80.747, y = 29.910, z = 99.401 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 1004, monster_id = 21011002, pos = { x = -77.184, y = 29.910, z = 99.556 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 1005, monster_id = 21011001, pos = { x = -81.364, y = 28.711, z = 57.513 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 1007, monster_id = 21011001, pos = { x = -75.919, y = 31.160, z = 85.970 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 1008, monster_id = 21011001, pos = { x = -77.384, y = 29.910, z = 130.156 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 1009, monster_id = 21011001, pos = { x = -87.790, y = 29.892, z = 124.833 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 1010, monster_id = 21010501, pos = { x = -83.446, y = 28.838, z = 59.520 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 1011, monster_id = 21010401, pos = { x = -80.978, y = 28.711, z = 60.084 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 402 },
{ config_id = 1012, monster_id = 21010902, pos = { x = -81.564, y = 29.910, z = 81.805 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 1013, monster_id = 21011001, pos = { x = -83.539, y = 30.010, z = 80.731 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 1015, monster_id = 21010501, pos = { x = -89.053, y = 31.910, z = 86.497 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 1016, monster_id = 21010401, pos = { x = -75.735, y = 29.820, z = 116.686 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 402 },
{ config_id = 1017, monster_id = 21010401, pos = { x = -76.585, y = 29.802, z = 115.321 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 402 },
{ config_id = 1018, monster_id = 21010901, pos = { x = -92.389, y = 29.910, z = 109.547 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1024, gadget_id = 70220005, pos = { x = 18.731, y = 0.600, z = -2.260 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 15 },
{ config_id = 1025, gadget_id = 70220005, pos = { x = 18.571, y = 0.600, z = 2.059 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 15 },
{ config_id = 1026, gadget_id = 70220005, pos = { x = -77.295, y = 29.816, z = 116.105 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 15 },
{ config_id = 1027, gadget_id = 70220005, pos = { x = -82.029, y = 29.968, z = 149.548 }, rot = { x = 0.000, y = 160.338, z = 0.000 }, level = 15 },
{ config_id = 1028, gadget_id = 70220005, pos = { x = -84.763, y = 29.968, z = 147.858 }, rot = { x = 0.000, y = 17.484, z = 0.000 }, level = 15 },
{ config_id = 1029, gadget_id = 70710005, pos = { x = 77.000, y = -13.500, z = -2.900 }, rot = { x = 0.000, y = 123.069, z = 0.000 }, level = 1 },
{ config_id = 1030, gadget_id = 70710005, pos = { x = 52.500, y = -15.000, z = 23.900 }, rot = { x = 0.000, y = 132.153, z = 0.000 }, level = 1 },
{ config_id = 1031, gadget_id = 70710005, pos = { x = 32.700, y = -13.500, z = 5.500 }, rot = { x = 0.000, y = 288.639, z = 0.000 }, level = 1 },
{ config_id = 1032, gadget_id = 70710005, pos = { x = -82.100, y = 12.661, z = 36.900 }, rot = { x = 0.000, y = 87.090, z = 0.000 }, level = 1 },
{ config_id = 1033, gadget_id = 70710005, pos = { x = -74.701, y = 12.261, z = 68.029 }, rot = { x = 0.000, y = 358.083, z = 0.000 }, level = 1 },
{ config_id = 1034, gadget_id = 70710005, pos = { x = -85.009, y = 11.561, z = 97.214 }, rot = { x = 0.000, y = 89.920, z = 0.000 }, level = 1 },
{ config_id = 1035, gadget_id = 70710005, pos = { x = -82.300, y = 11.500, z = 117.400 }, rot = { x = 0.000, y = 324.350, z = 0.000 }, level = 1 },
{ config_id = 1036, gadget_id = 70710005, pos = { x = -82.000, y = 12.661, z = 137.800 }, rot = { x = 0.000, y = 146.293, z = 0.000 }, level = 1 },
{ config_id = 1037, gadget_id = 70710005, pos = { x = -88.600, y = 11.100, z = 80.300 }, rot = { x = 0.000, y = 259.829, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3, shape = RegionShape.CUBIC, size = { x = 60.000, y = 20.000, z = 15.000 }, pos = { x = -83.800, y = 30.777, z = 37.629 } }
}
-- 触发器
triggers = {
{ config_id = 1000003, name = "ENTER_REGION_3", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3", action = "action_EVENT_ENTER_REGION_3", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1002, 1003, 1004, 1005, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1015, 1016, 1017, 1018 },
gadgets = { 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037 },
regions = { 3 },
triggers = { "ENTER_REGION_3" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_3(context, evt)
if evt.param1 ~= 3 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_3(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 201015002, monsters = {}, gadgets = {2024} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
@@ -0,0 +1,185 @@
-- 基础信息
local base_info = {
group_id = 201015002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2004, monster_id = 21010501, pos = { x = 33.711, y = 0.457, z = -3.778 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 3, disableWander = true, pose_id = 32 },
{ config_id = 2005, monster_id = 21010401, pos = { x = 65.878, y = 3.882, z = 0.483 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 402 },
{ config_id = 2006, monster_id = 21010501, pos = { x = 67.745, y = 3.882, z = 2.065 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 2007, monster_id = 21010401, pos = { x = 65.543, y = 3.882, z = 3.631 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 402 },
{ config_id = 2009, monster_id = 21010501, pos = { x = 43.461, y = 4.653, z = -7.958 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 2010, monster_id = 21011001, pos = { x = 26.728, y = 5.323, z = 10.150 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 2011, monster_id = 21011001, pos = { x = 44.644, y = 4.940, z = 18.822 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 3, disableWander = true, pose_id = 32 },
{ config_id = 2012, monster_id = 21011001, pos = { x = 43.582, y = 0.626, z = 9.602 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 2013, monster_id = 21010501, pos = { x = 28.210, y = 4.147, z = -8.166 }, rot = { x = 0.000, y = 65.300, z = 0.000 }, level = 3, disableWander = true, pose_id = 32 },
{ config_id = 2014, monster_id = 21010401, pos = { x = 16.221, y = 1.748, z = -2.948 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 402 },
{ config_id = 2015, monster_id = 21010401, pos = { x = 17.364, y = 0.600, z = -0.151 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 402 },
{ config_id = 2016, monster_id = 21010901, pos = { x = 16.124, y = 1.748, z = 2.744 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 2018, monster_id = 21011001, pos = { x = 19.115, y = 0.600, z = 3.716 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 2019, monster_id = 21010901, pos = { x = 45.946, y = 0.895, z = 7.007 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 3, disableWander = true, pose_id = 32 },
{ config_id = 2020, monster_id = 21010501, pos = { x = 36.231, y = 0.509, z = -3.016 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 3, disableWander = true, pose_id = 32 },
{ config_id = 2021, monster_id = 21010401, pos = { x = 64.410, y = 0.627, z = 17.583 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 402 },
{ config_id = 2022, monster_id = 21011001, pos = { x = 65.572, y = 0.626, z = 19.951 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2023, gadget_id = 70350002, pos = { x = 6.244, y = 2.740, z = 0.472 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 2024, gadget_id = 70900201, pos = { x = -82.486, y = 30.083, z = 37.320 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2025, gadget_id = 70710005, pos = { x = -38.400, y = -2.762, z = 2.500 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2026, gadget_id = 70710005, pos = { x = -70.300, y = 11.000, z = 10.983 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2027, gadget_id = 70690001, pos = { x = 3.800, y = 9.300, z = 2.000 }, rot = { x = 346.430, y = 270.000, z = 13.673 }, level = 1 },
{ config_id = 2028, gadget_id = 70690001, pos = { x = -13.600, y = 13.500, z = 1.867 }, rot = { x = 346.430, y = 269.561, z = 13.673 }, level = 1 },
{ config_id = 2029, gadget_id = 70690001, pos = { x = -4.900, y = 11.400, z = 1.933 }, rot = { x = 346.430, y = 269.561, z = 13.673 }, level = 1 },
{ config_id = 2030, gadget_id = 70900201, pos = { x = 7.247, y = 6.430, z = 0.484 }, rot = { x = 0.000, y = 90.083, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 2001, shape = RegionShape.CUBIC, size = { x = 10.000, y = 30.000, z = 50.000 }, pos = { x = 86.652, y = 3.882, z = 0.275 } }
}
-- 触发器
triggers = {
{ config_id = 1000001, name = "ANY_MONSTER_DIE_1", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1", action = "action_EVENT_ANY_MONSTER_DIE_1" },
{ config_id = 1002001, name = "ENTER_REGION_2001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2001", action = "action_EVENT_ENTER_REGION_2001", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 2004, 2005, 2006, 2007, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2018, 2019, 2020, 2021, 2022 },
gadgets = { 2023 },
regions = { 2001 },
triggers = { "ANY_MONSTER_DIE_1", "ENTER_REGION_2001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 201015002) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1(context, evt)
-- 将configid为 2023 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2023, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为2024的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2024 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2025的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2025 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2026的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2026 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2027的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2027 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2028的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2028 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为2029的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2029 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 201015002, monsters = {}, gadgets = {2030} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2001(context, evt)
if evt.param1 ~= 2001 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_2001(context, evt)
-- 创建id为2030的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2030 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,117 @@
-- 基础信息
local base_info = {
group_id = 201015003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3001, monster_id = 21011001, pos = { x = -82.148, y = 29.968, z = 147.409 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 3002, monster_id = 21010501, pos = { x = -85.405, y = 29.999, z = 148.787 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 3003, monster_id = 21010501, pos = { x = -86.841, y = 29.910, z = 150.537 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 3005, monster_id = 21011001, pos = { x = -80.146, y = 29.999, z = 149.615 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3006, gadget_id = 70350002, pos = { x = -82.919, y = 30.032, z = 160.353 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003007, name = "ANY_MONSTER_DIE_3007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3007", action = "action_EVENT_ANY_MONSTER_DIE_3007" },
{ config_id = 1003008, name = "TIMER_EVENT_3008", event = EventType.EVENT_TIMER_EVENT, source = "Delay", condition = "", action = "action_EVENT_TIMER_EVENT_3008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 3001, 3002, 3003, 3005 },
gadgets = { 3006 },
regions = { },
triggers = { "ANY_MONSTER_DIE_3007", "TIMER_EVENT_3008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3007(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 201015003) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3007(context, evt)
-- 延迟3秒后,向groupId为:201015003的对象,请求一次调用,并将string参数:"Delay" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 201015003, "Delay", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 201015001, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_3008(context, evt)
-- 将configid为 3006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,908 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 23.04336,
"y": -27.55314,
"z": 16.56139
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 300.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"10": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -43.49866,
"y": 24.71151,
"z": 113.1334
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 40.0,
"useHeight": true,
"width": 50.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.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": true
},
"11": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -84.93513,
"y": 15.50418,
"z": 104.4892
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 20.0,
"heightType": "Center",
"length": 60.0,
"useHeight": true,
"width": 40.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.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": true
},
"12": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -107.9543,
"y": 34.3325,
"z": 91.27466
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 40.0,
"heightType": "Center",
"length": 40.0,
"useHeight": true,
"width": 20.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.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": true
},
"13": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 8.791662,
"y": 2.397033,
"z": -21.3084
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 20.0,
"heightType": "Center",
"length": 10.0,
"useHeight": true,
"width": 20.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.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": true
},
"14": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -33.38342,
"y": 0.3235338,
"z": -27.48478
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 20.0,
"heightType": "Center",
"length": 20.0,
"useHeight": true,
"width": 20.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.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": true
},
"2": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 22.8989,
"y": -27.55314,
"z": 16.6
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 300.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.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": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -82.5,
"y": 3.1,
"z": 119.7
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 40.0,
"heightType": "Center",
"length": 160.0,
"useHeight": true,
"width": 100.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"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": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -82.5,
"y": 3.1,
"z": 119.6552
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 40.0,
"heightType": "Center",
"length": 160.0,
"useHeight": true,
"width": 100.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.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": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 79.20631,
"y": -3.762966,
"z": 28.38571
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 20.0,
"heightType": "Center",
"length": 30.0,
"useHeight": true,
"width": 10.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"6": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 73.01565,
"y": -3.946795,
"z": -16.39578
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 20.0,
"heightType": "Center",
"length": 10.0,
"useHeight": true,
"width": 40.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"7": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -37.1698,
"y": 20.0495,
"z": 103.541
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 30.0,
"heightType": "Center",
"length": 70.0,
"useHeight": true,
"width": 30.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"8": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -52.92748,
"y": 24.7115,
"z": 133.3999
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 30.0,
"heightType": "Center",
"length": 70.0,
"useHeight": true,
"width": 30.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": false
},
"9": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -123.5963,
"y": -77.40661,
"z": 81.91567
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 200.0,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 100.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.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": true
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": -82.83058,
"y": 15.79123,
"z": 171.3006
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 11.98024,
"y": 2.736336,
"z": 6.507569
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 30.0,
"z": 50.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"3": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": -75.0725,
"y": 28.60772,
"z": 51.82399
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 80.0,
"y": 40.0,
"z": 10.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"4": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 81.66609,
"y": 3.846258,
"z": 7.402369
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 30.0,
"z": 60.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}