添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -139.6, z = -718.7 },
size = { x = 381.8, z = 1088.7 },
born_pos = { x = 12.887, y = 3.500, z = -588.693 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -27.03,
city_id = 1,
vision_anchor = { x = -139.6, z = -718.7 }
}
-- 所有的区块
blocks = { 50008 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -139.6, z = -718.7 }, max = { x = 242.2, z = 370.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,70 @@
-- 所有的group
groups = {
{ id = 250008006, refresh_id = 1, pos = { x = 114.163, y = -9.093, z = -457.836 } },
{ id = 250008007, refresh_id = 1, pos = { x = 215.246, y = 4.000, z = -557.231 } },
{ id = 250008008, pos = { x = 216.713, y = 4.000, z = -602.501 } },
{ id = 250008010, refresh_id = 1, pos = { x = 217.535, y = 4.000, z = -690.772 } },
{ id = 250008012, refresh_id = 1, pos = { x = 127.609, y = 4.000, z = -688.700 } },
{ id = 250008013, refresh_id = 1, pos = { x = 133.108, y = 4.000, z = -643.855 } },
{ id = 250008017, refresh_id = 1, pos = { x = 41.956, y = 4.000, z = -127.259 } },
{ id = 250008018, refresh_id = 1, pos = { x = 129.475, y = 6.540, z = -602.431 } },
{ id = 250008022, refresh_id = 1, pos = { x = 84.178, y = 4.000, z = -685.967 } },
{ id = 250008023, refresh_id = 1, pos = { x = -57.576, y = 10.418, z = -693.949 } },
{ id = 250008025, refresh_id = 1, pos = { x = 81.216, y = 4.000, z = -557.106 } },
{ id = 250008027, refresh_id = 1001, pos = { x = 80.856, y = 4.000, z = -601.207 } },
{ id = 250008028, refresh_id = 1001, pos = { x = 81.295, y = 4.000, z = -645.836 } },
{ id = 250008029, refresh_id = 1003, pos = { x = -57.725, y = 4.000, z = -599.753 } },
{ id = 250008031, refresh_id = 1, pos = { x = 124.088, y = 10.483, z = -559.499 } },
{ id = 250008033, refresh_id = 1, pos = { x = 132.626, y = 4.000, z = -549.539 } },
{ id = 250008034, refresh_id = 1, pos = { x = 120.435, y = 4.000, z = -548.769 } },
{ id = 250008057, refresh_id = 1002, pos = { x = 218.579, y = 4.000, z = -30.219 } },
{ id = 250008077, refresh_id = 1, pos = { x = 39.774, y = 1.952, z = -38.374 } },
{ id = 250008078, refresh_id = 1001, pos = { x = -48.603, y = 4.693, z = -556.669 } },
{ id = 250008084, refresh_id = 1002, pos = { x = 222.632, y = 4.000, z = -69.881 } },
{ id = 250008085, refresh_id = 1, pos = { x = 216.076, y = 4.873, z = -248.766 } },
{ id = 250008090, refresh_id = 99999, pos = { x = 221.623, y = 4.000, z = -515.233 } },
{ id = 250008091, refresh_id = 1, pos = { x = 103.854, y = 4.000, z = -308.332 } },
{ id = 250008094, refresh_id = 1001, pos = { x = -40.047, y = 4.000, z = -647.028 } },
{ id = 250008095, refresh_id = 1, pos = { x = 217.951, y = 4.000, z = -204.390 } },
{ id = 250008096, refresh_id = 1, pos = { x = 213.251, y = 4.000, z = -469.114 } },
{ id = 250008098, pos = { x = -64.527, y = 4.000, z = -468.220 } },
{ id = 250008104, refresh_id = 1, pos = { x = -27.042, y = 3.500, z = -424.060 } },
{ id = 250008108, pos = { x = -42.939, y = 4.000, z = -467.891 } },
{ id = 250008109, refresh_id = 1, pos = { x = 215.751, y = 4.000, z = -292.401 } },
{ id = 250008110, refresh_id = 1, pos = { x = 217.390, y = 4.000, z = -424.611 } },
{ id = 250008114, refresh_id = 1, pos = { x = -54.477, y = 3.307, z = -251.807 } },
{ id = 250008115, refresh_id = 1, pos = { x = -75.535, y = 4.000, z = -250.802 } },
{ id = 250008119, refresh_id = 1000, pos = { x = -50.386, y = 4.000, z = -506.087 } },
{ id = 250008120, refresh_id = 99999, pos = { x = 216.853, y = 5.185, z = -376.697 } },
{ id = 250008121, refresh_id = 1001, pos = { x = 216.403, y = 4.000, z = -337.387 } },
{ id = 250008124, refresh_id = 1001, pos = { x = 230.110, y = 4.000, z = -337.736 } },
{ id = 250008125, refresh_id = 1001, pos = { x = -69.875, y = 4.000, z = -556.623 } },
{ id = 250008127, refresh_id = 1, pos = { x = 10.939, y = 3.500, z = -594.467 } },
{ id = 250008128, refresh_id = 1, pos = { x = -61.984, y = 7.475, z = -212.146 } },
{ id = 250008129, refresh_id = 1, pos = { x = -73.419, y = 4.000, z = -212.135 } },
{ id = 250008130, refresh_id = 1, pos = { x = -16.395, y = 3.500, z = -358.650 } },
{ id = 250008131, refresh_id = 1, pos = { x = 10.459, y = 3.500, z = -584.017 } },
{ id = 250008133, refresh_id = 1001, pos = { x = -68.303, y = 4.000, z = -645.372 } },
{ id = 250008134, refresh_id = 99999, pos = { x = -67.406, y = 4.000, z = -289.460 } },
{ id = 250008137, refresh_id = 1, pos = { x = -23.125, y = 3.500, z = -577.683 } },
{ id = 250008138, refresh_id = 1, pos = { x = -35.288, y = 4.000, z = -162.593 } },
{ id = 250008139, refresh_id = 999999, pos = { x = -67.538, y = 4.000, z = -155.720 } },
{ id = 250008140, refresh_id = 1, pos = { x = 131.470, y = 4.000, z = -152.047 } },
{ id = 250008141, refresh_id = 1, pos = { x = 144.085, y = 4.000, z = -143.157 } },
{ id = 250008142, pos = { x = -51.042, y = 8.497, z = -376.026 } },
{ id = 250008143, refresh_id = 1, pos = { x = -55.057, y = 15.087, z = -375.887 } },
{ id = 250008144, pos = { x = -61.294, y = 8.517, z = -375.688 } },
{ id = 250008145, pos = { x = -50.603, y = 8.544, z = -393.888 } },
{ id = 250008146, pos = { x = -56.556, y = 15.087, z = -381.810 } },
{ id = 250008148, pos = { x = 71.769, y = 4.000, z = -348.085 } },
{ id = 250008149, refresh_id = 1, pos = { x = 91.265, y = 3.500, z = -207.294 } },
{ id = 250008150, refresh_id = 1, pos = { x = 133.244, y = 4.000, z = -66.706 } },
{ id = 250008151, refresh_id = 1, pos = { x = 214.313, y = 4.000, z = 55.889 } },
{ id = 250008152, refresh_id = 1003, pos = { x = -56.068, y = 3.500, z = -75.495 } },
{ id = 250008153, refresh_id = 1, pos = { x = 141.498, y = 4.000, z = -140.315 } },
{ id = 250008154, refresh_id = 1, pos = { x = 130.951, y = 4.000, z = -157.594 } },
{ id = 250008157, pos = { x = -40.837, y = 8.497, z = -385.304 } },
{ id = 250008158, pos = { x = -23.784, y = 3.419, z = -454.003 } },
{ id = 250008159, pos = { x = -23.117, y = 3.500, z = -441.885 } },
{ id = 250008160, pos = { x = -39.649, y = 3.419, z = -436.028 } }
}
@@ -0,0 +1,3 @@
dummy_points = {
["Racing_250008015_StartPos"] = { pos = { x = -56.600, y = 3.500, z = -416.870 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}
@@ -0,0 +1,142 @@
-- 基础信息
local base_info = {
group_id = 250008006
}
-- Trigger变量
local defs = {
gadget_id_1 = 17
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 17, gadget_id = 70900242, pos = { x = 114.000, y = -21.000, z = -457.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 50008014 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000019, name = "GADGET_STATE_CHANGE_19", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_19", action = "action_EVENT_GADGET_STATE_CHANGE_19", trigger_count = 0 },
{ config_id = 1000157, name = "PLATFORM_REACH_POINT_157", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_157", action = "action_EVENT_PLATFORM_REACH_POINT_157", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 17 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_19", "PLATFORM_REACH_POINT_157" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_19(context, evt)
if 17 ~= evt.param2 or GadgetState.GearAction2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_19(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 17, 50008014) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_157(context, evt)
-- 判断是gadgetid 为 17的移动平台,是否到达了50008014 的路线中的 1 点
if 17 ~= evt.param1 then
return false
end
if 50008014 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_157(context, evt)
-- 将configid为 17 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 17, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 17, 50008015) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 17) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
return 0
end
@@ -0,0 +1,86 @@
-- 基础信息
local base_info = {
group_id = 250008007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18, gadget_id = 70900277, pos = { x = 203.229, y = 4.000, z = -543.088 }, rot = { x = 0.000, y = 126.344, z = 0.000 }, level = 1 },
{ config_id = 19, gadget_id = 70900277, pos = { x = 206.333, y = 4.000, z = -543.119 }, rot = { x = 0.000, y = 236.451, z = 0.000 }, level = 1 },
{ config_id = 20, gadget_id = 70900277, pos = { x = 209.423, y = 4.000, z = -543.065 }, rot = { x = 0.000, y = 290.300, z = 0.000 }, level = 1 },
{ config_id = 21, gadget_id = 70900280, pos = { x = 214.920, y = 4.000, z = -542.978 }, rot = { x = 0.000, y = 337.944, z = 0.000 }, level = 1 },
{ config_id = 22, gadget_id = 70900280, pos = { x = 219.796, y = 4.000, z = -542.921 }, rot = { x = 0.000, y = 175.930, z = 0.000 }, level = 1 },
{ config_id = 23, gadget_id = 70900280, pos = { x = 223.194, y = 4.000, z = -542.812 }, rot = { x = 0.000, y = 210.513, z = 0.000 }, level = 1 },
{ config_id = 24, gadget_id = 70900279, pos = { x = 228.373, y = 4.000, z = -542.832 }, rot = { x = 0.000, y = 41.506, z = 0.000 }, level = 1 },
{ config_id = 25, gadget_id = 70900279, pos = { x = 230.698, y = 4.000, z = -542.827 }, rot = { x = 0.000, y = 163.309, z = 0.000 }, level = 1 },
{ config_id = 26, gadget_id = 70900279, pos = { x = 233.060, y = 4.000, z = -542.777 }, rot = { x = 0.000, y = 231.114, z = 0.000 }, level = 1 },
{ config_id = 27, gadget_id = 70900278, pos = { x = 202.592, y = 5.140, z = -572.963 }, rot = { x = 0.000, y = 286.349, z = 0.000 }, level = 1 },
{ config_id = 28, gadget_id = 70900278, pos = { x = 207.498, y = 5.140, z = -572.768 }, rot = { x = 0.000, y = 181.170, z = 0.000 }, level = 1 },
{ config_id = 29, gadget_id = 70900278, pos = { x = 212.013, y = 5.140, z = -572.795 }, rot = { x = 0.000, y = 320.930, z = 0.000 }, level = 1 },
{ config_id = 30, gadget_id = 70900283, pos = { x = 217.837, y = 4.000, z = -573.472 }, rot = { x = 0.000, y = 149.955, z = 0.000 }, level = 1 },
{ config_id = 31, gadget_id = 70900283, pos = { x = 221.623, y = 4.000, z = -573.567 }, rot = { x = 0.000, y = 132.869, z = 0.000 }, level = 1 },
{ config_id = 32, gadget_id = 70900283, pos = { x = 225.684, y = 4.000, z = -573.607 }, rot = { x = 0.000, y = 209.295, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,204 @@
-- 基础信息
local base_info = {
group_id = 250008008
}
-- Trigger变量
local defs = {
duration = 30,
kill_sum = 1,
group_id = 250008008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5, monster_id = 21010101, pos = { x = 222.076, y = 4.000, z = -602.414 }, rot = { x = 0.000, y = 269.353, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 34, gadget_id = 70360001, pos = { x = 216.716, y = 4.556, z = -602.492 }, rot = { x = 0.000, y = 300.894, z = 0.000 }, level = 1 },
{ config_id = 8002, gadget_id = 70360047, pos = { x = 216.712, y = 4.000, z = -602.491 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗高级蒙德", state = GadgetState.Action01, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000021, name = "GADGET_CREATE_21", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_21", action = "action_EVENT_GADGET_CREATE_21", trigger_count = 0 },
{ config_id = 1000022, name = "SELECT_OPTION_22", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_22", action = "action_EVENT_SELECT_OPTION_22", trigger_count = 0, forbid_guest = false },
{ config_id = 1000023, name = "CHALLENGE_SUCCESS_23", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "180", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_23" },
{ config_id = 1000024, name = "CHALLENGE_FAIL_24", event = EventType.EVENT_CHALLENGE_FAIL, source = "180", condition = "", action = "action_EVENT_CHALLENGE_FAIL_24", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 34, 8002 },
regions = { },
triggers = { "GADGET_CREATE_21", "SELECT_OPTION_22", "CHALLENGE_SUCCESS_23", "CHALLENGE_FAIL_24" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 5 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_21(context, evt)
if 34 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_21(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250008008, 34, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_22(context, evt)
-- 判断是gadgetid 34
if 34 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_22(context, evt)
-- 180号挑战,duration内击杀kill_sum的怪物
if 0 ~= ScriptLib.ActiveChallenge(context, 180, 180, defs.duration, defs.group_id, defs.kill_sum, 0) then
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250008008, 2)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 34 }) then
return -1
end
-- 将configid为 8002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8002, GadgetState.GearStart) then
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 1, 1) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_23(context, evt)
-- 将configid为 8002 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8002, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_24(context, evt)
-- 创建id为34的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 34 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250008008, 2)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250008008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将configid为 8002 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8002, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 250008010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 36, gadget_id = 70310006, pos = { x = 223.631, y = 4.000, z = -679.509 }, rot = { x = 0.000, y = 207.746, z = 0.000 }, level = 1 },
{ config_id = 37, gadget_id = 70310009, pos = { x = 230.094, y = 4.000, z = -701.397 }, rot = { x = 0.000, y = 262.693, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 36, 37 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 250008012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 57, gadget_id = 70310004, pos = { x = 126.307, y = 4.000, z = -676.187 }, rot = { x = 0.000, y = 92.703, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 58, gadget_id = 70310001, pos = { x = 113.162, y = 4.000, z = -693.166 }, rot = { x = 0.000, y = 95.258, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 57, 58 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,83 @@
-- 基础信息
local base_info = {
group_id = 250008013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 59, gadget_id = 70900289, pos = { x = 128.015, y = 5.166, z = -648.673 }, rot = { x = 0.000, y = 57.749, z = 0.000 }, level = 1 },
{ config_id = 60, gadget_id = 70900289, pos = { x = 121.736, y = 13.063, z = -649.604 }, rot = { x = 0.000, y = 57.749, z = 0.000 }, level = 1 },
{ config_id = 61, gadget_id = 70900289, pos = { x = 123.264, y = 4.000, z = -637.142 }, rot = { x = 0.000, y = 57.749, z = 0.000 }, level = 1 },
{ config_id = 62, gadget_id = 70900289, pos = { x = 137.431, y = 10.786, z = -630.448 }, rot = { x = 0.000, y = 57.749, z = 0.000 }, level = 1 },
{ config_id = 63, gadget_id = 70900289, pos = { x = 130.240, y = 11.729, z = -632.153 }, rot = { x = 0.000, y = 57.749, z = 0.000 }, level = 1 },
{ config_id = 64, gadget_id = 70900289, pos = { x = 129.578, y = 4.883, z = -628.950 }, rot = { x = 0.000, y = 57.749, z = 0.000 }, level = 1 },
{ config_id = 65, gadget_id = 70900293, pos = { x = 141.867, y = 4.015, z = -658.170 }, rot = { x = 0.000, y = 0.000, z = 90.218 }, level = 1 },
{ config_id = 66, gadget_id = 70900293, pos = { x = 132.500, y = 4.000, z = -640.369 }, rot = { x = 0.000, y = 0.000, z = 90.218 }, level = 1 },
{ config_id = 67, gadget_id = 70900293, pos = { x = 115.584, y = 8.058, z = -632.908 }, rot = { x = 0.000, y = 0.000, z = 90.218 }, level = 1 },
{ config_id = 68, gadget_id = 70900293, pos = { x = 124.802, y = 15.456, z = -651.734 }, rot = { x = 0.000, y = 0.000, z = 90.218 }, level = 1 },
{ config_id = 69, gadget_id = 70900293, pos = { x = 122.012, y = 11.683, z = -647.985 }, rot = { x = 0.000, y = 0.000, z = 90.218 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000032, name = "CLIENT_EXECUTE_32", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElementRune_Fire", condition = "", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69 },
regions = { },
triggers = { "CLIENT_EXECUTE_32" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,180 @@
-- 基础信息
local base_info = {
group_id = 250008017
}
-- Trigger变量
local defs = {
group_id = 250008017,
riddle_hint = 90,
riddle_1 = 92,
riddle_2 = 93,
riddle_3 = 94,
riddle_4 = 95
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 90, gadget_id = 70220029, pos = { x = 18.930, y = 4.000, z = -151.949 }, rot = { x = 0.000, y = 190.000, z = 0.000 }, level = 1 },
{ config_id = 91, gadget_id = 70220030, pos = { x = 18.930, y = 4.180, z = -151.949 }, rot = { x = 0.000, y = 182.700, z = 0.000 }, level = 1 },
{ config_id = 92, gadget_id = 70220031, pos = { x = 17.330, y = 4.000, z = -163.049 }, rot = { x = 0.000, y = 276.100, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 93, gadget_id = 70220031, pos = { x = 5.230, y = 4.000, z = -148.749 }, rot = { x = 0.000, y = 317.500, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 94, gadget_id = 70220031, pos = { x = 21.230, y = 4.000, z = -141.949 }, rot = { x = 0.000, y = 257.600, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 95, gadget_id = 70220031, pos = { x = 32.030, y = 4.000, z = -154.349 }, rot = { x = 0.000, y = 14.100, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 96, gadget_id = 70211031, pos = { x = 19.530, y = 4.180, z = -151.849 }, rot = { x = 0.000, y = 270.400, z = 0.000 }, level = 1, drop_tag = "战斗超级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000052, name = "GADGET_STATE_CHANGE_52", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_52", action = "action_EVENT_GADGET_STATE_CHANGE_52", trigger_count = 0 },
{ config_id = 1000053, name = "GADGET_STATE_CHANGE_53", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_53", action = "action_EVENT_GADGET_STATE_CHANGE_53" },
{ config_id = 1000054, name = "VARIABLE_CHANGE_54", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "", action = "action_EVENT_VARIABLE_CHANGE_54", trigger_count = 0 },
{ config_id = 1000055, name = "NONE_55", event = EventType.EVENT_NONE, source = "", condition = "", action = "action_EVENT_NONE_55" }
}
-- 变量
variables = {
{ config_id = 1, name = "State_Flag", value = 4, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 90, 91, 92, 93, 94, 95, 96 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_52", "GADGET_STATE_CHANGE_53", "VARIABLE_CHANGE_54", "NONE_55" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 91 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_52(context, evt)
if evt.param2 ~= defs.riddle_1 and evt.param2 ~= defs.riddle_2 and evt.param2 ~= defs.riddle_3 and evt.param2 ~= defs.riddle_4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_52(context, evt)
if evt.param1 == GadgetState.GearStart then
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
elseif evt.param1 == GadgetState.Default then
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_53(context, evt)
if evt.param1 ~= GadgetState.GearStart or evt.param2 ~= defs.riddle_hint then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_53(context, evt)
if 0 ~= ScriptLib.RemoveExtraGroupSuite(context, defs.group_id, 2) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_54(context, evt)
if evt.param1 == evt.param2 then return -1 end
local value = ScriptLib.GetGroupVariableValue(context, "State_Flag")
if value < 0 or value > 4 then
return -1
end
if value == 4 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.riddle_hint, GadgetState.Default)
elseif value == 3 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.riddle_hint, GadgetState.Action01)
elseif value == 2 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.riddle_hint, GadgetState.Action02)
elseif value == 1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.riddle_hint, GadgetState.Action03)
elseif value == 0 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.riddle_hint, GadgetState.GearStart)
end
return 0
end
-- 触发操作
function action_EVENT_NONE_55(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.riddle_hint) then
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 2)
end
local sum = 0
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.riddle_1) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.riddle_2) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.riddle_3) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.riddle_4) == GadgetState.GearStart then
sum = sum + 1
end
ScriptLib.SetGroupVariableValue(context, "State_Flag", sum)
return 0
end
@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 250008018
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 97, gadget_id = 70380001, pos = { x = 132.818, y = 3.575, z = -600.283 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 50008019 },
{ config_id = 98, gadget_id = 70380001, pos = { x = 132.440, y = 3.320, z = -608.887 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 50008020 },
{ config_id = 99, gadget_id = 70380001, pos = { x = 132.370, y = 3.513, z = -590.316 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 50008021 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 97, 98, 99 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,98 @@
-- 基础信息
local base_info = {
group_id = 250008022
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 108, gadget_id = 70330001, pos = { x = 91.579, y = 4.000, z = -679.402 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 109, gadget_id = 70330002, pos = { x = 69.845, y = 4.000, z = -680.645 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 110, gadget_id = 70320002, pos = { x = 77.825, y = 4.000, z = -683.575 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 111, gadget_id = 70211001, pos = { x = 98.614, y = 4.000, z = -679.344 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", showcutscene = true, isOneoff = true, persistent = true },
{ config_id = 112, gadget_id = 70330003, pos = { x = 69.035, y = 4.000, z = -700.818 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 113, gadget_id = 70330001, pos = { x = 91.923, y = 4.000, z = -700.670 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000058, name = "GADGET_STATE_CHANGE_58", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_58", action = "action_EVENT_GADGET_STATE_CHANGE_58", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 108, 109, 110, 112, 113 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_58" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_58(context, evt)
if 108 ~= evt.param2 or GadgetState.Action01 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_58(context, evt)
-- 创建id为111的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 111 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,259 @@
-- 基础信息
local base_info = {
group_id = 250008023
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 114, gadget_id = 70900303, pos = { x = -66.854, y = 6.377, z = -684.559 }, rot = { x = 0.000, y = 53.000, z = 0.000 }, level = 1 },
{ config_id = 115, gadget_id = 70211001, pos = { x = -61.975, y = 4.000, z = -686.800 }, rot = { x = 0.000, y = 320.386, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true },
{ config_id = 116, gadget_id = 70360001, pos = { x = -67.192, y = 5.767, z = -682.596 }, rot = { x = 0.000, y = 327.600, z = 0.000 }, level = 1 },
{ config_id = 117, gadget_id = 70360001, pos = { x = -61.384, y = 4.728, z = -692.237 }, rot = { x = 0.000, y = 327.600, z = 0.000 }, level = 1 },
{ config_id = 197, gadget_id = 70900310, pos = { x = -54.743, y = 4.000, z = -697.547 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000060, name = "TIMER_EVENT_60", event = EventType.EVENT_TIMER_EVENT, source = "SpawnChest", condition = "", action = "action_EVENT_TIMER_EVENT_60" },
{ config_id = 1000061, name = "GADGET_CREATE_61", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_61", action = "action_EVENT_GADGET_CREATE_61" },
{ config_id = 1000062, name = "SELECT_OPTION_62", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_62", action = "action_EVENT_SELECT_OPTION_62", trigger_count = 0, forbid_guest = false },
{ config_id = 1000063, name = "GADGET_CREATE_63", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_63", action = "action_EVENT_GADGET_CREATE_63" },
{ config_id = 1000064, name = "SELECT_OPTION_64", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_64", action = "action_EVENT_SELECT_OPTION_64", trigger_count = 0, forbid_guest = false },
{ config_id = 1000067, name = "GADGET_STATE_CHANGE_67", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_67", action = "action_EVENT_GADGET_STATE_CHANGE_67", trigger_count = 0 },
{ config_id = 1000128, name = "GADGET_STATE_CHANGE_128", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_128", action = "action_EVENT_GADGET_STATE_CHANGE_128" },
{ config_id = 1000129, name = "GADGET_STATE_CHANGE_129", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_129", action = "action_EVENT_GADGET_STATE_CHANGE_129", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 114, 116, 117, 197 },
regions = { },
triggers = { "TIMER_EVENT_60", "GADGET_CREATE_61", "SELECT_OPTION_62", "GADGET_CREATE_63", "SELECT_OPTION_64", "GADGET_STATE_CHANGE_67", "GADGET_STATE_CHANGE_128", "GADGET_STATE_CHANGE_129" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_TIMER_EVENT_60(context, evt)
-- 创建id为115的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 115 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 删除指定group 250008023 ;指定config116;物件身上指定option172
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250008023, 116, 172) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 250008023 ;指定config117;物件身上指定option172
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250008023, 117, 172) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_61(context, evt)
if 116 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_61(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250008023, 116, {172}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_62(context, evt)
-- 判断是gadgetid 116 option_id 172
if 116 ~= evt.param1 then
return false
end
if 172 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_62(context, evt)
-- 调用提示id为 500090101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 500090101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_63(context, evt)
if 117 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_63(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250008023, 117, {172}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_64(context, evt)
-- 判断是gadgetid 117 option_id 172
if 117 ~= evt.param1 then
return false
end
if 172 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_64(context, evt)
-- 调用提示id为 500090101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 500090101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_67(context, evt)
if 197 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_67(context, evt)
-- 将configid为 114 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 114, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_128(context, evt)
if 114 ~= evt.param2 or GadgetState.GearAction1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_128(context, evt)
-- 延迟1秒后,向groupId为:250008023的对象,请求一次调用,并将string参数:"SpawnChest" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250008023, "SpawnChest", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_129(context, evt)
if 197 ~= evt.param2 or GadgetState.GearStop ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_129(context, evt)
-- 将configid为 114 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 114, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 250008025
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 143, gadget_id = 70211001, pos = { x = 81.145, y = 4.000, z = -557.327 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 143 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 250008027
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8, monster_id = 21010201, pos = { x = 81.005, y = 4.000, z = -604.640 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 123, gadget_id = 70211012, pos = { x = 80.791, y = 4.000, z = -601.359 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000070, name = "ANY_MONSTER_DIE_70", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_70", action = "action_EVENT_ANY_MONSTER_DIE_70" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 8 },
gadgets = { 123 },
regions = { },
triggers = { "ANY_MONSTER_DIE_70" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_70(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_70(context, evt)
-- 将configid为 123 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 123, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 250008028
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 9, monster_id = 21010201, pos = { x = 81.405, y = 4.000, z = -649.206 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 124, gadget_id = 70211022, pos = { x = 81.362, y = 4.000, z = -645.930 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗高级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000071, name = "ANY_MONSTER_DIE_71", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_71", action = "action_EVENT_ANY_MONSTER_DIE_71" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 9 },
gadgets = { 124 },
regions = { },
triggers = { "ANY_MONSTER_DIE_71" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_71(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_71(context, evt)
-- 将configid为 124 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 124, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 250008029
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 10, monster_id = 20040101, pos = { x = -57.810, y = 5.275, z = -599.601 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 125, gadget_id = 70211031, pos = { x = -57.725, y = 4.000, z = -599.753 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗超级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000072, name = "ANY_MONSTER_DIE_72", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_72", action = "action_EVENT_ANY_MONSTER_DIE_72" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 10 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_72" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_72(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 250008029) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_72(context, evt)
-- 创建id为125的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 125 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,133 @@
-- 基础信息
local base_info = {
group_id = 250008031
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 127, gadget_id = 70900039, pos = { x = 146.522, y = 7.420, z = -561.216 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 142, gadget_id = 70220013, pos = { x = 136.188, y = 4.000, z = -562.795 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000077, name = "GADGET_STATE_CHANGE_77", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_77", action = "action_EVENT_GADGET_STATE_CHANGE_77", trigger_count = 0 },
{ config_id = 1000078, name = "TIMER_EVENT_78", event = EventType.EVENT_TIMER_EVENT, source = "START", condition = "", action = "action_EVENT_TIMER_EVENT_78", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 127, 142 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_77", "TIMER_EVENT_78" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_77(context, evt)
if 127 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_77(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250008033, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 延迟15秒后,向groupId为:250008031的对象,请求一次调用,并将string参数:"START" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250008031, "START", 15) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 创建id为142的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 142 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_78(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250008033, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将configid为 127 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 127, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,111 @@
-- 基础信息
local base_info = {
group_id = 250008033
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 128, gadget_id = 70900236, pos = { x = 125.535, y = 5.920, z = -548.070 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 130, gadget_id = 70900236, pos = { x = 144.703, y = 7.851, z = -558.509 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 131, gadget_id = 70900236, pos = { x = 143.162, y = 7.616, z = -558.437 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 132, gadget_id = 70900236, pos = { x = 140.892, y = 6.945, z = -557.353 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 133, gadget_id = 70900236, pos = { x = 139.189, y = 6.293, z = -556.233 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 134, gadget_id = 70710005, pos = { x = 132.083, y = -6.885, z = -556.127 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 135, gadget_id = 70900236, pos = { x = 135.139, y = 4.932, z = -550.922 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 136, gadget_id = 70900236, pos = { x = 137.849, y = 4.932, z = -554.248 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 137, gadget_id = 70900236, pos = { x = 130.235, y = 4.932, z = -547.765 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 138, gadget_id = 70900236, pos = { x = 121.689, y = 4.932, z = -548.999 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 139, gadget_id = 70900236, pos = { x = 117.303, y = 4.932, z = -550.053 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 140, gadget_id = 70900236, pos = { x = 104.518, y = 14.208, z = -555.108 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000079, name = "ANY_GADGET_DIE_79", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "", action = "action_EVENT_ANY_GADGET_DIE_79", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "num", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
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 = suite_2,
monsters = { },
gadgets = { 128, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140 },
regions = { },
triggers = { "ANY_GADGET_DIE_79" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_79(context, evt)
local c_num_1 = ScriptLib.GetGroupVariableValue(context, "num")
local c_num = c_num_1 +1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "num", c_num) then
return -1
end
if c_num == 11 then
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250008034, suite = 2 }) then
return -1
end
end
return 0
end
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 250008034
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 141, gadget_id = 70211001, pos = { x = 114.360, y = 4.000, z = -551.973 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
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 = suite_2,
monsters = { },
gadgets = { 141 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,162 @@
-- 基础信息
local base_info = {
group_id = 250008057
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 21, monster_id = 21010501, pos = { x = 224.654, y = 4.000, z = -32.713 }, rot = { x = 0.000, y = 338.200, z = 0.000 }, level = 1, disableWander = true, pose_id = 9013 },
{ config_id = 22, monster_id = 21010501, pos = { x = 220.976, y = 4.000, z = -31.908 }, rot = { x = 0.000, y = 20.800, z = 0.000 }, level = 1, disableWander = true, pose_id = 9013 },
{ config_id = 23, monster_id = 21010501, pos = { x = 217.765, y = 4.000, z = -31.399 }, rot = { x = 0.000, y = 16.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9013 },
{ config_id = 24, monster_id = 21010301, pos = { x = 216.075, y = 4.000, z = -35.996 }, rot = { x = 0.000, y = 48.200, z = 0.000 }, level = 1, disableWander = true, pose_id = 9003 },
{ config_id = 25, monster_id = 21010301, pos = { x = 223.190, y = 4.000, z = -37.783 }, rot = { x = 0.000, y = 18.200, z = 0.000 }, level = 1, disableWander = true, pose_id = 9003 },
{ config_id = 26, monster_id = 21010601, pos = { x = 234.608, y = 4.000, z = -45.308 }, rot = { x = 0.000, y = 32.300, z = 0.000 }, level = 1 },
{ config_id = 27, monster_id = 21010601, pos = { x = 224.994, y = 4.000, z = -46.339 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 28, monster_id = 21020101, pos = { x = 229.132, y = 4.000, z = -45.093 }, rot = { x = 0.000, y = 46.139, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 198, gadget_id = 70300077, pos = { x = 225.625, y = 4.000, z = -24.623 }, rot = { x = 0.000, y = 72.700, z = 0.000 }, level = 1 },
{ config_id = 199, gadget_id = 70220013, pos = { x = 225.766, y = 3.500, z = -24.313 }, rot = { x = 0.000, y = 328.271, z = 0.000 }, level = 1 },
{ config_id = 200, gadget_id = 70220013, pos = { x = 215.765, y = 4.000, z = -24.299 }, rot = { x = 0.000, y = 342.881, z = 0.000 }, level = 1 },
{ config_id = 202, gadget_id = 70300089, pos = { x = 216.298, y = 4.000, z = -34.522 }, rot = { x = 0.000, y = 99.863, z = 0.000 }, level = 1 },
{ config_id = 203, gadget_id = 70300089, pos = { x = 223.295, y = 4.000, z = -36.104 }, rot = { x = 0.000, y = 122.893, z = 0.000 }, level = 1 },
{ config_id = 225, gadget_id = 70300088, pos = { x = 223.308, y = 4.000, z = -24.584 }, rot = { x = 359.488, y = 97.150, z = 0.000 }, level = 1 },
{ config_id = 226, gadget_id = 70300088, pos = { x = 218.975, y = 4.000, z = -25.133 }, rot = { x = 0.000, y = 100.578, z = 0.000 }, level = 1 },
{ config_id = 227, gadget_id = 70300088, pos = { x = 213.410, y = 4.000, z = -24.992 }, rot = { x = 0.000, y = 61.702, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000130, name = "ANY_MONSTER_DIE_130", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_130", action = "action_EVENT_ANY_MONSTER_DIE_130" },
{ config_id = 1000131, name = "ANY_MONSTER_LIVE_131", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_131", action = "action_EVENT_ANY_MONSTER_LIVE_131" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 21, 22, 23, 24, 25 },
gadgets = { 198, 199, 200, 202, 203, 225, 226, 227 },
regions = { },
triggers = { "ANY_MONSTER_DIE_130", "ANY_MONSTER_LIVE_131" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_130(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_130(context, evt)
-- 延迟3秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 27, delay_time = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟3秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 28, delay_time = 3 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟3秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 26, 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_131(context, evt)
if 1644 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_131(context, evt)
-- 通知groupid为57中,configid为:28的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 28, 57) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为57中,configid为:26的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 26, 57) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
-- 通知groupid为57中,configid为:27的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 27, 57) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
@@ -0,0 +1,187 @@
-- 基础信息
local base_info = {
group_id = 250008077
}
-- Trigger变量
local defs = {
group_id = 250008077,
gadget_riddle_hint = 309,
gadget_riddle_1 = 311,
gadget_riddle_2 = 312,
gadget_riddle_3 = 313,
gadget_riddle_4 = 314
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 309, gadget_id = 70220029, pos = { x = 16.740, y = 3.790, z = -63.067 }, rot = { x = 0.000, y = 190.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 310, gadget_id = 70220030, pos = { x = 16.740, y = 3.290, z = -63.067 }, rot = { x = 0.000, y = 182.700, z = 0.000 }, level = 1 },
{ config_id = 311, gadget_id = 70220031, pos = { x = 15.140, y = 3.590, z = -74.167 }, rot = { x = 0.000, y = 276.100, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true },
{ config_id = 312, gadget_id = 70220031, pos = { x = 3.040, y = 3.490, z = -59.867 }, rot = { x = 0.000, y = 317.500, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true },
{ config_id = 313, gadget_id = 70220031, pos = { x = 19.040, y = 3.190, z = -53.067 }, rot = { x = 0.000, y = 257.600, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true },
{ config_id = 314, gadget_id = 70220031, pos = { x = 29.840, y = 3.090, z = -65.467 }, rot = { x = 0.000, y = 14.100, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true },
{ config_id = 315, gadget_id = 70211111, pos = { x = 17.340, y = 3.990, z = -62.967 }, rot = { x = 0.000, y = 270.400, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000215, name = "GADGET_STATE_CHANGE_215", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_215", action = "action_EVENT_GADGET_STATE_CHANGE_215", trigger_count = 0 },
{ config_id = 1000216, name = "GADGET_STATE_CHANGE_216", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_216", action = "action_EVENT_GADGET_STATE_CHANGE_216" },
{ config_id = 1000217, name = "VARIABLE_CHANGE_217", event = EventType.EVENT_VARIABLE_CHANGE, source = "State_Flag", condition = "", action = "action_EVENT_VARIABLE_CHANGE_217", trigger_count = 0 },
{ config_id = 1000218, name = "GROUP_LOAD_218", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_218" }
}
-- 变量
variables = {
{ config_id = 1, name = "State_Flag", value = 4, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 309, 310, 311, 312, 313, 314, 315 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_215", "GADGET_STATE_CHANGE_216", "VARIABLE_CHANGE_217", "GROUP_LOAD_218" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 310 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_215(context, evt)
if evt.param2 ~= defs.gadget_riddle_1 and evt.param2 ~= defs.gadget_riddle_2 and evt.param2 ~= defs.gadget_riddle_3 and evt.param2 ~= defs.gadget_riddle_4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_215(context, evt)
if evt.param1 == GadgetState.GearStart then
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
elseif evt.param1 == GadgetState.Default then
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
if 0 == ScriptLib.GetCurTriggerCount(context) then
ScriptLib.MarkPlayerAction(context, 1003, 1, 1)
end
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_216(context, evt)
if evt.param1 ~= GadgetState.GearStart or evt.param2 ~= defs.gadget_riddle_hint then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_216(context, evt)
if 0 ~= ScriptLib.RemoveExtraGroupSuite(context, defs.group_id, 2) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_217(context, evt)
if evt.param1 == evt.param2 then return -1 end
local value = ScriptLib.GetGroupVariableValue(context, "State_Flag")
if value < 0 or value > 4 then
return -1
end
if value == 4 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Default)
elseif value == 3 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Action01)
ScriptLib.MarkPlayerAction(context, 1003, 2, 2)
elseif value == 2 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Action02)
ScriptLib.MarkPlayerAction(context, 1003, 2, 3)
elseif value == 1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Action03)
ScriptLib.MarkPlayerAction(context, 1003, 2, 4)
elseif value == 0 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.GearStart)
ScriptLib.MarkPlayerAction(context, 1003, 3, 5)
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_218(context, evt)
if GadgetState.GearStart ~= ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint) then
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 2)
end
local sum = 0
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4) == GadgetState.GearStart then
sum = sum + 1
end
ScriptLib.SetGroupVariableValue(context, "State_Flag", sum)
return 0
end
@@ -0,0 +1,170 @@
-- 基础信息
local base_info = {
group_id = 250008078
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 52, monster_id = 20011001, pos = { x = -48.716, y = 4.000, z = -554.730 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 53, monster_id = 20011001, pos = { x = -47.216, y = 4.000, z = -556.530 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 54, monster_id = 20011001, pos = { x = -50.316, y = 4.000, z = -557.931 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 316, gadget_id = 70211102, pos = { x = -48.696, y = 4.000, z = -556.852 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 219, shape = RegionShape.SPHERE, radius = 5, pos = { x = -48.593, y = 4.693, z = -556.711 } }
}
-- 触发器
triggers = {
{ config_id = 1000219, name = "ENTER_REGION_219", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_219", action = "action_EVENT_ENTER_REGION_219", forbid_guest = false },
{ config_id = 1000220, name = "ANY_MONSTER_DIE_220", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_220", action = "action_EVENT_ANY_MONSTER_DIE_220" },
{ config_id = 1000221, name = "GADGET_CREATE_221", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_221", action = "action_EVENT_GADGET_CREATE_221", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 316 },
regions = { 219 },
triggers = { "ENTER_REGION_219", "GADGET_CREATE_221" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 52, 53, 54 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_220" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_219(context, evt)
if evt.param1 ~= 219 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_219(context, evt)
-- 将configid为 316 的物件更改为状态 GadgetState.ChestLocked
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 316, GadgetState.ChestLocked) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250008078, 2)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1002, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_220(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_220(context, evt)
-- 将configid为 316 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 316, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1002, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_221(context, evt)
if 316 ~= evt.param1 or GadgetState.ChestLocked ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_221(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250008078, 2)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1002, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 250008084
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 58, monster_id = 22010101, pos = { x = 218.369, y = 4.000, z = -70.306 }, rot = { x = 0.000, y = 58.300, z = 0.000 }, level = 1, affix = { 1008, 1010, 1018 }, isElite = true },
{ config_id = 59, monster_id = 21010601, pos = { x = 226.199, y = 4.000, z = -69.538 }, rot = { x = 0.000, y = 253.200, z = 0.000 }, level = 1, affix = { 1008, 1009, 1018 }, isElite = true },
{ config_id = 60, monster_id = 21010201, pos = { x = 224.935, y = 4.000, z = -65.913 }, rot = { x = 0.000, y = 235.500, z = 0.000 }, level = 1, affix = { 1008, 1010, 1018 }, isElite = true },
{ config_id = 61, monster_id = 21010201, pos = { x = 219.765, y = 4.000, z = -65.410 }, rot = { x = 0.000, y = 223.400, z = 0.000 }, level = 1, affix = { 1008, 1010, 1018 }, isElite = true },
{ config_id = 62, monster_id = 21010601, pos = { x = 220.210, y = 4.000, z = -73.288 }, rot = { x = 0.000, y = 359.900, z = 0.000 }, level = 1, affix = { 1010, 1018 }, isElite = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 332, gadget_id = 70300107, pos = { x = 222.388, y = 4.000, z = -69.999 }, rot = { x = 0.000, y = 323.700, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 333, gadget_id = 70220013, pos = { x = 219.016, y = 4.000, z = -80.721 }, rot = { x = 0.000, y = 71.300, z = 0.000 }, level = 1 },
{ config_id = 334, gadget_id = 70220013, pos = { x = 224.316, y = 4.000, z = -78.121 }, rot = { x = 0.000, y = 329.200, z = 0.000 }, level = 1 },
{ config_id = 335, gadget_id = 70220014, pos = { x = 225.325, y = 4.000, z = -76.993 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 336, gadget_id = 70220014, pos = { x = 226.346, y = 4.000, z = -76.656 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 58, 59, 60, 61, 62 },
gadgets = { 332, 333, 334, 335, 336 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,163 @@
-- 基础信息
local base_info = {
group_id = 250008085
}
-- Trigger变量
local defs = {
group_id = 250008085,
gadget_riddle_hint = 338,
gadget_riddle_1 = 340,
gadget_riddle_2 = 341,
gadget_riddle_3 = 342,
gadget_riddle_4 = 343,
gadget_chest = 344
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 338, gadget_id = 70310012, pos = { x = 215.764, y = 4.000, z = -249.402 }, rot = { x = 0.000, y = 190.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 340, gadget_id = 70310011, pos = { x = 214.234, y = 4.000, z = -260.129 }, rot = { x = 0.000, y = 276.100, z = 0.000 }, level = 1, persistent = true },
{ config_id = 341, gadget_id = 70310011, pos = { x = 232.886, y = 4.000, z = -249.800 }, rot = { x = 0.000, y = 317.500, z = 0.000 }, level = 1, persistent = true },
{ config_id = 342, gadget_id = 70310011, pos = { x = 229.391, y = 4.000, z = -241.335 }, rot = { x = 0.000, y = 257.600, z = 0.000 }, level = 1, persistent = true },
{ config_id = 343, gadget_id = 70310011, pos = { x = 227.870, y = 4.000, z = -236.978 }, rot = { x = 0.000, y = 14.100, z = 0.000 }, level = 1, persistent = true },
{ config_id = 344, gadget_id = 70211111, pos = { x = 215.709, y = 4.449, z = -249.369 }, rot = { x = 0.000, y = 270.400, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000240, name = "GADGET_STATE_CHANGE_240", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_240", action = "action_EVENT_GADGET_STATE_CHANGE_240", trigger_count = 0 },
{ config_id = 1000242, name = "VARIABLE_CHANGE_242", event = EventType.EVENT_VARIABLE_CHANGE, source = "State_Flag", condition = "condition_EVENT_VARIABLE_CHANGE_242", action = "action_EVENT_VARIABLE_CHANGE_242", trigger_count = 0 },
{ config_id = 1000243, name = "GROUP_LOAD_243", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_243" }
}
-- 变量
variables = {
{ config_id = 1, name = "State_Flag", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 338, 340, 341, 342, 343, 344 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_240", "VARIABLE_CHANGE_242", "GROUP_LOAD_243" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_240(context, evt)
if evt.param2 ~= defs.gadget_riddle_1 and evt.param2 ~= defs.gadget_riddle_2 and evt.param2 ~= defs.gadget_riddle_3 and evt.param2 ~= defs.gadget_riddle_4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_240(context, evt)
if evt.param1 == GadgetState.GearStart then
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
if 0 == ScriptLib.GetCurTriggerCount(context) then
ScriptLib.MarkPlayerAction(context, 1003, 1, 1)
end
elseif evt.param1 == GadgetState.Default then
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_242(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 < 0 or evt.param1 > 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_242(context, evt)
if evt.param1 == 0 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Default)
elseif evt.param1 == 1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Action01)
ScriptLib.MarkPlayerAction(context, 1003, 2, 2)
elseif evt.param1 == 2 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Action02)
ScriptLib.MarkPlayerAction(context, 1003, 2, 3)
elseif evt.param1 == 3 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Action03)
ScriptLib.MarkPlayerAction(context, 1003, 2, 4)
elseif evt.param1 == 4 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.GearStart)
ScriptLib.MarkPlayerAction(context, 1003, 3, 5)
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_chest, GadgetState.Default)
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_243(context, evt)
local sum = 0
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4) == GadgetState.GearStart then
sum = sum + 1
end
ScriptLib.SetGroupVariableValue(context, "State_Flag", sum)
return 0
end
@@ -0,0 +1,229 @@
-- 基础信息
local base_info = {
group_id = 250008090
}
-- Trigger变量
local defs = {
group_id = 250008090,
gadget_target_1S = 90002,
gadget_target_1E = 90005,
gadget_target_2S = 90003,
gadget_target_2E = 90006,
gadget_target_3S = 90004,
gadget_target_3E = 90007
}
-- DEFS_MISCS
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 90001, gadget_id = 70360008, pos = { x = 221.531, y = 4.000, z = -515.527 }, rot = { x = 0.000, y = 268.800, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 90002, gadget_id = 70360011, pos = { x = 214.831, y = 9.696, z = -514.527 }, rot = { x = 0.000, y = 302.600, z = 0.000 }, level = 1, mark_flag = 2 },
{ config_id = 90003, gadget_id = 70360011, pos = { x = 224.931, y = 9.820, z = -515.427 }, rot = { x = 0.000, y = 240.700, z = 0.000 }, level = 1, mark_flag = 4 },
{ config_id = 90004, gadget_id = 70360011, pos = { x = 226.431, y = 9.778, z = -519.127 }, rot = { x = 0.000, y = 136.900, z = 0.000 }, level = 1, mark_flag = 8 },
{ config_id = 90005, gadget_id = 70360014, pos = { x = 214.831, y = 9.696, z = -514.527 }, rot = { x = 0.000, y = 187.800, z = 0.000 }, level = 1, route_id = 50008062 },
{ config_id = 90006, gadget_id = 70360014, pos = { x = 224.931, y = 9.820, z = -515.327 }, rot = { x = 0.000, y = 287.700, z = 0.000 }, level = 1, route_id = 50008063 },
{ config_id = 90007, gadget_id = 70360014, pos = { x = 226.431, y = 9.778, z = -519.127 }, rot = { x = 0.000, y = 299.100, z = 0.000 }, level = 1, route_id = 50008042 },
{ config_id = 90008, gadget_id = 70211111, pos = { x = 221.497, y = 4.000, z = -516.960 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1090009, name = "ANY_GADGET_DIE_90009", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "", action = "action_EVENT_ANY_GADGET_DIE_90009", trigger_count = 0 },
{ config_id = 1090011, name = "VARIABLE_CHANGE_90011", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_90011", action = "action_EVENT_VARIABLE_CHANGE_90011" },
{ config_id = 1090012, name = "GADGET_STATE_CHANGE_90012", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_90012", action = "action_EVENT_GADGET_STATE_CHANGE_90012", trigger_count = 0 },
{ config_id = 1090013, name = "GADGET_CREATE_90013", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_90013", action = "action_EVENT_GADGET_CREATE_90013", trigger_count = 0 },
{ config_id = 1090014, name = "SELECT_OPTION_90014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_90014", action = "action_EVENT_SELECT_OPTION_90014", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
{ config_id = 1, name = "count", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 90001, 90002, 90003, 90004 },
regions = { },
triggers = { "ANY_GADGET_DIE_90009", "VARIABLE_CHANGE_90011", "GADGET_STATE_CHANGE_90012", "GADGET_CREATE_90013", "SELECT_OPTION_90014" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 90001, 90008 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_90009(context, evt)
if evt.param1 == defs.gadget_target_1S then
ScriptLib.CreateGadget(context, { config_id = defs.gadget_target_1E })
elseif evt.param1 == defs.gadget_target_2S then
ScriptLib.CreateGadget(context, { config_id = defs.gadget_target_2E })
elseif evt.param1 == defs.gadget_target_3S then
ScriptLib.CreateGadget(context, { config_id = defs.gadget_target_3E })
elseif evt.param1 == defs.gadget_target_1E or evt.param1 == defs.gadget_target_2E or evt.param1 == defs.gadget_target_3E then
ScriptLib.ChangeGroupVariableValue(context, "count", 1)
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_90011(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"count"为3
if ScriptLib.GetGroupVariableValue(context, "count") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_90011(context, evt)
-- 将configid为 90001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 90001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 250008090, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2008, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_90012(context, evt)
if 90001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_90012(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2008, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 删除指定group 250008090 ;指定config90001;物件身上指定option171
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250008090, 90001, 171) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_90013(context, evt)
if 90001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_90013(context, evt)
-- 将configid为 90001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 90001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250008090, 90001, {171}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_90014(context, evt)
if 90001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_90014(context, evt)
-- 将configid为 90001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 90001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,781 @@
-- 基础信息
local base_info = {
group_id = 250008091
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 368, gadget_id = 70710006, pos = { x = 103.924, y = 4.000, z = -312.796 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 369, gadget_id = 70710003, pos = { x = 104.057, y = 4.000, z = -330.414 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 50008045 },
{ config_id = 370, gadget_id = 70710007, pos = { x = 103.881, y = 4.000, z = -317.372 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 371, gadget_id = 70211001, pos = { x = 103.984, y = 5.082, z = -312.846 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true },
{ config_id = 372, gadget_id = 70710006, pos = { x = 108.153, y = 4.000, z = -308.378 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 373, gadget_id = 70710003, pos = { x = 123.761, y = 4.000, z = -308.895 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 50008047 },
{ config_id = 374, gadget_id = 70710007, pos = { x = 112.318, y = 4.000, z = -308.320 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 375, gadget_id = 70211001, pos = { x = 108.190, y = 5.238, z = -308.445 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true },
{ config_id = 376, gadget_id = 70710006, pos = { x = 103.894, y = 4.000, z = -304.172 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 377, gadget_id = 70710003, pos = { x = 103.791, y = 4.000, z = -288.800 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 50008050 },
{ config_id = 378, gadget_id = 70710007, pos = { x = 103.796, y = 4.000, z = -299.730 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 379, gadget_id = 70211001, pos = { x = 108.190, y = 5.238, z = -308.445 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true },
{ config_id = 380, gadget_id = 70710006, pos = { x = 99.768, y = 4.000, z = -308.267 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 381, gadget_id = 70710003, pos = { x = 87.151, y = 4.000, z = -307.968 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 50008052 },
{ config_id = 382, gadget_id = 70710007, pos = { x = 95.755, y = 4.000, z = -308.176 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 383, gadget_id = 70211001, pos = { x = 108.190, y = 5.238, z = -308.445 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 265, shape = RegionShape.SPHERE, radius = 5, pos = { x = 104.220, y = 4.000, z = -330.537 } },
{ config_id = 269, shape = RegionShape.SPHERE, radius = 5, pos = { x = 123.858, y = 4.000, z = -308.867 } },
{ config_id = 273, shape = RegionShape.SPHERE, radius = 5, pos = { x = 103.744, y = 4.000, z = -288.932 } },
{ config_id = 277, shape = RegionShape.SPHERE, radius = 5, pos = { x = 87.070, y = 4.000, z = -307.981 } }
}
-- 触发器
triggers = {
{ config_id = 1000262, name = "PLATFORM_REACH_POINT_262", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_262", action = "action_EVENT_PLATFORM_REACH_POINT_262", trigger_count = 0 },
{ config_id = 1000263, name = "AVATAR_NEAR_PLATFORM_263", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_263", action = "action_EVENT_AVATAR_NEAR_PLATFORM_263", trigger_count = 0, forbid_guest = false },
{ config_id = 1000264, name = "AVATAR_NEAR_PLATFORM_264", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_264", action = "action_EVENT_AVATAR_NEAR_PLATFORM_264", trigger_count = 0, forbid_guest = false },
{ config_id = 1000265, name = "ENTER_REGION_265", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_265", action = "action_EVENT_ENTER_REGION_265", trigger_count = 0, forbid_guest = false },
{ config_id = 1000266, name = "PLATFORM_REACH_POINT_266", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_266", action = "action_EVENT_PLATFORM_REACH_POINT_266", trigger_count = 0 },
{ config_id = 1000267, name = "AVATAR_NEAR_PLATFORM_267", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_267", action = "action_EVENT_AVATAR_NEAR_PLATFORM_267", trigger_count = 0, forbid_guest = false },
{ config_id = 1000268, name = "AVATAR_NEAR_PLATFORM_268", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_268", action = "action_EVENT_AVATAR_NEAR_PLATFORM_268", trigger_count = 0, forbid_guest = false },
{ config_id = 1000269, name = "ENTER_REGION_269", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_269", action = "action_EVENT_ENTER_REGION_269", trigger_count = 0, forbid_guest = false },
{ config_id = 1000270, name = "PLATFORM_REACH_POINT_270", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_270", action = "action_EVENT_PLATFORM_REACH_POINT_270", trigger_count = 0 },
{ config_id = 1000271, name = "AVATAR_NEAR_PLATFORM_271", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_271", action = "action_EVENT_AVATAR_NEAR_PLATFORM_271", trigger_count = 0, forbid_guest = false },
{ config_id = 1000272, name = "AVATAR_NEAR_PLATFORM_272", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_272", action = "action_EVENT_AVATAR_NEAR_PLATFORM_272", trigger_count = 0, forbid_guest = false },
{ config_id = 1000273, name = "ENTER_REGION_273", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_273", action = "action_EVENT_ENTER_REGION_273", trigger_count = 0, forbid_guest = false },
{ config_id = 1000274, name = "PLATFORM_REACH_POINT_274", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_274", action = "action_EVENT_PLATFORM_REACH_POINT_274", trigger_count = 0 },
{ config_id = 1000275, name = "AVATAR_NEAR_PLATFORM_275", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_275", action = "action_EVENT_AVATAR_NEAR_PLATFORM_275", trigger_count = 0, forbid_guest = false },
{ config_id = 1000276, name = "AVATAR_NEAR_PLATFORM_276", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_276", action = "action_EVENT_AVATAR_NEAR_PLATFORM_276", trigger_count = 0, forbid_guest = false },
{ config_id = 1000277, name = "ENTER_REGION_277", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_277", action = "action_EVENT_ENTER_REGION_277", trigger_count = 0, forbid_guest = false },
{ config_id = 1000278, name = "VARIABLE_CHANGE_278", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_278", action = "action_EVENT_VARIABLE_CHANGE_278", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "solved", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 368, 369, 370, 372, 373, 374, 376, 377, 378, 380, 381, 382 },
regions = { 265, 269, 273, 277 },
triggers = { "PLATFORM_REACH_POINT_262", "AVATAR_NEAR_PLATFORM_263", "AVATAR_NEAR_PLATFORM_264", "ENTER_REGION_265", "PLATFORM_REACH_POINT_266", "AVATAR_NEAR_PLATFORM_267", "AVATAR_NEAR_PLATFORM_268", "ENTER_REGION_269", "PLATFORM_REACH_POINT_270", "AVATAR_NEAR_PLATFORM_271", "AVATAR_NEAR_PLATFORM_272", "ENTER_REGION_273", "PLATFORM_REACH_POINT_274", "AVATAR_NEAR_PLATFORM_275", "AVATAR_NEAR_PLATFORM_276", "ENTER_REGION_277", "VARIABLE_CHANGE_278" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 368, 371, 372, 375, 376, 379, 380, 383 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_262(context, evt)
-- 判断是gadgetid 为 369的移动平台,是否到达了50008046 的路线中的 3 点
if 369 ~= evt.param1 then
return false
end
if 50008046 ~= evt.param2 then
return false
end
if 3 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_262(context, evt)
-- 将configid为 368 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 368, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 250008091, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 369 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 3, 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_263(context, evt)
-- 判断是gadgetid 为 369的移动平台,是否到达了50008046 的路线中的 1 点
if 369 ~= evt.param1 then
return false
end
if 50008046 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_263(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 369) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 2, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_264(context, evt)
-- 判断是gadgetid 为 369的移动平台,是否到达了50008046 的路线中的 2 点
if 369 ~= evt.param1 then
return false
end
if 50008046 ~= evt.param2 then
return false
end
if 2 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_264(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 369) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 2, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_265(context, evt)
if evt.param1 ~= 265 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_265(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 369, 50008046) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 370 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_266(context, evt)
-- 判断是gadgetid 为 373的移动平台,是否到达了50008048 的路线中的 3 点
if 373 ~= evt.param1 then
return false
end
if 50008048 ~= evt.param2 then
return false
end
if 3 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_266(context, evt)
-- 将configid为 372 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 372, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 250008091, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 373 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 3, 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_267(context, evt)
-- 判断是gadgetid 为 373的移动平台,是否到达了50008048 的路线中的 1 点
if 373 ~= evt.param1 then
return false
end
if 50008048 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_267(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 373) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 2, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_268(context, evt)
-- 判断是gadgetid 为 373的移动平台,是否到达了50008048 的路线中的 2 点
if 373 ~= evt.param1 then
return false
end
if 50008048 ~= evt.param2 then
return false
end
if 2 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_268(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 373) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 2, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_269(context, evt)
if evt.param1 ~= 269 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_269(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 373, 50008048) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 374 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_270(context, evt)
-- 判断是gadgetid 为 377的移动平台,是否到达了50008049 的路线中的 3 点
if 377 ~= evt.param1 then
return false
end
if 50008049 ~= evt.param2 then
return false
end
if 3 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_270(context, evt)
-- 将configid为 376 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 376, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 250008091, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 377 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 3, 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_271(context, evt)
-- 判断是gadgetid 为 377的移动平台,是否到达了50008049 的路线中的 1 点
if 377 ~= evt.param1 then
return false
end
if 50008049 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_271(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 369) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 2, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_272(context, evt)
-- 判断是gadgetid 为 377的移动平台,是否到达了50008049 的路线中的 2 点
if 377 ~= evt.param1 then
return false
end
if 50008049 ~= evt.param2 then
return false
end
if 2 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_272(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 369) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 2, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_273(context, evt)
if evt.param1 ~= 273 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_273(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 377, 50008049) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 378 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_274(context, evt)
-- 判断是gadgetid 为 381的移动平台,是否到达了50008051 的路线中的 3 点
if 381 ~= evt.param1 then
return false
end
if 50008051 ~= evt.param2 then
return false
end
if 3 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_274(context, evt)
-- 将configid为 380 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 380, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 250008091, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 381 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 3, 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_275(context, evt)
-- 判断是gadgetid 为 381的移动平台,是否到达了50008051 的路线中的 1 点
if 381 ~= evt.param1 then
return false
end
if 50008051 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_275(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 381) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 2, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_276(context, evt)
-- 判断是gadgetid 为 381的移动平台,是否到达了50008051 的路线中的 2 点
if 381 ~= evt.param1 then
return false
end
if 50008051 ~= evt.param2 then
return false
end
if 2 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_276(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 381) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 2, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_277(context, evt)
if evt.param1 ~= 277 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_277(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 381, 50008051) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 382 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_278(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"solved"为4
if ScriptLib.GetGroupVariableValue(context, "solved") ~= 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_278(context, evt)
-- 创建id为0的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,129 @@
-- 基础信息
local base_info = {
group_id = 250008094
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 64, monster_id = 20010901, pos = { x = -40.324, y = 4.000, z = -647.047 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 391, gadget_id = 70900288, pos = { x = -40.324, y = 4.000, z = -647.047 }, rot = { x = 0.000, y = 319.800, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1 },
{ config_id = 392, gadget_id = 70211101, pos = { x = -40.124, y = 4.000, z = -644.347 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000286, name = "GADGET_STATE_CHANGE_286", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_286", action = "action_EVENT_GADGET_STATE_CHANGE_286" },
{ config_id = 1000287, name = "ANY_MONSTER_DIE_287", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_287", action = "action_EVENT_ANY_MONSTER_DIE_287" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 391 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_286", "ANY_MONSTER_DIE_287" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_286(context, evt)
if 391 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_286(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 64, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2002, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_287(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_287(context, evt)
-- 创建id为392的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 392 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2002, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
@@ -0,0 +1,145 @@
-- 基础信息
local base_info = {
group_id = 250008095
}
-- Trigger变量
local defs = {
father_quest = 20020
}
-- DEFS_MISCS
defs.quest_id = defs.father_quest.."03"
--defs.quest_progress = defs.quest_id.."_visionPuzzle"
defs.quest_progress = "VisionRiddle"
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 393, gadget_id = 70800013, pos = { x = 216.150, y = 9.210, z = -200.903 }, rot = { x = 18.720, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 394, gadget_id = 70800014, pos = { x = 212.730, y = 4.817, z = -194.340 }, rot = { x = 18.080, y = 330.000, z = 0.000 }, level = 1 },
{ config_id = 395, gadget_id = 70800014, pos = { x = 223.890, y = -2.200, z = -200.607 }, rot = { x = 8.900, y = 35.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 288, shape = RegionShape.SPHERE, radius = 15, pos = { x = 216.120, y = 9.210, z = -212.098 } },
{ config_id = 95001, shape = RegionShape.SPHERE, radius = 40, pos = { x = 217.649, y = 9.210, z = -206.305 } }
}
-- 触发器
triggers = {
{ config_id = 1000288, name = "ENTER_REGION_288", event = EventType.EVENT_ENTER_REGION, source = "0", condition = "condition_EVENT_ENTER_REGION_288", action = "action_EVENT_ENTER_REGION_288", trigger_count = 0 },
{ config_id = 1095001, name = "ENTER_REGION_95001", event = EventType.EVENT_ENTER_REGION, source = "0", condition = "condition_EVENT_ENTER_REGION_95001", action = "action_EVENT_ENTER_REGION_95001", trigger_count = 0 },
{ config_id = 1095002, name = "QUEST_FINISH_95002", event = EventType.EVENT_QUEST_FINISH, source = defs.quest_id, condition = "", action = "action_EVENT_QUEST_FINISH_95002", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 393, 394, 395 },
regions = { 288, 95001 },
triggers = { "ENTER_REGION_288", "ENTER_REGION_95001", "QUEST_FINISH_95002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_288(context, evt)
if evt.param1 ~= 288 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_288(context, evt)
-- 将configid为 393 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 393, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_95001(context, evt)
if evt.param1 ~= 95001 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_95001(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, defs.quest_progress) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_FINISH_95002(context, evt)
-- 将configid为 393 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 393, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,158 @@
-- 基础信息
local base_info = {
group_id = 250008096
}
-- Trigger变量
local defs = {
max_gear = 4,
timer = 10,
group_id = 250008096,
gadget_1 = 396,
gadget_2 = 397,
gadget_3 = 398,
gadget_4 = 400,
gadget_chest = 399
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 396, gadget_id = 70900008, pos = { x = 209.287, y = 4.000, z = -472.246 }, rot = { x = 0.000, y = 330.800, z = 0.000 }, level = 1, persistent = true },
{ config_id = 397, gadget_id = 70900008, pos = { x = 219.587, y = 4.000, z = -467.446 }, rot = { x = 0.000, y = 329.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 398, gadget_id = 70900008, pos = { x = 212.387, y = 4.000, z = -465.246 }, rot = { x = 0.000, y = 59.100, z = 0.000 }, level = 1, persistent = true },
{ config_id = 399, gadget_id = 70211111, pos = { x = 214.587, y = 4.000, z = -469.546 }, rot = { x = 0.000, y = 330.500, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", showcutscene = true, isOneoff = true, persistent = true },
{ config_id = 400, gadget_id = 70900008, pos = { x = 216.387, y = 4.000, z = -474.146 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000289, name = "GADGET_STATE_CHANGE_289", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_289", action = "action_EVENT_GADGET_STATE_CHANGE_289", trigger_count = 0 },
{ config_id = 1000290, name = "TIMER_EVENT_290", event = EventType.EVENT_TIMER_EVENT, source = "", condition = "condition_EVENT_TIMER_EVENT_290", action = "action_EVENT_TIMER_EVENT_290", trigger_count = 0 },
{ config_id = 1000291, name = "VARIABLE_CHANGE_291", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_291", action = "action_EVENT_VARIABLE_CHANGE_291", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "active_count", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 396, 397, 398, 400 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_289", "TIMER_EVENT_290", "VARIABLE_CHANGE_291" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_289(context, evt)
if defs.gadget_1 ~= evt.param2 and defs.gadget_2 ~= evt.param2 and defs.gadget_3 ~= evt.param2 and defs.gadget_4 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_289(context, evt)
if 0 == ScriptLib.GetGroupVariableValue(context, "active_count") then
ScriptLib.MarkPlayerAction(context, 1001, 1, 1)
end
if evt.param1 == GadgetState.Default then
ScriptLib.ChangeGroupVariableValue(context, "active_count", -1)
elseif evt.param1 == GadgetState.GearStart then
ScriptLib.ChangeGroupVariableValue(context, "active_count", 1)
ScriptLib.CreateGroupTimerEvent(context, defs.group_id, tostring(evt.param2), defs.timer)
else
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_290(context, evt)
if evt.source_name ~= tostring(defs.gadget_1) and evt.source_name ~= tostring(defs.gadget_2) and evt.source_name ~= tostring(defs.gadget_3) and evt.source_name ~= tostring(defs.gadget_4) then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_290(context, evt)
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, tonumber(evt.source_name), GadgetState.Default) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_291(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == -1 then
ScriptLib.MarkPlayerAction(context, 1001, 4, 1)
end
if evt.param1 ~= defs.max_gear then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_291(context, evt)
ScriptLib.CancelGroupTimerEvent(context, defs.group_id, tostring(defs.gadget_1))
ScriptLib.CancelGroupTimerEvent(context, defs.group_id, tostring(defs.gadget_2))
ScriptLib.CancelGroupTimerEvent(context, defs.group_id, tostring(defs.gadget_3))
ScriptLib.CancelGroupTimerEvent(context, defs.group_id, tostring(defs.gadget_4))
if ScriptLib.CreateGadget(context, { config_id = defs.gadget_chest }) ~= 0 then
return -1
end
ScriptLib.MarkPlayerAction(context, 1001, 3, 1)
return 0
end
@@ -0,0 +1,137 @@
-- 基础信息
local base_info = {
group_id = 250008098
}
-- Trigger变量
local defs = {
gadget_id = 410
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 407, gadget_id = 70310001, pos = { x = -67.829, y = 4.000, z = -471.202 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 408, gadget_id = 70310001, pos = { x = -68.245, y = 4.000, z = -469.327 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 409, gadget_id = 70310001, pos = { x = -69.245, y = 4.000, z = -467.173 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 410, gadget_id = 70211111, pos = { x = -65.296, y = 4.000, z = -468.018 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000296, name = "GADGET_STATE_CHANGE_296", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_296", action = "action_EVENT_GADGET_STATE_CHANGE_296", trigger_count = 0 },
{ config_id = 1098001, name = "GADGET_STATE_CHANGE_98001", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_98001" },
{ config_id = 1098002, name = "GADGET_CREATE_98002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_98002", action = "action_EVENT_GADGET_CREATE_98002" }
}
-- 变量
variables = {
{ config_id = 1, name = "start", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 407, 408, 409 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_296", "GADGET_STATE_CHANGE_98001", "GADGET_CREATE_98002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_296(context, evt)
if ScriptLib.GetGroupVariableValue(context, "start") == #suites[1].gadgets then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_296(context, evt)
if evt.param1 == GadgetState.GearStart then
ScriptLib.ChangeGroupVariableValue(context,"start",1)
elseif evt.param1 == GadgetState.Default then
ScriptLib.ChangeGroupVariableValue(context,"start",-1)
end
if ScriptLib.GetGroupVariableValue(context, "start") == #suites[1].gadgets then
ScriptLib.CreateGadget(context, { config_id = defs.gadget_id })
end
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_98001(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1008, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_98002(context, evt)
if defs.gadget_id ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_98002(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1008, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
@@ -0,0 +1,125 @@
-- 基础信息
local base_info = {
group_id = 250008104
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 104001, gadget_id = 70360025, pos = { x = -27.000, y = 3.985, z = -424.100 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 104003, gadget_id = 70220005, pos = { x = -17.600, y = 3.500, z = -424.100 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 104004, gadget_id = 70220005, pos = { x = -17.600, y = 4.000, z = -402.300 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 104005, gadget_id = 70360024, pos = { x = -27.000, y = 3.985, z = -402.310 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 104002, shape = RegionShape.SPHERE, radius = 5, pos = { x = -17.627, y = 3.500, z = -424.100 } },
{ config_id = 104006, shape = RegionShape.SPHERE, radius = 5, pos = { x = -17.627, y = 4.000, z = -402.300 } }
}
-- 触发器
triggers = {
{ config_id = 1104002, name = "ENTER_REGION_104002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_104002", action = "action_EVENT_ENTER_REGION_104002", forbid_guest = false },
{ config_id = 1104006, name = "ENTER_REGION_104006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_104006", action = "action_EVENT_ENTER_REGION_104006", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 104003, 104004 },
regions = { 104002, 104006 },
triggers = { "ENTER_REGION_104002", "ENTER_REGION_104006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_104002(context, evt)
if evt.param1 ~= 104002 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_104002(context, evt)
-- 创建id为104001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 104001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_104006(context, evt)
if evt.param1 ~= 104006 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_104006(context, evt)
-- 创建id为104005的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 104005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,138 @@
-- 基础信息
local base_info = {
group_id = 250008108
}
-- Trigger变量
local defs = {
gadget_id = 108004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 108001, gadget_id = 70310001, pos = { x = -46.213, y = 4.000, z = -470.871 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 108002, gadget_id = 70310001, pos = { x = -46.613, y = 4.000, z = -468.971 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 108003, gadget_id = 70310001, pos = { x = -47.613, y = 4.000, z = -466.871 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 108004, gadget_id = 70211111, pos = { x = -43.713, y = 4.000, z = -467.671 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", showcutscene = true, isOneoff = true, persistent = true },
{ config_id = 108008, gadget_id = 70310001, pos = { x = -46.765, y = 4.000, z = -464.483 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1108005, name = "GADGET_STATE_CHANGE_108005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_108005", action = "action_EVENT_GADGET_STATE_CHANGE_108005", trigger_count = 0 },
{ config_id = 1108006, name = "GADGET_STATE_CHANGE_108006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_108006" },
{ config_id = 1108007, name = "GADGET_CREATE_108007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_108007", action = "action_EVENT_GADGET_CREATE_108007" }
}
-- 变量
variables = {
{ config_id = 1, name = "start", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 108001, 108002, 108003, 108008 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_108005", "GADGET_STATE_CHANGE_108006", "GADGET_CREATE_108007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_108005(context, evt)
if ScriptLib.GetGroupVariableValue(context, "start") == #suites[1].gadgets then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_108005(context, evt)
if evt.param1 == GadgetState.GearStart then
ScriptLib.ChangeGroupVariableValue(context,"start",1)
elseif evt.param1 == GadgetState.Default then
ScriptLib.ChangeGroupVariableValue(context,"start",-1)
end
if ScriptLib.GetGroupVariableValue(context, "start") == #suites[1].gadgets then
ScriptLib.CreateGadget(context, { config_id = defs.gadget_id })
end
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_108006(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1008, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_108007(context, evt)
if defs.gadget_id ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_108007(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1008, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
@@ -0,0 +1,163 @@
-- 基础信息
local base_info = {
group_id = 250008109
}
-- Trigger变量
local defs = {
group_id = 250008109,
gadget_riddle_hint = 109001,
gadget_riddle_1 = 109002,
gadget_riddle_2 = 109003,
gadget_riddle_3 = 109004,
gadget_riddle_4 = 109005,
gadget_chest = 109006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 109001, gadget_id = 70310012, pos = { x = 215.511, y = 4.000, z = -292.685 }, rot = { x = 0.000, y = 190.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 109002, gadget_id = 70310011, pos = { x = 213.911, y = 4.000, z = -303.785 }, rot = { x = 0.000, y = 276.100, z = 0.000 }, level = 1, persistent = true },
{ config_id = 109003, gadget_id = 70310011, pos = { x = 204.511, y = 4.000, z = -291.485 }, rot = { x = 0.000, y = 317.500, z = 0.000 }, level = 1, persistent = true },
{ config_id = 109004, gadget_id = 70310011, pos = { x = 217.811, y = 4.000, z = -282.685 }, rot = { x = 0.000, y = 257.600, z = 0.000 }, level = 1, persistent = true },
{ config_id = 109005, gadget_id = 70310011, pos = { x = 228.611, y = 4.000, z = -295.085 }, rot = { x = 0.000, y = 14.100, z = 0.000 }, level = 1, persistent = true },
{ config_id = 109006, gadget_id = 70211111, pos = { x = 215.542, y = 4.449, z = -292.684 }, rot = { x = 0.000, y = 270.400, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1109007, name = "GADGET_STATE_CHANGE_109007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_109007", action = "action_EVENT_GADGET_STATE_CHANGE_109007", trigger_count = 0 },
{ config_id = 1109008, name = "VARIABLE_CHANGE_109008", event = EventType.EVENT_VARIABLE_CHANGE, source = "State_Flag", condition = "condition_EVENT_VARIABLE_CHANGE_109008", action = "action_EVENT_VARIABLE_CHANGE_109008", trigger_count = 0 },
{ config_id = 1109009, name = "GROUP_LOAD_109009", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_109009" }
}
-- 变量
variables = {
{ config_id = 1, name = "State_Flag", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 109001, 109002, 109003, 109004, 109005, 109006 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_109007", "VARIABLE_CHANGE_109008", "GROUP_LOAD_109009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_109007(context, evt)
if evt.param2 ~= defs.gadget_riddle_1 and evt.param2 ~= defs.gadget_riddle_2 and evt.param2 ~= defs.gadget_riddle_3 and evt.param2 ~= defs.gadget_riddle_4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_109007(context, evt)
if evt.param1 == GadgetState.GearStart then
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
if 0 == ScriptLib.GetCurTriggerCount(context) then
ScriptLib.MarkPlayerAction(context, 1003, 1, 1)
end
elseif evt.param1 == GadgetState.Default then
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_109008(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 < 0 or evt.param1 > 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_109008(context, evt)
if evt.param1 == 0 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Default)
elseif evt.param1 == 1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Action01)
ScriptLib.MarkPlayerAction(context, 1003, 2, 2)
elseif evt.param1 == 2 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Action02)
ScriptLib.MarkPlayerAction(context, 1003, 2, 3)
elseif evt.param1 == 3 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Action03)
ScriptLib.MarkPlayerAction(context, 1003, 2, 4)
elseif evt.param1 == 4 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.GearStart)
ScriptLib.MarkPlayerAction(context, 1003, 3, 5)
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_chest, GadgetState.Default)
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_109009(context, evt)
local sum = 0
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4) == GadgetState.GearStart then
sum = sum + 1
end
ScriptLib.SetGroupVariableValue(context, "State_Flag", sum)
return 0
end
@@ -0,0 +1,101 @@
-- 基础信息
local base_info = {
group_id = 250008110
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 110001, gadget_id = 70620002, pos = { x = 217.360, y = 4.581, z = -424.622 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 110002, gadget_id = 70211101, pos = { x = 217.360, y = 4.000, z = -424.622 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1110003, name = "GADGET_STATE_CHANGE_110003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_110003", action = "action_EVENT_GADGET_STATE_CHANGE_110003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 110001, 110002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_110003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_110003(context, evt)
if 110002 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_110003(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 110001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1000, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
@@ -0,0 +1,137 @@
-- 基础信息
local base_info = {
group_id = 250008114
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 114001, gadget_id = 70360001, pos = { x = -54.369, y = 4.693, z = -252.785 }, rot = { x = 0.000, y = 175.400, z = 0.000 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 114002, gadget_id = 70211111, pos = { x = -54.369, y = 4.000, z = -252.985 }, rot = { x = 0.000, y = 80.300, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1114003, name = "GADGET_CREATE_114003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_114003", action = "action_EVENT_GADGET_CREATE_114003", trigger_count = 0 },
{ config_id = 1114004, name = "SELECT_OPTION_114004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_114004", action = "action_EVENT_SELECT_OPTION_114004", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 114001 },
regions = { },
triggers = { "GADGET_CREATE_114003", "SELECT_OPTION_114004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 114002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_114003(context, evt)
-- 判断是gadgetid 114001
if 114001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_114003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {169}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_114004(context, evt)
if 114001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_114004(context, evt)
-- 删除指定group 250008114 ;指定config114001;物件身上指定option169
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250008114, 114001, 169) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2011, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 250008114, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
@@ -0,0 +1,100 @@
-- 基础信息
local base_info = {
group_id = 250008115
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 115001, gadget_id = 70211101, pos = { x = -75.575, y = 4.000, z = -250.855 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 115002, gadget_id = 70220021, pos = { x = -75.695, y = 4.000, z = -251.356 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1115003, name = "ANY_GADGET_DIE_115003", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_115003", action = "action_EVENT_ANY_GADGET_DIE_115003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 115001, 115002 },
regions = { },
triggers = { "ANY_GADGET_DIE_115003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_115003(context, evt)
if 115002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_115003(context, evt)
-- 将configid为 115001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 115001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2012, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
@@ -0,0 +1,168 @@
-- 基础信息
local base_info = {
group_id = 250008119
}
-- Trigger变量
local defs = {
group_id = 250008119,
gadget_target_1 = 119005,
monster_mole_1 = 119002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 119002, monster_id = 28050201, pos = { x = -50.732, y = 4.082, z = -506.198 }, rot = { x = 0.000, y = 29.457, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 119005, gadget_id = 70360027, pos = { x = -47.737, y = 4.000, z = -501.583 }, rot = { x = 0.000, y = 104.100, z = 0.000 }, level = 1 },
{ config_id = 119009, gadget_id = 70360015, pos = { x = -50.437, y = 4.000, z = -506.083 }, rot = { x = 0.000, y = 15.100, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1119012, name = "ANY_MONSTER_DIE_119012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_119012" },
{ config_id = 1119013, name = "SELECT_OPTION_119013", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_119013", action = "action_EVENT_SELECT_OPTION_119013", forbid_guest = false },
{ config_id = 1119014, name = "GADGET_STATE_CHANGE_119014", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_119014", action = "action_EVENT_GADGET_STATE_CHANGE_119014", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 119002 },
gadgets = { 119005, 119009 },
regions = { },
triggers = { "ANY_MONSTER_DIE_119012", "SELECT_OPTION_119013", "GADGET_STATE_CHANGE_119014" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_119012(context, evt)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2006, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 250008119, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_119013(context, evt)
-- 判断是gadgetid 119009 option_id 171
if 119009 ~= evt.param1 then
return false
end
if 171 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_119013(context, evt)
-- 改变指定group组250008119中, configid为119009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 250008119, 119009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 250008119 ;指定config119009;物件身上指定option171
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250008119, 119009, 171) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2006, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_119014(context, evt)
if 119009 ~= evt.param2 or GadgetState.GearAction1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_119014(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250008119, 119009, {171}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,218 @@
-- 基础信息
local base_info = {
group_id = 250008120
}
-- Trigger变量
local defs = {
point_sum = 11,
route_2 = 50008059,
gadget_seelie = 120002
}
-- DEFS_MISCS
defs.final_point = defs.point_sum - 1
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 120001, gadget_id = 70710006, pos = { x = 216.948, y = 4.000, z = -376.748 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 120002, gadget_id = 70710010, pos = { x = 231.948, y = 4.000, z = -391.048 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 50008058 },
{ config_id = 120003, gadget_id = 70710007, pos = { x = 217.648, y = 4.000, z = -377.848 }, rot = { x = 0.000, y = 148.000, z = 0.000 }, level = 1 },
{ config_id = 120004, gadget_id = 70210101, pos = { x = 216.948, y = 5.000, z = -376.448 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜通用蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 120007, shape = RegionShape.SPHERE, radius = 5, pos = { x = 233.448, y = 4.000, z = -390.948 } }
}
-- 触发器
triggers = {
{ config_id = 1120005, name = "PLATFORM_REACH_POINT_120005", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_120005", action = "action_EVENT_PLATFORM_REACH_POINT_120005", trigger_count = 0 },
{ config_id = 1120006, name = "AVATAR_NEAR_PLATFORM_120006", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_120006", action = "action_EVENT_AVATAR_NEAR_PLATFORM_120006", trigger_count = 0, forbid_guest = false },
{ config_id = 1120007, name = "ENTER_REGION_120007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_120007", action = "action_EVENT_ENTER_REGION_120007", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 120001, 120002, 120003 },
regions = { 120007 },
triggers = { "PLATFORM_REACH_POINT_120005", "AVATAR_NEAR_PLATFORM_120006", "ENTER_REGION_120007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 120001, 120004 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_120005(context, evt)
if defs.gadget_seelie ~= evt.param1 then
return false
end
if defs.route_2 ~= evt.param2 then
return false
end
if defs.final_point ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_120005(context, evt)
-- 将configid为 120001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 120001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 120002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 120002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 250008120, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_120006(context, evt)
if defs.gadget_seelie ~= evt.param1 then
return false
end
if defs.route_2 ~= evt.param2 then
return false
end
if defs.final_point == evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_120006(context, evt)
if 0 ~= ScriptLib.StartPlatform(context, 120002) then
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= evt.param3 then
ScriptLib.MarkPlayerAction(context, 2005, 2, evt.param3 + 1)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_120007(context, evt)
if evt.param1 ~= 120007 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_120007(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 120002, 50008059) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 120003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
@@ -0,0 +1,163 @@
-- 基础信息
local base_info = {
group_id = 250008121
}
-- Trigger变量
local defs = {
duration = 30,
kill_sum = 1,
group_id = 250008121
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 121001, monster_id = 21010101, pos = { x = 216.562, y = 4.000, z = -341.799 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 121002, gadget_id = 70900007, pos = { x = 216.562, y = 4.000, z = -337.199 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 121003, gadget_id = 70211111, pos = { x = 216.262, y = 4.000, z = -332.799 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1121004, name = "GADGET_STATE_CHANGE_121004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_121004", action = "action_EVENT_GADGET_STATE_CHANGE_121004" },
{ config_id = 1121005, name = "CHALLENGE_SUCCESS_121005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "180", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_121005" },
{ config_id = 1121006, name = "CHALLENGE_FAIL_121006", event = EventType.EVENT_CHALLENGE_FAIL, source = "180", condition = "", action = "action_EVENT_CHALLENGE_FAIL_121006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 121002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_121004", "CHALLENGE_SUCCESS_121005", "CHALLENGE_FAIL_121006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 121001 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_121004(context, evt)
if 121002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_121004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250008121, 2)
-- 180号挑战,duration内击杀kill_sum的怪物
if 0 ~= ScriptLib.ActiveChallenge(context, 180, 180, defs.duration, defs.group_id, defs.kill_sum, 0) then
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 1, 1) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_121005(context, evt)
-- 创建id为121003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 121003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_121006(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250008121, 2)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250008121, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将configid为 121002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 121002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
@@ -0,0 +1,163 @@
-- 基础信息
local base_info = {
group_id = 250008124
}
-- Trigger变量
local defs = {
duration = 30,
kill_sum = 1,
group_id = 250008124
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 124001, monster_id = 21010101, pos = { x = 230.307, y = 4.000, z = -342.149 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 124002, gadget_id = 70900007, pos = { x = 230.307, y = 4.000, z = -337.549 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 124003, gadget_id = 70211111, pos = { x = 230.007, y = 4.000, z = -333.149 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1124004, name = "GADGET_STATE_CHANGE_124004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_124004", action = "action_EVENT_GADGET_STATE_CHANGE_124004" },
{ config_id = 1124005, name = "CHALLENGE_SUCCESS_124005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "180", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_124005" },
{ config_id = 1124006, name = "CHALLENGE_FAIL_124006", event = EventType.EVENT_CHALLENGE_FAIL, source = "180", condition = "", action = "action_EVENT_CHALLENGE_FAIL_124006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 124002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_124004", "CHALLENGE_SUCCESS_124005", "CHALLENGE_FAIL_124006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 124001 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_124004(context, evt)
if 124002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_124004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250008124, 2)
-- 180号挑战,duration内击杀kill_sum的怪物
if 0 ~= ScriptLib.ActiveChallenge(context, 180, 180, defs.duration, defs.group_id, defs.kill_sum, 0) then
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 1, 1) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_124005(context, evt)
-- 创建id为124003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 124003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_124006(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250008124, 2)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250008124, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将configid为 124002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 124002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
@@ -0,0 +1,111 @@
-- 基础信息
local base_info = {
group_id = 250008125
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 125002, monster_id = 20011201, pos = { x = -69.870, y = 4.000, z = -555.425 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 125003, monster_id = 20011201, pos = { x = -68.382, y = 4.000, z = -556.650 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 125004, monster_id = 20011201, pos = { x = -71.353, y = 4.000, z = -556.558 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 125001, shape = RegionShape.SPHERE, radius = 5, pos = { x = -69.880, y = 4.000, z = -556.627 } }
}
-- 触发器
triggers = {
{ config_id = 1125001, name = "ENTER_REGION_125001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_125001", action = "action_EVENT_ENTER_REGION_125001", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 125001 },
triggers = { "ENTER_REGION_125001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_125001(context, evt)
if evt.param1 ~= 125001 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_125001(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 125002, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 125003, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 125004, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,82 @@
-- 基础信息
local base_info = {
group_id = 250008127
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 127001, gadget_id = 70350004, pos = { x = 10.848, y = 3.500, z = -585.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 127002, gadget_id = 70330017, pos = { x = -8.757, y = 3.500, z = -586.007 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 127003, gadget_id = 70330017, pos = { x = -0.266, y = 3.500, z = -583.109 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 127004, gadget_id = 70330017, pos = { x = -4.829, y = 3.500, z = -573.886 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 127005, gadget_id = 70330019, pos = { x = -12.611, y = 3.500, z = -562.525 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 127006, gadget_id = 70330019, pos = { x = 6.259, y = 3.500, z = -572.794 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 127007, gadget_id = 70330019, pos = { x = 3.707, y = 3.500, z = -557.361 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 127008, gadget_id = 70900049, pos = { x = 22.818, y = 3.500, z = -571.694 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 127009, gadget_id = 70900049, pos = { x = 11.444, y = 3.500, z = -570.630 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.Action01 },
{ config_id = 127010, gadget_id = 70300107, pos = { x = 0.733, y = 3.500, z = -565.200 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 127011, gadget_id = 70300099, pos = { x = 5.802, y = 3.500, z = -557.643 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 127001, 127002, 127003, 127004, 127005, 127006, 127007, 127008, 127009, 127010, 127011 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,166 @@
-- 基础信息
local base_info = {
group_id = 250008128
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 128001, gadget_id = 70220032, pos = { x = -59.212, y = 3.975, z = -208.977 }, rot = { x = 0.000, y = 196.100, z = 0.000 }, level = 18 },
{ config_id = 128002, gadget_id = 70211001, pos = { x = -59.167, y = 4.000, z = -206.946 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1128003, name = "GADGET_STATE_CHANGE_128003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_128003", action = "action_EVENT_GADGET_STATE_CHANGE_128003" },
{ config_id = 1128007, name = "GADGET_STATE_CHANGE_128007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_128007", action = "action_EVENT_GADGET_STATE_CHANGE_128007", trigger_count = 0 },
{ config_id = 1128008, name = "GADGET_STATE_CHANGE_128008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_128008", action = "action_EVENT_GADGET_STATE_CHANGE_128008", trigger_count = 0 },
{ config_id = 1128009, name = "GADGET_CREATE_128009", event = EventType.EVENT_GADGET_CREATE, source = "111", condition = "condition_EVENT_GADGET_CREATE_128009", action = "action_EVENT_GADGET_CREATE_128009", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 128001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_128003", "GADGET_STATE_CHANGE_128007", "GADGET_STATE_CHANGE_128008", "GADGET_CREATE_128009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 128002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_128003(context, evt)
if 128002 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_128003(context, evt)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 250008128, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_128007(context, evt)
if 128001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_128007(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250008128, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_128008(context, evt)
if 128001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_128008(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250008128, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_128009(context, evt)
if 128001 ~= evt.param1 or GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_128009(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250008128, 2)
return 0
end
@@ -0,0 +1,166 @@
-- 基础信息
local base_info = {
group_id = 250008129
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 129001, gadget_id = 70360006, pos = { x = -70.636, y = 4.000, z = -208.989 }, rot = { x = 0.000, y = 196.100, z = 0.000 }, level = 18 },
{ config_id = 129002, gadget_id = 70211001, pos = { x = -70.636, y = 4.000, z = -206.889 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1129003, name = "GADGET_STATE_CHANGE_129003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_129003", action = "action_EVENT_GADGET_STATE_CHANGE_129003" },
{ config_id = 1129004, name = "GADGET_STATE_CHANGE_129004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_129004", action = "action_EVENT_GADGET_STATE_CHANGE_129004", trigger_count = 0 },
{ config_id = 1129005, name = "GADGET_STATE_CHANGE_129005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_129005", action = "action_EVENT_GADGET_STATE_CHANGE_129005", trigger_count = 0 },
{ config_id = 1129006, name = "GADGET_CREATE_129006", event = EventType.EVENT_GADGET_CREATE, source = "111", condition = "condition_EVENT_GADGET_CREATE_129006", action = "action_EVENT_GADGET_CREATE_129006", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 129001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_129003", "GADGET_STATE_CHANGE_129004", "GADGET_STATE_CHANGE_129005", "GADGET_CREATE_129006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 129002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_129003(context, evt)
if 129002 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_129003(context, evt)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 250008129, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_129004(context, evt)
if 129001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_129004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250008129, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_129005(context, evt)
if 129001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_129005(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250008129, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_129006(context, evt)
if 129001 ~= evt.param1 or GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_129006(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250008129, 2)
return 0
end
@@ -0,0 +1,160 @@
-- 基础信息
local base_info = {
group_id = 250008130
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 130001, gadget_id = 70900039, pos = { x = -16.315, y = 3.500, z = -358.302 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 130003, gadget_id = 70900201, pos = { x = -16.315, y = 3.500, z = -398.046 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 130007, gadget_id = 70900007, pos = { x = -9.875, y = 3.500, z = -382.396 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 130009, gadget_id = 70900007, pos = { x = -21.291, y = 3.500, z = -382.396 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 130004, shape = RegionShape.SPHERE, radius = 5, pos = { x = -16.300, y = 3.500, z = -398.000 } }
}
-- 触发器
triggers = {
{ config_id = 1130002, name = "GADGET_STATE_CHANGE_130002", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_130002", action = "action_EVENT_GADGET_STATE_CHANGE_130002" },
{ config_id = 1130004, name = "ENTER_REGION_130004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_130004", action = "", tag = "666" },
{ config_id = 1130005, name = "CHALLENGE_SUCCESS_130005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "888", condition = "", action = "" },
{ config_id = 1130006, name = "CHALLENGE_FAIL_130006", event = EventType.EVENT_CHALLENGE_FAIL, source = "888", condition = "", action = "", trigger_count = 0 },
{ config_id = 1130008, name = "GADGET_STATE_CHANGE_130008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_130008", action = "action_EVENT_GADGET_STATE_CHANGE_130008" },
{ config_id = 1130010, name = "GADGET_STATE_CHANGE_130010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_130010", action = "action_EVENT_GADGET_STATE_CHANGE_130010" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 130001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_130002", "CHALLENGE_SUCCESS_130005", "CHALLENGE_FAIL_130006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 130003, 130007, 130009 },
regions = { 130004 },
triggers = { "ENTER_REGION_130004", "GADGET_STATE_CHANGE_130008", "GADGET_STATE_CHANGE_130010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_130002(context, evt)
if 130001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_130002(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250008130, 2)
-- 创建编号为888(该挑战的识别id),挑战内容为122的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 888, 122, 60, 4, 666, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_130004(context, evt)
if evt.param1 ~= 130004 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_GADGET_STATE_CHANGE_130008(context, evt)
if 130007 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_130008(context, evt)
-- 终止识别id为888的挑战,并判定失败
ScriptLib.StopChallenge(context, 888, 0)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_130010(context, evt)
if 130009 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_130010(context, evt)
-- 终止识别id为888的挑战,并判定成功
ScriptLib.StopChallenge(context, 888, 1)
return 0
end
@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 250008131
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 131001, gadget_id = 70211021, pos = { x = 17.144, y = 3.500, z = -590.015 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗高级蒙德", isOneoff = true, persistent = true },
{ config_id = 131002, gadget_id = 70211131, pos = { x = 10.603, y = 3.500, z = -580.251 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜超级蒙德", isOneoff = true, persistent = true },
{ config_id = 131003, gadget_id = 70211011, pos = { x = 2.952, y = 3.500, z = -590.397 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", isOneoff = true, persistent = true },
{ config_id = 131004, gadget_id = 70211031, pos = { x = 9.802, y = 3.500, z = -589.943 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗超级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 131001, 131002, 131003, 131004 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,182 @@
-- 基础信息
local base_info = {
group_id = 250008133
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 133001, monster_id = 20010901, pos = { x = -68.579, y = 4.000, z = -645.390 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 133002, gadget_id = 70510013, pos = { x = -68.579, y = 4.000, z = -645.390 }, rot = { x = 0.000, y = 319.800, z = 0.000 }, level = 1 },
{ config_id = 133003, gadget_id = 70211101, pos = { x = -68.379, y = 4.000, z = -642.690 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1133004, name = "GADGET_STATE_CHANGE_133004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_133004", action = "action_EVENT_GADGET_STATE_CHANGE_133004", trigger_count = 0 },
{ config_id = 1133005, name = "ANY_MONSTER_DIE_133005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_133005", action = "action_EVENT_ANY_MONSTER_DIE_133005" },
{ config_id = 1133006, name = "GADGET_CREATE_133006", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_133006", action = "action_EVENT_GADGET_CREATE_133006", trigger_count = 0 },
{ config_id = 1133007, name = "SELECT_OPTION_133007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_133007", action = "action_EVENT_SELECT_OPTION_133007", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 133002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_133004", "ANY_MONSTER_DIE_133005", "GADGET_CREATE_133006", "SELECT_OPTION_133007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_133004(context, evt)
if 133002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_133004(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 133001, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_133005(context, evt)
if 133001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_133005(context, evt)
-- 创建id为133003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 133003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2002, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_133006(context, evt)
if 133002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_133006(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250008133, 133002, {173}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_133007(context, evt)
-- 判断是gadgetid 133002 option_id 173
if 133002 ~= evt.param1 then
return false
end
if 173 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_133007(context, evt)
-- 将configid为 133002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 133002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 250008133 ;指定config133002;物件身上指定option173
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250008133, 133002, 173) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2002, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
@@ -0,0 +1,234 @@
-- 基础信息
local base_info = {
group_id = 250008134
}
-- Trigger变量
local defs = {
point_sum = 11,
route_2 = 50008064,
gadget_seelie = 134002
}
-- DEFS_MISCS
defs.final_point = defs.point_sum - 1
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 134001, gadget_id = 70710006, pos = { x = -67.310, y = 4.000, z = -289.511 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 134002, gadget_id = 70710010, pos = { x = -52.310, y = 4.000, z = -303.811 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 50008065 },
{ config_id = 134003, gadget_id = 70710007, pos = { x = -66.610, y = 4.000, z = -290.611 }, rot = { x = 0.000, y = 148.000, z = 0.000 }, level = 1 },
{ config_id = 134004, gadget_id = 70211111, pos = { x = -67.426, y = 4.000, z = -288.153 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 134007, shape = RegionShape.SPHERE, radius = 5, pos = { x = -50.810, y = 4.000, z = -303.711 } }
}
-- 触发器
triggers = {
{ config_id = 1134005, name = "PLATFORM_REACH_POINT_134005", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_134005", action = "action_EVENT_PLATFORM_REACH_POINT_134005", trigger_count = 0 },
{ config_id = 1134006, name = "AVATAR_NEAR_PLATFORM_134006", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_134006", action = "action_EVENT_AVATAR_NEAR_PLATFORM_134006", trigger_count = 0, forbid_guest = false },
{ config_id = 1134007, name = "ENTER_REGION_134007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_134007", action = "action_EVENT_ENTER_REGION_134007", trigger_count = 0, forbid_guest = false },
{ config_id = 1134008, name = "GADGET_STATE_CHANGE_134008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_134008", action = "action_EVENT_GADGET_STATE_CHANGE_134008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 134001, 134002, 134003 },
regions = { 134007 },
triggers = { "PLATFORM_REACH_POINT_134005", "AVATAR_NEAR_PLATFORM_134006", "ENTER_REGION_134007", "GADGET_STATE_CHANGE_134008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 134001, 134004 },
regions = { },
triggers = { },
rand_weight = 100,
ban_refresh = true
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_134005(context, evt)
if defs.gadget_seelie ~= evt.param1 then
return false
end
if defs.route_2 ~= evt.param2 then
return false
end
if defs.final_point ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_134005(context, evt)
-- 将configid为 134001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 134001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 134002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 134002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_134006(context, evt)
if defs.gadget_seelie ~= evt.param1 then
return false
end
if defs.route_2 ~= evt.param2 then
return false
end
if defs.final_point == evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_134006(context, evt)
if 0 ~= ScriptLib.StartPlatform(context, 134002) then
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= evt.param3 then
ScriptLib.MarkPlayerAction(context, 2005, 2, evt.param3 + 1)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_134007(context, evt)
if evt.param1 ~= 134007 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_134007(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 134002, 50008064) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 134003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2005, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_134008(context, evt)
if 134001 ~= evt.param2 or GadgetState.GearAction1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_134008(context, evt)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 250008134, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
@@ -0,0 +1,84 @@
-- 基础信息
local base_info = {
group_id = 250008137
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 137001, gadget_id = 70211104, pos = { x = -19.143, y = 3.500, z = -572.815 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", state = GadgetState.ChestFrozen, isOneoff = true, persistent = true },
{ config_id = 137002, gadget_id = 70360056, pos = { x = 31.643, y = 3.500, z = -577.920 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 137003, gadget_id = 70360057, pos = { x = 31.128, y = 3.500, z = -587.717 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 137004, gadget_id = 70360058, pos = { x = 30.746, y = 3.500, z = -596.824 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 137005, gadget_id = 70360059, pos = { x = 30.463, y = 3.500, z = -605.523 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 137006, gadget_id = 70210106, pos = { x = -21.120, y = 3.500, z = -594.252 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1, persistent = true },
{ config_id = 137007, gadget_id = 70210106, pos = { x = -20.668, y = 3.500, z = -583.731 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1, persistent = true },
{ config_id = 137008, gadget_id = 70210106, pos = { x = -13.977, y = 3.500, z = -578.478 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1, persistent = true },
{ config_id = 137009, gadget_id = 70211111, pos = { x = -33.583, y = 3.500, z = -569.444 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1, persistent = true },
{ config_id = 137010, gadget_id = 70690014, pos = { x = -24.751, y = 14.582, z = -593.860 }, rot = { x = 0.001, y = 89.240, z = 0.000 }, level = 1 },
{ config_id = 137011, gadget_id = 70690014, pos = { x = -23.660, y = 14.101, z = -593.674 }, rot = { x = 0.000, y = 89.180, z = 0.000 }, level = 1 },
{ config_id = 137012, gadget_id = 70690014, pos = { x = -22.707, y = 13.991, z = -593.742 }, rot = { x = 0.000, y = 91.910, z = 0.000 }, level = 1 },
{ config_id = 137013, gadget_id = 70690014, pos = { x = -21.682, y = 13.784, z = -594.059 }, rot = { x = 0.000, y = 90.892, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 137001, 137002, 137003, 137004, 137005, 137006, 137007, 137008, 137009, 137010, 137011, 137012, 137013 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 250008138
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 138001, gadget_id = 70350004, pos = { x = -28.398, y = 9.659, z = -168.054 }, rot = { x = 0.000, y = 90.000, z = 180.000 }, level = 1 },
{ config_id = 138002, gadget_id = 70900051, pos = { x = -30.457, y = 4.000, z = -167.998 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 138003, gadget_id = 70211131, pos = { x = -33.343, y = 4.000, z = -169.485 }, rot = { x = 0.000, y = 86.582, z = 0.000 }, level = 1, drop_tag = "解谜超级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 138001, 138002, 138003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,76 @@
-- 基础信息
local base_info = {
group_id = 250008139
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 139001, gadget_id = 70500000, pos = { x = -74.820, y = 11.940, z = -164.146 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 4002 },
{ config_id = 139002, gadget_id = 70500000, pos = { x = -74.988, y = 11.940, z = -156.952 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 4002 },
{ config_id = 139003, gadget_id = 70500000, pos = { x = -74.879, y = 11.940, z = -150.053 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 4002 },
{ config_id = 139004, gadget_id = 70500000, pos = { x = -74.768, y = 11.940, z = -171.898 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 4002 },
{ config_id = 139005, gadget_id = 70500000, pos = { x = -74.873, y = 11.940, z = -179.113 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 4002 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 139001, 139002, 139003, 139004, 139005 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,136 @@
-- 基础信息
local base_info = {
group_id = 250008140
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 140001, gadget_id = 70900209, pos = { x = 131.467, y = 4.000, z = -152.002 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 140002, gadget_id = 70360001, pos = { x = 131.467, y = 4.000, z = -152.002 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1140003, name = "GADGET_CREATE_140003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_140003", action = "action_EVENT_GADGET_CREATE_140003", trigger_count = 0 },
{ config_id = 1140004, name = "SELECT_OPTION_140004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_140004", action = "action_EVENT_SELECT_OPTION_140004", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 140001, 140002 },
regions = { },
triggers = { "GADGET_CREATE_140003", "SELECT_OPTION_140004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_140003(context, evt)
if 140002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_140003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250008140, 140002, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_140004(context, evt)
-- 判断是gadgetid 140002 option_id 7
if 140002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_140004(context, evt)
-- 将configid为 140001 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 140001, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 250008140 ;指定config140002;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250008140, 140002, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
@@ -0,0 +1,154 @@
-- 基础信息
local base_info = {
group_id = 250008141
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 141001, gadget_id = 70900209, pos = { x = 144.100, y = 4.000, z = -143.200 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 141002, gadget_id = 70360001, pos = { x = 144.100, y = 4.000, z = -143.200 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1141003, name = "GADGET_CREATE_141003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_141003", action = "action_EVENT_GADGET_CREATE_141003", trigger_count = 0 },
{ config_id = 1141004, name = "SELECT_OPTION_141004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_141004", action = "action_EVENT_SELECT_OPTION_141004", trigger_count = 0 },
{ config_id = 1141005, name = "TIMER_EVENT_141005", event = EventType.EVENT_TIMER_EVENT, source = "cd", condition = "", action = "action_EVENT_TIMER_EVENT_141005", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 141001, 141002 },
regions = { },
triggers = { "GADGET_CREATE_141003", "SELECT_OPTION_141004", "TIMER_EVENT_141005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_141003(context, evt)
if 141002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_141003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250008141, 141002, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_141004(context, evt)
-- 判断是gadgetid 141002 option_id 7
if 141002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_141004(context, evt)
-- 将configid为 141001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 141001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 250008141 ;指定config141002;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250008141, 141002, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 延迟3秒后,向groupId为:250008141的对象,请求一次调用,并将string参数:"cd" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 250008141, "cd", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_141005(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250008141, 141002, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,115 @@
-- 基础信息
local base_info = {
group_id = 250008142
}
-- Trigger变量
local defs = {
gadget_door = 142002,
group_id = 250008142
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 142001, gadget_id = 70360002, pos = { x = -54.660, y = 15.087, z = -377.738 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 142002, gadget_id = 70350004, pos = { x = -52.395, y = 8.497, z = -375.806 }, rot = { x = 0.000, y = 271.221, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1142003, name = "GADGET_CREATE_142003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_142003", action = "action_EVENT_GADGET_CREATE_142003", trigger_count = 0 },
{ config_id = 1142004, name = "SELECT_OPTION_142004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_142004", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 142001, 142002 },
regions = { },
triggers = { "GADGET_CREATE_142003", "SELECT_OPTION_142004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_142003(context, evt)
if 142001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_142003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_SELECT_OPTION_142004(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door) == GadgetState.Default then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door, GadgetState.GearStart)
elseif
ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door) == GadgetState.GearStart then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door, GadgetState.Default)
end
return 0
end
@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 250008143
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 143001, gadget_id = 70211001, pos = { x = -56.415, y = 15.087, z = -376.025 }, rot = { x = 0.000, y = 88.984, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true },
{ config_id = 143002, gadget_id = 70211131, pos = { x = -62.128, y = 15.087, z = -381.904 }, rot = { x = 0.000, y = 270.516, z = 0.000 }, level = 1, drop_tag = "解谜超级蒙德", isOneoff = true, persistent = true },
{ config_id = 143003, gadget_id = 70211121, pos = { x = -70.013, y = 8.563, z = -385.741 }, rot = { x = 0.000, y = 270.516, z = 0.000 }, level = 1, drop_tag = "解谜高级蒙德", isOneoff = true, persistent = true },
{ config_id = 143004, gadget_id = 70211121, pos = { x = -70.113, y = 8.563, z = -391.813 }, rot = { x = 0.000, y = 270.516, z = 0.000 }, level = 1, drop_tag = "解谜高级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 143001, 143002, 143003, 143004 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,115 @@
-- 基础信息
local base_info = {
group_id = 250008144
}
-- Trigger变量
local defs = {
gadget_door = 144002,
group_id = 250008144
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 144001, gadget_id = 70360002, pos = { x = -61.279, y = 8.517, z = -376.833 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 144002, gadget_id = 70350004, pos = { x = -63.000, y = 8.517, z = -375.721 }, rot = { x = 0.000, y = 271.221, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1144003, name = "GADGET_CREATE_144003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_144003", action = "action_EVENT_GADGET_CREATE_144003", trigger_count = 0 },
{ config_id = 1144004, name = "SELECT_OPTION_144004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_144004", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 144001, 144002 },
regions = { },
triggers = { "GADGET_CREATE_144003", "SELECT_OPTION_144004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_144003(context, evt)
if 144001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_144003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_SELECT_OPTION_144004(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door) == GadgetState.Default then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door, GadgetState.GearStart)
elseif
ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door) == GadgetState.GearStart then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door, GadgetState.Default)
end
return 0
end
@@ -0,0 +1,115 @@
-- 基础信息
local base_info = {
group_id = 250008145
}
-- Trigger变量
local defs = {
gadget_door = 145002,
group_id = 250008145
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 145001, gadget_id = 70360002, pos = { x = -54.177, y = 8.493, z = -394.963 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 145002, gadget_id = 70350004, pos = { x = -52.470, y = 8.544, z = -393.921 }, rot = { x = 0.000, y = 271.221, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1145003, name = "GADGET_CREATE_145003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_145003", action = "action_EVENT_GADGET_CREATE_145003", trigger_count = 0 },
{ config_id = 1145004, name = "SELECT_OPTION_145004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_145004", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 145001, 145002 },
regions = { },
triggers = { "GADGET_CREATE_145003", "SELECT_OPTION_145004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_145003(context, evt)
if 145001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_145003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_SELECT_OPTION_145004(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door) == GadgetState.Default then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door, GadgetState.GearStart)
elseif
ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door) == GadgetState.GearStart then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door, GadgetState.Default)
end
return 0
end
@@ -0,0 +1,115 @@
-- 基础信息
local base_info = {
group_id = 250008146
}
-- Trigger变量
local defs = {
gadget_door = 146002,
group_id = 250008146
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 146001, gadget_id = 70360002, pos = { x = -57.493, y = 8.517, z = -383.762 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 146002, gadget_id = 70350004, pos = { x = -58.745, y = 8.517, z = -381.442 }, rot = { x = 0.000, y = 271.221, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1146003, name = "GADGET_CREATE_146003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_146003", action = "action_EVENT_GADGET_CREATE_146003", trigger_count = 0 },
{ config_id = 1146004, name = "SELECT_OPTION_146004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_146004", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 146001, 146002 },
regions = { },
triggers = { "GADGET_CREATE_146003", "SELECT_OPTION_146004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_146003(context, evt)
if 146001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_146003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_SELECT_OPTION_146004(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door) == GadgetState.Default then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door, GadgetState.GearStart)
elseif
ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door) == GadgetState.GearStart then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door, GadgetState.Default)
end
return 0
end
@@ -0,0 +1,266 @@
-- 基础信息
local base_info = {
group_id = 250008148
}
-- Trigger变量
local defs = {
group_id = 250008148,
gadget_riddle_hint = 148001,
gadget_riddle_1 = 148002,
gadget_riddle_2 = 148003,
gadget_riddle_3 = 148004,
gadget_riddle_4 = 148005,
gadget_chest = 148006,
gadget_riddle_5 = 148010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 148001, gadget_id = 70310012, pos = { x = 67.298, y = 4.000, z = -334.772 }, rot = { x = 0.000, y = 190.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 148002, gadget_id = 70310011, pos = { x = 78.548, y = 3.986, z = -348.133 }, rot = { x = 0.000, y = 276.100, z = 0.000 }, level = 1, persistent = true },
{ config_id = 148003, gadget_id = 70310011, pos = { x = 72.848, y = 4.000, z = -342.658 }, rot = { x = 0.000, y = 317.500, z = 0.000 }, level = 1, persistent = true },
{ config_id = 148004, gadget_id = 70310011, pos = { x = 65.944, y = 4.000, z = -345.803 }, rot = { x = 0.000, y = 257.600, z = 0.000 }, level = 1, persistent = true },
{ config_id = 148005, gadget_id = 70310011, pos = { x = 66.222, y = 4.000, z = -350.989 }, rot = { x = 0.000, y = 14.100, z = 0.000 }, level = 1, persistent = true },
{ config_id = 148006, gadget_id = 70211112, pos = { x = 67.329, y = 4.449, z = -334.771 }, rot = { x = 0.000, y = 270.400, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 148010, gadget_id = 70310011, pos = { x = 73.151, y = 4.000, z = -354.189 }, rot = { x = 0.000, y = 317.500, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1148007, name = "GADGET_STATE_CHANGE_148007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_148007", action = "action_EVENT_GADGET_STATE_CHANGE_148007", trigger_count = 0 },
{ config_id = 1148008, name = "VARIABLE_CHANGE_148008", event = EventType.EVENT_VARIABLE_CHANGE, source = "State_Flag", condition = "condition_EVENT_VARIABLE_CHANGE_148008", action = "action_EVENT_VARIABLE_CHANGE_148008", trigger_count = 0 },
{ config_id = 1148009, name = "GROUP_LOAD_148009", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_148009" }
}
-- 变量
variables = {
{ config_id = 1, name = "State_Flag", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 148001, 148002, 148003, 148004, 148005, 148006, 148010 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_148007", "VARIABLE_CHANGE_148008", "GROUP_LOAD_148009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_148007(context, evt)
if evt.param2 ~= defs.gadget_riddle_1 and evt.param2 ~= defs.gadget_riddle_2 and evt.param2 ~= defs.gadget_riddle_3 and evt.param2 ~= defs.gadget_riddle_4 and evt.param2 ~= defs.gadget_riddle_5 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_148007(context, evt)
if ScriptLib.GetCurTriggerCount(context) == 0 then
ScriptLib.MarkPlayerAction(context, 5006, 1, 1)
end
if evt.param2 == defs.gadget_riddle_1 and evt.param1 == GadgetState.GearStart then
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3) == GadgetState.GearStart then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3) == GadgetState.GearAction1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3) == GadgetState.Default then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3, GadgetState.GearAction1)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4) == GadgetState.GearStart then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4) == GadgetState.GearAction1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4) == GadgetState.Default then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4, GadgetState.GearAction1)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
end
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
end
if evt.param2 == defs.gadget_riddle_2 and evt.param1 == GadgetState.GearStart then
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4) == GadgetState.GearStart then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4) == GadgetState.GearAction1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4) == GadgetState.Default then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4, GadgetState.GearAction1)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_5) == GadgetState.GearStart then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_5, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_5) == GadgetState.GearAction1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_5, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_5) == GadgetState.Default then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_5, GadgetState.GearAction1)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
end
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
end
if evt.param2 == defs.gadget_riddle_3 and evt.param1 == GadgetState.GearStart then
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_5) == GadgetState.GearStart then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_5, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_5) == GadgetState.GearAction1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_5, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_5) == GadgetState.Default then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_5, GadgetState.GearAction1)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1) == GadgetState.GearStart then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1) == GadgetState.GearAction1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1) == GadgetState.Default then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1, GadgetState.GearAction1)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
end
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
end
if evt.param2 == defs.gadget_riddle_4 and evt.param1 == GadgetState.GearStart then
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1) == GadgetState.GearStart then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1) == GadgetState.GearAction1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1) == GadgetState.Default then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1, GadgetState.GearAction1)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2) == GadgetState.GearStart then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2) == GadgetState.GearAction1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2) == GadgetState.Default then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2, GadgetState.GearAction1)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
end
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
end
if evt.param2 == defs.gadget_riddle_5 and evt.param1 == GadgetState.GearStart then
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2) == GadgetState.GearStart then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2) == GadgetState.GearAction1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2) == GadgetState.Default then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2, GadgetState.GearAction1)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3) == GadgetState.GearStart then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3) == GadgetState.GearAction1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3, GadgetState.Default)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3) == GadgetState.Default then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3, GadgetState.GearAction1)
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
end
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_148008(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 < 0 or evt.param1 > 5 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_148008(context, evt)
if evt.param1 == 5 then
ScriptLib.MarkPlayerAction(context, 5006, 3, 1)
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_chest, GadgetState.Default)
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_148009(context, evt)
local sum = 0
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_5) == GadgetState.GearStart then
sum = sum + 1
end
ScriptLib.SetGroupVariableValue(context, "State_Flag", sum)
return 0
end
@@ -0,0 +1,313 @@
-- 基础信息
local base_info = {
group_id = 250008149
}
-- Trigger变量
local defs = {
gadget_door_1 = 149001,
gadget_door_2 = 149002,
gadget_door_3 = 149003,
gadget_door_4 = 149004,
group_id = 250008149
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 149001, gadget_id = 70350004, pos = { x = 80.268, y = 3.770, z = -209.131 }, rot = { x = 0.000, y = 90.000, z = 180.000 }, level = 1 },
{ config_id = 149002, gadget_id = 70350004, pos = { x = 87.058, y = 3.770, z = -209.131 }, rot = { x = 0.000, y = 90.000, z = 180.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 149003, gadget_id = 70350004, pos = { x = 94.443, y = 3.770, z = -209.131 }, rot = { x = 0.000, y = 90.000, z = 180.000 }, level = 1 },
{ config_id = 149004, gadget_id = 70350004, pos = { x = 102.176, y = 3.770, z = -209.131 }, rot = { x = 0.000, y = 90.000, z = 180.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 149005, gadget_id = 70211121, pos = { x = 105.898, y = 3.500, z = -209.477 }, rot = { x = 0.000, y = 271.084, z = 0.000 }, level = 1, drop_tag = "解谜高级蒙德", isOneoff = true, persistent = true },
{ config_id = 149006, gadget_id = 70360002, pos = { x = 80.354, y = 3.500, z = -216.935 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 149007, gadget_id = 70360002, pos = { x = 87.068, y = 3.500, z = -216.935 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 149008, gadget_id = 70360002, pos = { x = 94.374, y = 3.500, z = -216.935 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 149009, gadget_id = 70360002, pos = { x = 102.075, y = 3.500, z = -216.935 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1149010, name = "GADGET_CREATE_149010", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_149010", action = "action_EVENT_GADGET_CREATE_149010", trigger_count = 0 },
{ config_id = 1149011, name = "GADGET_CREATE_149011", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_149011", action = "action_EVENT_GADGET_CREATE_149011", trigger_count = 0 },
{ config_id = 1149012, name = "GADGET_CREATE_149012", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_149012", action = "action_EVENT_GADGET_CREATE_149012", trigger_count = 0 },
{ config_id = 1149013, name = "GADGET_CREATE_149013", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_149013", action = "action_EVENT_GADGET_CREATE_149013", trigger_count = 0 },
{ config_id = 1149014, name = "SELECT_OPTION_149014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_149014", action = "action_EVENT_SELECT_OPTION_149014", trigger_count = 0 },
{ config_id = 1149015, name = "SELECT_OPTION_149015", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_149015", action = "action_EVENT_SELECT_OPTION_149015", trigger_count = 0 },
{ config_id = 1149016, name = "SELECT_OPTION_149016", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_149016", action = "action_EVENT_SELECT_OPTION_149016", trigger_count = 0 },
{ config_id = 1149017, name = "SELECT_OPTION_149017", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_149017", action = "action_EVENT_SELECT_OPTION_149017", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 149001, 149002, 149003, 149004, 149005, 149006, 149007, 149008, 149009 },
regions = { },
triggers = { "GADGET_CREATE_149010", "GADGET_CREATE_149011", "GADGET_CREATE_149012", "GADGET_CREATE_149013", "SELECT_OPTION_149014", "SELECT_OPTION_149015", "SELECT_OPTION_149016", "SELECT_OPTION_149017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_149010(context, evt)
if 149006 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_149010(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_149011(context, evt)
if 149007 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_149011(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_149012(context, evt)
if 149008 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_149012(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_149013(context, evt)
if 149009 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_149013(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_149014(context, evt)
if 149006 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_149014(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_1) == GadgetState.Default then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_1, GadgetState.GearStart)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_1) == GadgetState.GearStart then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_1, GadgetState.Default)
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_2) == GadgetState.Default then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_2, GadgetState.GearStart)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_2) == GadgetState.GearStart then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_2, GadgetState.Default)
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_149015(context, evt)
if 149007 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_149015(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_1) == GadgetState.Default then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_1, GadgetState.GearStart)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_1) == GadgetState.GearStart then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_1, GadgetState.Default)
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_2) == GadgetState.Default then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_2, GadgetState.GearStart)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_2) == GadgetState.GearStart then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_2, GadgetState.Default)
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_3) == GadgetState.Default then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_3, GadgetState.GearStart)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_3) == GadgetState.GearStart then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_3, GadgetState.Default)
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_149016(context, evt)
if 149008 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_149016(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_4) == GadgetState.Default then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_4, GadgetState.GearStart)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_4) == GadgetState.GearStart then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_4, GadgetState.Default)
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_2) == GadgetState.Default then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_2, GadgetState.GearStart)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_2) == GadgetState.GearStart then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_2, GadgetState.Default)
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_3) == GadgetState.Default then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_3, GadgetState.GearStart)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_3) == GadgetState.GearStart then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_3, GadgetState.Default)
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_149017(context, evt)
if 149009 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_149017(context, evt)
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_3) == GadgetState.Default then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_3, GadgetState.GearStart)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_3) == GadgetState.GearStart then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_3, GadgetState.Default)
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_4) == GadgetState.Default then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_4, GadgetState.GearStart)
elseif ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_door_4) == GadgetState.GearStart then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_door_4, GadgetState.Default)
end
return 0
end
@@ -0,0 +1,177 @@
-- 基础信息
local base_info = {
group_id = 250008150
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 150001, gadget_id = 70710091, pos = { x = 132.867, y = 4.000, z = -57.986 }, rot = { x = 0.000, y = 276.750, z = 0.000 }, level = 1 },
{ config_id = 150002, gadget_id = 70710092, pos = { x = 132.787, y = 4.000, z = -65.874 }, rot = { x = 0.000, y = 268.400, z = 0.000 }, level = 1 },
{ config_id = 150003, gadget_id = 70710093, pos = { x = 132.993, y = 4.000, z = -73.263 }, rot = { x = 0.000, y = 268.400, z = 0.000 }, level = 1 },
{ config_id = 150004, gadget_id = 70360002, pos = { x = 126.379, y = 4.000, z = -65.905 }, rot = { x = 0.000, y = 276.750, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1150005, name = "GADGET_CREATE_150005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_150005", action = "action_EVENT_GADGET_CREATE_150005", trigger_count = 0 },
{ config_id = 1150006, name = "SELECT_OPTION_150006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_150006", action = "action_EVENT_SELECT_OPTION_150006", trigger_count = 0 },
{ config_id = 1150007, name = "SELECT_OPTION_150007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_150007", action = "action_EVENT_SELECT_OPTION_150007", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 150004 },
regions = { },
triggers = { "GADGET_CREATE_150005", "SELECT_OPTION_150006", "SELECT_OPTION_150007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_150005(context, evt)
if 150004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_150005(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250008150, 150004, {1,4}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_150006(context, evt)
-- 判断是gadgetid 150004 option_id 1
if 150004 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_150006(context, evt)
-- 创建id为150001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 150001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为150002的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 150002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建id为150003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 150003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_150007(context, evt)
-- 判断是gadgetid 150004 option_id 4
if 150004 ~= evt.param1 then
return false
end
if 4 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_150007(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 150001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 150002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 150003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,86 @@
-- 基础信息
local base_info = {
group_id = 250008151
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 151001, gadget_id = 70710092, pos = { x = 213.800, y = 4.000, z = 56.019 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 151002, shape = RegionShape.SPHERE, radius = 5, pos = { x = 213.556, y = 4.000, z = 57.209 } }
}
-- 触发器
triggers = {
{ config_id = 1151002, name = "ENTER_REGION_151002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_151002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 151001 },
regions = { 151002 },
triggers = { "ENTER_REGION_151002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_151002(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 151001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 250008152
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 152001, monster_id = 26020101, pos = { x = -56.003, y = 3.500, z = -75.257 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 40, pose_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 152001 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,126 @@
-- 基础信息
local base_info = {
group_id = 250008153
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 153001, gadget_id = 70710131, pos = { x = 143.769, y = 4.374, z = -138.482 }, rot = { x = 0.000, y = 223.447, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1153003, name = "GADGET_CREATE_153003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_153003", action = "action_EVENT_GADGET_CREATE_153003", trigger_count = 0 },
{ config_id = 1153004, name = "SELECT_OPTION_153004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_153004", action = "action_EVENT_SELECT_OPTION_153004", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 153001 },
regions = { },
triggers = { "GADGET_CREATE_153003", "SELECT_OPTION_153004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_153003(context, evt)
if 153001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_153003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250008153, 153001, {2904}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_153004(context, evt)
-- 判断是gadgetid 153001 option_id 2904
if 153001 ~= evt.param1 then
return false
end
if 2904 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_153004(context, evt)
-- 将configid为 153001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 153001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 250008153 ;指定config153001;物件身上指定option2904
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250008153, 153001, 2904) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
@@ -0,0 +1,147 @@
-- 基础信息
local base_info = {
group_id = 250008154
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 154001, gadget_id = 70710132, pos = { x = 131.094, y = 7.081, z = -157.764 }, rot = { x = 0.000, y = 318.084, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1154003, name = "GADGET_CREATE_154003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_154003", action = "action_EVENT_GADGET_CREATE_154003", trigger_count = 0 },
{ config_id = 1154004, name = "SELECT_OPTION_154004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_154004", action = "action_EVENT_SELECT_OPTION_154004", trigger_count = 0 },
{ config_id = 1154005, name = "GADGET_STATE_CHANGE_154005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_154005", action = "action_EVENT_GADGET_STATE_CHANGE_154005", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 154001 },
regions = { },
triggers = { "GADGET_CREATE_154003", "SELECT_OPTION_154004", "GADGET_STATE_CHANGE_154005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_154003(context, evt)
if 154001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_154003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250008154, 154001, {2904}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_154004(context, evt)
-- 判断是gadgetid 154001 option_id 2904
if 154001 ~= evt.param1 then
return false
end
if 2904 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_154004(context, evt)
-- 将configid为 154001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 154001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 250008154 ;指定config154001;物件身上指定option2904
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 250008154, 154001, 2904) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_154005(context, evt)
if 154001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_154005(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 250008154, 154001, {2904}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,180 @@
-- 基础信息
local base_info = {
group_id = 250008157
}
-- Trigger变量
local defs = {
duration = 30,
group_id = 250008157,
gadget_sum = 2
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 157001, gadget_id = 70220005, pos = { x = -39.663, y = 8.497, z = -383.371 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 157002, gadget_id = 70900051, pos = { x = -40.758, y = 8.497, z = -385.247 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 157003, gadget_id = 70211111, pos = { x = -42.597, y = 8.497, z = -386.682 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", isOneoff = true, persistent = true },
{ config_id = 157004, gadget_id = 70220005, pos = { x = -39.635, y = 8.543, z = -389.496 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1157005, name = "CHALLENGE_SUCCESS_157005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "56", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_157005" },
{ config_id = 1157006, name = "CHALLENGE_FAIL_157006", event = EventType.EVENT_CHALLENGE_FAIL, source = "56", condition = "", action = "action_EVENT_CHALLENGE_FAIL_157006", trigger_count = 0 },
{ config_id = 1157007, name = "GADGET_STATE_CHANGE_157007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_157007", action = "action_EVENT_GADGET_STATE_CHANGE_157007", trigger_count = 0 },
{ config_id = 1157008, name = "ANY_GADGET_DIE_157008", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "", action = "", trigger_count = 0, tag = "201" }
}
-- 变量
variables = {
{ config_id = 1, name = "gadget_sum", value = 2, no_refresh = true },
{ config_id = 2, name = "gadget_start", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 157002 },
regions = { },
triggers = { "CHALLENGE_SUCCESS_157005", "CHALLENGE_FAIL_157006", "GADGET_STATE_CHANGE_157007", "ANY_GADGET_DIE_157008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 157001, 157004 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_157005(context, evt)
-- 将configid为 157002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 157002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为157003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 157003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3003, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_157006(context, evt)
-- 将configid为 157002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 157002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 250008157, 2)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250008157, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3003, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 将本组内变量名为 "gadget_start" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "gadget_start", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_157007(context, evt)
if 157002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_157007(context, evt)
-- 202号挑战,duration内开启宝箱
if 0 ~= ScriptLib.ActiveChallenge(context, 56, 201, defs.duration, 2, 201, defs.gadget_sum) then
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 2)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3003, 1, 1) then
return -1
end
return 0
end
@@ -0,0 +1,151 @@
-- 基础信息
local base_info = {
group_id = 250008158
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 158001, gadget_id = 70620002, pos = { x = -23.770, y = 3.574, z = -454.048 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, isOneoff = true, persistent = true },
{ config_id = 158002, gadget_id = 70211101, pos = { x = -23.770, y = 3.516, z = -454.047 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1158003, name = "GADGET_STATE_CHANGE_158003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_158003", action = "action_EVENT_GADGET_STATE_CHANGE_158003" },
{ config_id = 1158004, name = "GADGET_STATE_CHANGE_158004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_158004", action = "action_EVENT_GADGET_STATE_CHANGE_158004" },
{ config_id = 1158005, name = "GADGET_CREATE_158005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_158005", action = "action_EVENT_GADGET_CREATE_158005", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 158001, 158002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_158003", "GADGET_CREATE_158005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 158001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_158004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_158003(context, evt)
if 158002 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_158003(context, evt)
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 250008158, 2)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1000, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 销毁group存档,不影响当前场景,但卸载后group就永别了
if 0 ~= ScriptLib.SetGroupDead(context, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_group_die")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_158004(context, evt)
if 158001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_158004(context, evt)
-- 将configid为 158002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 158002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_158005(context, evt)
if 158001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_158005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250008158, 2)
return 0
end
@@ -0,0 +1,151 @@
-- 基础信息
local base_info = {
group_id = 250008159
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 159001, gadget_id = 70620001, pos = { x = -23.103, y = 3.656, z = -441.930 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, isOneoff = true, persistent = true },
{ config_id = 159002, gadget_id = 70211101, pos = { x = -23.103, y = 3.597, z = -441.929 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1159003, name = "GADGET_STATE_CHANGE_159003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_159003", action = "action_EVENT_GADGET_STATE_CHANGE_159003" },
{ config_id = 1159004, name = "GADGET_STATE_CHANGE_159004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_159004", action = "action_EVENT_GADGET_STATE_CHANGE_159004" },
{ config_id = 1159005, name = "GADGET_CREATE_159005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_159005", action = "action_EVENT_GADGET_CREATE_159005", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 159001, 159002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_159003", "GADGET_CREATE_159005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 159001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_159004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_159003(context, evt)
if 159002 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_159003(context, evt)
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 250008159, 2)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1000, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 销毁group存档,不影响当前场景,但卸载后group就永别了
if 0 ~= ScriptLib.SetGroupDead(context, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_group_die")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_159004(context, evt)
if 159001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_159004(context, evt)
-- 将configid为 159002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 159002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_159005(context, evt)
if 159001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_159005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250008159, 2)
return 0
end
@@ -0,0 +1,151 @@
-- 基础信息
local base_info = {
group_id = 250008160
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 160001, gadget_id = 70620003, pos = { x = -39.635, y = 3.574, z = -436.072 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, isOneoff = true, persistent = true },
{ config_id = 160002, gadget_id = 70211101, pos = { x = -39.635, y = 3.516, z = -436.071 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1160003, name = "GADGET_STATE_CHANGE_160003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_160003", action = "action_EVENT_GADGET_STATE_CHANGE_160003" },
{ config_id = 1160004, name = "GADGET_STATE_CHANGE_160004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_160004", action = "action_EVENT_GADGET_STATE_CHANGE_160004" },
{ config_id = 1160005, name = "GADGET_CREATE_160005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_160005", action = "action_EVENT_GADGET_CREATE_160005", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 160001, 160002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_160003", "GADGET_CREATE_160005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 160001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_160004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_160003(context, evt)
if 160002 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_160003(context, evt)
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.KillExtraGroupSuite(context, 250008160, 2)
-- 运营数据埋点,匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1000, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 销毁group存档,不影响当前场景,但卸载后group就永别了
if 0 ~= ScriptLib.SetGroupDead(context, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_group_die")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_160004(context, evt)
if 160001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_160004(context, evt)
-- 将configid为 160002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 160002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_160005(context, evt)
if 160001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_160005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 250008160, 2)
return 0
end
@@ -0,0 +1,8 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {},
"transRadius": 0.0
}