添加配置表

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

View File

@@ -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.323, y = -4.656, z = 64.796 },
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 = { 40603 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -285.6, z = -285.6 }, max = { x = 285.6, z = 285.6 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,7 @@
-- 所有的group
groups = {
{ id = 240603004, refresh_id = 1, pos = { x = -2.974, y = 4.372, z = -64.084 } },
{ id = 240603006, refresh_id = 1, pos = { x = 1.933, y = 0.602, z = 10.179 } },
{ id = 240603007, refresh_id = 1002, pos = { x = 6.188, y = 0.602, z = 2.983 } },
{ id = 240603008, refresh_id = 1, pos = { x = -4.607, y = 0.520, z = 2.697 } }
}

View File

@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 240603004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, 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 = 4002, gadget_id = 70350008, pos = { x = 0.443, y = 3.229, z = -65.312 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004003, name = "DUNGEON_SETTLE_4003", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_4003", action = "action_EVENT_DUNGEON_SETTLE_4003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4002 },
regions = { },
triggers = { "DUNGEON_SETTLE_4003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_4003(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_4003(context, evt)
-- 将configid为 4001 的物件更改为状态 GadgetState.StatueActive
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4001, GadgetState.StatueActive) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 240603006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70350009, pos = { x = -0.054, y = -0.194, z = 25.492 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 6002, gadget_id = 70350009, pos = { x = 0.084, y = -0.179, z = -25.538 }, 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 = { 6001, 6002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,188 @@
-- 基础信息
local base_info = {
group_id = 240603007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 7001, monster_id = 20011001, pos = { x = 7.552, y = 0.520, z = -2.509 }, rot = { x = 0.000, y = 327.634, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 7002, monster_id = 20011001, pos = { x = -0.400, y = 0.520, z = -3.505 }, rot = { x = 0.000, y = 27.701, z = 0.000 }, level = 1, affix = { 1006, 1031 } },
{ config_id = 7003, monster_id = 21010201, pos = { x = -7.738, y = 0.520, z = -2.548 }, rot = { x = 0.000, y = 24.075, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 7004, monster_id = 21010201, pos = { x = -12.949, y = 0.520, z = -2.906 }, rot = { x = 0.000, y = 33.839, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 7005, monster_id = 21010201, pos = { x = 13.078, y = 0.520, z = -1.897 }, rot = { x = 0.000, y = 306.568, z = 0.000 }, level = 1, affix = { 1006, 1031 } },
{ config_id = 7006, monster_id = 21030103, pos = { x = -12.489, y = 0.520, z = -7.084 }, rot = { x = 0.000, y = 51.797, z = 0.000 }, level = 1, affix = { 1006, 1031 }, isElite = true },
{ config_id = 7007, monster_id = 21010201, pos = { x = 9.478, y = 0.520, z = -4.999 }, rot = { x = 0.000, y = 342.747, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 7008, monster_id = 20011101, pos = { x = 0.011, y = 0.520, z = -7.608 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1006, 1031 } },
{ config_id = 7009, monster_id = 20011001, pos = { x = -8.485, y = 0.520, z = -6.673 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 7010, monster_id = 20011001, pos = { x = 6.026, y = 0.520, z = -3.787 }, rot = { x = 0.000, y = 344.915, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 7011, monster_id = 20011001, pos = { x = -6.210, y = 0.520, z = -3.296 }, rot = { x = 0.000, y = 60.623, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 7012, monster_id = 21010201, pos = { x = 7.091, y = 0.520, z = -0.637 }, rot = { x = 0.000, y = 333.948, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 7013, monster_id = 20011101, pos = { x = -0.772, y = 0.520, z = -4.174 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1006, 1031 } },
{ config_id = 7014, monster_id = 21010201, pos = { x = -8.041, y = 0.520, z = -1.371 }, rot = { x = 0.000, y = 21.059, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 7015, monster_id = 21030103, pos = { x = 8.628, y = 0.520, z = -6.867 }, rot = { x = 0.000, y = 333.197, z = 0.000 }, level = 1, affix = { 1006 }, isElite = true },
{ config_id = 7016, monster_id = 20011101, pos = { x = -5.257, y = 0.520, z = -3.931 }, rot = { x = 0.000, y = 20.073, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 7017, monster_id = 20011101, pos = { x = 8.029, y = 0.520, z = -0.077 }, rot = { x = 0.000, y = 324.425, z = 0.000 }, level = 1, affix = { 1006, 1031 } },
{ config_id = 7018, monster_id = 20011101, pos = { x = -8.216, y = 0.350, z = 0.731 }, rot = { x = 0.000, y = 54.568, z = 0.000 }, level = 1, affix = { 1006 } },
{ config_id = 7019, monster_id = 20011101, pos = { x = -3.816, y = 0.350, z = -2.533 }, rot = { x = 0.000, y = 25.327, z = 0.000 }, level = 1, affix = { 1006, 1031 } },
{ config_id = 7020, monster_id = 22010304, pos = { x = -0.009, y = 0.350, z = -7.275 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1006 }, isElite = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7021, gadget_id = 70900205, pos = { x = 7.015, y = -0.857, z = 5.106 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7022, gadget_id = 70350035, pos = { x = 0.000, y = 0.000, z = 0.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007023, name = "DUNGEON_SETTLE_7023", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "", action = "action_EVENT_DUNGEON_SETTLE_7023" },
{ config_id = 1007024, name = "ANY_MONSTER_LIVE_7024", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_7024", action = "action_EVENT_ANY_MONSTER_LIVE_7024" },
{ config_id = 1007025, name = "CHALLENGE_FAIL_7025", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_7025" },
{ config_id = 1007026, name = "CHALLENGE_SUCCESS_7026", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_7026" }
}
-- 变量
variables = {
{ config_id = 1, name = "Key", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7021, 7022 },
regions = { },
triggers = { "DUNGEON_SETTLE_7023", "ANY_MONSTER_LIVE_7024", "CHALLENGE_FAIL_7025", "CHALLENGE_SUCCESS_7026" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_7023(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 7022 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_7024(context, evt)
if 7001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_7024(context, evt)
-- 创建编号为1该挑战的识别id),挑战内容为1023的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 1023, 240603007, 20, 7022, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_7025(context, evt)
-- 改变指定group组240603008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240603008, 8001, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240603008, 8001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240603007, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 改变指定group组240603006中 configid为6001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240603006, 6001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240603006中 configid为6002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240603006, 6002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_7026(context, evt)
-- 改变指定group组240603008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240603008, 8001, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240603006中 configid为6002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240603006, 6002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240603006中 configid为6001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240603006, 6001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end

View File

@@ -0,0 +1,149 @@
-- 基础信息
local base_info = {
group_id = 240603008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
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, 240603008, 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, 240603007, {7001,7002,7003,7004,7005,7006,7007,7008,7009,7010,7011,7012,7013,7014,7015,7016,7017,7018,7019,7020}, 20, 5, 5) then
return -1
end
-- 爬塔是否允许使用技能( is_allow_use_skill=0或1,表示不允许或允许使用主动技能)
if 0 ~= ScriptLib.SetIsAllowUseSkill(context, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : tower_allow_use_skill")
return -1
end
-- 删除指定group 240603008 指定config8001物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240603008, 8001, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组240603008中 configid为8001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240603008, 8001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240603006中 configid为6002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240603006, 6002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240603006中 configid为6001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240603006, 6001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end

View File

@@ -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.2118611,
"y": 2.946179,
"z": -79.95705
},
"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
}