添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,30 @@
-- 地图配置
scene_config = {
begin_pos = { x = -285.6, z = -285.6 },
size = { x = 571.3, z = 571.3 },
born_pos = { x = -0.296, y = -4.966, z = 64.889 },
born_rot = { x = 0.000, y = 180.000, z = 0.000 },
born_point_list = {
{ pos = { x = -0.898, y = -4.964, z = 49.112 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = 1.685, y = -4.964, z = 52.081 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = -3.821, y = -4.964, z = 52.048 }, rot = { x = 0.000, y = 180.000, z = 0.000 } },
{ pos = { x = -1.015, y = -4.964, z = 54.457 }, rot = { x = 0.000, y = 180.000, z = 0.000 } }
},
die_y = -20,
city_id = 2,
vision_anchor = { x = -285.6, z = -285.6 }
}
-- 所有的区块
blocks = { 40602 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -285.6, z = -285.6 }, max = { x = 285.6, z = 285.6 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,7 @@
-- 所有的group
groups = {
{ id = 240602005, refresh_id = 1002, pos = { x = 6.305, y = 0.140, z = 2.280 } },
{ id = 240602006, refresh_id = 1, pos = { x = -2.815, y = 4.422, z = -64.316 } },
{ id = 240602007, refresh_id = 1, pos = { x = -1.885, y = 0.019, z = -5.612 } },
{ id = 240602008, refresh_id = 1, pos = { x = 7.536, y = 0.019, z = -10.303 } }
}
@@ -0,0 +1,218 @@
-- 基础信息
local base_info = {
group_id = 240602005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5001, monster_id = 20010801, pos = { x = 9.921, y = 0.140, z = -8.276 }, rot = { x = 0.000, y = 312.855, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 5002, monster_id = 20010801, pos = { x = -11.771, y = 0.140, z = -7.791 }, rot = { x = 0.000, y = 52.206, z = 0.000 }, level = 1 },
{ config_id = 5003, monster_id = 20010801, pos = { x = -5.721, y = 0.140, z = -8.703 }, rot = { x = 0.000, y = 18.562, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 5004, monster_id = 20010801, pos = { x = 5.220, y = 0.140, z = -9.117 }, rot = { x = 0.000, y = 339.539, z = 0.000 }, level = 1 },
{ config_id = 5008, monster_id = 20010901, pos = { x = 1.097, y = 0.140, z = 8.753 }, rot = { x = 0.000, y = 182.789, z = 0.000 }, level = 1 },
{ config_id = 5009, monster_id = 20010801, pos = { x = 5.288, y = 0.140, z = -6.090 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 5010, monster_id = 20010801, pos = { x = -4.976, y = 0.140, z = -6.416 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5011, monster_id = 20010801, pos = { x = 12.922, y = 0.140, z = 2.831 }, rot = { x = 0.000, y = 254.800, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 5012, monster_id = 20010801, pos = { x = 12.509, y = -0.058, z = -1.868 }, rot = { x = 0.000, y = 280.700, z = 0.000 }, level = 1 },
{ config_id = 5013, monster_id = 20010901, pos = { x = -13.663, y = 0.140, z = 1.292 }, rot = { x = 0.000, y = 115.632, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 5014, monster_id = 20010801, pos = { x = -12.087, y = 0.140, z = -3.962 }, rot = { x = 0.000, y = 50.168, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 5015, monster_id = 20010801, pos = { x = 0.094, y = 0.140, z = 13.752 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 5016, monster_id = 20010801, pos = { x = -0.481, y = 0.140, z = -13.209 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 5018, monster_id = 20010901, pos = { x = 14.527, y = 0.019, z = -5.499 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5019, monster_id = 20010901, pos = { x = 8.213, y = 0.019, z = -3.336 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 5034, monster_id = 20010801, pos = { x = 11.444, y = 0.140, z = 6.180 }, rot = { x = 0.000, y = 246.300, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 5035, monster_id = 20010801, pos = { x = -15.664, y = 0.019, z = -6.362 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5036, monster_id = 22010202, pos = { x = -6.953, y = 0.019, z = -1.622 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 5037, monster_id = 20010801, pos = { x = 9.865, y = 0.019, z = -10.120 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5038, monster_id = 20010801, pos = { x = -9.064, y = 0.019, z = -9.467 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1031 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5017, gadget_id = 70350035, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5023, gadget_id = 70900205, pos = { x = 7.132, y = -1.319, z = 4.403 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005025, name = "ANY_MONSTER_LIVE_5025", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_5025", action = "action_EVENT_ANY_MONSTER_LIVE_5025" },
{ config_id = 1005029, name = "CHALLENGE_SUCCESS_5029", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_5029" },
{ config_id = 1005030, name = "CHALLENGE_FAIL_5030", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_5030" }
}
-- 变量
variables = {
{ config_id = 1, name = "monster_wave", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5017, 5023 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_5025", "CHALLENGE_SUCCESS_5029", "CHALLENGE_FAIL_5030" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 5017, 5023 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { 5017, 5023 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { },
gadgets = { 5017, 5023 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = suite_5,
monsters = { },
gadgets = { 5017, 5023 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_5025(context, evt)
if 5001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_5025(context, evt)
-- 创建编号为1(该挑战的识别id),挑战内容为188的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 188, 240602005, 20, 5017, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_5029(context, evt)
-- 改变指定group组240602007中, configid为7002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240602007, 7002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240602007中, configid为7001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240602007, 7001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 5017 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 改变指定group组240602008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240602008, 8001, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_5030(context, evt)
-- 改变指定group组240602008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240602008, 8001, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240602005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240602008, 8001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组240602007中, configid为7001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240602007, 7001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240602007中, configid为7002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240602007, 7002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 240602006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70340012, pos = { x = 0.270, y = 0.130, z = -69.680 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6002, gadget_id = 70350008, pos = { x = 0.602, y = 3.662, z = -65.544 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006003, name = "DUNGEON_SETTLE_6003", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_6003", action = "action_EVENT_DUNGEON_SETTLE_6003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001, 6002 },
regions = { },
triggers = { "DUNGEON_SETTLE_6003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_6003(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_6003(context, evt)
-- 将configid为 6001 的物件更改为状态 GadgetState.StatueActive
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6001, GadgetState.StatueActive) 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 = 240602007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70350009, pos = { x = -0.022, y = -0.038, z = 25.512 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 7002, gadget_id = 70350009, pos = { x = 0.000, y = -0.100, z = -25.500 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,143 @@
-- 基础信息
local base_info = {
group_id = 240602008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70350023, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1008002, name = "GADGET_CREATE_8002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_8002", action = "action_EVENT_GADGET_CREATE_8002" },
{ config_id = 1008003, name = "SELECT_OPTION_8003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_8003", action = "action_EVENT_SELECT_OPTION_8003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001 },
regions = { },
triggers = { "GADGET_CREATE_8002", "SELECT_OPTION_8003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_8002(context, evt)
if 8001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_8002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240602008, 8001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_8003(context, evt)
-- 判断是gadgetid 8001 option_id 7
if 8001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_8003(context, evt)
-- 创建编号为1(该怪物潮的识别id)的怪物潮,创建怪物总数为20,场上怪物最少5只,最多5只
if 0 ~= ScriptLib.AutoMonsterTide(context, 1, 240602005, {5001,5002,5003,5004,5008,5009,5010,5011,5012,5013,5014,5015,5016,5018,5019,5034,5035,5037,5038,5036}, 20, 5, 5) then
return -1
end
-- 删除指定group 240602008 ;指定config8001;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240602008, 8001, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组240602008中, configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240602008, 8001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240602007中, configid为7002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240602007, 7002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240602007中, configid为7001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240602007, 7001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,45 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 0.1807152,
"y": 2.901173,
"z": -79.94667
},
"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
}