添加配置表

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 = -2325.0, z = -1646.1 },
size = { x = 5799.9, z = 5191.3 },
born_pos = { x = 343.110, y = -27.850, z = 472.373 },
born_rot = { x = 0.000, y = 180.000, z = 0.000 },
die_y = -970,
city_id = 1,
vision_anchor = { x = -2325.0, z = -1646.1 }
}
-- 所有的区块
blocks = { 50006 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -2325.0, z = -1646.1 }, max = { x = 3474.9, z = 3545.2 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,97 @@
{
"sceneId": 50006,
"routes": [
{
"localId": 50006001,
"name": "Route_50006001",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 360.9323,
"y": -11.3535643,
"z": 252.029327
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": 360.0753,
"y": -11.4596777,
"z": 243.282715
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": 344.925018,
"y": -11.3533144,
"z": 243.843323
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": 345.3587,
"y": -12.7412872,
"z": 263.9303
},
"waitTime": 0.0,
"speedLevel": 2
}
]
},
{
"localId": 50006002,
"name": "Route_50006002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 326.2266,
"y": -11.353507,
"z": 252.773468
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": 326.6803,
"y": -11.3536472,
"z": 243.442749
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": 341.892029,
"y": -11.4918919,
"z": 243.769363
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": 341.138672,
"y": -12.7412949,
"z": 263.863953
},
"waitTime": 0.0,
"speedLevel": 2
}
]
}
]
}
@@ -0,0 +1,12 @@
-- 所有的group
groups = {
{ id = 250006001, refresh_id = 1, pos = { x = 343.176, y = -28.891, z = 472.863 } },
{ id = 250006002, refresh_id = 1, pos = { x = 343.196, y = -28.965, z = 430.019 } },
{ id = 250006003, refresh_id = 1002, pos = { x = 342.873, y = -28.895, z = 425.865 } },
{ id = 250006004, refresh_id = 1, pos = { x = 343.339, y = -19.277, z = 348.263 } },
{ id = 250006005, refresh_id = 1002, pos = { x = 343.343, y = -19.277, z = 340.331 } },
{ id = 250006006, refresh_id = 1, pos = { x = 343.283, y = -12.741, z = 265.452 } },
{ id = 250006007, refresh_id = 1001, pos = { x = 343.276, y = -12.742, z = 260.655 } },
{ id = 250006008, refresh_id = 1001, pos = { x = 341.332, y = -12.742, z = 261.820 } },
{ id = 250006009, refresh_id = 1, pos = { x = 329.403, y = -11.863, z = 265.801 } }
}
@@ -0,0 +1,84 @@
-- 基础信息
local base_info = {
group_id = 250006001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1, gadget_id = 70350003, pos = { x = 353.168, y = -28.016, z = 404.768 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 2, gadget_id = 70350003, pos = { x = 333.205, y = -28.094, z = 404.475 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 3, gadget_id = 70350003, pos = { x = 353.348, y = -18.826, z = 368.439 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 4, gadget_id = 70350003, pos = { x = 333.300, y = -18.882, z = 368.262 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 5, gadget_id = 70350003, pos = { x = 333.334, y = -18.420, z = 322.564 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 6, gadget_id = 70350003, pos = { x = 353.334, y = -18.461, z = 322.538 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 7, gadget_id = 70350003, pos = { x = 353.334, y = -11.464, z = 291.424 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 8, gadget_id = 70350003, pos = { x = 333.286, y = -11.524, z = 291.453 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 9, gadget_id = 70350002, pos = { x = 343.370, y = -11.393, z = 240.367 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 10, gadget_id = 70350003, pos = { x = 343.141, y = -28.073, z = 404.561 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 11, gadget_id = 70350003, pos = { x = 343.311, y = -18.912, z = 368.432 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 12, gadget_id = 70350003, pos = { x = 343.331, y = -18.487, z = 322.544 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 13, gadget_id = 70350003, pos = { x = 343.328, y = -11.452, z = 291.449 }, 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 = ,
monsters = { },
gadgets = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,135 @@
-- 基础信息
local base_info = {
group_id = 250006002
}
-- Trigger变量
local defs = {
gadget_id_1 = 14,
gadget_id_2 = 104
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 14, gadget_id = 70360002, pos = { x = 343.186, y = -29.017, z = 436.651 }, rot = { x = 0.000, y = 358.997, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000001, name = "GADGET_CREATE_1", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1", action = "action_EVENT_GADGET_CREATE_1" },
{ config_id = 1000002, name = "SELECT_OPTION_2", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2", action = "action_EVENT_SELECT_OPTION_2", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 1,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 14 },
regions = { },
triggers = { "GADGET_CREATE_1", "SELECT_OPTION_2" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1(context, evt)
if 14 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {104}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2(context, evt)
if 14 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2(context, evt)
-- 根据不同的选项做不同的操作
if defs.gadget_id_2 == evt.param2 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_1, GadgetState.GearStart) then
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250006003, suite = 1 }) then
return -1
end
-- 删除指定group 250006002 ;指定config14;物件身上指定option104
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250006002, defs.gadget_id_1, 104) then
return -1
end
return 0
end
return 0
end
@@ -0,0 +1,248 @@
-- 基础信息
local base_info = {
group_id = 250006003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3001, monster_id = 21010301, pos = { x = 348.296, y = -28.895, z = 426.385 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3002, monster_id = 21010301, pos = { x = 343.100, y = -28.965, z = 427.963 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3003, monster_id = 21010301, pos = { x = 338.125, y = -28.895, z = 426.578 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3004, monster_id = 21010301, pos = { x = 350.015, y = -28.965, z = 421.638 }, rot = { x = 0.000, y = 350.976, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3005, monster_id = 21020101, pos = { x = 343.020, y = -28.983, z = 420.604 }, rot = { x = 0.000, y = 0.107, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3006, monster_id = 21010301, pos = { x = 336.859, y = -28.984, z = 421.594 }, rot = { x = 0.000, y = 8.968, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3007, monster_id = 20011001, pos = { x = 346.700, y = -28.983, z = 421.982 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 3008, monster_id = 20011001, pos = { x = 340.066, y = -28.983, z = 422.145 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000003, name = "ANY_MONSTER_LIVE_3", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_3", action = "action_EVENT_ANY_MONSTER_LIVE_3", trigger_count = 0 },
{ config_id = 1000004, name = "CHALLENGE_FAIL_4", event = EventType.EVENT_CHALLENGE_FAIL, source = "1001", condition = "", action = "action_EVENT_CHALLENGE_FAIL_4" },
{ config_id = 1000005, name = "CHALLENGE_SUCCESS_5", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1001", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_5" },
{ 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" },
{ config_id = 1000007, name = "ANY_MONSTER_DIE_7", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7", action = "action_EVENT_ANY_MONSTER_DIE_7" },
{ config_id = 1000008, name = "ANY_MONSTER_DIE_8", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8", action = "action_EVENT_ANY_MONSTER_DIE_8" },
{ 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" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 1,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 3001, 3002, 3003 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_LIVE_3", "CHALLENGE_FAIL_4", "CHALLENGE_SUCCESS_5", "ANY_MONSTER_DIE_6", "ANY_MONSTER_DIE_7", "ANY_MONSTER_DIE_8", "ANY_MONSTER_DIE_9" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_LIVE_3", "CHALLENGE_FAIL_4", "CHALLENGE_SUCCESS_5" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_3(context, evt)
if 3001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_3(context, evt)
-- 创建编号为1001(该挑战的识别id),挑战内容为104的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1001, 104, 250006003, 8, 20, 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_4(context, evt)
-- 改变指定group组250006002中, configid为14的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250006002, 14, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250006002, 14, {104}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250006003, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_5(context, evt)
-- 改变指定group组250006001中, configid为10的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250006001, 10, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组250006001中, configid为11的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250006001, 11, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
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)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250006003, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_7(context, evt)
if 3001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3004, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3007, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8(context, evt)
if 3002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3006, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3008, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_9(context, evt)
if 3003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3005, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,142 @@
-- 基础信息
local base_info = {
group_id = 250006004
}
-- Trigger变量
local defs = {
gadget_id_1 = 15,
gadget_id_2 = 11,
gadget_id_3 = 104
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 15, gadget_id = 70360002, pos = { x = 343.329, y = -19.329, z = 354.895 }, rot = { x = 0.000, y = 358.997, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000010, name = "GADGET_CREATE_10", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_10", action = "action_EVENT_GADGET_CREATE_10" },
{ config_id = 1000011, name = "SELECT_OPTION_11", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_11", action = "action_EVENT_SELECT_OPTION_11", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 1,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 15 },
regions = { },
triggers = { "GADGET_CREATE_10", "SELECT_OPTION_11" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_10(context, evt)
if 15 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_10(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {104}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_11(context, evt)
if 15 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_11(context, evt)
-- 根据不同的选项做不同的操作
if defs.gadget_id_3 == evt.param2 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_1, GadgetState.GearStart) then
return -1
end
-- 改变指定group组250006001中, configid为13的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250006001, defs.gadget_id_2, GadgetState.Default) then
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250006005, suite = 2 }) then
return -1
end
-- 删除指定group 250006002 ;指定config14;物件身上指定option104
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250006004, defs.gadget_id_1, 104) then
return -1
end
return 0
end
return 0
end
@@ -0,0 +1,147 @@
-- 基础信息
local base_info = {
group_id = 250006005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5001, monster_id = 21020101, pos = { x = 348.407, y = -19.276, z = 336.918 }, rot = { x = 0.000, y = 348.322, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 5002, monster_id = 21020101, pos = { x = 338.159, y = -19.276, z = 336.899 }, rot = { x = 0.000, y = 16.118, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 5003, monster_id = 21030101, pos = { x = 346.108, y = -19.277, z = 334.524 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 5004, monster_id = 21030101, pos = { x = 339.391, y = -19.276, z = 334.244 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000012, name = "ANY_MONSTER_LIVE_12", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_12", action = "action_EVENT_ANY_MONSTER_LIVE_12" },
{ config_id = 1000013, name = "CHALLENGE_FAIL_13", event = EventType.EVENT_CHALLENGE_FAIL, source = "1002", condition = "", action = "action_EVENT_CHALLENGE_FAIL_13" },
{ config_id = 1000014, name = "CHALLENGE_SUCCESS_14", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1002", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_14" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 1,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 5001, 5002, 5003, 5004 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_LIVE_12", "CHALLENGE_FAIL_13", "CHALLENGE_SUCCESS_14" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_12(context, evt)
if 5002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_12(context, evt)
-- 创建编号为1002(该挑战的识别id),挑战内容为120的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1002, 120, 60, 250006005, 4, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_13(context, evt)
-- 改变指定group组250006004中, configid为15的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250006004, 15, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250006004, 15, {104}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250006005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_14(context, evt)
-- 改变指定group组250006001中, configid为12的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250006001, 12, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组250006001中, configid为13的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250006001, 13, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,141 @@
-- 基础信息
local base_info = {
group_id = 250006006
}
-- Trigger变量
local defs = {
gadget_id_1 = 18,
gadget_id_2 = 13
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18, gadget_id = 70360002, pos = { x = 343.273, y = -12.793, z = 272.084 }, rot = { x = 0.000, y = 358.997, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000015, name = "GADGET_CREATE_15", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_15", action = "action_EVENT_GADGET_CREATE_15" },
{ config_id = 1000025, name = "SELECT_OPTION_25", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_25", action = "action_EVENT_SELECT_OPTION_25", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 1,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 18 },
regions = { },
triggers = { "GADGET_CREATE_15", "SELECT_OPTION_25" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_15(context, evt)
if 18 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_15(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {103}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_25(context, evt)
if 18 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_25(context, evt)
-- 根据不同的选项做不同的操作
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_1, GadgetState.GearStart) then
return -1
end
-- 改变指定group组250006001中, configid为13的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250006001, defs.gadget_id_2, GadgetState.Default) then
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250006007, suite = 1 }) then
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250006008, suite = 1 }) then
return -1
end
-- 删除指定group 250006006 ;指定config18;物件身上指定option103
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250006006, defs.gadget_id_1, 103) then
return -1
end
return 0
end
@@ -0,0 +1,144 @@
-- 基础信息
local base_info = {
group_id = 250006007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 13, monster_id = 20010901, pos = { x = 343.188, y = -12.741, z = 258.212 }, rot = { x = 0.000, y = 0.913, z = 0.000 }, level = 1, disableWander = true, affix = { 1008, 1014 }, isElite = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000021, name = "ANY_MONSTER_LIVE_21", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_21", action = "action_EVENT_ANY_MONSTER_LIVE_21" },
{ config_id = 1000022, name = "CHALLENGE_FAIL_22", event = EventType.EVENT_CHALLENGE_FAIL, source = "1003", condition = "", action = "action_EVENT_CHALLENGE_FAIL_22" },
{ config_id = 1000023, name = "CHALLENGE_SUCCESS_23", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1003", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_23" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 1,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 13 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_LIVE_21", "CHALLENGE_FAIL_22", "CHALLENGE_SUCCESS_23" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_21(context, evt)
if 13 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_21(context, evt)
-- 创建编号为1003(该挑战的识别id),挑战内容为7的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1003, 7, 60, 250006007, 13, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_22(context, evt)
-- 改变指定group组250006006中, configid为18的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250006006, 18, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250006006, 18, {103}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250006008, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250006007, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_23(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250006008, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,178 @@
-- 基础信息
local base_info = {
group_id = 250006008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8001, monster_id = 20011001, pos = { x = 360.174, y = -11.353, z = 253.869 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 8002, monster_id = 20011001, pos = { x = 360.937, y = -11.353, z = 255.992 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 8003, monster_id = 20011001, pos = { x = 326.239, y = -11.354, z = 254.330 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 8004, monster_id = 20011001, pos = { x = 326.038, y = -11.354, z = 255.906 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8005, gadget_id = 70220003, pos = { x = 359.941, y = -11.365, z = 258.913 }, rot = { x = 0.000, y = 2.520, z = 0.000 }, level = 1 },
{ config_id = 8006, gadget_id = 70220003, pos = { x = 358.269, y = -11.352, z = 256.220 }, rot = { x = 0.000, y = 266.514, z = 0.000 }, level = 1 },
{ config_id = 8007, gadget_id = 70220003, pos = { x = 358.193, y = -11.347, z = 251.813 }, rot = { x = 0.000, y = 266.514, z = 0.000 }, level = 1 },
{ config_id = 8008, gadget_id = 70220003, pos = { x = 357.931, y = -11.347, z = 247.741 }, rot = { x = 0.000, y = 266.514, z = 0.000 }, level = 1 },
{ config_id = 8009, gadget_id = 70220003, pos = { x = 354.072, y = -11.358, z = 245.186 }, rot = { x = 0.000, y = 185.024, z = 0.000 }, level = 1 },
{ config_id = 8010, gadget_id = 70220003, pos = { x = 332.467, y = -11.347, z = 245.184 }, rot = { x = 0.000, y = 185.024, z = 0.000 }, level = 1 },
{ config_id = 8011, gadget_id = 70220003, pos = { x = 328.476, y = -11.366, z = 249.450 }, rot = { x = 0.000, y = 274.126, z = 0.000 }, level = 1 },
{ config_id = 8012, gadget_id = 70220003, pos = { x = 328.536, y = -11.347, z = 253.376 }, rot = { x = 0.000, y = 272.043, z = 0.000 }, level = 1 },
{ config_id = 8013, gadget_id = 70220003, pos = { x = 328.525, y = -11.347, z = 257.384 }, rot = { x = 0.000, y = 270.531, z = 0.000 }, level = 1 },
{ config_id = 8014, gadget_id = 70220003, pos = { x = 326.578, y = -11.354, z = 258.500 }, rot = { x = 0.000, y = 180.815, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000017, name = "ANY_MONSTER_DIE_17", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_17", action = "action_EVENT_ANY_MONSTER_DIE_17", trigger_count = 0 },
{ config_id = 1000018, name = "ANY_MONSTER_DIE_18", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_18", action = "action_EVENT_ANY_MONSTER_DIE_18", trigger_count = 0 },
{ config_id = 1000019, name = "ANY_MONSTER_DIE_19", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_19", action = "action_EVENT_ANY_MONSTER_DIE_19", trigger_count = 0 },
{ config_id = 1000020, name = "ANY_MONSTER_DIE_20", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_20", action = "action_EVENT_ANY_MONSTER_DIE_20", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 1,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 8001, 8002, 8003, 8004 },
gadgets = { 8005, 8006, 8007, 8008, 8009, 8010, 8011, 8012, 8013, 8014 },
regions = { },
triggers = { "ANY_MONSTER_DIE_17", "ANY_MONSTER_DIE_18", "ANY_MONSTER_DIE_19", "ANY_MONSTER_DIE_20" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_17(context, evt)
if 8001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_17(context, evt)
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8001, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_18(context, evt)
if 8002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_18(context, evt)
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8002, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_19(context, evt)
if 8003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_19(context, evt)
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8003, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_20(context, evt)
if 8004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_20(context, evt)
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8004, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,94 @@
-- 基础信息
local base_info = {
group_id = 250006009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 29, gadget_id = 70211031, pos = { x = 343.213, y = -12.758, z = 254.137 }, rot = { x = 0.000, y = 0.495, z = 0.000 }, level = 1, drop_tag = "战斗超级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000024, name = "DUNGEON_SETTLE_24", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_24", action = "action_EVENT_DUNGEON_SETTLE_24" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 1,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "DUNGEON_SETTLE_24" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_24(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_24(context, evt)
-- 创生gadget 29
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 29 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
@@ -0,0 +1,99 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 1.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 343.0873,
"y": -33.59237,
"z": 457.5376
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 2.0,
"heightType": "Center",
"length": 147.66,
"useHeight": true,
"width": 71.13
},
"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": 343.3719,
"y": -11.53641,
"z": 243.1136
},
"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
}