添加配置表

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 = -2435.1, z = -2584.7 },
size = { x = 6167.8, z = 6199.6 },
born_pos = { x = 0.012, y = 52.550, z = -6.399 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -50,
city_id = 1,
vision_anchor = { x = -2435.1, z = -2584.7 }
}
-- 所有的区块
blocks = { 20012 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -2435.1, z = -2584.7 }, max = { x = 3732.7, z = 3614.9 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,400 @@
{
"sceneId": 20012,
"routes": [
{
"localId": 1,
"name": "DefaultRouteName",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -3.95064688,
"y": 52.01619,
"z": 17.65791
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": -4.035233,
"y": 52.01632,
"z": 18.8372211
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 4.92322731,
"y": 52.01633,
"z": 18.9192219
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 4.982828,
"y": 52.0161972,
"z": 17.7395744
},
"waitTime": 3.0,
"speedLevel": 1
}
]
},
{
"localId": 2,
"name": "DefaultRouteName",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 4.89343166,
"y": 51.97329,
"z": 16.0761986
},
"waitTime": 2.0,
"speedLevel": 1
},
{
"pos": {
"x": 4.938238,
"y": 51.9936447,
"z": 17.312727
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": -4.00880766,
"y": 52.0165634,
"z": 17.16753
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": -4.00516272,
"y": 52.0165634,
"z": 15.9905539
},
"waitTime": 2.0,
"speedLevel": 1
}
]
},
{
"localId": 3,
"name": "DefaultRouteName",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 12.5850515,
"y": 42.0165,
"z": 120.562866
},
"waitTime": 2.0,
"speedLevel": 1
},
{
"pos": {
"x": 10.58289,
"y": 42.0167236,
"z": 104.616219
},
"waitTime": 2.0,
"speedLevel": 1
},
{
"pos": {
"x": -4.50871944,
"y": 42.01673,
"z": 96.10886
},
"waitTime": 2.0,
"speedLevel": 1
},
{
"pos": {
"x": -11.1373634,
"y": 42.0163536,
"z": 108.109749
},
"waitTime": 2.0,
"speedLevel": 1
}
]
},
{
"localId": 4,
"name": "DefaultRouteName",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 29.2520924,
"y": 42.01659,
"z": 131.202469
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": 34.0807648,
"y": 42.01657,
"z": 130.414017
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": 34.02326,
"y": 42.0163345,
"z": 123.034973
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": 11.3414526,
"y": 42.01631,
"z": 122.2371
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -2.75738287,
"y": 42.0167,
"z": 93.76753
},
"waitTime": 0.0,
"speedLevel": 2
}
]
},
{
"localId": 5,
"name": "DefaultRouteName",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 43.27596,
"y": 42.01671,
"z": 83.72251
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 42.6208725,
"y": 42.0164948,
"z": 89.00817
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 33.4315872,
"y": 42.0165,
"z": 91.5222549
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 32.8578339,
"y": 41.5,
"z": 95.84895
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 25.9252758,
"y": 41.5,
"z": 112.340187
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 19.5515289,
"y": 41.5,
"z": 107.555595
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 23.80507,
"y": 41.5,
"z": 97.7889938
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 6,
"name": "DefaultRouteName",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 178.076492,
"y": 41.9995232,
"z": 120.157013
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 172.012085,
"y": 41.9995232,
"z": 119.990692
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 166.9493,
"y": 42.01629,
"z": 119.931122
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 146.280365,
"y": 39.5163155,
"z": 121.172462
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 7,
"name": "DefaultRouteName",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 178.40741,
"y": 41.99952,
"z": 121.279556
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 172.734055,
"y": 41.99952,
"z": 121.404579
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 166.307877,
"y": 42.01664,
"z": 121.574852
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 146.155075,
"y": 39.5163,
"z": 122.7005
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 8,
"name": "DefaultRouteName",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 191.693436,
"y": 58.5165,
"z": 345.408173
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 191.34549,
"y": 58.51664,
"z": 356.6869
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 191.711792,
"y": 56.99952,
"z": 377.748047
},
"waitTime": 0.0,
"speedLevel": 1
}
]
}
]
}
@@ -0,0 +1,10 @@
-- 所有的group
groups = {
{ id = 220012001, refresh_id = 1001, pos = { x = 0.061, y = 52.000, z = 18.462 } },
{ id = 220012002, refresh_id = 1001, pos = { x = 0.530, y = 47.000, z = 61.104 } },
{ id = 220012003, refresh_id = 1002, pos = { x = 1.763, y = 42.017, z = 102.991 } },
{ id = 220012004, refresh_id = 1, pos = { x = 55.421, y = 42.044, z = 121.086 } },
{ id = 220012005, refresh_id = 1001, pos = { x = 77.713, y = 39.516, z = 119.167 } },
{ id = 220012006, refresh_id = 1, pos = { x = 192.069, y = 46.017, z = 177.967 } },
{ id = 220012007, refresh_id = 1002, pos = { x = 188.784, y = 57.016, z = 332.703 } }
}
@@ -0,0 +1,2 @@
dummy_points = {
}
@@ -0,0 +1,76 @@
-- 基础信息
local base_info = {
group_id = 220012001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1001, monster_id = 21010201, pos = { x = -4.005, y = 52.016, z = 18.849 }, rot = { x = 0.000, y = 89.660, z = 0.000 }, level = 1 },
{ config_id = 1002, monster_id = 21010201, pos = { x = 4.618, y = 51.995, z = 17.338 }, rot = { x = 0.000, y = 270.620, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1003, gadget_id = 70220003, pos = { x = 18.916, y = 51.016, z = 46.379 }, rot = { x = 0.000, y = 181.580, z = 0.000 }, level = 1 },
{ config_id = 1004, gadget_id = 70220003, pos = { x = -8.331, y = 47.016, z = 71.418 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 1005, gadget_id = 70220003, pos = { x = -3.224, y = 47.007, z = 71.393 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 1001, 1002 },
gadgets = { 1003, 1004, 1005 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 220012002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3, monster_id = 20011401, pos = { x = -0.298, y = 47.016, z = 57.876 }, rot = { x = 0.000, y = 15.140, z = 0.000 }, level = 1 },
{ config_id = 4, monster_id = 20011401, pos = { x = -3.762, y = 47.000, z = 67.786 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5, monster_id = 20011401, pos = { x = -5.467, y = 47.000, z = 62.184 }, rot = { x = 0.000, y = 67.630, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 3, 4, 5 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,210 @@
-- 基础信息
local base_info = {
group_id = 220012003
}
-- Trigger变量
local defs = {
monster_id_1 = 3006,
monster_id_2 = 3007,
monster_id_3 = 3008,
monster_id_4 = 3009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3001, monster_id = 21010501, pos = { x = -16.491, y = 50.231, z = 111.771 }, rot = { x = 0.000, y = 148.850, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 3002, monster_id = 21010501, pos = { x = -14.518, y = 50.231, z = 114.316 }, rot = { x = 0.000, y = 158.100, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 3003, monster_id = 21020101, pos = { x = -4.403, y = 42.016, z = 107.936 }, rot = { x = 0.000, y = 178.810, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3004, monster_id = 21010201, pos = { x = -6.865, y = 42.016, z = 98.092 }, rot = { x = 0.000, y = 80.300, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3005, monster_id = 21010201, pos = { x = -4.471, y = 42.017, z = 95.525 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3006, monster_id = 21010301, pos = { x = 27.710, y = 42.016, z = 130.765 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3007, monster_id = 21010301, pos = { x = 27.593, y = 42.016, z = 131.913 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3008, monster_id = 21010201, pos = { x = 25.210, y = 42.017, z = 130.677 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3009, monster_id = 21010201, pos = { x = 24.899, y = 42.017, z = 131.878 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3010, gadget_id = 70220010, pos = { x = 5.824, y = 42.070, z = 109.103 }, rot = { x = 0.000, y = 187.200, z = 0.000 }, level = 1 },
{ config_id = 3011, gadget_id = 70220010, pos = { x = 5.700, y = 42.017, z = 98.238 }, rot = { x = 0.000, y = 185.700, z = 0.000 }, level = 1 },
{ config_id = 3012, gadget_id = 70220010, pos = { x = -4.525, y = 42.017, z = 98.275 }, rot = { x = 0.000, y = 158.700, z = 0.000 }, level = 1 },
{ config_id = 3013, gadget_id = 70220004, pos = { x = -16.993, y = 42.016, z = 109.493 }, rot = { x = 0.000, y = 229.534, z = 0.000 }, level = 1 },
{ config_id = 3014, gadget_id = 70220004, pos = { x = -13.296, y = 42.016, z = 109.380 }, rot = { x = 0.000, y = 102.081, z = 0.000 }, level = 1 },
{ config_id = 3015, gadget_id = 70220004, pos = { x = -19.600, y = 44.160, z = 109.600 }, rot = { x = 270.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3016, gadget_id = 70220004, pos = { x = -19.400, y = 47.500, z = 109.500 }, rot = { x = 270.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3017, gadget_id = 70220004, pos = { x = -19.400, y = 50.500, z = 109.555 }, rot = { x = 270.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3018, gadget_id = 70220004, pos = { x = -19.500, y = 50.800, z = 112.800 }, rot = { x = 270.000, y = 270.000, z = 0.000 }, level = 10 },
{ config_id = 3019, gadget_id = 70220005, pos = { x = -15.553, y = 50.231, z = 113.697 }, rot = { x = 0.000, y = 14.678, z = 0.000 }, level = 10 },
{ config_id = 3020, gadget_id = 70900201, pos = { x = 55.028, y = 44.180, z = 120.913 }, rot = { x = 0.000, y = 158.838, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 11, shape = RegionShape.SPHERE, radius = 5, pos = { x = 58.920, y = 42.017, z = 121.096 } }
}
-- 触发器
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 = 1000010, name = "ANY_MONSTER_DIE_10", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_10", action = "action_EVENT_ANY_MONSTER_DIE_10" },
{ config_id = 1000011, name = "ENTER_REGION_11", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11", action = "action_EVENT_ENTER_REGION_11", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 3001, 3002, 3003, 3004, 3005 },
gadgets = { 3010, 3011, 3012, 3013, 3014, 3015, 3016, 3017, 3018, 3019 },
regions = { 11 },
triggers = { "ANY_MONSTER_DIE_1", "ANY_MONSTER_DIE_10", "ENTER_REGION_11" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1(context, evt)
-- 判断剩余怪物数量是否是4
if ScriptLib.GetGroupMonsterCount(context) ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = defs.monster_id_1, delay_time = 0 }) then
return -1
end
-- 延迟0.5秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = defs.monster_id_2, delay_time = 0.5 }) then
return -1
end
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = defs.monster_id_3, delay_time = 1 }) then
return -1
end
-- 延迟1.5秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = defs.monster_id_4, delay_time = 1.5 }) then
return -1
end
-- play_type含义:1·代表开始播放; 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=-4, y=42, z=107}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
return -1
end
-- 调用提示id为 1005 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1005) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_10(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_10(context, evt)
-- 改变指定group组220012004中, configid为17的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220012004, 17, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 创生gadget 3020
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
-- 触发镜头注目,注目位置为坐标(48,45,120),持续时间为3秒,并且为强制注目形式,不广播其他玩家
local pos = {x=48, y=45, z=120}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3, 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
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11(context, evt)
if evt.param1 ~= 11 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_11(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220012003, monsters = {}, gadgets = {3020} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220012004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 17, gadget_id = 70350003, pos = { x = 54.883, y = 41.882, z = 120.970 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 17 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,152 @@
-- 基础信息
local base_info = {
group_id = 220012005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5001, monster_id = 21010301, pos = { x = 177.935, y = 42.000, z = 120.214 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 5002, monster_id = 21010301, pos = { x = 177.868, y = 42.000, z = 121.633 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 5003, monster_id = 21010301, pos = { x = 180.019, y = 42.000, z = 120.138 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 5004, monster_id = 21010301, pos = { x = 180.103, y = 42.000, z = 121.614 }, rot = { x = 0.000, y = 273.030, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 5005, monster_id = 20010901, pos = { x = 190.434, y = 42.100, z = 120.890 }, rot = { x = 0.000, y = 274.725, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5006, gadget_id = 70320001, pos = { x = 86.280, y = 39.517, z = 119.762 }, rot = { x = 0.000, y = 323.100, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5007, gadget_id = 70320001, pos = { x = 98.629, y = 39.453, z = 123.757 }, rot = { x = 0.000, y = 144.075, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5008, gadget_id = 70350002, pos = { x = 173.949, y = 42.000, z = 121.020 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5009, gadget_id = 70350002, pos = { x = 190.472, y = 42.000, z = 137.663 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 5010, gadget_id = 70320001, pos = { x = 112.875, y = 39.483, z = 120.756 }, rot = { x = 0.000, y = 133.602, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
{ config_id = 5, shape = RegionShape.SPHERE, radius = 12.11, pos = { x = 139.771, y = 39.516, z = 121.388 } }
}
-- 触发器
triggers = {
{ config_id = 1000005, name = "ENTER_REGION_5", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5", action = "action_EVENT_ENTER_REGION_5", forbid_guest = false },
{ config_id = 1000006, name = "ANY_MONSTER_DIE_6", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6", action = "action_EVENT_ANY_MONSTER_DIE_6", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 5005 },
gadgets = { 5006, 5007, 5008, 5009, 5010 },
regions = { 5 },
triggers = { "ENTER_REGION_5", "ANY_MONSTER_DIE_6" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_5(context, evt)
if evt.param1 ~= 5 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_5(context, evt)
-- 将configid为 5008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 5001, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 5002, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 5003, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 5004, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6(context, evt)
-- 将configid为 5009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 220012006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 24, gadget_id = 70690001, pos = { x = 188.431, y = 50.432, z = 197.624 }, rot = { x = 350.170, y = 357.200, z = 326.110 }, level = 1 },
{ config_id = 25, gadget_id = 70690001, pos = { x = 195.120, y = 50.976, z = 235.542 }, rot = { x = 343.900, y = 354.600, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 24, 25 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,253 @@
-- 基础信息
local base_info = {
group_id = 220012007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 7001, monster_id = 21020201, pos = { x = 191.706, y = 57.100, z = 382.269 }, rot = { x = 0.000, y = 179.300, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 7002, monster_id = 21010501, pos = { x = 186.342, y = 57.096, z = 386.928 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 7003, monster_id = 21010501, pos = { x = 196.708, y = 57.096, z = 386.865 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 7004, monster_id = 21010501, pos = { x = 189.866, y = 57.000, z = 388.063 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 7005, monster_id = 21010501, pos = { x = 194.076, y = 57.000, z = 387.675 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 7006, monster_id = 24010101, pos = { x = 191.460, y = 58.516, z = 350.308 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 100 },
{ config_id = 7007, monster_id = 21010501, pos = { x = 193.984, y = 48.576, z = 274.436 }, rot = { x = 0.000, y = 177.188, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 7008, monster_id = 21010501, pos = { x = 187.189, y = 48.583, z = 274.334 }, rot = { x = 0.000, y = 181.936, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7009, gadget_id = 70350003, pos = { x = 176.490, y = 56.935, z = 328.517 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 7010, gadget_id = 70350002, pos = { x = 191.520, y = 58.516, z = 347.441 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 7011, gadget_id = 70350003, pos = { x = 206.911, y = 57.016, z = 328.359 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 7012, gadget_id = 70211021, pos = { x = 191.554, y = 57.100, z = 382.291 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 6, drop_tag = "战斗高级蒙德", showcutscene = true, isOneoff = true }
}
-- 区域
regions = {
{ config_id = 7, shape = RegionShape.SPHERE, radius = 5, pos = { x = 191.651, y = 57.017, z = 315.581 } },
{ config_id = 12, shape = RegionShape.CUBIC, size = { x = 33.520, y = 26.160, z = 1.000 }, pos = { x = 191.036, y = 48.477, z = 242.436 } }
}
-- 触发器
triggers = {
{ config_id = 1000007, name = "ENTER_REGION_7", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7", action = "action_EVENT_ENTER_REGION_7", trigger_count = 0, forbid_guest = false },
{ config_id = 1000009, name = "ANY_MONSTER_DIE_9", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_9", action = "action_EVENT_ANY_MONSTER_DIE_9" },
{ config_id = 1000012, name = "ENTER_REGION_12", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12", action = "action_EVENT_ENTER_REGION_12", forbid_guest = false },
{ config_id = 1000014, name = "ANY_MONSTER_DIE_14", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_14", action = "action_EVENT_ANY_MONSTER_DIE_14" },
{ config_id = 1000015, name = "DUNGEON_SETTLE_15", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_15", action = "action_EVENT_DUNGEON_SETTLE_15" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 7001, 7002, 7003, 7004, 7005, 7007, 7008 },
gadgets = { 7009, 7010, 7011 },
regions = { 7, 12 },
triggers = { "ENTER_REGION_7", "ANY_MONSTER_DIE_9", "ENTER_REGION_12", "ANY_MONSTER_DIE_14", "DUNGEON_SETTLE_15" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_7(context, evt)
if evt.param1 ~= 7 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_7(context, evt)
-- 将configid为 7010 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7010, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_9(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9(context, evt)
-- 创生gadget 7012
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 7012 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220012001, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220012002, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220012003, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220012004, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220012005, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220012006, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220012007, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_12(context, evt)
if evt.param1 ~= 12 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_12(context, evt)
-- 通知groupid为220012007中,configid为:7007的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 7007, 220012007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为220012007中,configid为:7008的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 7008, 220012007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_14(context, evt)
if 7001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_14(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220012007, monsters = {7007,7008}, gadgets = {} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_15(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_15(context, evt)
-- 创生gadget 7012
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 7012 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
@@ -0,0 +1,278 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 194.5572,
"y": 24.3,
"z": 177.7569
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 10.0,
"heightType": "Center",
"length": 500.0,
"useHeight": true,
"width": 500.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
},
"2": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 100.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 41.4,
"y": 45.0,
"z": 41.17198
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 5.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": false
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [
220012003
],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": -8.236732,
"y": 47.01625,
"z": 53.47644
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 38.8,
"y": 5.0,
"z": 26.8
},
"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": [
220012005
],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 72.32637,
"y": 39.48112,
"z": 113.8505
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 13.0,
"y": 20.0,
"z": 30.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": [
220012007
],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 178.6461,
"y": 50.51649,
"z": 287.3959
},
"rot": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"size": {
"x": 49.2,
"y": 13.39,
"z": 47.21
},
"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": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 191.5102,
"y": 59.16,
"z": 399.6543
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.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
}