添加配置表

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 = 0.0, z = 256.0 },
size = { x = 768.0, z = 768.0 },
born_pos = { x = 362.662, y = 77.206, z = 682.185 },
born_rot = { x = 0.000, y = 271.278, z = 0.000 },
die_y = -20,
city_id = 4,
vision_anchor = { x = 0.0, z = 0.0 }
}
-- 所有的区块
blocks = { 40054 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = 0.0, z = 256.0 }, max = { x = 768.0, z = 1024.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { }
@@ -0,0 +1,6 @@
-- 所有的group
groups = {
{ id = 240054001, refresh_id = 1, pos = { x = 315.517, y = 77.370, z = 687.146 } },
{ id = 240054002, refresh_id = 99999, pos = { x = 334.641, y = 77.779, z = 682.843 } },
{ id = 240054003, refresh_id = 1001, pos = { x = 253.616, y = 97.033, z = 693.557 } }
}
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 240054001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70290527, pos = { x = 372.564, y = 82.150, z = 687.436 }, rot = { x = 0.000, y = 35.001, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,129 @@
-- 基础信息
local base_info = {
group_id = 240054002
}
-- Trigger变量
local defs = {
gadget_LookHookCid = 2002
}
-- DEFS_MISCS
local RequireSuite = {1}
local HookLookPlay = {
HookPoint = defs.gadget_LookHookCid,
Duration = 3,
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[2001] = { config_id = 2001, gadget_id = 70330229, pos = { x = 328.396, y = 76.688, z = 683.031 }, rot = { x = 0.000, y = 291.559, z = 0.000 }, level = 30, mark_flag = 3 },
[2002] = { config_id = 2002, gadget_id = 70330251, pos = { x = 305.708, y = 105.255, z = 689.218 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, mark_flag = 3 },
[2003] = { config_id = 2003, gadget_id = 70220103, pos = { x = 261.791, y = 114.264, z = 693.444 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 },
[2004] = { config_id = 2004, gadget_id = 70220103, pos = { x = 285.035, y = 109.474, z = 686.235 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 },
[2006] = { config_id = 2006, gadget_id = 70220103, pos = { x = 305.708, y = 105.255, z = 689.218 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 },
[2007] = { config_id = 2007, gadget_id = 70900201, pos = { x = 328.396, y = 79.537, z = 683.031 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002005, name = "GADGET_STATE_CHANGE_2005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2005", action = "action_EVENT_GADGET_STATE_CHANGE_2005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2007 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_2005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2003, 2004, 2006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2005(context, evt)
if 2001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240054002, 2)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 2007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite9的新内容
ScriptLib.AddExtraGroupSuite(context, 240054003, 9)
return 0
end
require "V3_0/HookLook"
@@ -0,0 +1,387 @@
-- 基础信息
local base_info = {
group_id = 240054003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3002, monster_id = 25210301, pos = { x = 246.463, y = 97.092, z = 699.349 }, rot = { x = 0.000, y = 113.277, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3003, monster_id = 25210301, pos = { x = 247.592, y = 96.580, z = 688.529 }, rot = { x = 0.000, y = 51.133, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3004, monster_id = 25210401, pos = { x = 250.908, y = 96.752, z = 704.430 }, rot = { x = 0.000, y = 160.855, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3005, monster_id = 25210401, pos = { x = 256.068, y = 96.867, z = 685.636 }, rot = { x = 0.000, y = 332.510, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3006, monster_id = 25210501, pos = { x = 257.925, y = 96.880, z = 701.559 }, rot = { x = 0.000, y = 225.642, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3007, monster_id = 25310101, pos = { x = 243.156, y = 96.817, z = 695.054 }, rot = { x = 0.000, y = 94.563, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 }, pose_id = 1 },
{ config_id = 3008, monster_id = 25210201, pos = { x = 260.223, y = 96.701, z = 704.212 }, rot = { x = 0.000, y = 230.769, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3009, monster_id = 25210201, pos = { x = 258.403, y = 96.648, z = 681.965 }, rot = { x = 0.000, y = 311.468, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3010, monster_id = 25210201, pos = { x = 262.702, y = 96.494, z = 693.083 }, rot = { x = 0.000, y = 276.982, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3011, monster_id = 25310201, pos = { x = 260.976, y = 96.611, z = 693.633 }, rot = { x = 0.000, y = 274.207, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 }, pose_id = 1 },
{ config_id = 3012, monster_id = 25210501, pos = { x = 246.762, y = 96.563, z = 687.221 }, rot = { x = 0.000, y = 26.780, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3013, monster_id = 25210501, pos = { x = 248.530, y = 96.801, z = 702.515 }, rot = { x = 0.000, y = 132.186, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3014, monster_id = 25210401, pos = { x = 245.354, y = 96.939, z = 695.058 }, rot = { x = 0.000, y = 94.200, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3015, monster_id = 25310301, pos = { x = 243.156, y = 96.817, z = 695.054 }, rot = { x = 0.000, y = 94.563, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3016, monster_id = 25210201, pos = { x = 253.417, y = 96.608, z = 706.987 }, rot = { x = 0.000, y = 168.696, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3017, monster_id = 25210201, pos = { x = 251.430, y = 96.262, z = 681.667 }, rot = { x = 0.000, y = 11.731, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3018, monster_id = 25210301, pos = { x = 262.722, y = 96.541, z = 694.071 }, rot = { x = 0.000, y = 265.907, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3019, monster_id = 25310301, pos = { x = 257.695, y = 96.840, z = 702.914 }, rot = { x = 0.000, y = 221.755, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 } },
{ config_id = 3020, monster_id = 25310201, pos = { x = 257.074, y = 96.732, z = 683.957 }, rot = { x = 0.000, y = 334.507, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 }, pose_id = 1 },
{ config_id = 3021, monster_id = 25310101, pos = { x = 243.156, y = 96.817, z = 695.054 }, rot = { x = 0.000, y = 94.563, z = 0.000 }, level = 1, disableWander = true, affix = { 1008 }, pose_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70950156, pos = { x = 253.024, y = 96.974, z = 694.074 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3026, gadget_id = 70211021, pos = { x = 253.016, y = 96.981, z = 694.003 }, rot = { x = 0.000, y = 104.181, z = 0.000 }, level = 1, drop_tag = "战斗高级须弥", isOneoff = true, persistent = true },
{ config_id = 3030, gadget_id = 70900205, pos = { x = 253.041, y = 92.231, z = 695.422 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3032, gadget_id = 70310148, pos = { x = 253.024, y = 96.974, z = 694.074 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3033, gadget_id = 70900201, pos = { x = 253.024, y = 99.334, z = 694.074 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3022, shape = RegionShape.SPHERE, radius = 3, pos = { x = 253.024, y = 96.974, z = 694.074 } }
}
-- 触发器
triggers = {
{ config_id = 1003022, name = "ENTER_REGION_3022", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3022", action = "action_EVENT_ENTER_REGION_3022" },
{ config_id = 1003023, name = "CHALLENGE_FAIL_3023", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_3023" },
{ config_id = 1003024, name = "DUNGEON_SETTLE_3024", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_3024", action = "action_EVENT_DUNGEON_SETTLE_3024" },
{ config_id = 1003025, name = "ANY_MONSTER_DIE_3025", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3025", action = "action_EVENT_ANY_MONSTER_DIE_3025" },
{ config_id = 1003027, name = "ANY_MONSTER_DIE_3027", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3027", action = "action_EVENT_ANY_MONSTER_DIE_3027" },
{ config_id = 1003028, name = "ANY_MONSTER_DIE_3028", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3028", action = "action_EVENT_ANY_MONSTER_DIE_3028" },
{ config_id = 1003029, name = "ANY_MONSTER_DIE_3029", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3029", action = "action_EVENT_ANY_MONSTER_DIE_3029" },
{ config_id = 1003031, name = "TIME_AXIS_PASS_3031", event = EventType.EVENT_TIME_AXIS_PASS, source = "", condition = "condition_EVENT_TIME_AXIS_PASS_3031", action = "action_EVENT_TIME_AXIS_PASS_3031", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "MonsterWave", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3030 },
regions = { 3022 },
triggers = { "ENTER_REGION_3022", "CHALLENGE_FAIL_3023", "DUNGEON_SETTLE_3024", "TIME_AXIS_PASS_3031" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 3002, 3003, 3004, 3005, 3006 },
gadgets = { 3001 },
regions = { },
triggers = { "ANY_MONSTER_DIE_3025" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 3007, 3008, 3009, 3010 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3027" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 3011, 3012, 3013, 3014 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3028" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { 3015, 3016, 3017, 3018 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_3029" },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { 3019, 3020, 3021 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 3026 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 3030 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 3032, 3033 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_3022(context, evt)
if evt.param1 ~= 3022 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3022(context, evt)
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 240054003, 9)
-- 针对当前group内变量名为 "MonsterWave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "MonsterWave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 240054002, 2)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240054003, 2)
-- 创建编号为1(该挑战的识别id),挑战内容为4的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 4, 240054003, 20, 30, 15) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_3023(context, evt)
for i = 2, 6 do
ScriptLib.RemoveExtraGroupSuite(context, 240054003, i)
end
ScriptLib.InitTimeAxis(context, "refresh_challenge", {3}, false)
return 0
end
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_3024(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_3024(context, evt)
-- 添加suite7的新内容
ScriptLib.AddExtraGroupSuite(context, 240054003, 7)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3025(context, evt)
-- 判断变量"MonsterWave"为1
if ScriptLib.GetGroupVariableValue(context, "MonsterWave") ~= 1 then
return false
end
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3025(context, evt)
-- 针对当前group内变量名为 "MonsterWave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "MonsterWave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 240054003, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3027(context, evt)
-- 判断变量"MonsterWave"为2
if ScriptLib.GetGroupVariableValue(context, "MonsterWave") ~= 2 then
return false
end
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3027(context, evt)
-- 针对当前group内变量名为 "MonsterWave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "MonsterWave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 240054003, 4)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3028(context, evt)
-- 判断变量"MonsterWave"为3
if ScriptLib.GetGroupVariableValue(context, "MonsterWave") ~= 3 then
return false
end
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3028(context, evt)
-- 针对当前group内变量名为 "MonsterWave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "MonsterWave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 240054003, 5)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3029(context, evt)
-- 判断变量"MonsterWave"为4
if ScriptLib.GetGroupVariableValue(context, "MonsterWave") ~= 4 then
return false
end
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3029(context, evt)
-- 针对当前group内变量名为 "MonsterWave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "MonsterWave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 240054003, 6)
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_3031(context, evt)
if "refresh_challenge" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_3031(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240054003, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240054002, 2)
-- 添加suite9的新内容
ScriptLib.AddExtraGroupSuite(context, 240054003, 9)
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": 238.7324,
"y": 96.69523,
"z": 695.4774
},
"rot": {
"x": 0.0,
"y": 95.2193,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 242.26532,
"y": 96.03259,
"z": 689.0017
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}