添加配置表

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 = -5400.0, z = -6275.3 },
size = { x = 10084.2, z = 11054.4 },
born_pos = { x = 0.023, y = -0.021, z = 6.996 },
born_rot = { x = 0.000, y = 180.000, z = 0.000 },
die_y = -970,
city_id = 1,
vision_anchor = { x = -5400.0, z = -6275.3 }
}
-- 所有的区块
blocks = { 50017 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -5400.0, z = -6275.3 }, max = { x = 4684.2, z = 4779.1 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,33 @@
{
"sceneId": 50017,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 0.0741608143,
"y": 0.00174219289,
"z": 7.310609
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 0.08657077,
"y": 0.00174134551,
"z": 12.1035767
},
"waitTime": 0.0,
"targetVelocity": 2.0
}
]
}
]
}
@@ -0,0 +1,7 @@
-- 所有的group
groups = {
{ id = 250017004, refresh_id = 1, pos = { x = 1.107, y = 0.084, z = 8.134 } },
{ id = 250017005, refresh_id = 1, pos = { x = -0.170, y = 0.084, z = -9.817 } },
{ id = 250017006, refresh_id = 1002, pos = { x = 5.361, y = 0.084, z = 0.938 } },
{ id = 250017007, refresh_id = 1, pos = { x = -2.030, y = 0.032, z = -0.969 } }
}
@@ -0,0 +1,82 @@
-- 基础信息
local base_info = {
group_id = 250017004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70350009, pos = { x = -0.191, y = -0.017, z = 26.408 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4002, gadget_id = 70350009, pos = { x = -1.118, y = 0.354, z = -24.220 }, 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 = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 4001, 4002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,165 @@
-- 基础信息
local base_info = {
group_id = 250017005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70360010, pos = { x = -0.017, y = -0.363, z = -0.072 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005002, name = "GADGET_CREATE_5002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5002", action = "action_EVENT_GADGET_CREATE_5002" },
{ config_id = 1005003, name = "SELECT_OPTION_5003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5003", action = "action_EVENT_SELECT_OPTION_5003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GADGET_CREATE_5002", "SELECT_OPTION_5003" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_5002(context, evt)
if 5001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250017005, 5001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5003(context, evt)
-- 判断是gadgetid 5001 option_id 7
if 5001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5003(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250017006, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 删除指定group 250017005 ;指定config5001;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250017005, 5001, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组250017005中, configid为5001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250017005, 5001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组250017004中, configid为4002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250017004, 4002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组250017004中, configid为4001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250017004, 4001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组250017007中, configid为7001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250017007, 7001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组250017007中, configid为7002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250017007, 7002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,331 @@
-- 基础信息
local base_info = {
group_id = 250017006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 20010904, pos = { x = -0.156, y = -0.009, z = -8.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 6101 } },
{ config_id = 6002, monster_id = 20010604, pos = { x = -0.156, y = -0.009, z = -8.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 6104 } },
{ config_id = 6003, monster_id = 20011502, pos = { x = -0.156, y = -0.009, z = -8.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 6103 } },
{ config_id = 6004, monster_id = 20010403, pos = { x = -0.156, y = -0.009, z = -8.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 6102 } },
{ config_id = 6005, monster_id = 20011304, pos = { x = -0.156, y = -0.009, z = -8.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 6105 } },
{ config_id = 6011, monster_id = 20011103, pos = { x = -0.156, y = -0.009, z = -8.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 6106 } },
{ config_id = 6013, monster_id = 21030303, pos = { x = -0.156, y = -0.009, z = -8.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6014, monster_id = 23020102, pos = { x = -0.156, y = -0.009, z = -8.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6015, monster_id = 23030102, pos = { x = -0.156, y = -0.009, z = -8.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6016, monster_id = 21020202, pos = { x = -0.156, y = -0.009, z = -8.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6017, monster_id = 20010604, pos = { x = -0.156, y = -0.009, z = -8.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6018, monster_id = 20010702, pos = { x = -0.156, y = -0.009, z = -8.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6027, monster_id = 21010401, pos = { x = -7.261, y = -0.009, z = -7.295 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6028, monster_id = 21010401, pos = { x = 5.048, y = -0.009, z = -7.182 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6022, gadget_id = 70900205, pos = { x = 15.805, y = -1.375, z = 3.395 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006006, name = "ANY_MONSTER_DIE_6006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6006", action = "action_EVENT_ANY_MONSTER_DIE_6006", trigger_count = 0 },
{ config_id = 1006007, name = "ANY_MONSTER_DIE_6007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6007", action = "action_EVENT_ANY_MONSTER_DIE_6007", trigger_count = 0 },
{ config_id = 1006008, name = "ANY_MONSTER_DIE_6008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6008", action = "action_EVENT_ANY_MONSTER_DIE_6008", trigger_count = 0 },
{ config_id = 1006009, name = "ANY_MONSTER_DIE_6009", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6009", action = "action_EVENT_ANY_MONSTER_DIE_6009", trigger_count = 0 },
{ config_id = 1006010, name = "ANY_MONSTER_DIE_6010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6010", action = "action_EVENT_ANY_MONSTER_DIE_6010", trigger_count = 0 },
{ config_id = 1006012, name = "ANY_MONSTER_DIE_6012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6012", action = "action_EVENT_ANY_MONSTER_DIE_6012", trigger_count = 0 },
{ config_id = 1006019, name = "ANY_MONSTER_DIE_6019", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6019", action = "action_EVENT_ANY_MONSTER_DIE_6019", trigger_count = 0 },
{ config_id = 1006020, name = "ANY_MONSTER_DIE_6020", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6020", action = "action_EVENT_ANY_MONSTER_DIE_6020", trigger_count = 0 },
{ config_id = 1006021, name = "ANY_MONSTER_DIE_6021", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6021", action = "action_EVENT_ANY_MONSTER_DIE_6021", trigger_count = 0 },
{ config_id = 1006023, name = "ANY_MONSTER_DIE_6023", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6023", action = "action_EVENT_ANY_MONSTER_DIE_6023", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "monster_count", value = 0, no_refresh = false },
{ config_id = 2, name = "level_status", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6022 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 6001 },
gadgets = { 6022 },
regions = { },
triggers = { "ANY_MONSTER_DIE_6006", "ANY_MONSTER_DIE_6007", "ANY_MONSTER_DIE_6008", "ANY_MONSTER_DIE_6009", "ANY_MONSTER_DIE_6010", "ANY_MONSTER_DIE_6012", "ANY_MONSTER_DIE_6019", "ANY_MONSTER_DIE_6020", "ANY_MONSTER_DIE_6021", "ANY_MONSTER_DIE_6023" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 6027, 6028 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6006(context, evt)
if 6001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6006(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6002, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6007(context, evt)
if 6002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6007(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6003, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6008(context, evt)
if 6003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6008(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6004, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6009(context, evt)
if 6004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6009(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6005, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6010(context, evt)
if 6005 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6010(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6011, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6012(context, evt)
if 6011 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6012(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6001, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6019(context, evt)
if 6013 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6019(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6014, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6020(context, evt)
if 6014 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6020(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6015, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6021(context, evt)
if 6015 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6021(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6016, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6023(context, evt)
if 6016 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6023(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6017, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6018, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,91 @@
-- 基础信息
local base_info = {
group_id = 250017007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70350053, pos = { x = -0.040, y = 0.076, z = -0.019 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7002, gadget_id = 70350054, pos = { x = 0.008, y = 0.061, z = 0.003 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007003, name = "DUNGEON_SETTLE_7003", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "", action = "action_EVENT_DUNGEON_SETTLE_7003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7002 },
regions = { },
triggers = { "DUNGEON_SETTLE_7003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_7003(context, evt)
-- 改变指定group组250017007中, configid为7001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250017007, 7001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组250017007中, configid为7002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250017007, 7002, 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": {
"2": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": -0.1195701,
"y": 2.509366,
"z": -56.60118
},
"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
}