添加配置表

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,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -161.2, z = -540.2 },
size = { x = 2319.1, z = 2150.1 },
born_pos = { x = -20.834, y = 0.560, z = 28.353 },
born_rot = { x = 0.000, y = 186.204, z = 0.000 },
die_y = -11.92,
city_id = 1,
vision_anchor = { x = -161.2, z = -540.2 }
}
-- 所有的区块
blocks = { 50015 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -161.2, z = -540.2 }, max = { x = 2158.0, z = 1609.8 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,48 @@
-- 所有的group
groups = {
{ id = 250015001, refresh_id = 1001, pos = { x = 17.203, y = 0.500, z = 122.342 } },
{ id = 250015003, refresh_id = 1002, pos = { x = 18.921, y = 0.500, z = 79.758 } },
{ id = 250015004, refresh_id = 1001, pos = { x = 17.509, y = 0.500, z = -128.046 } },
{ id = 250015005, refresh_id = 1001, pos = { x = 14.419, y = 0.500, z = -27.085 } },
{ id = 250015006, refresh_id = 1001, pos = { x = 17.950, y = 0.500, z = 26.064 } },
{ id = 250015007, refresh_id = 1001, pos = { x = -55.592, y = 0.500, z = 124.779 } },
{ id = 250015008, refresh_id = 1001, pos = { x = -52.553, y = 0.500, z = 77.857 } },
{ id = 250015016, refresh_id = 1000, pos = { x = -50.121, y = 4.600, z = -121.065 } },
{ id = 250015019, refresh_id = 1000, pos = { x = -118.453, y = 0.500, z = -126.062 } },
{ id = 250015021, refresh_id = 1000, pos = { x = -56.052, y = 0.500, z = -75.155 } },
{ id = 250015022, refresh_id = 1002, pos = { x = -60.669, y = 0.500, z = 27.716 } },
{ id = 250015023, pos = { x = -123.517, y = 5.279, z = 22.930 } },
{ id = 250015024, refresh_id = 1001, pos = { x = -123.008, y = 0.500, z = -30.604 } },
{ id = 250015025, pos = { x = -123.513, y = 16.431, z = 74.587 } },
{ id = 250015026, refresh_id = 1001, pos = { x = 1607.991, y = 317.078, z = 400.503 } },
{ id = 250015027, refresh_id = 1001, pos = { x = 1357.208, y = 200.012, z = 893.557 } },
{ id = 250015028, refresh_id = 1001, pos = { x = 1510.255, y = 261.640, z = 747.164 } },
{ id = 250015029, pos = { x = 1640.737, y = 200.000, z = 946.405 } },
{ id = 250015030, pos = { x = 1722.496, y = 209.048, z = 946.038 } },
{ id = 250015031, refresh_id = 1002, pos = { x = 1399.329, y = 209.214, z = 510.328 } },
{ id = 250015032, refresh_id = 1002, pos = { x = 1522.236, y = 208.087, z = 914.384 } },
{ id = 250015033, refresh_id = 1002, pos = { x = -56.994, y = 0.500, z = -24.834 } },
{ id = 250015034, refresh_id = 1002, pos = { x = 1581.826, y = 203.138, z = 905.924 } },
{ id = 250015035, refresh_id = 1002, pos = { x = 1626.181, y = 203.138, z = 923.480 } },
{ id = 250015036, refresh_id = 1, pos = { x = 1572.485, y = 201.650, z = 938.980 } },
{ id = 250015037, refresh_id = 1001, pos = { x = -118.558, y = 0.500, z = -81.976 } },
{ id = 250015038, refresh_id = 1001, pos = { x = -17.048, y = 0.500, z = 108.761 } },
{ id = 250015043, refresh_id = 1002, pos = { x = 96.154, y = 0.500, z = -124.498 } },
{ id = 250015045, refresh_id = 1002, pos = { x = -77.591, y = 1.315, z = -235.158 } },
{ id = 250015046, refresh_id = 1002, pos = { x = 177.745, y = 0.500, z = 84.794 } },
{ id = 250015048, refresh_id = 1002, pos = { x = 175.308, y = 0.500, z = -23.828 } },
{ id = 250015049, refresh_id = 1002, pos = { x = 175.994, y = 0.500, z = -75.940 } },
{ id = 250015051, refresh_id = 1002, pos = { x = 168.866, y = 0.500, z = -134.126 } },
{ id = 250015052, refresh_id = 1002, pos = { x = 173.564, y = 0.500, z = -124.155 } },
{ id = 250015053, pos = { x = 412.264, y = 0.500, z = 124.879 } },
{ id = 250015054, pos = { x = 415.654, y = 0.500, z = 78.828 } },
{ id = 250015055, refresh_id = 1002, pos = { x = 90.966, y = 0.500, z = 27.676 } },
{ id = 250015056, refresh_id = 1001, pos = { x = 92.709, y = 0.500, z = -24.586 } },
{ id = 250015057, refresh_id = 1001, pos = { x = 91.400, y = 0.500, z = -74.845 } },
{ id = 250015058, refresh_id = 1000, pos = { x = -136.517, y = 5.300, z = 116.202 } },
{ id = 250015059, refresh_id = 1000, pos = { x = -113.442, y = 5.300, z = 137.238 } },
{ id = 250015060, refresh_id = 1001, pos = { x = 174.959, y = 0.500, z = 125.262 } },
{ id = 250015061, pos = { x = 1700.783, y = 250.038, z = 778.732 } },
{ id = 250015062, refresh_id = 1002, pos = { x = 55.656, y = 0.500, z = 135.162 }, business = { type = 4 } },
{ id = 250015063, refresh_id = 1001, pos = { x = 57.059, y = 0.500, z = 127.062 } }
}

View File

@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 250015001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5, monster_id = 21010101, pos = { x = 20.033, y = 0.500, z = 129.435 }, rot = { x = 0.000, y = 117.568, z = 0.000 }, level = 1 },
{ config_id = 6, monster_id = 21010201, pos = { x = 23.637, y = 0.500, z = 127.995 }, rot = { x = 0.000, y = 117.568, z = 0.000 }, level = 1 },
{ config_id = 7, monster_id = 21010301, pos = { x = 24.216, y = 0.500, z = 120.212 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3, gadget_id = 70300098, pos = { x = 16.027, y = 0.500, z = 123.175 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 5, 6, 7 },
gadgets = { 3 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,76 @@
-- 基础信息
local base_info = {
group_id = 250015003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8, monster_id = 21010101, pos = { x = 16.224, y = 0.500, z = 85.618 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9012 },
{ config_id = 9, monster_id = 21010101, pos = { x = 13.550, y = 0.500, z = 80.768 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9012 },
{ config_id = 10, monster_id = 21010101, pos = { x = 9.277, y = 0.500, z = 78.783 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 9012 },
{ config_id = 11, monster_id = 22010101, pos = { x = 23.732, y = 0.500, z = 76.670 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 9013 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4, gadget_id = 70300099, pos = { x = 20.195, y = 0.500, z = 79.277 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 8, 9, 10, 11 },
gadgets = { 4 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 250015004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 12, monster_id = 21010101, pos = { x = 16.020, y = 0.500, z = -117.084 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 13, monster_id = 21010101, pos = { x = 26.167, y = 0.500, z = -121.371 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 14, monster_id = 21010101, pos = { x = 7.195, y = 0.500, z = -131.086 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5, gadget_id = 70300102, pos = { x = 16.710, y = 0.500, z = -128.479 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 12, 13, 14 },
gadgets = { 5 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,76 @@
-- 基础信息
local base_info = {
group_id = 250015005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 15, monster_id = 21010101, pos = { x = 18.517, y = 0.500, z = -33.811 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16, monster_id = 21010101, pos = { x = 9.100, y = 0.500, z = -32.326 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 17, monster_id = 21010101, pos = { x = 15.374, y = 0.500, z = -31.949 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 18, monster_id = 21010101, pos = { x = 20.053, y = 0.500, z = -28.104 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6, gadget_id = 70300101, pos = { x = 13.118, y = 0.500, z = -26.296 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 15, 16, 17, 18 },
gadgets = { 6 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,79 @@
-- 基础信息
local base_info = {
group_id = 250015006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 22, monster_id = 21010101, pos = { x = 11.082, y = 0.500, z = 44.610 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 9013 },
{ config_id = 23, monster_id = 21010101, pos = { x = 5.574, y = 0.500, z = 39.978 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 9013 },
{ config_id = 24, monster_id = 21010101, pos = { x = 4.980, y = 0.500, z = 33.012 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 9013 },
{ config_id = 25, monster_id = 21010101, pos = { x = 6.001, y = 0.500, z = 43.205 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 26, monster_id = 21010101, pos = { x = 7.854, y = 0.500, z = 34.090 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 27, monster_id = 21010101, pos = { x = 8.834, y = 0.500, z = 28.142 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7, gadget_id = 70300100, pos = { x = 13.488, y = 0.500, z = 39.054 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8, gadget_id = 70300100, pos = { x = 12.822, y = 0.500, z = 31.907 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 22, 23, 24, 25, 26, 27 },
gadgets = { 7, 8 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 250015007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 19, monster_id = 21010101, pos = { x = -60.429, y = 0.500, z = 122.874 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20, monster_id = 21010101, pos = { x = -59.244, y = 0.500, z = 118.646 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 21, monster_id = 21010101, pos = { x = -53.402, y = 0.500, z = 118.951 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9, gadget_id = 70300103, pos = { x = -55.662, y = 0.500, z = 123.932 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 19, 20, 21 },
gadgets = { 9 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,113 @@
-- 基础信息
local base_info = {
group_id = 250015008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 28, monster_id = 21010101, pos = { x = -57.602, y = 0.500, z = 83.421 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 29, monster_id = 21010101, pos = { x = -60.199, y = 0.500, z = 80.545 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 30, monster_id = 21010101, pos = { x = -59.716, y = 0.500, z = 77.102 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 31, monster_id = 20010301, pos = { x = -48.439, y = 0.500, z = 83.181 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32, monster_id = 20010301, pos = { x = -48.514, y = 0.500, z = 80.216 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 33, monster_id = 20010301, pos = { x = -49.346, y = 0.500, z = 75.923 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 34, monster_id = 21010101, pos = { x = -54.800, y = 0.500, z = 76.422 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000001, name = "ANY_MONSTER_DIE_1", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_1", action = "action_EVENT_ANY_MONSTER_DIE_1" },
{ config_id = 1000002, name = "ANY_MONSTER_DIE_2", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 28, 29, 30, 34 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_1" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 31, 32, 33 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_2" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_1(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_1(context, evt)
-- 调用提示id为 1105001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1105001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015008, 2)
return 0
end

View File

@@ -0,0 +1,109 @@
-- 基础信息
local base_info = {
group_id = 250015016
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 16001, monster_id = 28040101, pos = { x = -61.430, y = 4.600, z = -132.965 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16002, monster_id = 28040101, pos = { x = -62.731, y = 4.600, z = -121.725 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16003, monster_id = 28040101, pos = { x = -61.857, y = 4.600, z = -112.907 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16004, monster_id = 28040101, pos = { x = -50.174, y = 4.600, z = -138.554 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16005, monster_id = 28040101, pos = { x = -37.329, y = 4.600, z = -129.751 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16006, monster_id = 28040101, pos = { x = -54.717, y = 4.600, z = -124.050 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16007, monster_id = 28040101, pos = { x = -56.760, y = 4.600, z = -109.806 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16008, monster_id = 28040101, pos = { x = -48.944, y = 4.600, z = -105.876 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16009, monster_id = 28040101, pos = { x = -40.020, y = 4.600, z = -108.027 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16010, monster_id = 28040101, pos = { x = -35.715, y = 4.600, z = -116.712 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16011, monster_id = 28040103, pos = { x = -47.690, y = 4.600, z = -118.987 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
{ config_id = 16014, npc_id = 20032, pos = { x = -30.500, y = 4.800, z = -109.886 }, rot = { x = 0.000, y = 258.863, z = 0.000 } }
}
-- 装置
gadgets = {
{ config_id = 16012, gadget_id = 70380001, pos = { x = -50.313, y = 3.922, z = -125.428 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 16013, shape = RegionShape.SPHERE, radius = 5, pos = { x = -50.631, y = 4.600, z = -125.853 } }
}
-- 触发器
triggers = {
{ config_id = 1016013, name = "ENTER_REGION_16013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_16013", action = "action_EVENT_ENTER_REGION_16013", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 16001, 16002, 16003, 16004, 16005, 16006, 16007, 16008, 16009, 16010, 16011 },
gadgets = { 16012 },
regions = { 16013 },
triggers = { "ENTER_REGION_16013" },
npcs = { 16014 },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_16013(context, evt)
if evt.param1 ~= 16013 then return false end
if 16011 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_16013(context, evt)
-- 180号挑战,duration内击杀kill_sum的怪物
if 0 ~= ScriptLib.ActiveChallenge(context, 180, 180, 120, 250015016, 11, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : challenge_KilMonster_InTime")
return -1
end
return 0
end

View File

@@ -0,0 +1,87 @@
-- 基础信息
local base_info = {
group_id = 250015019
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 19001, monster_id = 28010101, pos = { x = -124.165, y = 0.500, z = -131.447 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19002, monster_id = 28010101, pos = { x = -124.610, y = 0.500, z = -123.608 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19003, monster_id = 28010101, pos = { x = -134.585, y = 0.500, z = -130.486 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19004, monster_id = 28010101, pos = { x = -123.371, y = 0.500, z = -112.075 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19005, monster_id = 28010101, pos = { x = -113.239, y = 0.500, z = -115.927 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19006, monster_id = 28010101, pos = { x = -106.129, y = 0.500, z = -120.365 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19007, monster_id = 28020201, pos = { x = -130.518, y = 0.500, z = -142.284 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19008, monster_id = 28020201, pos = { x = -118.088, y = 0.500, z = -140.790 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19009, monster_id = 28020201, pos = { x = -138.280, y = 0.500, z = -113.273 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19010, monster_id = 28010301, pos = { x = -138.379, y = 0.500, z = -138.203 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19011, monster_id = 28010301, pos = { x = -138.846, y = 0.500, z = -121.318 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19012, monster_id = 28010301, pos = { x = -110.280, y = 0.500, z = -141.364 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19013, monster_id = 28020302, pos = { x = -128.303, y = 0.500, z = -138.674 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19014, monster_id = 28020301, pos = { x = -130.969, y = 0.500, z = -118.199 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19015, monster_id = 28020301, pos = { x = -109.152, y = 0.500, z = -111.613 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 19016, gadget_id = 70300080, pos = { x = -114.659, y = 0.500, z = -128.550 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 19001, 19002, 19003, 19004, 19005, 19006, 19007, 19008, 19009, 19010, 19011, 19012, 19013, 19014, 19015 },
gadgets = { 19016 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,76 @@
-- 基础信息
local base_info = {
group_id = 250015021
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 21004, monster_id = 28020403, pos = { x = -36.641, y = 0.500, z = -58.276 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 21001, gadget_id = 70210104, pos = { x = -71.154, y = 0.500, z = -91.468 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1 },
{ config_id = 21002, gadget_id = 70210104, pos = { x = -39.173, y = 0.500, z = -92.497 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1 },
{ config_id = 21003, gadget_id = 70210104, pos = { x = -54.240, y = 0.500, z = -58.531 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1 },
{ config_id = 21005, gadget_id = 70210104, pos = { x = -57.044, y = 0.500, z = -76.627 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 21004 },
gadgets = { 21001, 21002, 21003, 21005 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,163 @@
-- 基础信息
local base_info = {
group_id = 250015022
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 22001, monster_id = 21011201, pos = { x = -56.202, y = 0.500, z = 29.974 }, rot = { x = 0.000, y = 238.025, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 22002, monster_id = 21011201, pos = { x = -56.415, y = 0.500, z = 25.236 }, rot = { x = 0.000, y = 331.530, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 22003, monster_id = 21011201, pos = { x = -61.447, y = 0.500, z = 26.535 }, rot = { x = 0.000, y = 16.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 22004, monster_id = 21011201, pos = { x = -62.223, y = 0.500, z = 29.833 }, rot = { x = 0.000, y = 85.824, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 22005, monster_id = 20010601, pos = { x = -58.533, y = 0.500, z = 27.708 }, rot = { x = 0.000, y = 18.200, z = 0.000 }, level = 10, disableWander = true },
{ config_id = 22006, monster_id = 20011401, pos = { x = -64.469, y = 0.500, z = 24.185 }, rot = { x = 0.000, y = 32.300, z = 0.000 }, level = 1 },
{ config_id = 22007, monster_id = 20011401, pos = { x = -65.426, y = 0.500, z = 29.109 }, rot = { x = 0.000, y = 113.656, z = 0.000 }, level = 1 },
{ config_id = 22008, monster_id = 21020301, pos = { x = -64.418, y = 0.500, z = 27.024 }, rot = { x = 0.000, y = 78.276, z = 0.000 }, level = 1 },
{ config_id = 22019, monster_id = 20011301, pos = { x = -52.067, y = 0.500, z = 22.669 }, rot = { x = 0.000, y = 18.200, z = 0.000 }, level = 10, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 22009, gadget_id = 70300077, pos = { x = -53.647, y = 0.500, z = 33.335 }, rot = { x = 0.000, y = 72.700, z = 0.000 }, level = 1 },
{ config_id = 22010, gadget_id = 70220013, pos = { x = -53.447, y = 0.500, z = 33.635 }, rot = { x = 0.000, y = 328.300, z = 0.000 }, level = 1 },
{ config_id = 22011, gadget_id = 70220013, pos = { x = -63.447, y = 0.500, z = 33.635 }, rot = { x = 0.000, y = 342.900, z = 0.000 }, level = 1 },
{ config_id = 22012, gadget_id = 70300089, pos = { x = -62.947, y = 0.500, z = 23.435 }, rot = { x = 0.000, y = 99.900, z = 0.000 }, level = 1 },
{ config_id = 22013, gadget_id = 70300089, pos = { x = -55.947, y = 0.500, z = 21.835 }, rot = { x = 0.000, y = 122.900, z = 0.000 }, level = 1 },
{ config_id = 22014, gadget_id = 70300088, pos = { x = -55.947, y = 0.500, z = 33.335 }, rot = { x = 359.500, y = 97.200, z = 0.000 }, level = 1 },
{ config_id = 22015, gadget_id = 70300088, pos = { x = -60.247, y = 0.500, z = 32.835 }, rot = { x = 0.000, y = 100.600, z = 0.000 }, level = 1 },
{ config_id = 22016, gadget_id = 70300088, pos = { x = -65.847, y = 0.500, z = 32.935 }, rot = { x = 0.000, y = 61.700, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1022017, name = "ANY_MONSTER_DIE_22017", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_22017", action = "action_EVENT_ANY_MONSTER_DIE_22017" },
{ config_id = 1022018, name = "ANY_MONSTER_LIVE_22018", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_22018", action = "action_EVENT_ANY_MONSTER_LIVE_22018" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 22001, 22002, 22003, 22004, 22005, 22019 },
gadgets = { 22009, 22010, 22011, 22012, 22013, 22014, 22015, 22016 },
regions = { },
triggers = { "ANY_MONSTER_DIE_22017", "ANY_MONSTER_LIVE_22018" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_22017(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_22017(context, evt)
-- 延迟3秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22007, delay_time = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟3秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22008, delay_time = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟3秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22006, delay_time = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- play_type含义1·代表开始播放 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=2510, y=194, z=-1141}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_soundplay")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_22018(context, evt)
if 1644 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_22018(context, evt)
-- 通知groupid为250015022中,configid为22008的怪物入战或者脱战set为1是入战为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 22008, 250015022) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为250015022中,configid为22006的怪物入战或者脱战set为1是入战为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 22006, 250015022) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为250015022中,configid为22007的怪物入战或者脱战set为1是入战为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 22007, 250015022) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,333 @@
-- 基础信息
local base_info = {
group_id = 250015023
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 23003, monster_id = 21010701, pos = { x = -122.090, y = 22.966, z = 64.942 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 23005, monster_id = 21010701, pos = { x = -117.838, y = 22.966, z = 80.307 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 23010, monster_id = 21020101, pos = { x = -134.879, y = 22.966, z = 80.936 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 23013, monster_id = 21020101, pos = { x = -111.867, y = 22.966, z = 66.557 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 23017, monster_id = 21010501, pos = { x = -137.880, y = 28.456, z = 60.887 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 23018, monster_id = 21010501, pos = { x = -107.998, y = 28.456, z = 88.039 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 23001, gadget_id = 70220007, pos = { x = -138.705, y = 22.966, z = 80.426 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 23002, gadget_id = 40200001, pos = { x = -123.243, y = 5.010, z = 39.918 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 23004, gadget_id = 70300081, pos = { x = -122.357, y = 22.966, z = 89.472 }, rot = { x = 0.590, y = 267.330, z = 2.744 }, level = 1 },
{ config_id = 23006, gadget_id = 70300081, pos = { x = -128.829, y = 22.966, z = 89.497 }, rot = { x = 357.103, y = 268.222, z = 0.346 }, level = 1 },
{ config_id = 23007, gadget_id = 70300081, pos = { x = -115.926, y = 22.966, z = 89.843 }, rot = { x = 359.029, y = 272.141, z = 0.049 }, level = 1 },
{ config_id = 23009, gadget_id = 70220007, pos = { x = -138.639, y = 22.966, z = 75.128 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 23011, gadget_id = 70300081, pos = { x = -109.876, y = 22.966, z = 89.192 }, rot = { x = 359.170, y = 306.389, z = 359.494 }, level = 1 },
{ config_id = 23012, gadget_id = 70300081, pos = { x = -135.764, y = 22.966, z = 89.057 }, rot = { x = 357.128, y = 264.930, z = 0.512 }, level = 1 },
{ config_id = 23014, gadget_id = 70300090, pos = { x = -137.306, y = 22.966, z = 61.397 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 23015, gadget_id = 70300090, pos = { x = -109.250, y = 22.966, z = 88.313 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 23016, gadget_id = 70350006, pos = { x = -138.006, y = 22.966, z = 75.304 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 23019, gadget_id = 70900007, pos = { x = -111.635, y = 22.966, z = 70.128 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 23020, gadget_id = 70900007, pos = { x = -136.084, y = 22.966, z = 70.313 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 23021, gadget_id = 70350006, pos = { x = -138.006, y = 22.966, z = 81.107 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1023008, name = "ANY_MONSTER_DIE_23008", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_23008", action = "action_EVENT_ANY_MONSTER_DIE_23008" },
{ config_id = 1023024, name = "GADGET_STATE_CHANGE_23024", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_23024", action = "action_EVENT_GADGET_STATE_CHANGE_23024", trigger_count = 0 },
{ config_id = 1023028, name = "GADGET_STATE_CHANGE_23028", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_23028", action = "action_EVENT_GADGET_STATE_CHANGE_23028", trigger_count = 0 },
{ config_id = 1023029, name = "GADGET_STATE_CHANGE_23029", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_23029", action = "action_EVENT_GADGET_STATE_CHANGE_23029", trigger_count = 0 },
{ config_id = 1023030, name = "GADGET_STATE_CHANGE_23030", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_23030", action = "action_EVENT_GADGET_STATE_CHANGE_23030", trigger_count = 0 },
{ config_id = 1023031, name = "TIMER_EVENT_23031", event = EventType.EVENT_TIMER_EVENT, source = "stop23019", condition = "condition_EVENT_TIMER_EVENT_23031", action = "action_EVENT_TIMER_EVENT_23031", trigger_count = 0 },
{ config_id = 1023032, name = "TIMER_EVENT_23032", event = EventType.EVENT_TIMER_EVENT, source = "stop23020", condition = "condition_EVENT_TIMER_EVENT_23032", action = "action_EVENT_TIMER_EVENT_23032", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "t23019", value = 0, no_refresh = false },
{ config_id = 2, name = "t23020", value = 0, no_refresh = false },
{ config_id = 3, name = "ison", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 23003, 23005 },
gadgets = { 23001, 23002, 23004, 23006, 23007, 23009, 23011, 23012, 23014, 23015, 23016, 23021 },
regions = { },
triggers = { "ANY_MONSTER_DIE_23008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 23010, 23013, 23017, 23018 },
gadgets = { 23019, 23020 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_23024", "GADGET_STATE_CHANGE_23028", "GADGET_STATE_CHANGE_23029", "GADGET_STATE_CHANGE_23030", "TIMER_EVENT_23031", "TIMER_EVENT_23032" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_23008(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_23008(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015023, 2)
-- 调用提示id为 200050203 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200050203) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_23024(context, evt)
if 23019 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_23024(context, evt)
-- 将本组内变量名为 "t23019" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "t23019", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_23028(context, evt)
if 23020 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_23028(context, evt)
-- 将本组内变量名为 "t23020" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "t23020", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_23029(context, evt)
if 23019 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_23029(context, evt)
-- 将本组内变量名为 "t23019" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "t23019", 1)
then
return -1
end
if ScriptLib.GetGroupVariableValue(context, "ison") == 0
then
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250015023, "stop23019", 5)
then
return -1
end
end
if ScriptLib.GetGroupVariableValue(context, "t23019") + ScriptLib.GetGroupVariableValue(context, "t23020") == 2
then
if ScriptLib.GetGroupVariableValue(context, "ison") == 0
then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 23016,GadgetState.GearStart) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 23021,GadgetState.GearStart) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1)
then
return -1
end
end
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_23030(context, evt)
if 23020 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_23030(context, evt)
-- 将本组内变量名为 "t23019" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "t23020", 1) then
return -1
end
if ScriptLib.GetGroupVariableValue(context, "ison") == 0 then
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250015023, "stop23020", 5) then
return -1
end
end
if ScriptLib.GetGroupVariableValue(context, "t23019") + ScriptLib.GetGroupVariableValue(context, "t23020") == 2
then
if ScriptLib.GetGroupVariableValue(context, "ison") == 0
then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 23016,GadgetState.GearStart) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 23021,GadgetState.GearStart) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1)
then
return -1
end
end
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_23031(context, evt)
-- 判断变量"ison"为0
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_23031(context, evt)
-- 将configid为 23019 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 23019, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 调用提示id为 1110033 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110033) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_23032(context, evt)
-- 判断变量"ison"为0
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_23032(context, evt)
-- 将configid为 23020 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 23020, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 调用提示id为 1110033 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110033) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,142 @@
-- 基础信息
local base_info = {
group_id = 250015024
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 24008, monster_id = 20011001, pos = { x = -112.843, y = 0.500, z = -44.741 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 24009, monster_id = 20011001, pos = { x = -119.609, y = 0.500, z = -38.005 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 24010, monster_id = 20011001, pos = { x = -129.147, y = 0.500, z = -26.233 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 24001, gadget_id = 70900008, pos = { x = -105.204, y = 0.500, z = -50.614 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 24002, gadget_id = 70360025, pos = { x = -142.914, y = 0.500, z = -10.253 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 24003, gadget_id = 70900201, pos = { x = -142.914, y = 0.500, z = -10.253 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 24004, shape = RegionShape.SPHERE, radius = 3, pos = { x = -142.900, y = 0.500, z = -10.300 } }
}
-- 触发器
triggers = {
{ config_id = 1024004, name = "ENTER_REGION_24004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "", tag = "666", forbid_guest = false },
{ config_id = 1024005, name = "CHALLENGE_SUCCESS_24005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "888", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_24005", trigger_count = 0 },
{ config_id = 1024006, name = "CHALLENGE_FAIL_24006", event = EventType.EVENT_CHALLENGE_FAIL, source = "888", condition = "", action = "action_EVENT_CHALLENGE_FAIL_24006", trigger_count = 0 },
{ config_id = 1024007, name = "GADGET_STATE_CHANGE_24007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_24007", action = "action_EVENT_GADGET_STATE_CHANGE_24007", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 24001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_24007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 24008, 24009, 24010 },
gadgets = { 24002, 24003 },
regions = { 24004 },
triggers = { "ENTER_REGION_24004", "CHALLENGE_SUCCESS_24005", "CHALLENGE_FAIL_24006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_24005(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015024, 2)
-- 将configid为 24001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 24001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_24006(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015024, 2)
-- 将configid为 24001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 24001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_24007(context, evt)
if 24001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_24007(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015024, 2)
-- 创建编号为888该挑战的识别id),挑战内容为189的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 888, 189, 10, 4, 666, 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end

View File

@@ -0,0 +1,147 @@
-- 基础信息
local base_info = {
group_id = 250015025
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 25001, monster_id = 21010101, pos = { x = -127.824, y = 5.738, z = 32.952 }, rot = { x = 0.000, y = 280.180, z = 0.000 }, level = 25, pose_id = 9002 },
{ config_id = 25002, monster_id = 21010101, pos = { x = -129.244, y = 5.738, z = 32.761 }, rot = { x = 0.000, y = 256.890, z = 0.000 }, level = 25, pose_id = 9002 },
{ config_id = 25003, monster_id = 23020101, pos = { x = -122.977, y = 5.738, z = 22.322 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25004, monster_id = 21011201, pos = { x = -125.566, y = 5.738, z = 19.207 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25005, monster_id = 21011201, pos = { x = -119.462, y = 5.738, z = 21.766 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25006, monster_id = 21010101, pos = { x = -112.446, y = 5.738, z = 24.970 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30, pose_id = 9002 },
{ config_id = 25007, monster_id = 21011201, pos = { x = -126.659, y = 5.738, z = 25.869 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25008, monster_id = 21010901, pos = { x = -114.692, y = 5.738, z = 12.276 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25009, monster_id = 21010901, pos = { x = -128.975, y = 5.738, z = 31.179 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25010, monster_id = 21010901, pos = { x = -130.403, y = 5.738, z = 13.424 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25011, monster_id = 21010901, pos = { x = -115.184, y = 5.738, z = 31.460 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25049, monster_id = 21010101, pos = { x = -112.274, y = 5.738, z = 26.729 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 25, pose_id = 9002 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 25028, gadget_id = 70220019, pos = { x = -113.182, y = 5.738, z = 12.095 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25029, gadget_id = 70220019, pos = { x = -113.029, y = 5.738, z = 32.572 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25030, gadget_id = 70220019, pos = { x = -134.493, y = 5.738, z = 21.910 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25031, gadget_id = 70220008, pos = { x = -114.880, y = 5.738, z = 14.495 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25036, gadget_id = 70300093, pos = { x = -134.259, y = 5.738, z = 18.820 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25038, gadget_id = 70300105, pos = { x = -131.713, y = 5.738, z = 28.329 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25039, gadget_id = 70310006, pos = { x = -127.495, y = 5.738, z = 26.772 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 25046, gadget_id = 70220005, pos = { x = -114.011, y = 5.738, z = 26.142 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1025012, name = "ANY_MONSTER_DIE_25012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_25012", action = "action_EVENT_ANY_MONSTER_DIE_25012" },
{ config_id = 1025047, name = "ANY_MONSTER_DIE_25047", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_25047", action = "action_EVENT_ANY_MONSTER_DIE_25047" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 25001, 25002, 25006, 25049 },
gadgets = { 25028, 25029, 25030, 25031, 25036, 25038, 25039, 25046 },
regions = { },
triggers = { "ANY_MONSTER_DIE_25047" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 25004, 25005, 25007, 25008, 25009, 25010, 25011 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_25012" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 25003 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_25012(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_25012(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250015025, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_25047(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_25047(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015025, 2)
return 0
end

View File

@@ -0,0 +1,157 @@
-- 基础信息
local base_info = {
group_id = 250015026
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 26001, monster_id = 20011001, pos = { x = 1620.178, y = 322.000, z = 422.374 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 26002, monster_id = 20011001, pos = { x = 1614.536, y = 319.650, z = 403.609 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 26003, monster_id = 20011001, pos = { x = 1630.375, y = 327.981, z = 417.643 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 26011, monster_id = 26060101, pos = { x = 1648.373, y = 339.585, z = 444.422 }, rot = { x = 0.000, y = 215.017, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 26012, monster_id = 26060101, pos = { x = 1642.819, y = 333.262, z = 425.047 }, rot = { x = 0.000, y = 239.511, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 26013, monster_id = 26060101, pos = { x = 1669.641, y = 345.022, z = 453.367 }, rot = { x = 0.000, y = 239.511, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 26004, gadget_id = 70900008, pos = { x = 1587.807, y = 317.722, z = 401.973 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 26005, gadget_id = 70360025, pos = { x = 1665.941, y = 360.844, z = 495.065 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 26006, gadget_id = 70900201, pos = { x = 1665.900, y = 360.800, z = 495.100 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 26007, shape = RegionShape.SPHERE, radius = 3, pos = { x = 1665.900, y = 360.800, z = 495.100 } }
}
-- 触发器
triggers = {
{ config_id = 1026007, name = "ENTER_REGION_26007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_26007", action = "", tag = "666", forbid_guest = false },
{ config_id = 1026008, name = "CHALLENGE_SUCCESS_26008", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "888", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_26008", trigger_count = 0 },
{ config_id = 1026009, name = "CHALLENGE_FAIL_26009", event = EventType.EVENT_CHALLENGE_FAIL, source = "888", condition = "", action = "action_EVENT_CHALLENGE_FAIL_26009", trigger_count = 0 },
{ config_id = 1026010, name = "GADGET_STATE_CHANGE_26010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_26010", action = "action_EVENT_GADGET_STATE_CHANGE_26010", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 26004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_26010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 26001, 26002, 26003, 26011, 26012, 26013 },
gadgets = { 26005, 26006 },
regions = { 26007 },
triggers = { "ENTER_REGION_26007", "CHALLENGE_SUCCESS_26008", "CHALLENGE_FAIL_26009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_26007(context, evt)
if evt.param1 ~= 26007 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_CHALLENGE_SUCCESS_26008(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015026, 2)
-- 将configid为 26004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 26004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_26009(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015026, 2)
-- 将configid为 26004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 26004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_26010(context, evt)
if 26004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_26010(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015026, 2)
-- 创建编号为888该挑战的识别id),挑战内容为189的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 888, 189, 10, 4, 666, 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end

View File

@@ -0,0 +1,156 @@
-- 基础信息
local base_info = {
group_id = 250015027
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 27001, monster_id = 20010801, pos = { x = 1370.566, y = 200.000, z = 873.194 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 27002, monster_id = 20010801, pos = { x = 1366.015, y = 200.000, z = 876.340 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 27003, monster_id = 20010801, pos = { x = 1362.045, y = 200.000, z = 880.788 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 27011, monster_id = 20010801, pos = { x = 1358.072, y = 200.000, z = 885.759 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 27012, monster_id = 20010801, pos = { x = 1353.832, y = 200.000, z = 891.544 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 27004, gadget_id = 70900008, pos = { x = 1379.013, y = 200.000, z = 872.140 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 27005, gadget_id = 70360025, pos = { x = 1348.561, y = 200.012, z = 900.467 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 27006, gadget_id = 70900201, pos = { x = 1348.600, y = 200.000, z = 900.500 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 27007, shape = RegionShape.SPHERE, radius = 3, pos = { x = 1348.600, y = 200.000, z = 900.500 } }
}
-- 触发器
triggers = {
{ config_id = 1027007, name = "ENTER_REGION_27007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_27007", action = "", tag = "666", forbid_guest = false },
{ config_id = 1027008, name = "CHALLENGE_SUCCESS_27008", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "888", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_27008", trigger_count = 0 },
{ config_id = 1027009, name = "CHALLENGE_FAIL_27009", event = EventType.EVENT_CHALLENGE_FAIL, source = "888", condition = "", action = "action_EVENT_CHALLENGE_FAIL_27009", trigger_count = 0 },
{ config_id = 1027010, name = "GADGET_STATE_CHANGE_27010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_27010", action = "action_EVENT_GADGET_STATE_CHANGE_27010", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 27004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_27010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 27001, 27002, 27003, 27011, 27012 },
gadgets = { 27005, 27006 },
regions = { 27007 },
triggers = { "ENTER_REGION_27007", "CHALLENGE_SUCCESS_27008", "CHALLENGE_FAIL_27009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_27007(context, evt)
if evt.param1 ~= 27007 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_CHALLENGE_SUCCESS_27008(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015027, 2)
-- 将configid为 27004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 27004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_27009(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015027, 2)
-- 将configid为 27004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 27004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_27010(context, evt)
if 27004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_27010(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015027, 2)
-- 创建编号为888该挑战的识别id),挑战内容为189的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 888, 189, 10, 4, 666, 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end

View File

@@ -0,0 +1,166 @@
-- 基础信息
local base_info = {
group_id = 250015028
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 28001, monster_id = 20011201, pos = { x = 1556.284, y = 288.568, z = 690.275 }, rot = { x = 4.710, y = 260.594, z = 345.062 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 28002, monster_id = 20011201, pos = { x = 1552.675, y = 287.186, z = 693.356 }, rot = { x = 350.807, y = 208.187, z = 347.284 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 28003, monster_id = 20011201, pos = { x = 1551.326, y = 288.715, z = 687.593 }, rot = { x = 13.744, y = 304.329, z = 352.449 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 28011, monster_id = 20011401, pos = { x = 1498.540, y = 252.230, z = 731.514 }, rot = { x = 353.663, y = 241.238, z = 7.691 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 28013, monster_id = 20011401, pos = { x = 1496.216, y = 252.432, z = 730.969 }, rot = { x = 350.059, y = 294.765, z = 359.518 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 28014, monster_id = 20011401, pos = { x = 1497.615, y = 252.625, z = 733.873 }, rot = { x = 1.092, y = 195.741, z = 9.893 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 28015, monster_id = 20011401, pos = { x = 1495.250, y = 252.637, z = 733.360 }, rot = { x = 1.092, y = 195.741, z = 9.893 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 28016, monster_id = 20010501, pos = { x = 1538.951, y = 272.469, z = 719.177 }, rot = { x = 0.000, y = 261.216, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 28017, monster_id = 20010501, pos = { x = 1536.671, y = 273.615, z = 713.400 }, rot = { x = 2.061, y = 240.765, z = 346.216 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 28018, monster_id = 20010501, pos = { x = 1535.138, y = 272.166, z = 718.795 }, rot = { x = 2.061, y = 240.765, z = 346.216 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 28019, monster_id = 20010501, pos = { x = 1540.605, y = 273.995, z = 714.248 }, rot = { x = 2.061, y = 240.765, z = 346.216 }, level = 1, drop_id = 1000100, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 28004, gadget_id = 70360005, pos = { x = 1556.811, y = 290.465, z = 684.395 }, rot = { x = 15.282, y = 0.628, z = 4.676 }, level = 1 },
{ config_id = 28005, gadget_id = 70360025, pos = { x = 1471.378, y = 261.794, z = 756.719 }, rot = { x = 12.690, y = 0.118, z = 1.058 }, level = 1 },
{ config_id = 28006, gadget_id = 70900201, pos = { x = 1471.420, y = 261.798, z = 756.704 }, rot = { x = 12.690, y = 0.118, z = 1.058 }, level = 1 },
{ config_id = 28012, gadget_id = 70300057, pos = { x = 1496.832, y = 252.409, z = 732.157 }, rot = { x = 356.469, y = 1.390, z = 350.689 }, level = 1 },
{ config_id = 28020, gadget_id = 70300057, pos = { x = 1537.599, y = 272.958, z = 716.744 }, rot = { x = 356.469, y = 1.390, z = 350.689 }, level = 1 },
{ config_id = 28021, gadget_id = 70220005, pos = { x = 1496.832, y = 252.409, z = 732.157 }, rot = { x = 356.469, y = 1.390, z = 350.689 }, level = 1 },
{ config_id = 28022, gadget_id = 70300057, pos = { x = 1552.782, y = 287.972, z = 690.522 }, rot = { x = 356.469, y = 1.390, z = 350.689 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 28007, shape = RegionShape.SPHERE, radius = 3, pos = { x = 1471.420, y = 261.798, z = 756.704 } }
}
-- 触发器
triggers = {
{ config_id = 1028007, name = "ENTER_REGION_28007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_28007", action = "", tag = "666", forbid_guest = false },
{ config_id = 1028008, name = "CHALLENGE_SUCCESS_28008", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "888", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_28008", trigger_count = 0 },
{ config_id = 1028009, name = "CHALLENGE_FAIL_28009", event = EventType.EVENT_CHALLENGE_FAIL, source = "888", condition = "", action = "action_EVENT_CHALLENGE_FAIL_28009", trigger_count = 0 },
{ config_id = 1028010, name = "GADGET_STATE_CHANGE_28010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_28010", action = "action_EVENT_GADGET_STATE_CHANGE_28010", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 28004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_28010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 28001, 28002, 28003, 28011, 28013, 28014, 28015, 28016, 28017, 28018, 28019 },
gadgets = { 28005, 28006, 28012, 28020, 28021, 28022 },
regions = { 28007 },
triggers = { "ENTER_REGION_28007", "CHALLENGE_SUCCESS_28008", "CHALLENGE_FAIL_28009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_28007(context, evt)
if evt.param1 ~= 28007 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_CHALLENGE_SUCCESS_28008(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015028, 2)
-- 将configid为 28004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 28004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_28009(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015028, 2)
-- 将configid为 28004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 28004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_28010(context, evt)
if 28004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_28010(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015028, 2)
-- 创建编号为888该挑战的识别id),挑战内容为189的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 888, 189, 15, 4, 666, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end

View File

@@ -0,0 +1,331 @@
-- 基础信息
local base_info = {
group_id = 250015029
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 29001, monster_id = 21010701, pos = { x = 1636.791, y = 201.961, z = 1010.973 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 29002, monster_id = 21010701, pos = { x = 1647.157, y = 202.141, z = 1003.779 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 29003, monster_id = 21020101, pos = { x = 1636.792, y = 201.961, z = 1004.408 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 29004, monster_id = 21020101, pos = { x = 1648.887, y = 201.961, z = 1011.327 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 29005, monster_id = 21010501, pos = { x = 1636.675, y = 200.875, z = 981.872 }, rot = { x = 1.860, y = 11.390, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 29006, monster_id = 21010501, pos = { x = 1649.611, y = 215.760, z = 1017.849 }, rot = { x = 0.000, y = 191.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 29007, gadget_id = 70220007, pos = { x = 1654.986, y = 200.000, z = 999.755 }, rot = { x = 0.000, y = 140.000, z = 0.000 }, level = 1 },
{ config_id = 29008, gadget_id = 70300090, pos = { x = 1630.876, y = 201.071, z = 1011.474 }, rot = { x = 0.000, y = 355.000, z = 0.000 }, level = 1 },
{ config_id = 29012, gadget_id = 70220007, pos = { x = 1658.592, y = 200.005, z = 1003.557 }, rot = { x = 0.000, y = 130.000, z = 0.000 }, level = 1 },
{ config_id = 29016, gadget_id = 70300090, pos = { x = 1630.876, y = 201.071, z = 1011.474 }, rot = { x = 0.000, y = 355.000, z = 0.000 }, level = 1 },
{ config_id = 29017, gadget_id = 70350006, pos = { x = 1654.038, y = 200.078, z = 1000.250 }, rot = { x = 0.000, y = 140.000, z = 0.000 }, level = 1 },
{ config_id = 29018, gadget_id = 70900007, pos = { x = 1644.375, y = 201.961, z = 1016.862 }, rot = { x = 0.000, y = 14.620, z = 0.000 }, level = 1 },
{ config_id = 29019, gadget_id = 70900007, pos = { x = 1641.085, y = 201.934, z = 1000.220 }, rot = { x = 0.000, y = 14.300, z = 0.000 }, level = 1 },
{ config_id = 29020, gadget_id = 70350006, pos = { x = 1657.814, y = 200.294, z = 1003.859 }, rot = { x = 0.000, y = 130.000, z = 0.000 }, level = 1 },
{ config_id = 29029, gadget_id = 70220006, pos = { x = 1652.187, y = 200.000, z = 998.366 }, rot = { x = 0.000, y = 140.000, z = 0.000 }, level = 1 },
{ config_id = 29030, gadget_id = 70220006, pos = { x = 1659.986, y = 200.563, z = 1006.527 }, rot = { x = 0.000, y = 130.000, z = 0.000 }, level = 1 },
{ config_id = 29036, gadget_id = 70220005, pos = { x = 1650.292, y = 215.760, z = 1016.839 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 29039, gadget_id = 40200001, pos = { x = 1664.229, y = 200.000, z = 1008.381 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1029021, name = "ANY_MONSTER_DIE_29021", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_29021", action = "action_EVENT_ANY_MONSTER_DIE_29021" },
{ config_id = 1029022, name = "GADGET_STATE_CHANGE_29022", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_29022", action = "action_EVENT_GADGET_STATE_CHANGE_29022", trigger_count = 0 },
{ config_id = 1029023, name = "GADGET_STATE_CHANGE_29023", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_29023", action = "action_EVENT_GADGET_STATE_CHANGE_29023", trigger_count = 0 },
{ config_id = 1029024, name = "GADGET_STATE_CHANGE_29024", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_29024", action = "action_EVENT_GADGET_STATE_CHANGE_29024", trigger_count = 0 },
{ config_id = 1029025, name = "GADGET_STATE_CHANGE_29025", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_29025", action = "action_EVENT_GADGET_STATE_CHANGE_29025", trigger_count = 0 },
{ config_id = 1029026, name = "TIMER_EVENT_29026", event = EventType.EVENT_TIMER_EVENT, source = "stop23019", condition = "condition_EVENT_TIMER_EVENT_29026", action = "action_EVENT_TIMER_EVENT_29026", trigger_count = 0 },
{ config_id = 1029027, name = "TIMER_EVENT_29027", event = EventType.EVENT_TIMER_EVENT, source = "stop23020", condition = "condition_EVENT_TIMER_EVENT_29027", action = "action_EVENT_TIMER_EVENT_29027", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "t23019", value = 0, no_refresh = false },
{ config_id = 2, name = "t23020", value = 0, no_refresh = false },
{ config_id = 3, name = "ison", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 29001, 29002 },
gadgets = { 29007, 29008, 29012, 29016, 29017, 29020, 29029, 29030, 29036, 29039 },
regions = { },
triggers = { "ANY_MONSTER_DIE_29021" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 29003, 29004, 29005, 29006 },
gadgets = { 29018, 29019 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_29022", "GADGET_STATE_CHANGE_29023", "GADGET_STATE_CHANGE_29024", "GADGET_STATE_CHANGE_29025", "TIMER_EVENT_29026", "TIMER_EVENT_29027" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_29021(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_29021(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015029, 2)
-- 调用提示id为 200050203 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200050203) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_29022(context, evt)
if 29018 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_29022(context, evt)
-- 将本组内变量名为 "t23019" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "t23019", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_29023(context, evt)
if 29019 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_29023(context, evt)
-- 将本组内变量名为 "t23020" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "t23020", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_29024(context, evt)
if 29018 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_29024(context, evt)
-- 将本组内变量名为 "t23019" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "t23019", 1)
then
return -1
end
if ScriptLib.GetGroupVariableValue(context, "ison") == 0
then
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250015029, "stop23019", 5)
then
return -1
end
end
if ScriptLib.GetGroupVariableValue(context, "t23019") + ScriptLib.GetGroupVariableValue(context, "t23020") == 2
then
if ScriptLib.GetGroupVariableValue(context, "ison") == 0
then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29017,GadgetState.GearStart) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29020,GadgetState.GearStart) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1)
then
return -1
end
end
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_29025(context, evt)
if 29019 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_29025(context, evt)
-- 将本组内变量名为 "t23019" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "t23020", 1) then
return -1
end
if ScriptLib.GetGroupVariableValue(context, "ison") == 0 then
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250015029, "stop23020", 5) then
return -1
end
end
if ScriptLib.GetGroupVariableValue(context, "t23019") + ScriptLib.GetGroupVariableValue(context, "t23020") == 2
then
if ScriptLib.GetGroupVariableValue(context, "ison") == 0
then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29017,GadgetState.GearStart) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29020,GadgetState.GearStart) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1)
then
return -1
end
end
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_29026(context, evt)
-- 判断变量"ison"为0
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_29026(context, evt)
-- 将configid为 29018 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29018, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 调用提示id为 1110033 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110033) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_29027(context, evt)
-- 判断变量"ison"为0
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_29027(context, evt)
-- 将configid为 29019 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 29019, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 调用提示id为 1110033 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110033) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,179 @@
-- 基础信息
local base_info = {
group_id = 250015030
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 30001, monster_id = 21010701, pos = { x = 1735.394, y = 204.683, z = 1006.751 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 30002, monster_id = 21010701, pos = { x = 1724.762, y = 202.567, z = 1003.411 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 30003, monster_id = 21010201, pos = { x = 1725.737, y = 204.247, z = 1009.687 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 30004, monster_id = 21010201, pos = { x = 1736.609, y = 205.079, z = 1007.854 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 30005, monster_id = 21010501, pos = { x = 1718.805, y = 205.490, z = 995.895 }, rot = { x = 1.860, y = 31.980, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 30018, monster_id = 21010701, pos = { x = 1732.106, y = 206.603, z = 1015.621 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 30019, monster_id = 21010701, pos = { x = 1730.706, y = 201.950, z = 998.375 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 30020, monster_id = 22010101, pos = { x = 1730.749, y = 204.446, z = 1008.029 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 30022, monster_id = 21030201, pos = { x = 1727.189, y = 206.534, z = 1016.693 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 30023, monster_id = 21030201, pos = { x = 1723.913, y = 202.379, z = 1002.949 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 30026, monster_id = 21010201, pos = { x = 1730.760, y = 202.535, z = 1000.469 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 30028, monster_id = 21010201, pos = { x = 1732.106, y = 206.600, z = 1015.601 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 30007, gadget_id = 70300081, pos = { x = 1718.716, y = 203.872, z = 1014.628 }, rot = { x = 18.650, y = 189.750, z = 337.300 }, level = 1 },
{ config_id = 30008, gadget_id = 70300081, pos = { x = 1717.865, y = 202.700, z = 1009.842 }, rot = { x = 18.650, y = 189.750, z = 337.300 }, level = 1 },
{ config_id = 30009, gadget_id = 70300081, pos = { x = 1721.219, y = 206.672, z = 1021.130 }, rot = { x = 18.650, y = 224.900, z = 2.000 }, level = 1 },
{ config_id = 30010, gadget_id = 70300081, pos = { x = 1733.780, y = 200.291, z = 990.111 }, rot = { x = 349.710, y = 44.000, z = 0.000 }, level = 1 },
{ config_id = 30011, gadget_id = 70300081, pos = { x = 1728.439, y = 207.647, z = 1021.845 }, rot = { x = 0.000, y = 298.120, z = 0.000 }, level = 1 },
{ config_id = 30012, gadget_id = 70300081, pos = { x = 1732.662, y = 207.451, z = 1021.315 }, rot = { x = 11.900, y = 232.100, z = 0.000 }, level = 1 },
{ config_id = 30013, gadget_id = 70300081, pos = { x = 1737.906, y = 208.290, z = 1020.528 }, rot = { x = 0.000, y = 329.600, z = 0.000 }, level = 1 },
{ config_id = 30014, gadget_id = 70300081, pos = { x = 1717.674, y = 200.116, z = 997.370 }, rot = { x = 11.500, y = 162.500, z = 0.000 }, level = 1 },
{ config_id = 30015, gadget_id = 70300090, pos = { x = 1719.143, y = 200.000, z = 994.646 }, rot = { x = 0.000, y = 30.900, z = 0.000 }, level = 1 },
{ config_id = 30016, gadget_id = 70300086, pos = { x = 1719.776, y = 205.558, z = 1017.821 }, rot = { x = 350.000, y = 100.000, z = 347.000 }, level = 1 },
{ config_id = 30017, gadget_id = 70300086, pos = { x = 1717.373, y = 202.288, z = 1006.938 }, rot = { x = 350.000, y = 100.000, z = 347.000 }, level = 1 },
{ config_id = 30021, gadget_id = 70300081, pos = { x = 1722.369, y = 200.000, z = 992.778 }, rot = { x = 359.100, y = 120.300, z = 331.640 }, level = 1 },
{ config_id = 30024, gadget_id = 70300081, pos = { x = 1727.466, y = 200.000, z = 989.965 }, rot = { x = 359.100, y = 120.300, z = 331.640 }, level = 1 },
{ config_id = 30025, gadget_id = 70300081, pos = { x = 1744.730, y = 205.167, z = 1006.061 }, rot = { x = 349.710, y = 29.800, z = 0.000 }, level = 1 },
{ config_id = 30027, gadget_id = 70220005, pos = { x = 1719.806, y = 205.490, z = 995.172 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 30030, gadget_id = 70300081, pos = { x = 1715.965, y = 201.346, z = 1003.340 }, rot = { x = 11.500, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 30032, gadget_id = 40200001, pos = { x = 1706.810, y = 200.000, z = 1014.622 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 30034, gadget_id = 70300081, pos = { x = 1742.153, y = 207.569, z = 1017.584 }, rot = { x = 349.600, y = 311.270, z = 0.000 }, level = 1 },
{ config_id = 30042, gadget_id = 70300081, pos = { x = 1745.462, y = 206.319, z = 1011.869 }, rot = { x = 349.600, y = 344.480, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1030006, name = "ANY_GADGET_DIE_30006", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_30006", action = "action_EVENT_ANY_GADGET_DIE_30006" },
{ config_id = 1030029, name = "ANY_MONSTER_DIE_30029", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_30029", action = "action_EVENT_ANY_MONSTER_DIE_30029" },
{ config_id = 1030035, name = "ANY_MONSTER_DIE_30035", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_30035", action = "action_EVENT_ANY_MONSTER_DIE_30035" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 30001, 30002, 30018, 30019, 30020, 30022, 30023 },
gadgets = { 30007, 30008, 30009, 30010, 30011, 30012, 30013, 30014, 30015, 30016, 30017, 30021, 30024, 30025, 30027, 30030, 30032, 30034, 30042 },
regions = { },
triggers = { "ANY_GADGET_DIE_30006", "ANY_MONSTER_DIE_30035" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 30003, 30004, 30005, 30026, 30028 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_30029" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 30005, 30020, 30022, 30023 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_30006(context, evt)
if 30027 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_30006(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 250015030, monsters = {30005}, gadgets = {} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_30029(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_30029(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250015030, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_30035(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_30035(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015030, 2)
return 0
end

View File

@@ -0,0 +1,358 @@
-- 基础信息
local base_info = {
group_id = 250015031
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 31002, monster_id = 21010201, pos = { x = 1386.307, y = 205.914, z = 527.077 }, rot = { x = 0.000, y = 142.813, z = 0.000 }, level = 1 },
{ config_id = 31003, monster_id = 21010301, pos = { x = 1388.060, y = 207.002, z = 522.519 }, rot = { x = 0.000, y = 130.995, z = 0.000 }, level = 1 },
{ config_id = 31004, monster_id = 21010301, pos = { x = 1389.357, y = 206.921, z = 524.295 }, rot = { x = 0.000, y = 130.995, z = 0.000 }, level = 1 },
{ config_id = 31009, monster_id = 21020301, pos = { x = 1385.085, y = 207.780, z = 494.067 }, rot = { x = 0.000, y = 48.202, z = 0.000 }, level = 1 },
{ config_id = 31010, monster_id = 21011201, pos = { x = 1388.333, y = 208.161, z = 494.470 }, rot = { x = 0.000, y = 9.766, z = 0.000 }, level = 1 },
{ config_id = 31011, monster_id = 21011201, pos = { x = 1387.651, y = 208.391, z = 497.697 }, rot = { x = 0.000, y = 63.855, z = 0.000 }, level = 1 },
{ config_id = 31012, monster_id = 21011201, pos = { x = 1389.452, y = 208.449, z = 496.293 }, rot = { x = 0.000, y = 39.664, z = 0.000 }, level = 1 },
{ config_id = 31013, monster_id = 21010501, pos = { x = 1386.077, y = 213.210, z = 509.160 }, rot = { x = 0.000, y = 84.619, z = 0.000 }, level = 1 },
{ config_id = 31014, monster_id = 26060201, pos = { x = 1393.444, y = 211.277, z = 500.408 }, rot = { x = 0.000, y = 36.947, z = 0.000 }, level = 1 },
{ config_id = 31015, monster_id = 21010501, pos = { x = 1400.129, y = 213.053, z = 492.523 }, rot = { x = 0.000, y = 19.287, z = 0.000 }, level = 1 },
{ config_id = 31016, monster_id = 21020101, pos = { x = 1387.750, y = 206.499, z = 524.808 }, rot = { x = 0.000, y = 137.797, z = 0.000 }, level = 1 },
{ config_id = 31017, monster_id = 21020201, pos = { x = 1388.882, y = 208.461, z = 497.677 }, rot = { x = 0.000, y = 47.363, z = 0.000 }, level = 1 },
{ config_id = 31018, monster_id = 26060201, pos = { x = 1396.212, y = 211.277, z = 498.833 }, rot = { x = 0.000, y = 36.947, z = 0.000 }, level = 1 },
{ config_id = 31019, monster_id = 26060201, pos = { x = 1391.301, y = 211.277, z = 501.754 }, rot = { x = 0.000, y = 36.947, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 31001, gadget_id = 70350023, pos = { x = 1401.355, y = 209.559, z = 510.041 }, rot = { x = 0.000, y = 100.296, z = 0.000 }, level = 1 },
{ config_id = 31005, gadget_id = 70220004, pos = { x = 1393.415, y = 208.936, z = 497.580 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 31006, gadget_id = 70220004, pos = { x = 1384.512, y = 208.202, z = 497.827 }, rot = { x = 352.010, y = 359.750, z = 3.577 }, level = 1 },
{ config_id = 31007, gadget_id = 70220005, pos = { x = 1390.935, y = 208.032, z = 518.070 }, rot = { x = 6.182, y = 359.567, z = 351.995 }, level = 1 },
{ config_id = 31008, gadget_id = 70220005, pos = { x = 1388.677, y = 206.948, z = 523.442 }, rot = { x = 10.715, y = 0.880, z = 11.337 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1031020, name = "SELECT_OPTION_31020", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_31020", action = "action_EVENT_SELECT_OPTION_31020" },
{ config_id = 1031021, name = "CHALLENGE_SUCCESS_31021", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "101", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_31021", trigger_count = 0 },
{ config_id = 1031022, name = "CHALLENGE_FAIL_31022", event = EventType.EVENT_CHALLENGE_FAIL, source = "101", condition = "", action = "action_EVENT_CHALLENGE_FAIL_31022", trigger_count = 0 },
{ config_id = 1031023, name = "ANY_MONSTER_LIVE_31023", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_31023", action = "action_EVENT_ANY_MONSTER_LIVE_31023" },
{ config_id = 1031024, name = "ANY_MONSTER_DIE_31024", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_31024", action = "action_EVENT_ANY_MONSTER_DIE_31024" },
{ config_id = 1031025, name = "ANY_MONSTER_DIE_31025", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_31025", action = "action_EVENT_ANY_MONSTER_DIE_31025" },
{ config_id = 1031026, name = "ANY_MONSTER_DIE_31026", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_31026", action = "action_EVENT_ANY_MONSTER_DIE_31026" },
{ config_id = 1031027, name = "GADGET_CREATE_31027", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_31027", action = "action_EVENT_GADGET_CREATE_31027" }
}
-- 变量
variables = {
{ config_id = 1, name = "monster_wave", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 31001 },
regions = { },
triggers = { "SELECT_OPTION_31020", "CHALLENGE_SUCCESS_31021", "CHALLENGE_FAIL_31022", "ANY_MONSTER_LIVE_31023", "ANY_MONSTER_DIE_31024", "ANY_MONSTER_DIE_31025", "ANY_MONSTER_DIE_31026", "GADGET_CREATE_31027" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 31005, 31006, 31007, 31008 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 31002, 31003, 31004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { 31013, 31014, 31015, 31018, 31019 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = suite_5,
monsters = { 31009, 31010, 31011, 31012 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = suite_6,
monsters = { 31016, 31017 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = suite_7,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_31020(context, evt)
if 31001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_31020(context, evt)
-- 删除指定group 250015031 指定config31001物件身上指定option2
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250015031, 31001, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015031, 2)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250015031, 3)
-- 将configid为 31001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_31021(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250015031, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将configid为 31001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_31022(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250015031, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将configid为 31001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250015031, 31001, {2902}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_31023(context, evt)
if 31002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_31023(context, evt)
-- 创建编号为101该挑战的识别id),挑战内容为10的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 101, 10, 250015031, 14, 31001, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_31024(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250015031) ~= 0 then
return false
end
-- 判断变量"monster_wave"为1
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_31024(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250015031, 4)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_31025(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250015031) ~= 0 then
return false
end
-- 判断变量"monster_wave"为2
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_31025(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 250015031, 5)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_31026(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250015031) ~= 0 then
return false
end
-- 判断变量"monster_wave"为3
if ScriptLib.GetGroupVariableValue(context, "monster_wave") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_31026(context, evt)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 250015031, 6)
-- 针对当前group内变量名为 "monster_wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "monster_wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_31027(context, evt)
if 31001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_31027(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250015031, 31001, {2902}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end

View File

@@ -0,0 +1,156 @@
-- 基础信息
local base_info = {
group_id = 250015032
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 32001, monster_id = 21011001, pos = { x = 1531.765, y = 208.097, z = 909.129 }, rot = { x = 0.000, y = 279.955, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 32002, monster_id = 21011001, pos = { x = 1532.374, y = 208.096, z = 912.817 }, rot = { x = 0.000, y = 292.020, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 32003, monster_id = 22010101, pos = { x = 1523.728, y = 208.088, z = 914.504 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32004, monster_id = 21030201, pos = { x = 1515.884, y = 208.096, z = 923.197 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32005, monster_id = 21030201, pos = { x = 1513.133, y = 208.094, z = 913.623 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32006, monster_id = 21030201, pos = { x = 1532.196, y = 208.096, z = 911.740 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32007, monster_id = 21010201, pos = { x = 1517.821, y = 208.092, z = 920.064 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32008, monster_id = 21010201, pos = { x = 1529.873, y = 208.095, z = 909.453 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32009, monster_id = 21010701, pos = { x = 1515.616, y = 208.092, z = 910.918 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32010, monster_id = 21010701, pos = { x = 1530.860, y = 208.095, z = 918.015 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32012, monster_id = 21010701, pos = { x = 1517.658, y = 208.093, z = 921.152 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32022, monster_id = 21010701, pos = { x = 1529.544, y = 208.095, z = 908.994 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32025, monster_id = 21010301, pos = { x = 1517.115, y = 208.090, z = 915.843 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32026, monster_id = 21010301, pos = { x = 1528.738, y = 208.093, z = 913.602 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32031, monster_id = 21010501, pos = { x = 1511.441, y = 208.096, z = 917.702 }, rot = { x = 0.000, y = 112.162, z = 0.000 }, level = 1 },
{ config_id = 32032, monster_id = 21010501, pos = { x = 1512.994, y = 208.095, z = 921.385 }, rot = { x = 0.000, y = 116.649, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 32011, gadget_id = 70220005, pos = { x = 1512.320, y = 208.095, z = 919.601 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32013, gadget_id = 70220020, pos = { x = 1509.244, y = 208.097, z = 917.845 }, rot = { x = 0.000, y = 292.944, z = 0.000 }, level = 1 },
{ config_id = 32014, gadget_id = 70220020, pos = { x = 1510.982, y = 208.097, z = 921.664 }, rot = { x = 0.000, y = 292.944, z = 0.000 }, level = 1 },
{ config_id = 32015, gadget_id = 70220020, pos = { x = 1509.756, y = 208.098, z = 922.183 }, rot = { x = 0.000, y = 292.944, z = 0.000 }, level = 1 },
{ config_id = 32016, gadget_id = 70220020, pos = { x = 1508.421, y = 208.098, z = 918.935 }, rot = { x = 0.000, y = 292.944, z = 0.000 }, level = 1 },
{ config_id = 32017, gadget_id = 70220020, pos = { x = 1507.408, y = 208.099, z = 916.542 }, rot = { x = 0.000, y = 281.995, z = 0.000 }, level = 1 },
{ config_id = 32018, gadget_id = 70220020, pos = { x = 1534.772, y = 208.098, z = 912.223 }, rot = { x = 0.000, y = 291.658, z = 0.000 }, level = 1 },
{ config_id = 32019, gadget_id = 70220020, pos = { x = 1533.506, y = 208.099, z = 908.632 }, rot = { x = 0.000, y = 286.043, z = 0.000 }, level = 1 },
{ config_id = 32020, gadget_id = 70220020, pos = { x = 1535.913, y = 208.099, z = 912.670 }, rot = { x = 0.000, y = 291.658, z = 0.000 }, level = 1 },
{ config_id = 32021, gadget_id = 70220020, pos = { x = 1534.482, y = 208.100, z = 909.066 }, rot = { x = 0.000, y = 291.658, z = 0.000 }, level = 1 },
{ config_id = 32029, gadget_id = 40200001, pos = { x = 1523.696, y = 200.000, z = 854.972 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32030, gadget_id = 40200001, pos = { x = 1545.465, y = 200.000, z = 908.120 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32033, gadget_id = 70220005, pos = { x = 1531.799, y = 208.097, z = 910.456 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1032027, name = "ANY_MONSTER_DIE_32027", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_32027", action = "action_EVENT_ANY_MONSTER_DIE_32027" },
{ config_id = 1032028, name = "ANY_MONSTER_DIE_32028", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_32028", action = "action_EVENT_ANY_MONSTER_DIE_32028" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 32001, 32002, 32007, 32008, 32031, 32032 },
gadgets = { 32011, 32013, 32014, 32015, 32016, 32017, 32018, 32019, 32020, 32021, 32029, 32030, 32033 },
regions = { },
triggers = { "ANY_MONSTER_DIE_32027" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 32009, 32010, 32012, 32022, 32025, 32026 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_32028" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 32003, 32004, 32005, 32006 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_32027(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_32027(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015032, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_32028(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_32028(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250015032, 3)
return 0
end

View File

@@ -0,0 +1,116 @@
-- 基础信息
local base_info = {
group_id = 250015033
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 33002, monster_id = 21011201, pos = { x = -52.740, y = 0.500, z = -27.314 }, rot = { x = 0.000, y = 331.530, z = 0.000 }, level = 18, disableWander = true, pose_id = 9012 },
{ config_id = 33004, monster_id = 21011201, pos = { x = -59.801, y = 0.965, z = -18.306 }, rot = { x = 0.000, y = 220.985, z = 0.000 }, level = 18, disableWander = true, pose_id = 9012 },
{ config_id = 33005, monster_id = 20011301, pos = { x = -60.879, y = 0.959, z = -19.543 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 },
{ config_id = 33007, monster_id = 20011301, pos = { x = -54.270, y = 0.960, z = -27.637 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 30 },
{ config_id = 33008, monster_id = 21020301, pos = { x = -60.743, y = 0.500, z = -25.526 }, rot = { x = 0.000, y = 78.276, z = 0.000 }, level = 25 },
{ config_id = 33009, monster_id = 21020301, pos = { x = -60.743, y = 0.500, z = -25.526 }, rot = { x = 0.000, y = 78.276, z = 0.000 }, level = 25 },
{ config_id = 33027, monster_id = 21011201, pos = { x = -49.404, y = 0.500, z = -32.501 }, rot = { x = 0.000, y = 16.000, z = 0.000 }, level = 18, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 33010, gadget_id = 70300077, pos = { x = -49.972, y = 0.500, z = -19.215 }, rot = { x = 0.000, y = 72.700, z = 0.000 }, level = 1 },
{ config_id = 33011, gadget_id = 70300102, pos = { x = -54.264, y = 0.500, z = -27.594 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 33012, gadget_id = 70300102, pos = { x = -60.768, y = 0.500, z = -19.636 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 33013, gadget_id = 70300089, pos = { x = -65.327, y = 0.500, z = -29.898 }, rot = { x = 0.000, y = 99.900, z = 0.000 }, level = 1 },
{ config_id = 33014, gadget_id = 70300089, pos = { x = -47.642, y = 0.500, z = -23.558 }, rot = { x = 0.000, y = 72.145, z = 0.000 }, level = 1 },
{ config_id = 33015, gadget_id = 70300088, pos = { x = -60.783, y = 0.500, z = -33.750 }, rot = { x = 0.000, y = 281.251, z = 0.000 }, level = 1 },
{ config_id = 33016, gadget_id = 70300088, pos = { x = -55.699, y = 0.500, z = -15.047 }, rot = { x = 0.000, y = 100.600, z = 0.000 }, level = 1 },
{ config_id = 33017, gadget_id = 70300088, pos = { x = -66.470, y = 0.500, z = -23.918 }, rot = { x = 0.000, y = 12.163, z = 0.000 }, level = 1 },
{ config_id = 33022, gadget_id = 70220005, pos = { x = -50.338, y = 0.500, z = -19.368 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 33023, gadget_id = 70220005, pos = { x = -66.432, y = 0.500, z = -25.769 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1033006, name = "ANY_MONSTER_DIE_33006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "33008", condition = "condition_EVENT_ANY_MONSTER_DIE_33006", action = "action_EVENT_ANY_MONSTER_DIE_33006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 33002, 33004, 33005, 33007, 33008 },
gadgets = { 33010, 33011, 33012, 33013, 33014, 33015, 33016, 33017, 33022, 33023 },
regions = { },
triggers = { "ANY_MONSTER_DIE_33006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 33009, 33027 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_33006(context, evt)
-- 判断剩余怪物数量是否是3
if ScriptLib.GetGroupMonsterCount(context) ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_33006(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015033, 2)
return 0
end

View File

@@ -0,0 +1,140 @@
-- 基础信息
local base_info = {
group_id = 250015034
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 34001, monster_id = 21011001, pos = { x = 1588.648, y = 203.142, z = 905.879 }, rot = { x = 0.000, y = 291.326, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 34002, monster_id = 21011001, pos = { x = 1587.824, y = 203.142, z = 904.030 }, rot = { x = 0.000, y = 302.132, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 34003, monster_id = 22010101, pos = { x = 1582.030, y = 203.137, z = 909.448 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 34004, monster_id = 21030201, pos = { x = 1577.199, y = 203.141, z = 911.073 }, rot = { x = 0.000, y = 121.103, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 34006, monster_id = 21030201, pos = { x = 1587.674, y = 203.141, z = 905.311 }, rot = { x = 0.000, y = 314.754, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 34007, monster_id = 21010201, pos = { x = 1580.222, y = 203.138, z = 910.515 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 34008, monster_id = 21010201, pos = { x = 1584.020, y = 203.137, z = 907.173 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 34009, monster_id = 21010701, pos = { x = 1584.090, y = 203.138, z = 910.399 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 34010, monster_id = 21010701, pos = { x = 1578.392, y = 203.139, z = 907.165 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 34013, monster_id = 21010301, pos = { x = 1582.509, y = 203.137, z = 906.874 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 34014, monster_id = 21010301, pos = { x = 1582.980, y = 203.139, z = 911.607 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 34015, monster_id = 21010501, pos = { x = 1576.368, y = 203.141, z = 910.351 }, rot = { x = 0.000, y = 112.162, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 34016, monster_id = 21010501, pos = { x = 1577.308, y = 203.141, z = 912.369 }, rot = { x = 0.000, y = 132.947, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1034030, name = "ANY_MONSTER_DIE_34030", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_34030", action = "action_EVENT_ANY_MONSTER_DIE_34030" },
{ config_id = 1034031, name = "ANY_MONSTER_DIE_34031", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_34031", action = "action_EVENT_ANY_MONSTER_DIE_34031" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 34001, 34002, 34007, 34008, 34015, 34016 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_34030" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 34009, 34010, 34013, 34014 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_34031" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 34003, 34004, 34006 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_34030(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_34030(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015034, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_34031(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_34031(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250015034, 3)
return 0
end

View File

@@ -0,0 +1,181 @@
-- 基础信息
local base_info = {
group_id = 250015035
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 35001, monster_id = 21011001, pos = { x = 1634.802, y = 202.011, z = 925.966 }, rot = { x = 0.000, y = 291.326, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 35002, monster_id = 21011001, pos = { x = 1633.605, y = 202.010, z = 923.301 }, rot = { x = 0.000, y = 302.132, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 35003, monster_id = 22010101, pos = { x = 1626.916, y = 202.004, z = 929.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35006, monster_id = 21010201, pos = { x = 1624.980, y = 202.006, z = 930.280 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35007, monster_id = 21010201, pos = { x = 1628.777, y = 202.005, z = 926.938 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35008, monster_id = 21010701, pos = { x = 1628.848, y = 202.005, z = 930.163 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35009, monster_id = 21010701, pos = { x = 1623.150, y = 202.007, z = 926.930 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35010, monster_id = 21010301, pos = { x = 1627.266, y = 202.005, z = 926.638 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35011, monster_id = 21010301, pos = { x = 1627.737, y = 202.006, z = 931.372 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35012, monster_id = 21010501, pos = { x = 1619.036, y = 202.011, z = 931.647 }, rot = { x = 0.000, y = 112.162, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 35013, monster_id = 21010501, pos = { x = 1619.976, y = 202.010, z = 933.664 }, rot = { x = 0.000, y = 132.947, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 35029, monster_id = 21030301, pos = { x = 1633.865, y = 202.094, z = 924.444 }, rot = { x = 0.000, y = 307.057, z = 0.000 }, level = 1 },
{ config_id = 35030, monster_id = 21030301, pos = { x = 1619.717, y = 202.094, z = 932.686 }, rot = { x = 0.000, y = 124.508, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 35016, gadget_id = 70220005, pos = { x = 1620.623, y = 202.011, z = 934.373 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35017, gadget_id = 70220020, pos = { x = 1617.475, y = 202.012, z = 932.438 }, rot = { x = 0.000, y = 293.209, z = 0.000 }, level = 1 },
{ config_id = 35018, gadget_id = 70220020, pos = { x = 1618.206, y = 202.012, z = 934.141 }, rot = { x = 0.000, y = 293.209, z = 0.000 }, level = 1 },
{ config_id = 35019, gadget_id = 70220020, pos = { x = 1636.458, y = 202.013, z = 924.254 }, rot = { x = 0.000, y = 293.209, z = 0.000 }, level = 1 },
{ config_id = 35020, gadget_id = 70220020, pos = { x = 1635.749, y = 202.012, z = 922.602 }, rot = { x = 0.000, y = 293.209, z = 0.000 }, level = 1 },
{ config_id = 35021, gadget_id = 70220020, pos = { x = 1618.854, y = 202.012, z = 935.655 }, rot = { x = 0.000, y = 293.209, z = 0.000 }, level = 1 },
{ config_id = 35022, gadget_id = 70220020, pos = { x = 1617.043, y = 202.012, z = 931.430 }, rot = { x = 0.000, y = 293.209, z = 0.000 }, level = 1 },
{ config_id = 35023, gadget_id = 70220020, pos = { x = 1635.229, y = 202.012, z = 921.391 }, rot = { x = 0.000, y = 293.209, z = 0.000 }, level = 1 },
{ config_id = 35024, gadget_id = 70220020, pos = { x = 1637.011, y = 202.013, z = 925.547 }, rot = { x = 0.000, y = 293.209, z = 0.000 }, level = 1 },
{ config_id = 35025, gadget_id = 70300083, pos = { x = 1618.376, y = 202.095, z = 933.348 }, rot = { x = 0.000, y = 300.488, z = 0.000 }, level = 1 },
{ config_id = 35026, gadget_id = 70300083, pos = { x = 1635.654, y = 202.096, z = 923.460 }, rot = { x = 0.000, y = 291.072, z = 0.000 }, level = 1 },
{ config_id = 35027, gadget_id = 70300089, pos = { x = 1626.623, y = 202.088, z = 928.373 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1035014, name = "ANY_MONSTER_DIE_35014", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_35014", action = "action_EVENT_ANY_MONSTER_DIE_35014" },
{ config_id = 1035015, name = "ANY_MONSTER_DIE_35015", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_35015", action = "action_EVENT_ANY_MONSTER_DIE_35015" },
{ config_id = 1035028, name = "ANY_GADGET_DIE_35028", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_35028", action = "action_EVENT_ANY_GADGET_DIE_35028" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 35001, 35002, 35006, 35007, 35012, 35013 },
gadgets = { 35025, 35026, 35027 },
regions = { },
triggers = { "ANY_MONSTER_DIE_35014", "ANY_GADGET_DIE_35028" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 35008, 35009, 35010, 35011 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_35015" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 35003, 35029, 35030 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_35014(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_35014(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015035, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_35015(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_35015(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250015035, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_35028(context, evt)
if 35027 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_35028(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 35025 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 35026 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,147 @@
-- 基础信息
local base_info = {
group_id = 250015036
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 36001, gadget_id = 70350007, pos = { x = 1572.970, y = 204.818, z = 931.971 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1 },
{ config_id = 36002, gadget_id = 70220006, pos = { x = 1573.183, y = 201.650, z = 945.925 }, rot = { x = 310.955, y = 0.589, z = 359.220 }, level = 1 },
{ config_id = 36003, gadget_id = 70220006, pos = { x = 1573.204, y = 201.650, z = 932.860 }, rot = { x = 43.710, y = 358.125, z = 357.288 }, level = 1 },
{ config_id = 36004, gadget_id = 70300101, pos = { x = 1573.062, y = 201.650, z = 939.234 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 36005, gadget_id = 70350007, pos = { x = 1573.016, y = 204.591, z = 947.313 }, rot = { x = 0.000, y = 180.000, z = 180.000 }, level = 1 },
{ config_id = 36007, gadget_id = 70350007, pos = { x = 1679.831, y = 202.848, z = 926.241 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 36008, gadget_id = 70350007, pos = { x = 1679.831, y = 203.098, z = 943.133 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 36009, gadget_id = 70220006, pos = { x = 1679.513, y = 202.718, z = 934.346 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1036006, name = "ANY_GADGET_DIE_36006", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_36006", action = "action_EVENT_ANY_GADGET_DIE_36006" },
{ config_id = 1036010, name = "ANY_GADGET_DIE_36010", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_36010", action = "action_EVENT_ANY_GADGET_DIE_36010" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 36001, 36002, 36003, 36004, 36005, 36007, 36008, 36009 },
regions = { },
triggers = { "ANY_GADGET_DIE_36006", "ANY_GADGET_DIE_36010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_36006(context, evt)
if 36004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_36006(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 36002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 36003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 36001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 36001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 36005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 36005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_36010(context, evt)
if 36009 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_36010(context, evt)
-- 将configid为 36007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 36007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 36008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 36008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,163 @@
-- 基础信息
local base_info = {
group_id = 250015037
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 37001, monster_id = 25020201, pos = { x = -112.751, y = 0.500, z = -85.105 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 37002, monster_id = 25020201, pos = { x = -123.621, y = 0.500, z = -85.086 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 37003, monster_id = 25010201, pos = { x = -125.220, y = 0.500, z = -76.963 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 37004, monster_id = 25010201, pos = { x = -114.450, y = 0.500, z = -77.544 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 37005, monster_id = 25070101, pos = { x = -120.436, y = 0.500, z = -80.931 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 37012, monster_id = 25030201, pos = { x = -118.116, y = 0.500, z = -67.953 }, rot = { x = 0.000, y = 203.580, z = 0.000 }, level = 1 },
{ config_id = 37013, monster_id = 25010201, pos = { x = -115.923, y = 0.500, z = -67.112 }, rot = { x = 0.000, y = 203.580, z = 0.000 }, level = 1 },
{ config_id = 37014, monster_id = 25070101, pos = { x = -114.602, y = 0.500, z = -68.878 }, rot = { x = 0.000, y = 203.580, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 37006, gadget_id = 70300105, pos = { x = -123.581, y = 0.500, z = -88.978 }, rot = { x = 0.000, y = 265.871, z = 0.000 }, level = 1 },
{ config_id = 37009, gadget_id = 70300093, pos = { x = -110.714, y = 0.500, z = -81.362 }, rot = { x = 0.000, y = 321.510, z = 0.000 }, level = 1 },
{ config_id = 37010, gadget_id = 70310006, pos = { x = -118.559, y = 0.500, z = -83.218 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1037011, name = "ANY_MONSTER_DIE_37011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_37011", action = "action_EVENT_ANY_MONSTER_DIE_37011" },
{ config_id = 1037015, name = "ANY_MONSTER_LIVE_37015", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_37015", action = "action_EVENT_ANY_MONSTER_LIVE_37015" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 37001, 37002, 37003, 37004, 37005 },
gadgets = { 37006, 37009, 37010 },
regions = { },
triggers = { "ANY_MONSTER_DIE_37011", "ANY_MONSTER_LIVE_37015" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_37011(context, evt)
-- 判断剩余怪物数量是否是2
if ScriptLib.GetGroupMonsterCount(context) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_37011(context, evt)
-- 延迟3秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 37012, delay_time = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟3秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 37013, delay_time = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟3秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 37014, delay_time = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- play_type含义1·代表开始播放 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=0, y=0, z=0}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 0, is_broadcast = false }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_soundplay")
return -1
end
-- 调用提示id为 400004 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_37015(context, evt)
if 37012 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_37015(context, evt)
-- 通知groupid为250015037中,configid为37012的怪物入战或者脱战set为1是入战为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 37012, 250015037) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为250015037中,configid为37013的怪物入战或者脱战set为1是入战为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 37013, 250015037) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为250015037中,configid为37014的怪物入战或者脱战set为1是入战为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 37014, 250015037) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,212 @@
-- 基础信息
local base_info = {
group_id = 250015038
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 38003, monster_id = 21010101, pos = { x = -23.022, y = 0.500, z = 83.735 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 38004, monster_id = 21010101, pos = { x = -12.431, y = 0.500, z = 83.393 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 38005, monster_id = 21010101, pos = { x = -21.254, y = 0.500, z = 72.778 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 38001, gadget_id = 70380004, pos = { x = -15.671, y = 0.500, z = 99.194 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 38002, gadget_id = 70360001, pos = { x = -15.671, y = 0.500, z = 99.194 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1038006, name = "GADGET_CREATE_38006", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_38006", action = "action_EVENT_GADGET_CREATE_38006", trigger_count = 0 },
{ config_id = 1038007, name = "SELECT_OPTION_38007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_38007", action = "action_EVENT_SELECT_OPTION_38007", trigger_count = 0 },
{ config_id = 1038008, name = "CHALLENGE_SUCCESS_38008", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "666", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_38008" },
{ config_id = 1038009, name = "CHALLENGE_FAIL_38009", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_38009", trigger_count = 0 },
{ config_id = 1038010, name = "PLATFORM_REACH_POINT_38010", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "888", condition = "condition_EVENT_PLATFORM_REACH_POINT_38010", action = "", trigger_count = 0 },
{ config_id = 1038011, name = "ANY_GADGET_DIE_38011", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_38011", action = "action_EVENT_ANY_GADGET_DIE_38011", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 38001, 38002 },
regions = { },
triggers = { "GADGET_CREATE_38006", "SELECT_OPTION_38007", "CHALLENGE_SUCCESS_38008", "CHALLENGE_FAIL_38009", "PLATFORM_REACH_POINT_38010", "ANY_GADGET_DIE_38011" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 38003, 38004, 38005 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_38006(context, evt)
if 38002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_38006(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250015038, 38002, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_38007(context, evt)
-- 判断是gadgetid 38002 option_id 7
if 38002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_38007(context, evt)
-- 创建编号为666该挑战的识别id),挑战内容为15的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 15, 30, 25, 888, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 38002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015038, 2)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 38001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_38008(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015038, 2)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_38009(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015038, 2)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250015038, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_38010(context, evt)
-- 判断是gadgetid 为 38001的移动平台是否到达了4 的路线中的 4 点
if 38001 ~= evt.param1 then
return false
end
if 4 ~= evt.param2 then
return false
end
if 4 ~= evt.param3 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_38011(context, evt)
if 38001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_38011(context, evt)
-- 终止识别id为666的挑战并判定失败
ScriptLib.StopChallenge(context, 666, 0)
return 0
end

View File

@@ -0,0 +1,223 @@
-- 基础信息
local base_info = {
group_id = 250015043
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 43001, monster_id = 20010301, pos = { x = 97.623, y = 0.500, z = -121.768 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43002, monster_id = 20010301, pos = { x = 97.680, y = 0.500, z = -121.224 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43003, monster_id = 20010301, pos = { x = 98.170, y = 0.500, z = -121.803 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43004, monster_id = 20010301, pos = { x = 98.108, y = 0.500, z = -121.611 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43005, monster_id = 20010301, pos = { x = 98.273, y = 0.500, z = -121.150 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43006, monster_id = 20010301, pos = { x = 97.271, y = 0.500, z = -121.475 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43007, monster_id = 20010301, pos = { x = 97.798, y = 0.500, z = -120.750 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43008, monster_id = 20010301, pos = { x = 97.285, y = 0.500, z = -121.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43009, monster_id = 20010301, pos = { x = 98.258, y = 0.500, z = -120.717 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43010, monster_id = 20010301, pos = { x = 98.859, y = 0.500, z = -120.813 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43011, monster_id = 20010301, pos = { x = 98.880, y = 0.500, z = -121.680 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43012, monster_id = 20010301, pos = { x = 98.714, y = 0.500, z = -122.051 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43013, monster_id = 20010301, pos = { x = 97.437, y = 0.500, z = -120.640 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1018, 1019 } },
{ config_id = 43014, monster_id = 20010301, pos = { x = 99.405, y = 0.500, z = -121.155 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43015, monster_id = 20010301, pos = { x = 97.798, y = 0.500, z = -120.417 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1019 } },
{ config_id = 43016, monster_id = 20011001, pos = { x = 97.124, y = 0.500, z = -127.894 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43017, monster_id = 20011001, pos = { x = 97.124, y = 0.500, z = -127.568 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43018, monster_id = 20011001, pos = { x = 96.634, y = 0.500, z = -127.855 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43019, monster_id = 20011001, pos = { x = 96.985, y = 0.500, z = -128.496 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43020, monster_id = 20011001, pos = { x = 97.554, y = 0.500, z = -127.546 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43021, monster_id = 20011001, pos = { x = 96.718, y = 0.500, z = -127.485 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43022, monster_id = 20011001, pos = { x = 96.521, y = 0.500, z = -128.336 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43023, monster_id = 20011001, pos = { x = 97.346, y = 0.500, z = -127.132 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43024, monster_id = 20011001, pos = { x = 96.725, y = 0.500, z = -127.093 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43025, monster_id = 20011001, pos = { x = 96.093, y = 0.500, z = -128.295 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43026, monster_id = 20011001, pos = { x = 96.267, y = 0.500, z = -127.624 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43027, monster_id = 20011001, pos = { x = 95.816, y = 0.500, z = -127.777 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43028, monster_id = 20011001, pos = { x = 95.724, y = 0.500, z = -128.328 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43029, monster_id = 20011001, pos = { x = 96.295, y = 0.500, z = -127.157 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43030, monster_id = 20011001, pos = { x = 95.809, y = 0.500, z = -127.368 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43032, monster_id = 22010101, pos = { x = 92.333, y = 0.500, z = -128.945 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43038, monster_id = 24010201, pos = { x = 97.133, y = 0.500, z = -118.788 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 43031, gadget_id = 70211012, pos = { x = 94.978, y = 0.500, z = -124.448 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 43033, gadget_id = 70310006, pos = { x = 93.092, y = 0.500, z = -124.825 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 43034, shape = RegionShape.SPHERE, radius = 10.8, pos = { x = 96.141, y = 0.500, z = -123.718 } }
}
-- 触发器
triggers = {
{ config_id = 1043034, name = "ENTER_REGION_43034", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_43034", action = "action_EVENT_ENTER_REGION_43034" },
{ config_id = 1043035, name = "ANY_MONSTER_DIE_43035", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_43035", action = "action_EVENT_ANY_MONSTER_DIE_43035" },
{ config_id = 1043036, name = "ANY_MONSTER_DIE_43036", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_43036", action = "action_EVENT_ANY_MONSTER_DIE_43036" },
{ config_id = 1043037, name = "ANY_MONSTER_DIE_43037", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_43037", action = "action_EVENT_ANY_MONSTER_DIE_43037" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 43001, 43002, 43003, 43004, 43005, 43006, 43007, 43008, 43009, 43010, 43011, 43012, 43013, 43014, 43015 },
gadgets = { 43031, 43033 },
regions = { 43034 },
triggers = { "ENTER_REGION_43034", "ANY_MONSTER_DIE_43035" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 43016, 43017, 43018, 43019, 43020, 43021, 43022, 43023, 43024, 43025, 43026, 43027, 43028, 43029, 43030 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_43036" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 43032, 43038 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_43037" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_43034(context, evt)
if evt.param1 ~= 43034 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_43034(context, evt)
-- 在指定位置对应半径范围播放reminder
local pos = {x=81,y=-5,z=-167}
if 0 ~= ScriptLib.ShowReminderRadius(context, 1110028, pos, 50) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_43035(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250015043) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_43035(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015043, 2)
-- 在指定位置对应半径范围播放reminder
local pos = {x=81,y=-5,z=-167}
if 0 ~= ScriptLib.ShowReminderRadius(context, 1110014, pos, 50) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_43036(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250015043) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_43036(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250015043, 3)
-- 在指定位置对应半径范围播放reminder
local pos = {x=81,y=-5,z=-167}
if 0 ~= ScriptLib.ShowReminderRadius(context, 1120001, pos, 50) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_43037(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250015043) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_43037(context, evt)
-- 将configid为 43031 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 43031, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,933 @@
-- 基础信息
local base_info = {
group_id = 250015045
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 45001, monster_id = 21030401, pos = { x = -83.456, y = -2.202, z = -287.972 }, rot = { x = 0.000, y = 6.471, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 45002, monster_id = 21011201, pos = { x = -80.006, y = -2.202, z = -283.972 }, rot = { x = 0.000, y = 329.932, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 45003, monster_id = 20011401, pos = { x = -106.300, y = -7.932, z = -342.749 }, rot = { x = 0.000, y = 14.301, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 45004, monster_id = 20011401, pos = { x = -102.303, y = -7.932, z = -343.566 }, rot = { x = 0.000, y = 329.952, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 45005, monster_id = 21011201, pos = { x = -100.182, y = 8.148, z = -390.527 }, rot = { x = 0.000, y = 324.008, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 45006, monster_id = 21011201, pos = { x = -106.616, y = 8.148, z = -390.347 }, rot = { x = 0.000, y = 43.618, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 45032, monster_id = 21020301, pos = { x = -102.768, y = 2.248, z = -522.093 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45033, monster_id = 21020301, pos = { x = -104.054, y = 2.248, z = -525.021 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45034, monster_id = 21020301, pos = { x = -105.034, y = 2.248, z = -522.071 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45037, monster_id = 21011201, pos = { x = -86.747, y = -2.202, z = -282.912 }, rot = { x = 0.000, y = 42.334, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 45038, monster_id = 20011401, pos = { x = -104.342, y = -7.932, z = -345.506 }, rot = { x = 0.000, y = 329.952, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 45039, monster_id = 21011201, pos = { x = -103.503, y = 8.148, z = -383.640 }, rot = { x = 0.000, y = 203.164, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 45007, gadget_id = 70360005, pos = { x = -102.791, y = 8.428, z = -251.914 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 45008, gadget_id = 70360025, pos = { x = -104.105, y = 2.248, z = -536.225 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45009, gadget_id = 70900201, pos = { x = -83.877, y = -2.202, z = -284.802 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45010, gadget_id = 70900201, pos = { x = -101.070, y = 2.248, z = -441.879 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45011, gadget_id = 70900201, pos = { x = -103.634, y = -7.932, z = -334.142 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45013, gadget_id = 70900201, pos = { x = -104.098, y = 8.148, z = -386.235 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45014, gadget_id = 70950006, pos = { x = -101.044, y = 2.290, z = -441.898 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45015, gadget_id = 70900201, pos = { x = -104.122, y = 2.290, z = -536.215 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45016, gadget_id = 70300118, pos = { x = -102.837, y = 9.351, z = -251.883 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45017, gadget_id = 70950006, pos = { x = -83.844, y = -2.210, z = -284.798 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45018, gadget_id = 70950006, pos = { x = -103.644, y = -7.910, z = -334.098 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45019, gadget_id = 70950006, pos = { x = -104.144, y = 8.190, z = -386.198 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45030, gadget_id = 70360002, pos = { x = -100.874, y = 2.248, z = -442.463 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45031, gadget_id = 70360002, pos = { x = -107.906, y = 2.248, z = -496.013 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45036, gadget_id = 70900206, pos = { x = -104.105, y = -7.932, z = -348.733 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45040, gadget_id = 70380009, pos = { x = -104.266, y = 1.932, z = -447.075 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1, route_id = 5, start_route = false },
{ config_id = 45041, gadget_id = 70380009, pos = { x = -104.266, y = 1.932, z = -452.138 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1, route_id = 6, start_route = false },
{ config_id = 45042, gadget_id = 70380009, pos = { x = -104.266, y = 1.932, z = -457.153 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1, route_id = 7, start_route = false },
{ config_id = 45043, gadget_id = 70380009, pos = { x = -104.266, y = 1.932, z = -462.224 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1, route_id = 8, start_route = false },
{ config_id = 45044, gadget_id = 70380009, pos = { x = -104.266, y = 1.932, z = -462.157 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1, route_id = 9, start_route = false },
{ config_id = 45045, gadget_id = 70380009, pos = { x = -104.266, y = 1.932, z = -467.254 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1, route_id = 10, start_route = false },
{ config_id = 45046, gadget_id = 70380009, pos = { x = -104.266, y = 1.932, z = -472.312 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1, route_id = 11, start_route = false },
{ config_id = 45047, gadget_id = 70380009, pos = { x = -104.266, y = 1.786, z = -501.090 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 12, start_route = false },
{ config_id = 45048, gadget_id = 70380009, pos = { x = -104.266, y = 1.786, z = -505.964 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 13, start_route = false },
{ config_id = 45050, gadget_id = 70380009, pos = { x = -104.266, y = 1.786, z = -510.993 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 14, start_route = false },
{ config_id = 45051, gadget_id = 70380009, pos = { x = -104.266, y = 1.786, z = -516.029 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 15, start_route = false },
{ config_id = 45052, gadget_id = 70380009, pos = { x = -104.266, y = 1.786, z = -520.999 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 16, start_route = false },
{ config_id = 45053, gadget_id = 70380009, pos = { x = -104.266, y = 1.786, z = -526.012 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 17, start_route = false },
{ config_id = 45056, gadget_id = 70690006, pos = { x = -103.430, y = -11.731, z = -367.842 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45058, gadget_id = 70360016, pos = { x = -108.439, y = -7.932, z = -348.825 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45059, gadget_id = 70360019, pos = { x = -104.973, y = -7.279, z = -348.795 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1 },
{ config_id = 45060, gadget_id = 70360016, pos = { x = -108.439, y = -7.932, z = -342.748 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45061, gadget_id = 70360016, pos = { x = -108.439, y = -7.932, z = -336.748 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45062, gadget_id = 70360016, pos = { x = -108.439, y = -7.932, z = -330.748 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45063, gadget_id = 70360016, pos = { x = -108.439, y = -7.932, z = -324.748 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45064, gadget_id = 70690006, pos = { x = -91.895, y = -7.803, z = -303.588 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 45068, gadget_id = 70690006, pos = { x = -103.430, y = -11.731, z = -406.710 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 45012, shape = RegionShape.SPHERE, radius = 7, pos = { x = -101.044, y = 2.290, z = -441.898 } },
{ config_id = 45023, shape = RegionShape.SPHERE, radius = 2, pos = { x = -104.122, y = 2.290, z = -536.215 } },
{ config_id = 45024, shape = RegionShape.SPHERE, radius = 7, pos = { x = -83.844, y = -2.210, z = -284.798 } },
{ config_id = 45026, shape = RegionShape.SPHERE, radius = 7, pos = { x = -103.644, y = -7.910, z = -334.098 } },
{ config_id = 45028, shape = RegionShape.SPHERE, radius = 7, pos = { x = -104.144, y = 8.190, z = -386.198 } },
{ config_id = 45057, shape = RegionShape.SPHERE, radius = 16, pos = { x = -103.644, y = -7.910, z = -334.098 } },
{ config_id = 45066, shape = RegionShape.SPHERE, radius = 7, pos = { x = -105.073, y = 2.290, z = -493.983 } }
}
-- 触发器
triggers = {
{ config_id = 1045012, name = "ENTER_REGION_45012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_45012", action = "action_EVENT_ENTER_REGION_45012" },
{ config_id = 1045020, name = "GADGET_STATE_CHANGE_45020", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_45020", action = "action_EVENT_GADGET_STATE_CHANGE_45020", trigger_count = 0 },
{ config_id = 1045021, name = "CHALLENGE_SUCCESS_45021", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "666", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_45021", trigger_count = 0 },
{ config_id = 1045022, name = "CHALLENGE_FAIL_45022", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_45022", trigger_count = 0 },
{ config_id = 1045023, name = "ENTER_REGION_45023", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_45023", action = "", tag = "888" },
{ config_id = 1045024, name = "ENTER_REGION_45024", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_45024", action = "action_EVENT_ENTER_REGION_45024" },
{ config_id = 1045025, name = "ANY_MONSTER_DIE_45025", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_45025", action = "action_EVENT_ANY_MONSTER_DIE_45025" },
{ config_id = 1045026, name = "ENTER_REGION_45026", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_45026", action = "action_EVENT_ENTER_REGION_45026" },
{ config_id = 1045027, name = "ANY_MONSTER_DIE_45027", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_45027", action = "action_EVENT_ANY_MONSTER_DIE_45027" },
{ config_id = 1045028, name = "ENTER_REGION_45028", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_45028", action = "action_EVENT_ENTER_REGION_45028" },
{ config_id = 1045029, name = "ANY_MONSTER_DIE_45029", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_45029", action = "action_EVENT_ANY_MONSTER_DIE_45029" },
{ config_id = 1045035, name = "GADGET_CREATE_45035", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_45035", action = "action_EVENT_GADGET_CREATE_45035", trigger_count = 0 },
{ config_id = 1045049, name = "SELECT_OPTION_45049", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_45049", action = "action_EVENT_SELECT_OPTION_45049", trigger_count = 0 },
{ config_id = 1045054, name = "GADGET_CREATE_45054", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_45054", action = "action_EVENT_GADGET_CREATE_45054", trigger_count = 0 },
{ config_id = 1045055, name = "SELECT_OPTION_45055", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_45055", action = "action_EVENT_SELECT_OPTION_45055", trigger_count = 0 },
{ config_id = 1045057, name = "ENTER_REGION_45057", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_45057", action = "action_EVENT_ENTER_REGION_45057" },
{ config_id = 1045065, name = "GADGET_STATE_CHANGE_45065", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_45065", action = "action_EVENT_GADGET_STATE_CHANGE_45065", trigger_count = 0 },
{ config_id = 1045066, name = "ENTER_REGION_45066", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_45066", action = "action_EVENT_ENTER_REGION_45066" },
{ config_id = 1045067, name = "SELECT_OPTION_45067", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_45067", action = "action_EVENT_SELECT_OPTION_45067", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "hasStarted", value = 0, no_refresh = false },
{ config_id = 2, name = "hasFlipped", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = 起点,
monsters = { },
gadgets = { 45007, 45016 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_45020", "CHALLENGE_SUCCESS_45021", "CHALLENGE_FAIL_45022" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 终点,
monsters = { 45032, 45033, 45034 },
gadgets = { 45008, 45015, 45031, 45047, 45048, 45050, 45051, 45052, 45053 },
regions = { 45023, 45066 },
triggers = { "ENTER_REGION_45023", "GADGET_CREATE_45035", "SELECT_OPTION_45049", "ENTER_REGION_45066", "SELECT_OPTION_45067" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 事件完成空Suite,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = 节点1,
monsters = { 45001, 45002, 45037 },
gadgets = { 45009, 45017 },
regions = { 45024 },
triggers = { "ENTER_REGION_45024", "ANY_MONSTER_DIE_45025" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = 节点2,
monsters = { 45003, 45004, 45038 },
gadgets = { 45011, 45018, 45036, 45058, 45059, 45060, 45061, 45062, 45063, 45064 },
regions = { 45026, 45057 },
triggers = { "ENTER_REGION_45026", "ANY_MONSTER_DIE_45027", "ENTER_REGION_45057", "GADGET_STATE_CHANGE_45065" },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = 节点3,
monsters = { 45005, 45006, 45039 },
gadgets = { 45013, 45019, 45056 },
regions = { 45028 },
triggers = { "ENTER_REGION_45028", "ANY_MONSTER_DIE_45029" },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = 节点4,
monsters = { },
gadgets = { 45010, 45014, 45030, 45040, 45041, 45042, 45043, 45044, 45045, 45046, 45068 },
regions = { 45012 },
triggers = { "ENTER_REGION_45012", "GADGET_CREATE_45054", "SELECT_OPTION_45055" },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = 节点5,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_45012(context, evt)
if evt.param1 ~= 45012 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_45012(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 45010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 45014 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 终止识别id为0的挑战并判定失败
ScriptLib.StopChallenge(context, 0, 0)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_45020(context, evt)
if 45007 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
-- 判断变量"hasStarted"为0
if ScriptLib.GetGroupVariableValue(context, "hasStarted") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_45020(context, evt)
-- 创建编号为666该挑战的识别id),挑战内容为189的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 189, 60, 4, 888, 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250015045, 4)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 45016 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将本组内变量名为 "hasStarted" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "hasStarted", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_45021(context, evt)
-- 将configid为 45007 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 45007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015045, 4)
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015045, 5)
-- 删除suite6的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015045, 6)
-- 删除suite7的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015045, 7)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 45008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015045, 2)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 250015045, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_45022(context, evt)
-- 将configid为 45007 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 45007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为45016的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 45016 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 250015045, 4)
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 250015045, 5)
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 250015045, 6)
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 250015045, 7)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 45008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015045, 2)
-- 将本组内变量名为 "hasStarted" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "hasStarted", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_45023(context, evt)
if evt.param1 ~= 45023 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 condition_EVENT_ENTER_REGION_45024(context, evt)
if evt.param1 ~= 45024 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_45024(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 45009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 45017 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_45025(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_45025(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 250015045, 5)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015045, 4)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_45026(context, evt)
if evt.param1 ~= 45026 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_45026(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 45011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 45018 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_45027(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_45027(context, evt)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 250015045, 6)
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015045, 5)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_45028(context, evt)
if evt.param1 ~= 45028 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_45028(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 45013 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 45019 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_45029(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_45029(context, evt)
-- 添加suite7的新内容
ScriptLib.AddExtraGroupSuite(context, 250015045, 7)
-- 删除suite6的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250015045, 6)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_45035(context, evt)
if 45031 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_45035(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250015045, 45031, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_45049(context, evt)
-- 判断是gadgetid 45031 option_id 7
if 45031 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
-- 判断变量"hasFlipped"为0
if ScriptLib.GetGroupVariableValue(context, "hasFlipped") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_45049(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 45047, 12) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 45048, 13) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 45050, 14) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 45051, 15) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 45052, 16) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 45053, 17) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 将本组内变量名为 "hasFlipped" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "hasFlipped", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45047) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45048) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45050) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45051) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45052) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45053) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_45054(context, evt)
if 45030 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_45054(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250015045, 45030, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_45055(context, evt)
-- 判断是gadgetid 45030 option_id 7
if 45030 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_45055(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45040) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45041) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45042) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45043) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45044) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45045) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45046) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015045, 2)
-- 删除指定group 250015045 指定config45030物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250015045, 45030, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_45057(context, evt)
if evt.param1 ~= 45057 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_45057(context, evt)
-- 将configid为 45036 的物件更改为状态 GadgetState.GearAction2
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 45036, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_45065(context, evt)
if 45059 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_45065(context, evt)
-- 将configid为 45036 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 45036, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_45066(context, evt)
if evt.param1 ~= 45066 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_45066(context, evt)
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 45032, delay_time = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 45033, delay_time = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 45034, delay_time = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_45067(context, evt)
-- 判断是gadgetid 45031 option_id 7
if 45031 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
-- 判断变量"hasFlipped"为1
if ScriptLib.GetGroupVariableValue(context, "hasFlipped") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_45067(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 45047, 19) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 45048, 20) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 45050, 21) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 45051, 22) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 45052, 23) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 45053, 24) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45047) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45048) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45050) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45051) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45052) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 45053) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 将本组内变量名为 "hasFlipped" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "hasFlipped", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end

View File

@@ -0,0 +1,186 @@
-- 基础信息
local base_info = {
group_id = 250015046
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 46003, monster_id = 24010201, pos = { x = 171.891, y = 0.500, z = 85.475 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 100 },
{ config_id = 46004, monster_id = 24010101, pos = { x = 183.213, y = 0.500, z = 85.481 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 100 },
{ config_id = 46005, monster_id = 20020101, pos = { x = 177.725, y = 0.500, z = 81.735 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 46001, gadget_id = 70360047, pos = { x = 177.809, y = 0.500, z = 85.112 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗高级蒙德", state = GadgetState.Action01, isOneoff = true },
{ config_id = 46002, gadget_id = 70360001, pos = { x = 177.799, y = 0.500, z = 84.800 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 46009, gadget_id = 70211021, pos = { x = 177.875, y = 0.500, z = 88.092 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗高级蒙德", isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1046006, name = "ANY_MONSTER_DIE_46006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_46006", action = "action_EVENT_ANY_MONSTER_DIE_46006" },
{ config_id = 1046007, name = "GADGET_CREATE_46007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_46007", action = "action_EVENT_GADGET_CREATE_46007" },
{ config_id = 1046008, name = "SELECT_OPTION_46008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_46008", action = "action_EVENT_SELECT_OPTION_46008" },
{ config_id = 1046011, name = "SELECT_OPTION_46011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_46011", action = "action_EVENT_SELECT_OPTION_46011" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 46001, 46002 },
regions = { },
triggers = { "GADGET_CREATE_46007", "SELECT_OPTION_46008", "SELECT_OPTION_46011" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 46003, 46004, 46005 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_46006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_46006(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250015046) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_46006(context, evt)
-- 创建id为46009的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 46009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 将configid为 46001 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 46001, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_46007(context, evt)
if 46002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_46007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250015046, 46002, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_46008(context, evt)
-- 判断是gadgetid 46002 option_id 177
if 46002 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_46008(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250015046, 46002, {176}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_46011(context, evt)
-- 判断是gadgetid 46002 option_id 176
if 46002 ~= evt.param1 then
return false
end
if 176 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_46011(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015046, 2)
return 0
end

View File

@@ -0,0 +1,139 @@
-- 基础信息
local base_info = {
group_id = 250015048
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 48001, monster_id = 21020301, pos = { x = 176.552, y = 0.500, z = -25.664 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 48002, monster_id = 21020201, pos = { x = 174.297, y = 0.500, z = -26.733 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 48003, monster_id = 21020101, pos = { x = 172.598, y = 0.500, z = -25.020 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1048004, name = "ANY_MONSTER_DIE_48004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_48004", action = "action_EVENT_ANY_MONSTER_DIE_48004" },
{ config_id = 1048005, name = "ANY_MONSTER_DIE_48005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_48005", action = "action_EVENT_ANY_MONSTER_DIE_48005" }
}
-- 变量
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 = { 48001 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_48004" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 48002 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_48005" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 48003 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_48004(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250015048) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_48004(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250015048, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_48005(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250015048) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_48005(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250015048, 4)
return 0
end

View File

@@ -0,0 +1,161 @@
-- 基础信息
local base_info = {
group_id = 250015049
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 49001, monster_id = 21020201, pos = { x = 168.630, y = 0.500, z = -80.401 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 49002, monster_id = 21020201, pos = { x = 168.546, y = 0.500, z = -72.096 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 49003, monster_id = 22010301, pos = { x = 173.774, y = 0.500, z = -75.989 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 49004, gadget_id = 70211031, pos = { x = 175.384, y = 0.500, z = -78.549 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗超级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 49005, shape = RegionShape.SPHERE, radius = 20.5, pos = { x = 175.898, y = 0.500, z = -74.607 } }
}
-- 触发器
triggers = {
{ config_id = 1049005, name = "ENTER_REGION_49005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_49005", action = "action_EVENT_ENTER_REGION_49005" },
{ config_id = 1049006, name = "ANY_MONSTER_DIE_49006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_49006", action = "action_EVENT_ANY_MONSTER_DIE_49006" },
{ config_id = 1049007, name = "ANY_MONSTER_DIE_49007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_49007", action = "action_EVENT_ANY_MONSTER_DIE_49007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 49001, 49002, 49003 },
gadgets = { },
regions = { 49005 },
triggers = { "ENTER_REGION_49005", "ANY_MONSTER_DIE_49006", "ANY_MONSTER_DIE_49007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_49005(context, evt)
if evt.param1 ~= 49005 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_49005(context, evt)
-- 在指定位置对应半径范围播放reminder
local pos = {x=84,y=-5,z=-269}
if 0 ~= ScriptLib.ShowReminderRadius(context, 1110022, pos, 20) then
return -1
end
-- 锁住configid为 49001 的怪物的血量信息,直至解锁,期间怪物无敌
if 0 ~= ScriptLib.LockMonsterHp(context, 49001) then
return -1
end
-- 锁住configid为 49002 的怪物的血量信息,直至解锁,期间怪物无敌
if 0 ~= ScriptLib.LockMonsterHp(context, 49002) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_49006(context, evt)
--判断死亡怪物的configid是否为 49003
if evt.param1 ~= 49003 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_49006(context, evt)
--解锁configid 为 49001 的怪物的血量
if 0 ~= ScriptLib.UnlockMonsterHp(context, 49001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_monster_hp_by_configId")
return -1
end
--解锁configid 为 49002 的怪物的血量
if 0 ~= ScriptLib.UnlockMonsterHp(context, 49002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_monster_hp_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_49007(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250015049) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_49007(context, evt)
-- 创建id为49004的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 49004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end

View File

@@ -0,0 +1,84 @@
-- 基础信息
local base_info = {
group_id = 250015051
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 51001, monster_id = 22010301, pos = { x = 166.085, y = 0.500, z = -135.793 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1011 }, isElite = true },
{ config_id = 51002, monster_id = 20011101, pos = { x = 168.418, y = 0.500, z = -131.055 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isElite = true },
{ config_id = 51003, monster_id = 20011101, pos = { x = 169.114, y = 0.500, z = -131.285 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isElite = true },
{ config_id = 51004, monster_id = 20011101, pos = { x = 169.260, y = 0.500, z = -132.418 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isElite = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
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 = { 51001, 51002, 51003, 51004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,84 @@
-- 基础信息
local base_info = {
group_id = 250015052
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 52001, monster_id = 22010101, pos = { x = 173.057, y = 0.500, z = -122.925 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1011 }, isElite = true },
{ config_id = 52002, monster_id = 20011301, pos = { x = 174.035, y = 0.500, z = -121.240 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isElite = true },
{ config_id = 52003, monster_id = 20011301, pos = { x = 174.445, y = 0.500, z = -121.838 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isElite = true },
{ config_id = 52004, monster_id = 20011301, pos = { x = 174.256, y = 0.500, z = -122.603 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isElite = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
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 = { 52001, 52002, 52003, 52004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,217 @@
-- 基础信息
local base_info = {
group_id = 250015053
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 53001, monster_id = 21020201, pos = { x = 415.668, y = 0.500, z = 120.475 }, rot = { x = 0.000, y = 317.762, z = 0.000 }, level = 1, disableWander = true, pose_id = 401 },
{ config_id = 53002, monster_id = 21010101, pos = { x = 413.532, y = 0.500, z = 128.285 }, rot = { x = 0.000, y = 66.516, z = 0.000 }, level = 1, disableWander = true, pose_id = 9011 },
{ config_id = 53003, monster_id = 21010901, pos = { x = 410.760, y = 0.500, z = 132.290 }, rot = { x = 0.000, y = 225.207, z = 0.000 }, level = 1 },
{ config_id = 53004, monster_id = 21020101, pos = { x = 401.172, y = 0.500, z = 120.137 }, rot = { x = 0.000, y = 56.900, z = 0.000 }, level = 1 },
{ config_id = 53005, monster_id = 21010601, pos = { x = 404.380, y = 0.500, z = 126.725 }, rot = { x = 0.000, y = 97.188, z = 0.000 }, level = 1 },
{ config_id = 53006, monster_id = 21010601, pos = { x = 406.856, y = 0.500, z = 117.517 }, rot = { x = 0.000, y = 26.561, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 53007, gadget_id = 70300078, pos = { x = 420.223, y = 0.500, z = 124.120 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 53008, gadget_id = 70300090, pos = { x = 410.901, y = 0.500, z = 132.348 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 53009, gadget_id = 70300101, pos = { x = 411.440, y = 0.500, z = 122.442 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 53010, gadget_id = 70300101, pos = { x = 417.360, y = 0.500, z = 130.383 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 53011, gadget_id = 70300086, pos = { x = 416.610, y = 0.500, z = 118.042 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 53012, gadget_id = 70300086, pos = { x = 416.769, y = 0.500, z = 127.189 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 53013, gadget_id = 70300084, pos = { x = 418.459, y = 0.500, z = 114.750 }, rot = { x = 0.000, y = 64.988, z = 0.000 }, level = 1 },
{ config_id = 53014, gadget_id = 70300084, pos = { x = 407.993, y = 0.500, z = 136.157 }, rot = { x = 0.000, y = 252.761, z = 0.000 }, level = 1 },
{ config_id = 53015, gadget_id = 70300084, pos = { x = 422.038, y = 0.500, z = 132.811 }, rot = { x = 0.000, y = 332.768, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1053016, name = "SPECIFIC_GADGET_HP_CHANGE_53016", event = EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE, source = "53006", condition = "condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_53016", action = "action_EVENT_SPECIFIC_GADGET_HP_CHANGE_53016" },
{ config_id = 1053017, name = "SPECIFIC_GADGET_HP_CHANGE_53017", event = EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE, source = "53007", condition = "condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_53017", action = "action_EVENT_SPECIFIC_GADGET_HP_CHANGE_53017" }
}
-- 变量
variables = {
{ config_id = 1, name = "ison", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 53001, 53002, 53003 },
gadgets = { 53007, 53008, 53009, 53010, 53011, 53012 },
regions = { },
triggers = { "SPECIFIC_GADGET_HP_CHANGE_53016", "SPECIFIC_GADGET_HP_CHANGE_53017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_53016(context, evt)
--[[判断指定configid的gadget的血量小于%50时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE or evt.param3 > 50 then
return false
end
-- 判断剩余怪物数量是否是2
if ScriptLib.GetGroupMonsterCount(context) > 2 then
return false
end
-- 判断变量"ison"为1
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_GADGET_HP_CHANGE_53016(context, evt)
-- play_type含义1·代表开始播放 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=0, y=0, z=0}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_soundplay")
return -1
end
-- 在指定位置对应半径范围播放reminder
local pos = {x=0,y=0,z=0}
if 0 ~= ScriptLib.ShowReminderRadius(context, 400004, pos, 50) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 53004, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 53005, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 53006, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 将本组内变量名为 "ison" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_53017(context, evt)
--[[判断指定configid的gadget的血量小于%50时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE or evt.param3 > 50 then
return false
end
-- 判断剩余怪物数量是否是2
if ScriptLib.GetGroupMonsterCount(context) > 2 then
return false
end
-- 判断变量"ison"为1
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_GADGET_HP_CHANGE_53017(context, evt)
-- play_type含义1·代表开始播放 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=0, y=0, z=0}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_soundplay")
return -1
end
-- 在指定位置对应半径范围播放reminder
local pos = {x=0,y=0,z=0}
if 0 ~= ScriptLib.ShowReminderRadius(context, 400004, pos, 50) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 53004, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 53005, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 53006, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 将本组内变量名为 "ison" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end

View File

@@ -0,0 +1,283 @@
-- 基础信息
local base_info = {
group_id = 250015054
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 54001, monster_id = 21020201, pos = { x = 419.059, y = 0.500, z = 74.424 }, rot = { x = 0.000, y = 317.762, z = 0.000 }, level = 1, disableWander = true, pose_id = 401 },
{ config_id = 54002, monster_id = 21010101, pos = { x = 416.922, y = 0.500, z = 82.233 }, rot = { x = 0.000, y = 66.516, z = 0.000 }, level = 1, disableWander = true, pose_id = 9011 },
{ config_id = 54003, monster_id = 21010901, pos = { x = 414.151, y = 0.500, z = 86.238 }, rot = { x = 0.000, y = 225.207, z = 0.000 }, level = 1 },
{ config_id = 54004, monster_id = 21020101, pos = { x = 404.563, y = 0.500, z = 74.085 }, rot = { x = 0.000, y = 56.900, z = 0.000 }, level = 1 },
{ config_id = 54005, monster_id = 21010601, pos = { x = 407.770, y = 0.500, z = 80.674 }, rot = { x = 0.000, y = 97.188, z = 0.000 }, level = 1 },
{ config_id = 54006, monster_id = 21010601, pos = { x = 410.246, y = 0.500, z = 71.465 }, rot = { x = 0.000, y = 26.561, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 54007, gadget_id = 70300078, pos = { x = 423.614, y = 0.500, z = 78.068 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 54008, gadget_id = 70300090, pos = { x = 414.291, y = 0.500, z = 86.297 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 54009, gadget_id = 70300101, pos = { x = 413.987, y = 0.500, z = 70.645 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 54010, gadget_id = 70300101, pos = { x = 406.827, y = 0.500, z = 84.903 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 54011, gadget_id = 70300086, pos = { x = 420.001, y = 0.500, z = 71.991 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 54012, gadget_id = 70300086, pos = { x = 420.160, y = 0.500, z = 81.138 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 54013, gadget_id = 70300084, pos = { x = 423.723, y = 0.500, z = 67.790 }, rot = { x = 0.000, y = 64.988, z = 0.000 }, level = 1 },
{ config_id = 54014, gadget_id = 70300084, pos = { x = 409.474, y = 0.500, z = 93.208 }, rot = { x = 0.000, y = 252.761, z = 0.000 }, level = 1 },
{ config_id = 54015, gadget_id = 70300084, pos = { x = 425.428, y = 0.500, z = 86.760 }, rot = { x = 0.000, y = 332.768, z = 0.000 }, level = 1 },
{ config_id = 54018, gadget_id = 70300101, pos = { x = 420.750, y = 0.500, z = 84.331 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1054016, name = "SPECIFIC_GADGET_HP_CHANGE_54016", event = EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE, source = "54009", condition = "condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_54016", action = "action_EVENT_SPECIFIC_GADGET_HP_CHANGE_54016" },
{ config_id = 1054017, name = "SPECIFIC_GADGET_HP_CHANGE_54017", event = EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE, source = "54010", condition = "condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_54017", action = "action_EVENT_SPECIFIC_GADGET_HP_CHANGE_54017" },
{ config_id = 1054019, name = "SPECIFIC_GADGET_HP_CHANGE_54019", event = EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE, source = "54018", condition = "condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_54019", action = "action_EVENT_SPECIFIC_GADGET_HP_CHANGE_54019" }
}
-- 变量
variables = {
{ config_id = 1, name = "ison", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 54001, 54002, 54003 },
gadgets = { 54007, 54008, 54009, 54010, 54011, 54012, 54013, 54014, 54015, 54018 },
regions = { },
triggers = { "SPECIFIC_GADGET_HP_CHANGE_54016", "SPECIFIC_GADGET_HP_CHANGE_54017", "SPECIFIC_GADGET_HP_CHANGE_54019" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_54016(context, evt)
--[[判断指定configid的gadget的血量小于%50时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE or evt.param3 > 50 then
return false
end
-- 判断剩余怪物数量是否是2
if ScriptLib.GetGroupMonsterCount(context) > 2 then
return false
end
-- 判断变量"ison"为1
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_GADGET_HP_CHANGE_54016(context, evt)
-- play_type含义1·代表开始播放 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=0, y=0, z=0}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_soundplay")
return -1
end
-- 在指定位置对应半径范围播放reminder
local pos = {x=0,y=0,z=0}
if 0 ~= ScriptLib.ShowReminderRadius(context, 400004, pos, 50) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 54004, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 54005, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 54006, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 将本组内变量名为 "ison" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_54017(context, evt)
--[[判断指定configid的gadget的血量小于%50时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE or evt.param3 > 50 then
return false
end
-- 判断剩余怪物数量是否是2
if ScriptLib.GetGroupMonsterCount(context) > 2 then
return false
end
-- 判断变量"ison"为1
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_GADGET_HP_CHANGE_54017(context, evt)
-- play_type含义1·代表开始播放 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=0, y=0, z=0}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_soundplay")
return -1
end
-- 在指定位置对应半径范围播放reminder
local pos = {x=0,y=0,z=0}
if 0 ~= ScriptLib.ShowReminderRadius(context, 400004, pos, 50) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 54004, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 54005, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 54006, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 将本组内变量名为 "ison" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SPECIFIC_GADGET_HP_CHANGE_54019(context, evt)
--[[判断指定configid的gadget的血量小于%50时触发指定后续操作]]--
if evt.type ~= EventType.EVENT_SPECIFIC_GADGET_HP_CHANGE or evt.param3 > 50 then
return false
end
-- 判断剩余怪物数量是否是2
if ScriptLib.GetGroupMonsterCount(context) > 2 then
return false
end
-- 判断变量"ison"为1
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SPECIFIC_GADGET_HP_CHANGE_54019(context, evt)
-- play_type含义1·代表开始播放 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=0, y=0, z=0}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_soundplay")
return -1
end
-- 在指定位置对应半径范围播放reminder
local pos = {x=0,y=0,z=0}
if 0 ~= ScriptLib.ShowReminderRadius(context, 400004, pos, 50) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 54004, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 54005, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 54006, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 将本组内变量名为 "ison" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end

View File

@@ -0,0 +1,78 @@
-- 基础信息
local base_info = {
group_id = 250015055
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 55001, monster_id = 21020201, pos = { x = 109.745, y = 0.500, z = 39.751 }, rot = { x = 0.000, y = 261.434, z = 0.000 }, level = 1 },
{ config_id = 55002, monster_id = 21010101, pos = { x = 117.131, y = 0.500, z = 36.228 }, rot = { x = 0.000, y = 269.510, z = 0.000 }, level = 1 },
{ config_id = 55003, monster_id = 21010601, pos = { x = 113.592, y = 0.500, z = 43.166 }, rot = { x = 0.000, y = 269.510, z = 0.000 }, level = 1 },
{ config_id = 55004, monster_id = 21010701, pos = { x = 113.627, y = 0.500, z = 37.846 }, rot = { x = 0.000, y = 269.510, z = 0.000 }, level = 1 },
{ config_id = 55005, monster_id = 21010201, pos = { x = 116.939, y = 0.500, z = 45.028 }, rot = { x = 0.000, y = 269.510, z = 0.000 }, level = 1 },
{ config_id = 55006, monster_id = 21010301, pos = { x = 116.867, y = 0.500, z = 41.152 }, rot = { x = 0.000, y = 269.510, z = 0.000 }, level = 1 },
{ config_id = 55007, monster_id = 21011201, pos = { x = 113.859, y = 0.500, z = 40.595 }, rot = { x = 0.000, y = 269.510, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 55001, 55002, 55003, 55004, 55005, 55006, 55007 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,77 @@
-- 基础信息
local base_info = {
group_id = 250015056
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 56001, monster_id = 21030201, pos = { x = 111.890, y = 0.500, z = -32.718 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 56002, monster_id = 21011201, pos = { x = 109.837, y = 0.500, z = -38.031 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 56003, monster_id = 21010301, pos = { x = 114.832, y = 0.500, z = -38.479 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 56004, monster_id = 21030101, pos = { x = 82.880, y = 0.500, z = -15.419 }, rot = { x = 0.000, y = 178.936, z = 0.000 }, level = 1 },
{ config_id = 56005, monster_id = 21010201, pos = { x = 86.068, y = 0.500, z = -8.387 }, rot = { x = 0.000, y = 178.936, z = 0.000 }, level = 1 },
{ config_id = 56006, monster_id = 21010701, pos = { x = 78.850, y = 0.500, z = -8.180 }, rot = { x = 0.000, y = 178.936, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 56001, 56002, 56003, 56004, 56005, 56006 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 250015057
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 57001, monster_id = 21010101, pos = { x = 95.087, y = 0.500, z = -71.217 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 57002, monster_id = 21010101, pos = { x = 98.162, y = 0.500, z = -76.810 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 57003, monster_id = 21010101, pos = { x = 94.078, y = 0.500, z = -76.529 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 57001, 57002, 57003 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,76 @@
-- 基础信息
local base_info = {
group_id = 250015058
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
-- AGP_Leader
{ config_id = 58001, monster_id = 28030501, pos = { x = -129.280, y = 5.300, z = 115.639 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 58002, monster_id = 28030501, pos = { x = -127.580, y = 5.300, z = 112.366 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 58003, monster_id = 28030501, pos = { x = -129.989, y = 5.300, z = 110.563 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 58004, monster_id = 28030501, pos = { x = -131.620, y = 5.300, z = 112.370 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 58001, 58002, 58003, 58004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 250015059
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 59001, monster_id = 28030501, pos = { x = -115.132, y = 5.300, z = 139.431 }, rot = { x = 0.000, y = 265.320, z = 0.000 }, level = 1 },
{ config_id = 59002, monster_id = 28030501, pos = { x = -111.919, y = 5.300, z = 137.107 }, rot = { x = 0.000, y = 265.320, z = 0.000 }, level = 1 },
{ config_id = 59003, monster_id = 28030501, pos = { x = -112.720, y = 5.300, z = 141.588 }, rot = { x = 0.000, y = 265.320, z = 0.000 }, level = 1 },
{ config_id = 59004, monster_id = 28030501, pos = { x = -109.660, y = 5.300, z = 139.460 }, rot = { x = 0.000, y = 265.320, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 59001, 59002, 59003, 59004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,202 @@
-- 基础信息
local base_info = {
group_id = 250015060
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 60001, monster_id = 25010201, pos = { x = 185.602, y = 0.500, z = 137.939 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 60002, monster_id = 25010201, pos = { x = 182.328, y = 0.500, z = 137.664 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 2 },
{ config_id = 60003, monster_id = 25010201, pos = { x = 178.775, y = 0.500, z = 137.664 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 3 },
{ config_id = 60004, monster_id = 25010201, pos = { x = 175.374, y = 0.500, z = 137.664 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 4 },
{ config_id = 60005, monster_id = 25010201, pos = { x = 171.459, y = 0.500, z = 137.664 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 9002 },
{ config_id = 60006, monster_id = 25010201, pos = { x = 167.441, y = 0.500, z = 137.664 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 9003 },
{ config_id = 60007, monster_id = 25010201, pos = { x = 164.002, y = 0.500, z = 137.664 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 9004 },
{ config_id = 60008, monster_id = 25010201, pos = { x = 164.002, y = 0.500, z = 132.279 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 9005 },
{ config_id = 60010, monster_id = 21010101, pos = { x = 171.956, y = 0.500, z = 132.279 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 60011, monster_id = 21010101, pos = { x = 175.326, y = 0.500, z = 132.279 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 60012, gadget_id = 70360002, pos = { x = 198.049, y = 0.500, z = 122.970 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1060013, name = "GADGET_CREATE_60013", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_60013", action = "action_EVENT_GADGET_CREATE_60013" },
{ config_id = 1060014, name = "SELECT_OPTION_60014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_60014", action = "action_EVENT_SELECT_OPTION_60014" },
{ config_id = 1060015, name = "SELECT_OPTION_60015", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_60015", action = "action_EVENT_SELECT_OPTION_60015" },
{ config_id = 1060016, name = "SELECT_OPTION_60016", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_60016", action = "action_EVENT_SELECT_OPTION_60016" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 60012 },
regions = { },
triggers = { "GADGET_CREATE_60013", "SELECT_OPTION_60014", "SELECT_OPTION_60015", "SELECT_OPTION_60016" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 60005, 60006, 60007, 60008 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 60010, 60011 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 60001, 60002, 60003, 60004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_60013(context, evt)
if 60012 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_60013(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250015060, 60012, {184,185,186}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_60014(context, evt)
-- 判断是gadgetid 60012 option_id 184
if 60012 ~= evt.param1 then
return false
end
if 184 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_60014(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015060, 2)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_60015(context, evt)
-- 判断是gadgetid 60012 option_id 185
if 60012 ~= evt.param1 then
return false
end
if 185 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_60015(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250015060, 3)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_60016(context, evt)
-- 判断是gadgetid 60012 option_id 186
if 60012 ~= evt.param1 then
return false
end
if 186 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_60016(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250015060, 4)
return 0
end

View File

@@ -0,0 +1,355 @@
-- 基础信息
local base_info = {
group_id = 250015061
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 61001, gadget_id = 70690001, pos = { x = 1700.068, y = 251.248, z = 768.688 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 61002, gadget_id = 70690001, pos = { x = 1700.068, y = 251.248, z = 753.820 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 61003, gadget_id = 70690001, pos = { x = 1700.068, y = 251.248, z = 738.009 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 61006, gadget_id = 70220011, pos = { x = 1656.528, y = 230.936, z = 664.080 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 61007, gadget_id = 70690001, pos = { x = 1656.531, y = 234.942, z = 653.809 }, rot = { x = 0.000, y = 189.588, z = 0.000 }, level = 1 },
{ config_id = 61008, gadget_id = 70690001, pos = { x = 1675.146, y = 241.675, z = 697.874 }, rot = { x = 0.000, y = 233.489, z = 0.000 }, level = 1 },
-- 第1节点用目标点指引
{ config_id = 61010, gadget_id = 70350085, pos = { x = 1645.858, y = 231.598, z = 673.316 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 61011, gadget_id = 70690006, pos = { x = 1659.529, y = 218.600, z = 617.806 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 61012, gadget_id = 70690001, pos = { x = 1658.478, y = 236.109, z = 617.466 }, rot = { x = 270.000, y = 183.187, z = 0.000 }, level = 1 },
{ config_id = 61013, gadget_id = 70690001, pos = { x = 1658.478, y = 242.446, z = 617.466 }, rot = { x = 270.000, y = 183.187, z = 0.000 }, level = 1 },
{ config_id = 61014, gadget_id = 70690001, pos = { x = 1658.478, y = 250.024, z = 617.466 }, rot = { x = 270.000, y = 183.187, z = 0.000 }, level = 1 },
{ config_id = 61015, gadget_id = 70690001, pos = { x = 1658.478, y = 257.474, z = 617.466 }, rot = { x = 270.000, y = 183.187, z = 0.000 }, level = 1 },
-- 第2节点用目标点指引
{ config_id = 61017, gadget_id = 70350085, pos = { x = 1684.321, y = 262.478, z = 615.601 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 61018, gadget_id = 70690001, pos = { x = 1698.200, y = 259.416, z = 619.663 }, rot = { x = 0.000, y = 77.889, z = 0.000 }, level = 1 },
-- 干扰风环
{ config_id = 61019, gadget_id = 70690001, pos = { x = 1733.903, y = 244.272, z = 630.813 }, rot = { x = 0.000, y = 46.537, z = 0.000 }, level = 1 },
-- 干扰风环
{ config_id = 61020, gadget_id = 70690001, pos = { x = 1733.903, y = 244.272, z = 611.391 }, rot = { x = 0.000, y = 131.366, z = 0.000 }, level = 1 },
-- 干扰风场
{ config_id = 61021, gadget_id = 70690005, pos = { x = 1753.884, y = 228.656, z = 644.593 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 61022, gadget_id = 70900332, pos = { x = 1761.733, y = 210.909, z = 617.324 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 61023, gadget_id = 70900332, pos = { x = 1760.083, y = 211.444, z = 620.737 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 61024, gadget_id = 70900332, pos = { x = 1759.817, y = 210.865, z = 615.365 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 61025, gadget_id = 70690001, pos = { x = 1768.131, y = 215.464, z = 616.482 }, rot = { x = 0.000, y = 99.058, z = 0.000 }, level = 1 },
{ config_id = 61026, gadget_id = 70220020, pos = { x = 1764.683, y = 211.241, z = 619.077 }, rot = { x = 343.928, y = 78.133, z = 346.193 }, level = 1 },
{ config_id = 61027, gadget_id = 70220020, pos = { x = 1763.975, y = 211.260, z = 619.473 }, rot = { x = 343.928, y = 78.133, z = 346.193 }, level = 1 },
{ config_id = 61028, gadget_id = 70220020, pos = { x = 1764.814, y = 210.918, z = 616.644 }, rot = { x = 0.000, y = 87.584, z = 0.000 }, level = 1 },
{ config_id = 61029, gadget_id = 70220020, pos = { x = 1764.703, y = 210.901, z = 615.552 }, rot = { x = 0.000, y = 87.584, z = 0.000 }, level = 1 },
{ config_id = 61030, gadget_id = 70220020, pos = { x = 1764.882, y = 210.901, z = 613.162 }, rot = { x = 0.000, y = 87.584, z = 0.000 }, level = 1 },
{ config_id = 61031, gadget_id = 70220020, pos = { x = 1764.384, y = 211.087, z = 611.283 }, rot = { x = 0.000, y = 87.584, z = 0.000 }, level = 1 },
{ config_id = 61032, gadget_id = 70220020, pos = { x = 1764.583, y = 210.934, z = 609.871 }, rot = { x = 0.000, y = 98.601, z = 359.466 }, level = 1 },
{ config_id = 61033, gadget_id = 70690001, pos = { x = 1781.252, y = 215.464, z = 615.308 }, rot = { x = 0.000, y = 89.869, z = 0.000 }, level = 1 },
-- 第3节点用目标点指引
{ config_id = 61034, gadget_id = 70350085, pos = { x = 1684.321, y = 262.478, z = 615.601 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 61005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1828.025, y = 210.827, z = 629.355 } },
{ config_id = 61009, shape = RegionShape.SPHERE, radius = 2, pos = { x = 1646.152, y = 231.537, z = 673.125 } },
{ config_id = 61016, shape = RegionShape.SPHERE, radius = 2, pos = { x = 1684.307, y = 262.478, z = 615.609 } }
}
-- 触发器
triggers = {
{ config_id = 1061004, name = "QUEST_FINISH_61004", event = EventType.EVENT_QUEST_FINISH, source = "7081505", condition = "condition_EVENT_QUEST_FINISH_61004", action = "action_EVENT_QUEST_FINISH_61004", trigger_count = 0 },
{ config_id = 1061005, name = "ENTER_REGION_61005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_61005", action = "action_EVENT_ENTER_REGION_61005", tag = "888" },
{ config_id = 1061009, name = "ENTER_REGION_61009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_61009", action = "action_EVENT_ENTER_REGION_61009" },
{ config_id = 1061016, name = "ENTER_REGION_61016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_61016", action = "action_EVENT_ENTER_REGION_61016" },
{ config_id = 1061035, name = "CHALLENGE_SUCCESS_61035", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "666", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_61035", trigger_count = 0 },
{ config_id = 1061036, name = "CHALLENGE_FAIL_61036", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_61036", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = 初始空suite,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 挑战控制逻辑用suite,
monsters = { },
gadgets = { },
regions = { 61005 },
triggers = { "QUEST_FINISH_61004", "ENTER_REGION_61005", "CHALLENGE_SUCCESS_61035", "CHALLENGE_FAIL_61036" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 节点1挑战gadget——加速环,
monsters = { },
gadgets = { 61001, 61002, 61003, 61006, 61008, 61010 },
regions = { 61009 },
triggers = { "ENTER_REGION_61009" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = 节点2gadget——加速环,风场,风琥珀,
monsters = { },
gadgets = { 61007, 61011, 61012, 61013, 61014, 61015, 61017 },
regions = { 61016 },
triggers = { "ENTER_REGION_61016" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = 节点3gadget——加速环,干扰风场,风种子(可选),
monsters = { },
gadgets = { 61018, 61019, 61020, 61021, 61022, 61023, 61024, 61025, 61026, 61027, 61028, 61029, 61030, 61031, 61032, 61033, 61034 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_QUEST_FINISH_61004(context, evt)
--检查ID为7081505的任务的完成状态是否为11=完成0=失败)
--此事件需要配合Quest表使用在Quest表里的完成执行中配置“通知group脚本”则该任务完成后服务端会向对应的group发送通知参数1填写场景ID参数2填写group ID如果不填则会通知所有group
--检查任务ID
if 7081505 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_61004(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250015061, 3)
-- 创建编号为666该挑战的识别id),挑战内容为184的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 184, 60, 4, 888, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_61005(context, evt)
if evt.param1 ~= 61005 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_61005(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 61034 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 61017 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 61010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 终止识别id为666的挑战并判定成功
ScriptLib.StopChallenge(context, 666, 1)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_61009(context, evt)
if evt.param1 ~= 61009 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_61009(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 61010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250015061, 4)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_61016(context, evt)
if evt.param1 ~= 61016 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_61016(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 61017 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 250015061, 5)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_61035(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 61010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 61017 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 61034 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250015061, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2500150611") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_61036(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 61010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 61017 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 61034 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250015061, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2500150612") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end

View File

@@ -0,0 +1,462 @@
-- 基础信息
local base_info = {
group_id = 250015062
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 62001, monster_id = 21010101, pos = { x = 55.757, y = 0.500, z = 4.535 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 62002, monster_id = 21020201, pos = { x = 55.757, y = 0.500, z = 4.535 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 62003, monster_id = 21020501, pos = { x = 55.757, y = 0.500, z = 4.535 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 62007, monster_id = 21010101, pos = { x = 55.757, y = 0.500, z = 4.535 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 62008, monster_id = 21020201, pos = { x = 55.757, y = 0.500, z = 4.535 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 62009, monster_id = 21020501, pos = { x = 55.757, y = 0.500, z = 4.535 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 62010, monster_id = 21010101, pos = { x = 55.757, y = 0.500, z = 4.535 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 62011, monster_id = 21020201, pos = { x = 55.757, y = 0.500, z = 4.535 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 62012, monster_id = 21020501, pos = { x = 55.757, y = 0.500, z = 4.535 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 62004, gadget_id = 70360002, pos = { x = 55.757, y = 0.500, z = 36.541 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1062005, name = "SELECT_OPTION_62005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_62005", action = "action_EVENT_SELECT_OPTION_62005" },
{ config_id = 1062006, name = "GADGET_CREATE_62006", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_62006", action = "action_EVENT_GADGET_CREATE_62006" },
{ config_id = 1062013, name = "SELECT_OPTION_62013", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_62013", action = "action_EVENT_SELECT_OPTION_62013" },
{ config_id = 1062014, name = "SELECT_OPTION_62014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_62014", action = "action_EVENT_SELECT_OPTION_62014" },
{ config_id = 1062015, name = "SELECT_OPTION_62015", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_62015", action = "action_EVENT_SELECT_OPTION_62015" },
{ config_id = 1062016, name = "SELECT_OPTION_62016", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_62016", action = "action_EVENT_SELECT_OPTION_62016" },
{ config_id = 1062017, name = "SELECT_OPTION_62017", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_62017", action = "action_EVENT_SELECT_OPTION_62017" },
{ config_id = 1062018, name = "SELECT_OPTION_62018", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_62018", action = "action_EVENT_SELECT_OPTION_62018" },
{ config_id = 1062019, name = "SELECT_OPTION_62019", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_62019", action = "action_EVENT_SELECT_OPTION_62019" },
{ config_id = 1062020, name = "SELECT_OPTION_62020", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_62020", action = "action_EVENT_SELECT_OPTION_62020" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 62004 },
regions = { },
triggers = { "SELECT_OPTION_62005", "GADGET_CREATE_62006", "SELECT_OPTION_62013", "SELECT_OPTION_62014", "SELECT_OPTION_62015", "SELECT_OPTION_62016", "SELECT_OPTION_62017", "SELECT_OPTION_62018", "SELECT_OPTION_62019", "SELECT_OPTION_62020" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 62001 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 62002 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 62003 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { 62007 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { 62008 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { 62009 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { 62010 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { 62011 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = ,
monsters = { 62012 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_62005(context, evt)
-- 判断是gadgetid 62004 option_id 184
if 62004 ~= evt.param1 then
return false
end
if 184 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_62005(context, evt)
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 250015062, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250015062, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_62006(context, evt)
if 62004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_62006(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250015062, 62004, {184,185,186,201,202,203,181,182,183}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_62013(context, evt)
-- 判断是gadgetid 62004 option_id 185
if 62004 ~= evt.param1 then
return false
end
if 185 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_62013(context, evt)
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 250015062, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 250015062, 3)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_62014(context, evt)
-- 判断是gadgetid 62004 option_id 186
if 62004 ~= evt.param1 then
return false
end
if 186 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_62014(context, evt)
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 250015062, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 250015062, 4)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_62015(context, evt)
-- 判断是gadgetid 62004 option_id 201
if 62004 ~= evt.param1 then
return false
end
if 201 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_62015(context, evt)
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 250015062, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 250015062, 5)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_62016(context, evt)
-- 判断是gadgetid 62004 option_id 202
if 62004 ~= evt.param1 then
return false
end
if 202 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_62016(context, evt)
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 250015062, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 250015062, 6)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_62017(context, evt)
-- 判断是gadgetid 62004 option_id 203
if 62004 ~= evt.param1 then
return false
end
if 203 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_62017(context, evt)
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 250015062, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 添加suite7的新内容
ScriptLib.AddExtraGroupSuite(context, 250015062, 7)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_62018(context, evt)
-- 判断是gadgetid 62004 option_id 181
if 62004 ~= evt.param1 then
return false
end
if 181 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_62018(context, evt)
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 250015062, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 添加suite8的新内容
ScriptLib.AddExtraGroupSuite(context, 250015062, 8)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_62019(context, evt)
-- 判断是gadgetid 62004 option_id 182
if 62004 ~= evt.param1 then
return false
end
if 182 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_62019(context, evt)
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 250015062, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 添加suite9的新内容
ScriptLib.AddExtraGroupSuite(context, 250015062, 9)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_62020(context, evt)
-- 判断是gadgetid 62004 option_id 183
if 62004 ~= evt.param1 then
return false
end
if 183 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_62020(context, evt)
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 250015062, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
-- 添加suite10的新内容
ScriptLib.AddExtraGroupSuite(context, 250015062, 10)
return 0
end

View File

@@ -0,0 +1,174 @@
-- 基础信息
local base_info = {
group_id = 250015063
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 63005, monster_id = 21010101, pos = { x = 54.088, y = 0.500, z = 119.131 }, rot = { x = 0.000, y = 157.386, z = 0.000 }, level = 1 },
{ config_id = 63006, monster_id = 21010101, pos = { x = 59.794, y = 0.500, z = 118.837 }, rot = { x = 0.000, y = 207.910, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 63001, gadget_id = 70380019, pos = { x = 56.397, y = 0.500, z = 92.800 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 33, start_route = false },
{ config_id = 63002, gadget_id = 70360002, pos = { x = 60.843, y = 0.500, z = 90.244 }, rot = { x = 0.000, y = 181.679, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1063003, name = "GADGET_CREATE_63003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_63003", action = "action_EVENT_GADGET_CREATE_63003", trigger_count = 0 },
{ config_id = 1063004, name = "PLATFORM_REACH_POINT_63004", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_63004", action = "action_EVENT_PLATFORM_REACH_POINT_63004" },
{ config_id = 1063007, name = "SELECT_OPTION_63007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_63007", action = "action_EVENT_SELECT_OPTION_63007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 63001, 63002 },
regions = { },
triggers = { "GADGET_CREATE_63003", "PLATFORM_REACH_POINT_63004", "SELECT_OPTION_63007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_63003(context, evt)
if 63002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_63003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250015063, 63002, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_63004(context, evt)
-- 判断是gadgetid 为 63001的移动平台是否到达了33 的路线中的 1 点
if 63001 ~= evt.param1 then
return false
end
if 33 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_63004(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 63005, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 63006, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_63007(context, evt)
-- 判断是gadgetid 63002 option_id 7
if 63002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_63007(context, evt)
-- 删除指定group 250015063 指定config63002物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250015063, 63002, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 63002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 63001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end

View File

@@ -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": 29.95584,
"y": 0.8063674,
"z": -20.25575
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "TOWER",
"unlocked": true
}
},
"transRadius": 0.0
}