添加配置表

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 = -285.6, z = -285.6 },
size = { x = 571.3, z = 571.3 },
born_pos = { x = -0.295, y = -4.966, z = 64.873 },
born_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 = { 40606 }
-- 所有的区块范围坐标
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 = 240606004, refresh_id = 1, pos = { x = 2.413, y = 0.882, z = 7.721 } },
{ id = 240606006, refresh_id = 1, pos = { x = -2.850, y = 4.422, z = -64.162 } },
{ id = 240606007, refresh_id = 1, pos = { x = -7.736, y = 0.019, z = -5.437 } },
{ id = 240606011, refresh_id = 1002, pos = { x = 6.459, y = 0.101, z = -0.061 } }
}
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 240606004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70350009, pos = { x = 0.002, y = -0.061, z = 25.495 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4002, gadget_id = 70350009, pos = { x = -0.020, y = 0.029, z = -25.467 }, 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 = { 4001, 4002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 240606006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
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.567, y = 5.776, z = -65.390 }, 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,159 @@
-- 基础信息
local base_info = {
group_id = 240606007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70350023, pos = { x = -0.071, y = 0.022, z = 0.215 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7004, gadget_id = 70900205, pos = { x = 7.301, y = -0.577, z = 2.307 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007002, name = "GADGET_CREATE_7002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_7002", action = "action_EVENT_GADGET_CREATE_7002" },
{ config_id = 1007005, name = "SELECT_OPTION_7005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7005", action = "action_EVENT_SELECT_OPTION_7005", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7004 },
regions = { },
triggers = { "GADGET_CREATE_7002", "SELECT_OPTION_7005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 7001, 7004 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_7002(context, evt)
if 7001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_7002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240606007, 7001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_7005(context, evt)
-- 判断是gadgetid 7001 option_id 7
if 7001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_7005(context, evt)
-- 创建编号为1(该怪物潮的识别id)的怪物潮,创建怪物总数为30,场上怪物最少5只,最多5只
if 0 ~= ScriptLib.AutoMonsterTide(context, 1, 240606011, {11001,11002,11003,11004,11005,11006,11007,11008,11009,11010,11011,11012,11013,11014,11015,11016,11017,11018,11019,11020,11021,11022,11023,11024,11025,11026,11027,11028,11029,11030}, 30, 5, 5) then
return -1
end
-- 删除指定group 240606007 ;指定config7001;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240606007, 7001, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组240606007中, configid为7001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240606007, 7001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240606004中, configid为4002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240606004, 4002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240606004中, configid为4001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240606004, 4001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240606011中, configid为11032的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240606011, 11032, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,212 @@
-- 基础信息
local base_info = {
group_id = 240606011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 11001, monster_id = 21010201, pos = { x = 3.322, y = 0.101, z = -16.047 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11002, monster_id = 21010201, pos = { x = -3.630, y = 0.101, z = -16.015 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 11003, monster_id = 21010201, pos = { x = 12.133, y = 0.249, z = -8.745 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11004, monster_id = 21010201, pos = { x = -11.619, y = 0.101, z = 3.455 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 11005, monster_id = 21011001, pos = { x = -9.562, y = 0.249, z = -10.767 }, rot = { x = 0.000, y = 25.522, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 11006, monster_id = 21010701, pos = { x = -16.157, y = 0.038, z = -1.913 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 11007, monster_id = 21010201, pos = { x = 16.362, y = 0.101, z = -3.289 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11008, monster_id = 21010201, pos = { x = 17.300, y = 0.101, z = -0.025 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11009, monster_id = 21010201, pos = { x = -17.215, y = 0.101, z = 0.035 }, rot = { x = 0.000, y = 91.100, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 11010, monster_id = 21020201, pos = { x = -0.300, y = 0.101, z = -14.877 }, rot = { x = 0.000, y = 3.804, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 11011, monster_id = 21010201, pos = { x = -0.114, y = 0.101, z = -12.347 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11012, monster_id = 21010201, pos = { x = -14.765, y = 0.249, z = -8.662 }, rot = { x = 0.000, y = 45.492, z = 0.000 }, level = 1 },
{ config_id = 11013, monster_id = 21010401, pos = { x = -11.380, y = 0.249, z = 5.539 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11014, monster_id = 21010401, pos = { x = 16.364, y = 0.101, z = 3.468 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11015, monster_id = 21011001, pos = { x = 6.414, y = 0.249, z = -10.605 }, rot = { x = 0.000, y = 324.036, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 11016, monster_id = 21010201, pos = { x = 3.322, y = 0.101, z = -16.047 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11017, monster_id = 21010201, pos = { x = -3.630, y = 0.101, z = -16.015 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 11018, monster_id = 21010201, pos = { x = 12.133, y = 0.249, z = -8.745 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11019, monster_id = 21010201, pos = { x = -11.619, y = 0.101, z = 3.455 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 11020, monster_id = 21011001, pos = { x = -9.562, y = 0.249, z = -10.767 }, rot = { x = 0.000, y = 25.522, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 11021, monster_id = 21010701, pos = { x = -16.157, y = 0.038, z = -1.913 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 11022, monster_id = 21010201, pos = { x = 16.362, y = 0.101, z = -3.289 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11023, monster_id = 21010401, pos = { x = 17.300, y = 0.101, z = -0.025 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11024, monster_id = 21010401, pos = { x = -17.215, y = 0.101, z = 0.035 }, rot = { x = 0.000, y = 91.100, z = 0.000 }, level = 1, affix = { 1031 } },
{ config_id = 11025, monster_id = 21020201, pos = { x = -0.300, y = 0.101, z = -14.877 }, rot = { x = 0.000, y = 3.804, z = 0.000 }, level = 1 },
{ config_id = 11026, monster_id = 21010201, pos = { x = -0.114, y = 0.101, z = -12.347 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11027, monster_id = 21010201, pos = { x = -14.765, y = 0.249, z = -8.662 }, rot = { x = 0.000, y = 45.492, z = 0.000 }, level = 1 },
{ config_id = 11028, monster_id = 21010401, pos = { x = -11.380, y = 0.249, z = 5.539 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11029, monster_id = 21010401, pos = { x = 16.364, y = 0.101, z = 3.468 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11030, monster_id = 21011001, pos = { x = 6.414, y = 0.249, z = -10.605 }, rot = { x = 0.000, y = 324.036, z = 0.000 }, level = 1, affix = { 1031 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11031, gadget_id = 70350035, pos = { x = -0.100, y = 0.000, z = 0.200 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 11032, gadget_id = 70350034, pos = { x = 0.033, y = 0.019, z = -5.558 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11033, gadget_id = 70900205, pos = { x = 7.286, y = -1.358, z = 2.062 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1011034, name = "ANY_MONSTER_LIVE_11034", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_11034", action = "action_EVENT_ANY_MONSTER_LIVE_11034" },
{ config_id = 1011035, name = "CHALLENGE_SUCCESS_11035", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_11035" },
{ config_id = 1011036, name = "CHALLENGE_FAIL_11036", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_11036" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11031, 11032, 11033 },
regions = { },
triggers = { "ANY_MONSTER_LIVE_11034", "CHALLENGE_SUCCESS_11035", "CHALLENGE_FAIL_11036" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_7,
monsters = { },
gadgets = { 11032, 11033 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_11034(context, evt)
if 11001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_11034(context, evt)
-- 创建编号为1(该挑战的识别id),挑战内容为187的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.StartChallenge(context, 1, 187, {300,240606011,11031,0,15}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_start_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_11035(context, evt)
-- 停止编号为1的怪物潮,end_type为1则是成功停止,0是失败停止(一般就是1)
if 0 ~= ScriptLib.EndMonsterTide(context, 240606011, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : end_monster_tide")
return -1
end
-- 改变指定group组240606004中, configid为4002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240606004, 4002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240606011中, configid为11032的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240606011, 11032, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240606007中, configid为7001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240606007, 7001, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240606011, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_11036(context, evt)
-- 改变指定group组240606007中, configid为7001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240606007, 7001, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240606007, 7001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组240606011中, configid为11032的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240606011, 11032, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240606004中, configid为4001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240606004, 4001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240606004中, configid为4002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240606004, 4002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240606011, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
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.1945657,
"y": 2.94627,
"z": -80.00951
},
"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
}