213 lines
11 KiB
Go
213 lines
11 KiB
Go
-- 基础信息
|
||
local base_info = {
|
||
group_id = 133001182
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 配置
|
||
--
|
||
--================================================================
|
||
|
||
-- 怪物
|
||
monsters = {
|
||
}
|
||
|
||
-- NPC
|
||
npcs = {
|
||
}
|
||
|
||
-- 装置
|
||
gadgets = {
|
||
{ config_id = 182001, gadget_id = 70690013, pos = { x = 761.812, y = 200.544, z = -1279.510 }, rot = { x = 0.000, y = 358.306, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182002, gadget_id = 70690001, pos = { x = 761.494, y = 248.830, z = -1265.022 }, rot = { x = 358.974, y = 356.475, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182003, gadget_id = 70690001, pos = { x = 760.880, y = 249.009, z = -1255.043 }, rot = { x = 358.973, y = 356.475, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182004, gadget_id = 70690001, pos = { x = 760.264, y = 249.188, z = -1245.062 }, rot = { x = 358.974, y = 356.475, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182005, gadget_id = 70690001, pos = { x = 759.651, y = 249.367, z = -1235.083 }, rot = { x = 358.974, y = 356.475, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182006, gadget_id = 70690001, pos = { x = 757.967, y = 244.995, z = -1207.754 }, rot = { x = 358.973, y = 356.476, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182007, gadget_id = 70690001, pos = { x = 757.355, y = 245.174, z = -1197.775 }, rot = { x = 358.974, y = 356.476, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182008, gadget_id = 70690001, pos = { x = 756.739, y = 245.353, z = -1187.796 }, rot = { x = 358.974, y = 356.475, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182009, gadget_id = 70690001, pos = { x = 756.124, y = 245.533, z = -1177.815 }, rot = { x = 358.973, y = 356.475, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182010, gadget_id = 70690001, pos = { x = 753.534, y = 238.818, z = -1128.845 }, rot = { x = 358.973, y = 356.475, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182011, gadget_id = 70690001, pos = { x = 754.149, y = 238.639, z = -1138.826 }, rot = { x = 358.974, y = 356.475, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182012, gadget_id = 70690001, pos = { x = 754.765, y = 238.460, z = -1148.805 }, rot = { x = 358.974, y = 356.476, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182013, gadget_id = 70690001, pos = { x = 755.377, y = 238.281, z = -1158.784 }, rot = { x = 358.973, y = 356.476, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182014, gadget_id = 70690013, pos = { x = 752.910, y = 200.544, z = -1089.900 }, rot = { x = 0.000, y = 6.851, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182015, gadget_id = 70690001, pos = { x = 748.000, y = 250.752, z = -1072.955 }, rot = { x = 358.974, y = 344.032, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182016, gadget_id = 70690001, pos = { x = 745.250, y = 250.931, z = -1063.342 }, rot = { x = 358.973, y = 344.032, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182017, gadget_id = 70690001, pos = { x = 742.498, y = 251.111, z = -1053.728 }, rot = { x = 358.974, y = 344.032, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182018, gadget_id = 70690001, pos = { x = 655.631, y = 213.494, z = -890.598 }, rot = { x = 270.439, y = 121.025, z = 256.484 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182019, gadget_id = 70690001, pos = { x = 720.581, y = 244.998, z = -1005.595 }, rot = { x = 358.974, y = 330.514, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182020, gadget_id = 70690001, pos = { x = 725.500, y = 244.819, z = -1014.298 }, rot = { x = 358.973, y = 330.515, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182021, gadget_id = 70690001, pos = { x = 715.659, y = 245.177, z = -996.892 }, rot = { x = 358.974, y = 330.514, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182022, gadget_id = 70690001, pos = { x = 655.678, y = 220.481, z = -890.626 }, rot = { x = 270.443, y = 120.897, z = 256.610 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182023, gadget_id = 70690001, pos = { x = 705.246, y = 241.924, z = -978.699 }, rot = { x = 358.974, y = 330.514, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182024, gadget_id = 70690001, pos = { x = 700.324, y = 242.104, z = -969.995 }, rot = { x = 358.973, y = 330.514, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182025, gadget_id = 70690001, pos = { x = 695.402, y = 242.283, z = -961.291 }, rot = { x = 358.974, y = 330.514, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182026, gadget_id = 70690001, pos = { x = 655.738, y = 206.660, z = -890.617 }, rot = { x = 270.446, y = 121.191, z = 256.317 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182027, gadget_id = 70690001, pos = { x = 672.085, y = 233.164, z = -920.050 }, rot = { x = 358.974, y = 330.514, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182028, gadget_id = 70690001, pos = { x = 677.004, y = 232.985, z = -928.754 }, rot = { x = 358.973, y = 330.515, z = 0.000 }, level = 5, persistent = true, area_id = 10 },
|
||
{ config_id = 182029, gadget_id = 70690001, pos = { x = 667.163, y = 233.343, z = -911.347 }, rot = { x = 358.974, y = 330.514, z = 0.000 }, level = 5, persistent = true, area_id = 10 }
|
||
}
|
||
|
||
-- 区域
|
||
regions = {
|
||
{ config_id = 182031, shape = RegionShape.SPHERE, radius = 50, pos = { x = 760.056, y = 193.563, z = -1295.174 }, area_id = 10 },
|
||
{ config_id = 182032, shape = RegionShape.SPHERE, radius = 25, pos = { x = 750.525, y = 228.953, z = -1095.957 }, area_id = 10 },
|
||
{ config_id = 182033, shape = RegionShape.SPHERE, radius = 25, pos = { x = 647.096, y = 207.522, z = -877.768 }, area_id = 10 }
|
||
}
|
||
|
||
-- 触发器
|
||
triggers = {
|
||
{ config_id = 1182031, name = "ENTER_REGION_182031", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_182031", action = "action_EVENT_ENTER_REGION_182031", trigger_count = 0 },
|
||
{ config_id = 1182032, name = "ENTER_REGION_182032", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_182032", action = "action_EVENT_ENTER_REGION_182032" },
|
||
{ config_id = 1182033, name = "ENTER_REGION_182033", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_182033", action = "action_EVENT_ENTER_REGION_182033" },
|
||
{ config_id = 1182034, name = "TIME_AXIS_PASS_182034", event = EventType.EVENT_TIME_AXIS_PASS, source = "T_sight", condition = "", action = "action_EVENT_TIME_AXIS_PASS_182034" }
|
||
}
|
||
|
||
-- 变量
|
||
variables = {
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 初始化配置
|
||
--
|
||
--================================================================
|
||
|
||
-- 初始化时创建
|
||
init_config = {
|
||
suite = 1,
|
||
end_suite = 0,
|
||
rand_suite = false
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 小组配置
|
||
--
|
||
--================================================================
|
||
|
||
suites = {
|
||
{
|
||
-- suite_id = 1,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 182001, 182002, 182003, 182004, 182005, 182006, 182007, 182008, 182009, 182010, 182011, 182012, 182013 },
|
||
regions = { 182031, 182032 },
|
||
triggers = { "ENTER_REGION_182031", "ENTER_REGION_182032", "TIME_AXIS_PASS_182034" },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 2,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { 182014, 182015, 182016, 182017, 182018, 182019, 182020, 182021, 182022, 182023, 182024, 182025, 182026, 182027, 182028, 182029 },
|
||
regions = { 182033 },
|
||
triggers = { "ENTER_REGION_182033" },
|
||
rand_weight = 100
|
||
},
|
||
{
|
||
-- suite_id = 3,
|
||
-- description = ,
|
||
monsters = { },
|
||
gadgets = { },
|
||
regions = { },
|
||
triggers = { },
|
||
rand_weight = 100
|
||
}
|
||
}
|
||
|
||
--================================================================
|
||
--
|
||
-- 触发器
|
||
--
|
||
--================================================================
|
||
|
||
-- 触发条件
|
||
function condition_EVENT_ENTER_REGION_182031(context, evt)
|
||
if evt.param1 ~= 182031 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_182031(context, evt)
|
||
-- 创建标识为"T_sight",时间节点为{3}的时间轴,false用于控制该时间轴是否循环
|
||
ScriptLib.InitTimeAxis(context, "T_sight", {3}, false)
|
||
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发条件
|
||
function condition_EVENT_ENTER_REGION_182032(context, evt)
|
||
if evt.param1 ~= 182032 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_182032(context, evt)
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133001182, suite = 2 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发条件
|
||
function condition_EVENT_ENTER_REGION_182033(context, evt)
|
||
if evt.param1 ~= 182033 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_182033(context, evt)
|
||
-- 重新生成指定group,指定suite
|
||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 133001182, suite = 3 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end
|
||
|
||
-- 触发操作
|
||
function action_EVENT_TIME_AXIS_PASS_182034(context, evt)
|
||
-- 触发镜头注目,注目位置为坐标(763,203,-1281),持续时间为3秒,并且为强制注目形式,不广播其他玩家
|
||
local pos = {x=763, y=203, z=-1281}
|
||
local pos_follow = {x=0, y=0, z=0}
|
||
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, duration = 3, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
|
||
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
|
||
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
|
||
return -1
|
||
end
|
||
|
||
-- 调用提示id为 400872 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
|
||
if 0 ~= ScriptLib.ShowReminder(context, 400872) then
|
||
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
|
||
return -1
|
||
end
|
||
|
||
return 0
|
||
end |