添加配置表

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 = -256.0, z = -256.0 },
size = { x = 803.9, z = 1168.1 },
born_pos = { x = 120.717, y = 195.007, z = 616.683 },
born_rot = { x = 0.000, y = 330.603, z = 0.000 },
die_y = 160,
city_id = 4,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 20158 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -256.0, z = -256.0 }, max = { x = 547.9, z = 912.1 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }
@@ -0,0 +1,10 @@
-- 所有的group
groups = {
{ id = 220158001, refresh_id = 1, pos = { x = 138.931, y = 193.798, z = 633.577 } },
{ id = 220158002, refresh_id = 1, pos = { x = 148.333, y = 192.098, z = 627.064 } },
{ id = 220158003, refresh_id = 1, pos = { x = 251.124, y = 214.313, z = 632.583 } },
{ id = 220158004, refresh_id = 1002, pos = { x = 207.691, y = 191.698, z = 647.813 } },
{ id = 220158005, refresh_id = 1002, pos = { x = 202.688, y = 190.082, z = 587.410 } },
{ id = 220158006, refresh_id = 1001, pos = { x = 287.628, y = 220.916, z = 561.225 } },
{ id = 220158007, refresh_id = 1002, pos = { x = 247.076, y = 214.711, z = 631.028 } }
}
@@ -0,0 +1,9 @@
dummy_points = {
["Q302813_guide"] = { pos = { x = 118.969, y = 194.584, z = 620.301 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q302813_N10000005"] = { pos = { x = 118.367, y = 194.665, z = 622.624 }, rot = { x = 0.000, y = 169.499, z = 0.000 } },
["Q302813_N1005"] = { pos = { x = 117.712, y = 194.470, z = 621.048 }, rot = { x = 0.000, y = 10.975, z = 0.000 } },
["Q302813_N1056"] = { pos = { x = 119.298, y = 194.680, z = 621.256 }, rot = { x = 0.000, y = 327.890, z = 0.000 } },
["Q302816_N10000005"] = { pos = { x = 239.783, y = 221.968, z = 619.393 }, rot = { x = 0.000, y = 30.784, z = 0.000 } },
["Q302816_N1005"] = { pos = { x = 238.180, y = 221.969, z = 619.647 }, rot = { x = 0.000, y = 57.091, z = 0.000 } },
["Q302816_N1056"] = { pos = { x = 240.478, y = 221.968, z = 618.132 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}
@@ -0,0 +1,111 @@
-- 基础信息
local base_info = {
group_id = 220158001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1002, gadget_id = 70220103, pos = { x = 182.837, y = 193.105, z = 634.672 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1003, gadget_id = 70320073, pos = { x = 247.996, y = 215.250, z = 632.140 }, rot = { x = 0.000, y = 304.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1001, shape = RegionShape.CUBIC, size = { x = 5.000, y = 10.000, z = 20.000 }, pos = { x = 134.781, y = 200.288, z = 633.255 } }
}
-- 触发器
triggers = {
{ config_id = 1001001, name = "ENTER_REGION_1001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1001", action = "action_EVENT_ENTER_REGION_1001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1002, 1003 },
regions = { 1001 },
triggers = { "ENTER_REGION_1001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_1001(context, evt)
if evt.param1 ~= 1001 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_1001(context, evt)
-- 触发镜头注目,注目位置为坐标{x=191.0105, y=204.7157, z=628.7041},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=191.0105, y=204.7157, z=628.7041}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 调用提示id为 201580101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201580101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220158002, 1)
return 0
end
@@ -0,0 +1,121 @@
-- 基础信息
local base_info = {
group_id = 220158002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70900201, pos = { x = 135.040, y = 195.169, z = 632.056 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70900201, pos = { x = 285.018, y = 221.129, z = 554.974 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2003, gadget_id = 70900201, pos = { x = 247.284, y = 214.522, z = 631.018 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2004, gadget_id = 70900201, pos = { x = 240.705, y = 223.551, z = 620.952 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2005, gadget_id = 70900201, pos = { x = 200.591, y = 190.718, z = 585.732 }, rot = { x = 0.000, y = 167.327, 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 = { 2001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 2002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 2003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 2004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 2005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 220158003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70380334, pos = { x = 247.180, y = 214.530, z = 630.950 }, rot = { x = 0.000, y = 34.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_SUPER },
{ config_id = 3002, gadget_id = 70380334, pos = { x = 247.180, y = 214.530, z = 630.950 }, rot = { x = 0.000, y = 34.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, vision_level = VisionLevelType.VISION_LEVEL_SUPER }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,161 @@
-- 基础信息
local base_info = {
group_id = 220158004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 21020301, pos = { x = 215.049, y = 193.415, z = 655.555 }, rot = { x = 0.000, y = 238.557, z = 0.000 }, level = 1, affix = { 1109 } },
{ config_id = 4002, monster_id = 21010201, pos = { x = 202.143, y = 187.836, z = 634.473 }, rot = { x = 0.000, y = 261.437, z = 0.000 }, level = 1, affix = { 1109 }, pose_id = 9010 },
{ config_id = 4003, monster_id = 21010201, pos = { x = 198.406, y = 189.752, z = 644.671 }, rot = { x = 0.000, y = 167.306, z = 0.000 }, level = 1, affix = { 1109 }, pose_id = 9010 },
{ config_id = 4004, monster_id = 21010501, pos = { x = 203.604, y = 190.831, z = 649.748 }, rot = { x = 0.000, y = 192.903, z = 0.000 }, level = 1, affix = { 1109 }, pose_id = 9013 },
{ config_id = 4006, monster_id = 20011301, pos = { x = 213.385, y = 191.148, z = 647.620 }, rot = { x = 0.000, y = 254.418, z = 0.000 }, level = 1, affix = { 1109 } },
{ config_id = 4007, monster_id = 21030301, pos = { x = 218.320, y = 194.367, z = 657.624 }, rot = { x = 0.000, y = 259.941, z = 0.000 }, level = 1, affix = { 1109 }, pose_id = 9012 },
{ config_id = 4008, monster_id = 21011001, pos = { x = 221.516, y = 190.083, z = 640.272 }, rot = { x = 0.000, y = 279.456, z = 0.000 }, level = 1, affix = { 1109 }, pose_id = 9013 },
{ config_id = 4013, monster_id = 20011201, pos = { x = 198.393, y = 188.652, z = 637.983 }, rot = { x = 0.000, y = 269.981, z = 0.000 }, level = 1, affix = { 1109 } },
{ config_id = 4014, monster_id = 20011201, pos = { x = 205.609, y = 189.156, z = 640.678 }, rot = { x = 0.000, y = 211.200, z = 0.000 }, level = 1, affix = { 1109 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 4012, shape = RegionShape.SPHERE, radius = 15, pos = { x = 199.669, y = 188.440, z = 631.636 } }
}
-- 触发器
triggers = {
{ config_id = 1004009, name = "ANY_MONSTER_DIE_4009", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4009", action = "action_EVENT_ANY_MONSTER_DIE_4009" },
{ config_id = 1004011, name = "ANY_MONSTER_DIE_4011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4011", action = "action_EVENT_ANY_MONSTER_DIE_4011" },
{ config_id = 1004012, name = "ENTER_REGION_4012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4012", action = "action_EVENT_ENTER_REGION_4012" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 4002, 4003, 4004, 4013, 4014 },
gadgets = { },
regions = { 4012 },
triggers = { "ANY_MONSTER_DIE_4009", "ENTER_REGION_4012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 4001, 4006, 4007, 4008 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_4011" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4009(context, evt)
-- 判断剩余怪物数量是否是1
if ScriptLib.GetGroupMonsterCount(context) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4009(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220158004, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4011(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4011(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 220158002, 5)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4012(context, evt)
if evt.param1 ~= 4012 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_4012(context, evt)
-- 调用提示id为 201580102 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201580102) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,155 @@
-- 基础信息
local base_info = {
group_id = 220158005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5001, monster_id = 22040101, pos = { x = 200.733, y = 192.036, z = 578.567 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1109 }, pose_id = 101 },
{ config_id = 5002, monster_id = 22040101, pos = { x = 202.318, y = 189.870, z = 589.548 }, rot = { x = 0.000, y = 63.253, z = 0.000 }, level = 1, disableWander = true, affix = { 1109 }, pose_id = 101 },
{ config_id = 5003, monster_id = 22050101, pos = { x = 193.075, y = 191.703, z = 582.917 }, rot = { x = 0.000, y = 64.985, z = 0.000 }, level = 1, disableWander = true, affix = { 1109 }, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5005, gadget_id = 70220103, pos = { x = 218.539, y = 212.399, z = 539.874 }, rot = { x = 0.000, y = 69.051, z = 0.000 }, level = 1 },
{ config_id = 5006, gadget_id = 70220103, pos = { x = 240.737, y = 227.614, z = 514.802 }, rot = { x = 0.000, y = 69.051, z = 0.000 }, level = 1 },
{ config_id = 5008, gadget_id = 70220103, pos = { x = 283.480, y = 229.556, z = 546.149 }, rot = { x = 0.000, y = 69.051, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 5009, shape = RegionShape.SPHERE, radius = 15, pos = { x = 201.462, y = 190.082, z = 587.964 } }
}
-- 触发器
triggers = {
{ config_id = 1005004, name = "ANY_MONSTER_DIE_5004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5004", action = "action_EVENT_ANY_MONSTER_DIE_5004" },
{ config_id = 1005009, name = "ENTER_REGION_5009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5009", action = "action_EVENT_ENTER_REGION_5009", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 5001, 5002, 5003 },
gadgets = { },
regions = { 5009 },
triggers = { "ANY_MONSTER_DIE_5004", "ENTER_REGION_5009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5005, 5006, 5008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5004(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220158005, 2)
-- 触发镜头注目,注目位置为坐标{x=218.539, y=212.399, z=539.8741},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=218.539, y=212.399, z=539.8741}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 1,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 调用提示id为 201580103 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201580103) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220158002, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5009(context, evt)
if evt.param1 ~= 5009 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_5009(context, evt)
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220158002, 5)
return 0
end
@@ -0,0 +1,141 @@
-- 基础信息
local base_info = {
group_id = 220158006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 21030601, pos = { x = 290.750, y = 220.570, z = 567.104 }, rot = { x = 0.000, y = 222.292, z = 0.000 }, level = 1, affix = { 1109 }, pose_id = 9012 },
{ config_id = 6002, monster_id = 21010601, pos = { x = 282.989, y = 219.086, z = 562.710 }, rot = { x = 0.000, y = 122.886, z = 0.000 }, level = 1, affix = { 1109 }, pose_id = 9013 },
{ config_id = 6003, monster_id = 21010601, pos = { x = 288.362, y = 221.743, z = 556.665 }, rot = { x = 0.000, y = 299.891, z = 0.000 }, level = 1, affix = { 1109 }, pose_id = 9013 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6006, gadget_id = 70220103, pos = { x = 274.618, y = 222.355, z = 600.295 }, rot = { x = 0.000, y = 214.357, z = 0.000 }, level = 1 },
{ config_id = 6007, gadget_id = 70220103, pos = { x = 250.151, y = 223.686, z = 635.553 }, rot = { x = 0.000, y = 214.357, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 6008, shape = RegionShape.SPHERE, radius = 13, pos = { x = 287.597, y = 221.485, z = 555.741 } }
}
-- 触发器
triggers = {
{ config_id = 1006004, name = "ANY_MONSTER_DIE_6004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6004", action = "action_EVENT_ANY_MONSTER_DIE_6004" },
{ config_id = 1006008, name = "ENTER_REGION_6008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6008", action = "action_EVENT_ENTER_REGION_6008", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 6001, 6002, 6003 },
gadgets = { },
regions = { 6008 },
triggers = { "ANY_MONSTER_DIE_6004", "ENTER_REGION_6008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6006, 6007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6004(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220158006, 2)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220158002, 3)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6008(context, evt)
if evt.param1 ~= 6008 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_6008(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220158002, 2)
-- 切换二阶段环境
ScriptLib.SetWeatherAreaState(context, 10156, 1)
return 0
end
@@ -0,0 +1,306 @@
-- 基础信息
local base_info = {
group_id = 220158007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 7001, monster_id = 21020801, pos = { x = 243.416, y = 214.313, z = 625.454 }, rot = { x = 0.000, y = 37.433, z = 0.000 }, level = 1, affix = { 1109 } },
{ config_id = 7002, monster_id = 21030201, pos = { x = 241.201, y = 214.306, z = 622.265 }, rot = { x = 0.000, y = 49.669, z = 0.000 }, level = 1, affix = { 1109 }, pose_id = 9012 },
{ config_id = 7003, monster_id = 21020701, pos = { x = 247.843, y = 214.313, z = 641.543 }, rot = { x = 0.000, y = 187.667, z = 0.000 }, level = 1, affix = { 1109 }, pose_id = 401 },
{ config_id = 7006, monster_id = 21010501, pos = { x = 247.948, y = 214.313, z = 620.283 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1109 } },
{ config_id = 7007, monster_id = 20010501, pos = { x = 246.104, y = 214.313, z = 636.339 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1109 } },
{ config_id = 7008, monster_id = 20010501, pos = { x = 254.684, y = 214.313, z = 633.485 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1109 } },
{ config_id = 7009, monster_id = 21010501, pos = { x = 236.659, y = 214.313, z = 626.740 }, rot = { x = 0.000, y = 41.150, z = 0.000 }, level = 1, affix = { 1109 } },
{ config_id = 7010, monster_id = 21010601, pos = { x = 249.858, y = 215.816, z = 647.013 }, rot = { x = 0.000, y = 169.113, z = 0.000 }, level = 1, affix = { 1109 } },
{ config_id = 7011, monster_id = 21010601, pos = { x = 259.035, y = 214.527, z = 638.455 }, rot = { x = 0.000, y = 248.708, z = 0.000 }, level = 1, affix = { 1109 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7013, gadget_id = 70320025, pos = { x = 240.705, y = 221.968, z = 620.952 }, rot = { x = 0.000, y = 214.227, z = 0.000 }, level = 1 },
{ config_id = 7014, gadget_id = 70360001, pos = { x = 240.705, y = 221.968, z = 620.952 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7016, gadget_id = 70800111, pos = { x = 261.740, y = 216.590, z = 630.786 }, rot = { x = 0.000, y = 35.000, z = 90.000 }, level = 1 },
{ config_id = 7018, gadget_id = 70320078, pos = { x = 254.598, y = 216.735, z = 641.763 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7020, gadget_id = 70800111, pos = { x = 258.960, y = 216.590, z = 626.676 }, rot = { x = 0.000, y = 35.000, z = 90.000 }, level = 1 },
{ config_id = 7021, gadget_id = 70800111, pos = { x = 256.190, y = 216.590, z = 622.576 }, rot = { x = 0.000, y = 35.000, z = 90.000 }, level = 1 },
{ config_id = 7022, gadget_id = 70800111, pos = { x = 253.500, y = 216.590, z = 618.606 }, rot = { x = 0.000, y = 35.000, z = 90.000 }, level = 1 },
{ config_id = 7023, gadget_id = 70800111, pos = { x = 250.820, y = 216.590, z = 614.636 }, rot = { x = 0.000, y = 35.000, z = 90.000 }, level = 1 },
{ config_id = 7024, gadget_id = 70800111, pos = { x = 241.316, y = 216.590, z = 644.258 }, rot = { x = 0.000, y = 35.000, z = 90.000 }, level = 1 },
{ config_id = 7025, gadget_id = 70800111, pos = { x = 238.536, y = 216.590, z = 640.148 }, rot = { x = 0.000, y = 35.000, z = 90.000 }, level = 1 },
{ config_id = 7026, gadget_id = 70800111, pos = { x = 235.766, y = 216.590, z = 636.048 }, rot = { x = 0.000, y = 35.000, z = 90.000 }, level = 1 },
{ config_id = 7027, gadget_id = 70800111, pos = { x = 233.076, y = 216.590, z = 632.078 }, rot = { x = 0.000, y = 35.000, z = 90.000 }, level = 1 },
{ config_id = 7028, gadget_id = 70800111, pos = { x = 230.396, y = 216.590, z = 628.108 }, rot = { x = 0.000, y = 35.000, z = 90.000 }, level = 1 },
{ config_id = 7029, gadget_id = 70800111, pos = { x = 244.534, y = 216.590, z = 613.651 }, rot = { x = 90.000, y = 35.000, z = 0.000 }, level = 1 },
{ config_id = 7030, gadget_id = 70800111, pos = { x = 231.817, y = 216.590, z = 622.894 }, rot = { x = 90.000, y = 35.000, z = 0.000 }, level = 1 },
{ config_id = 7031, gadget_id = 70800111, pos = { x = 247.840, y = 216.590, z = 645.207 }, rot = { x = 90.000, y = 35.000, z = 0.000 }, level = 1 },
{ config_id = 7032, gadget_id = 70800111, pos = { x = 251.930, y = 216.590, z = 642.437 }, rot = { x = 90.000, y = 35.000, z = 0.000 }, level = 1 },
{ config_id = 7033, gadget_id = 70800111, pos = { x = 256.110, y = 216.590, z = 639.607 }, rot = { x = 90.000, y = 35.000, z = 0.000 }, level = 1 },
{ config_id = 7034, gadget_id = 70800111, pos = { x = 260.220, y = 216.590, z = 636.827 }, rot = { x = 90.000, y = 35.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 7004, shape = RegionShape.SPHERE, radius = 10, pos = { x = 247.076, y = 214.711, z = 631.028 } }
}
-- 触发器
triggers = {
{ config_id = 1007004, name = "ENTER_REGION_7004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7004", action = "action_EVENT_ENTER_REGION_7004", trigger_count = 0 },
{ config_id = 1007005, name = "ANY_MONSTER_DIE_7005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7005", action = "action_EVENT_ANY_MONSTER_DIE_7005" },
{ config_id = 1007012, name = "ANY_MONSTER_DIE_7012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7012", action = "action_EVENT_ANY_MONSTER_DIE_7012" },
{ config_id = 1007015, name = "SELECT_OPTION_7015", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7015", action = "action_EVENT_SELECT_OPTION_7015" },
{ config_id = 1007017, name = "QUEST_FINISH_7017", event = EventType.EVENT_QUEST_FINISH, source = "302824", condition = "", action = "action_EVENT_QUEST_FINISH_7017", trigger_count = 0 },
{ config_id = 1007019, name = "QUEST_START_7019", event = EventType.EVENT_QUEST_START, source = "302816", condition = "", action = "action_EVENT_QUEST_START_7019", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 7002, 7003, 7006, 7007, 7008, 7009 },
gadgets = { 7013, 7014, 7018 },
regions = { 7004 },
triggers = { "ENTER_REGION_7004", "ANY_MONSTER_DIE_7005", "QUEST_FINISH_7017", "QUEST_START_7019" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 7001, 7010, 7011 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_7012", "SELECT_OPTION_7015" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 7016, 7020, 7021, 7022, 7023, 7024, 7025, 7026, 7027, 7028, 7029, 7030, 7031, 7032, 7033, 7034 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_7004(context, evt)
if evt.param1 ~= 7004 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_7004(context, evt)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220158002, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_7005(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220158007) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220158007, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_7012(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220158007) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7012(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220158007, 7014, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220158002, 4)
-- 调用提示id为 201580104 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201580104) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_7015(context, evt)
-- 判断是gadgetid 7014 option_id 7
if 7014 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_7015(context, evt)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220158002, 4)
-- 删除指定group 220158007 ;指定config7014;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220158007, 7014, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "302815") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 改变指定group组220158001中, configid为1003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220158001, 1003, GadgetState.ChestLocked) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220158004, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220158005, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220158006, suite = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220158002, suite = 6 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 切三阶段scenetag
ScriptLib.AddSceneTag(context, 20158, 1215 )
ScriptLib.DelSceneTag(context, 20158, 1216 )
ScriptLib.DelSceneTag(context, 20158, 1217 )
ScriptLib.DelSceneTag(context, 20158, 1218 )
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220158007, 3)
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_7017(context, evt)
-- 将configid为 7018 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7018, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 7013 的物件更改为状态 GadgetState.ChestLocked
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7013, GadgetState.ChestLocked) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 切换三阶段环境
ScriptLib.SetWeatherAreaState(context, 10157, 1)
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_7019(context, evt)
-- 将configid为 7013 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7013, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 切换二阶段环境
ScriptLib.SetWeatherAreaState(context, 10156, 1)
return 0
end
@@ -0,0 +1,129 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 192.4756,
"y": 187.3585,
"z": 635.5573
},
"rot": {
"x": 0.0,
"y": 66.01413,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 20.0,
"z": 20.0
},
"tranPos": {
"x": 192.4756,
"y": 187.3585,
"z": 635.5573
},
"tranRot": {
"x": 0.0,
"y": 66.01413,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 205.559,
"y": 188.8001,
"z": 591.9689
},
"rot": {
"x": 0.8231851,
"y": 203.3208,
"z": 0.4391427
},
"size": {
"x": 20.0,
"y": 20.0,
"z": 20.0
},
"tranPos": {
"x": 205.559,
"y": 188.80014,
"z": 591.9689
},
"tranRot": {
"x": 0.0,
"y": 203.3208,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"3": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 286.8004,
"y": 220.6912,
"z": 559.618
},
"rot": {
"x": 0.0,
"y": 339.6854,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 20.0,
"z": 20.0
},
"tranPos": {
"x": 286.800354,
"y": 220.691177,
"z": 559.618
},
"tranRot": {
"x": 0.0,
"y": 339.6854,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}
@@ -0,0 +1,60 @@
[
{
"area_id": 10156,
"points": [
{
"x": 665.08136,
"y": 544.9682
},
{
"x": 350.83783,
"y": 920.053833
},
{
"x": -67.83127,
"y": 734.2055
},
{
"x": -183.012024,
"y": 375.057556
},
{
"x": 34.9576645,
"y": 272.679169
},
{
"x": 318.289246,
"y": 212.566849
}
]
},
{
"area_id": 10157,
"points": [
{
"x": 665.08136,
"y": 544.9682
},
{
"x": 350.83783,
"y": 920.053833
},
{
"x": -67.83127,
"y": 734.2055
},
{
"x": -183.012024,
"y": 375.057556
},
{
"x": 34.9576645,
"y": 272.679169
},
{
"x": 318.289246,
"y": 212.566849
}
]
}
]