添加配置表

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 = -2000.0, z = -1000.0 },
size = { x = 3000.0, z = 3000.0 },
born_pos = { x = 315.913, y = 200.083, z = 494.185 },
born_rot = { x = 0.000, y = 91.666, z = 0.000 },
die_y = -65,
city_id = 2,
vision_anchor = { x = -2000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 20129 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -2000.0, z = -1000.0 }, max = { x = 1000.0, z = 2000.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }
@@ -0,0 +1,33 @@
-- 所有的group
groups = {
{ id = 220129001, pos = { x = -6.881, y = 1.000, z = -22.970 }, business = { type = 1 } },
{ id = 220129002, pos = { x = -5.937, y = 1.800, z = -54.466 }, business = { type = 1 } },
{ id = 220129003, pos = { x = -453.361, y = 1.000, z = -57.496 }, business = { type = 1 } },
{ id = 220129004, pos = { x = 330.928, y = 200.147, z = 494.387 }, business = { type = 1 } },
{ id = 220129005, pos = { x = 325.484, y = 200.383, z = 277.602 }, business = { type = 1 } },
{ id = 220129006, pos = { x = 322.138, y = 200.142, z = 70.667 }, business = { type = 1 } },
{ id = 220129007, pos = { x = 327.090, y = 200.112, z = 722.911 } },
{ id = 220129008, pos = { x = 325.840, y = 200.051, z = 491.737 } },
{ id = 220129009, pos = { x = 327.723, y = 200.057, z = 269.713 } },
{ id = 220129010, pos = { x = 325.751, y = 199.981, z = 65.586 } },
{ id = 220129011, pos = { x = -457.261, y = -1.932, z = -53.434 } },
{ id = 220129012, pos = { x = -432.230, y = -47.293, z = 977.660 } },
{ id = 220129013, pos = { x = 353.332, y = 205.188, z = 722.665 }, business = { type = 1 } },
{ id = 220129014, pos = { x = 327.286, y = 200.012, z = 723.467 } },
{ id = 220129015, pos = { x = 329.303, y = 200.069, z = 72.275 } },
{ id = 220129016, pos = { x = 327.778, y = 200.012, z = 723.513 } },
{ id = 220129017, pos = { x = 326.302, y = 200.209, z = 495.252 } },
{ id = 220129018, pos = { x = 326.782, y = 200.204, z = 271.983 } },
{ id = 220129019, pos = { x = 328.773, y = 200.141, z = 69.344 } },
{ id = 220129020, pos = { x = -417.677, y = -44.375, z = 981.149 } },
{ id = 220129021, pos = { x = 328.297, y = 200.057, z = 491.660 } },
{ id = 220129022, pos = { x = 325.448, y = 200.070, z = 269.968 } },
{ id = 220129023, pos = { x = 329.489, y = 200.012, z = 720.616 }, business = { type = 1 } },
{ id = 220129024, pos = { x = 314.477, y = 199.981, z = 479.343 }, business = { type = 1 } },
{ id = 220129025, pos = { x = 322.325, y = 200.254, z = 250.242 }, business = { type = 1 } },
{ id = 220129026, pos = { x = 332.268, y = 200.029, z = 58.098 }, business = { type = 1 } },
{ id = 220129027, pos = { x = 320.850, y = 200.066, z = 495.371 } },
{ id = 220129028, pos = { x = 294.887, y = 206.298, z = 508.732 } },
{ id = 220129029, refresh_id = 1, pos = { x = -458.829, y = -47.721, z = 975.364 } },
{ id = 220129030, pos = { x = 330.096, y = 200.108, z = 260.717 } }
}
@@ -0,0 +1,35 @@
dummy_points = {
["Q1030_BattleA"] = { pos = { x = 325.179, y = 199.981, z = 495.249 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q1030_BattleB"] = { pos = { x = 321.540, y = 200.120, z = 272.597 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q1030_BattleC"] = { pos = { x = 322.733, y = 200.062, z = 72.468 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q103004_N1030"] = { pos = { x = 333.311, y = 200.137, z = 496.453 }, rot = { x = 0.000, y = 257.329, z = 0.000 } },
["Q103006_N10204"] = { pos = { x = -267.900, y = 274.798, z = 408.248 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q103006_Q103027_T103040_N1005"] = { pos = { x = 335.037, y = 200.012, z = 726.136 }, rot = { x = 0.000, y = 187.442, z = 0.000 } },
["Q103006_Q103027_T103040_N1030"] = { pos = { x = 337.460, y = 200.012, z = 719.586 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q103006_Q103027_T103040_N1048"] = { pos = { x = 329.158, y = 200.012, z = 709.725 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q103006_T103040_N1005"] = { pos = { x = 328.440, y = 200.012, z = 725.038 }, rot = { x = 0.000, y = 79.370, z = 0.000 } },
["Q103006_T103040_N10204"] = { pos = { x = 349.773, y = 200.625, z = 738.436 }, rot = { x = 0.000, y = 210.829, z = 0.000 } },
["Q103007_Q103009_N1030"] = { pos = { x = 331.451, y = 200.146, z = 494.691 }, rot = { x = 0.000, y = 85.432, z = 0.000 } },
["Q103012_Q103014_N1048"] = { pos = { x = 328.535, y = 200.035, z = 269.109 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q103017_Q103019_N10204"] = { pos = { x = 343.148, y = 200.012, z = 71.114 }, rot = { x = 0.000, y = 15.070, z = 0.000 } },
["Q103021_Q103026_N1048"] = { pos = { x = -455.619, y = -1.932, z = -78.623 }, rot = { x = 0.000, y = 42.996, z = 0.000 } },
["Q103022_Walk1"] = { pos = { x = -448.576, y = -1.847, z = -75.335 }, rot = { x = 0.000, y = 337.658, z = 0.000 } },
["Q103022_Walk2"] = { pos = { x = -453.863, y = -1.847, z = -69.413 }, rot = { x = 0.000, y = 291.216, z = 0.000 } },
["Q103022_Walk3"] = { pos = { x = -461.329, y = -1.847, z = -69.992 }, rot = { x = 0.000, y = 218.358, z = 0.000 } },
["Q103023_N1005"] = { pos = { x = -270.280, y = 274.798, z = 407.277 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q103025_MetaAvatar"] = { pos = { x = -452.553, y = -1.656, z = -38.797 }, rot = { x = 0.000, y = 0.882, z = 0.000 } },
["Q103027_Transmit"] = { pos = { x = 333.211, y = 200.012, z = 724.254 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T103007_T103009_N10000005"] = { pos = { x = 340.912, y = 199.981, z = 498.166 }, rot = { x = 0.000, y = 241.563, z = 0.000 } },
["T103007_T103009_N1005"] = { pos = { x = 340.570, y = 200.013, z = 493.311 }, rot = { x = 0.000, y = 255.921, z = 0.000 } },
["T103012_T103014_N10000005"] = { pos = { x = 339.849, y = 200.012, z = 267.533 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T103012_T103014_N1005"] = { pos = { x = 339.421, y = 199.968, z = 271.712 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T103012_T103014_N1030"] = { pos = { x = 339.860, y = 199.972, z = 276.689 }, rot = { x = 0.000, y = 161.632, z = 0.000 } },
["T103017_T103019_N10000005"] = { pos = { x = 338.108, y = 200.012, z = 77.068 }, rot = { x = 0.000, y = 281.468, z = 0.000 } },
["T103017_T103019_N1005"] = { pos = { x = 338.864, y = 200.069, z = 68.452 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T103017_T103019_N1030"] = { pos = { x = 340.895, y = 200.012, z = 73.194 }, rot = { x = 0.000, y = 307.928, z = 0.000 } },
["T103017_T103019_N1048"] = { pos = { x = 341.519, y = 200.012, z = 65.691 }, rot = { x = 0.000, y = 303.251, z = 0.000 } },
["T103021_T103023_T103026_N10000005"] = { pos = { x = -461.719, y = -1.932, z = -67.264 }, rot = { x = 0.000, y = 14.819, z = 0.000 } },
["T103021_T103023_T103026_N1030"] = { pos = { x = -459.742, y = -1.932, z = -76.944 }, rot = { x = 0.000, y = 277.523, z = 0.000 } },
["T103021_T103023_T103026_N1048"] = { pos = { x = -447.393, y = -1.932, z = -70.629 }, rot = { x = 0.000, y = 173.706, z = 0.000 } },
["T103040_N10000005"] = { pos = { x = 337.247, y = 200.012, z = 722.835 }, rot = { x = 0.000, y = 279.641, z = 0.000 } }
}
@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 220129001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70710421, pos = { x = 325.059, y = 200.077, z = 67.242 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1002, gadget_id = 70710421, pos = { x = 320.572, y = 200.503, z = 253.333 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1003, gadget_id = 70710421, pos = { x = 321.733, y = 200.137, z = 483.625 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1004, gadget_id = 70710421, pos = { x = 319.988, y = 200.012, z = 705.280 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,198 @@
-- 基础信息
local base_info = {
group_id = 220129002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 2001, shape = RegionShape.SPHERE, radius = 15, pos = { x = 323.386, y = 200.138, z = 67.926 } },
{ config_id = 2002, shape = RegionShape.SPHERE, radius = 15, pos = { x = 333.653, y = 200.135, z = 273.278 } },
{ config_id = 2003, shape = RegionShape.SPHERE, radius = 15, pos = { x = 334.445, y = 200.131, z = 495.723 } },
{ config_id = 2004, shape = RegionShape.SPHERE, radius = 10, pos = { x = 326.592, y = 200.012, z = 723.097 } }
}
-- 触发器
triggers = {
{ config_id = 1002001, name = "ENTER_REGION_2001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2001", action = "action_EVENT_ENTER_REGION_2001" },
{ config_id = 1002002, name = "ENTER_REGION_2002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2002", action = "action_EVENT_ENTER_REGION_2002" },
{ config_id = 1002003, name = "ENTER_REGION_2003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2003", action = "action_EVENT_ENTER_REGION_2003" },
{ config_id = 1002004, name = "ENTER_REGION_2004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2004", action = "action_EVENT_ENTER_REGION_2004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 2002 },
triggers = { "ENTER_REGION_2002" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { 2003 },
triggers = { "ENTER_REGION_2003" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { 2004 },
triggers = { "ENTER_REGION_2004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_2001(context, evt)
if evt.param1 ~= 2001 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2001(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "103006") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2002(context, evt)
if evt.param1 ~= 2002 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2002(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "103011") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2003(context, evt)
if evt.param1 ~= 2003 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2003(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "103016") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2004(context, evt)
if evt.param1 ~= 2004 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2004(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "103020") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,205 @@
-- 基础信息
local base_info = {
group_id = 220129003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3003, gadget_id = 70710742, pos = { x = -452.084, y = -1.989, z = -38.701 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1, is_enable_interact = false },
{ config_id = 3004, gadget_id = 70360001, pos = { x = -452.000, y = -1.741, z = -37.721 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3007, gadget_id = 70900201, pos = { x = -452.060, y = 1.029, z = -37.655 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3001, shape = RegionShape.SPHERE, radius = 10, pos = { x = -37.237, y = 222.072, z = 694.297 } },
{ config_id = 3002, shape = RegionShape.SPHERE, radius = 5, pos = { x = -32.262, y = 223.757, z = 692.633 } },
{ config_id = 3005, shape = RegionShape.SPHERE, radius = 10, pos = { x = -451.987, y = -1.741, z = -37.606 } }
}
-- 触发器
triggers = {
{ config_id = 1003001, name = "ENTER_REGION_3001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3001", action = "action_EVENT_ENTER_REGION_3001" },
{ config_id = 1003002, name = "ENTER_REGION_3002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3002", action = "action_EVENT_ENTER_REGION_3002" },
{ config_id = 1003005, name = "ENTER_REGION_3005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3005", action = "action_EVENT_ENTER_REGION_3005" },
{ config_id = 1003006, name = "SELECT_OPTION_3006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3006", action = "action_EVENT_SELECT_OPTION_3006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3003, 3004, 3007 },
regions = { 3005 },
triggers = { "ENTER_REGION_3005", "SELECT_OPTION_3006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_3001(context, evt)
if evt.param1 ~= 3001 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3001(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "103022") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3002(context, evt)
if evt.param1 ~= 3002 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3002(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "103025") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3005(context, evt)
if evt.param1 ~= 3005 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_3005(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220129003, 3004, {64}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3006(context, evt)
-- 判断是gadgetid 3004 option_id 64
if 3004 ~= evt.param1 then
return false
end
if 64 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3006(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "103025") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 删除指定group 220129003 ;指定config3004;物件身上指定option64
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220129003, 3004, 64) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,137 @@
-- 基础信息
local base_info = {
group_id = 220129004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 25010201, pos = { x = 328.566, y = 200.129, z = 496.020 }, rot = { x = 0.000, y = 268.603, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 4003, monster_id = 25070101, pos = { x = 328.210, y = 200.130, z = 493.580 }, rot = { x = 0.000, y = 251.122, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 4004, monster_id = 25010201, pos = { x = 328.698, y = 200.013, z = 490.530 }, rot = { x = 0.000, y = 226.308, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 4005, monster_id = 25010701, pos = { x = 332.148, y = 200.138, z = 493.505 }, rot = { x = 0.000, y = 261.467, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 4006, monster_id = 25010701, pos = { x = 331.936, y = 199.981, z = 496.956 }, rot = { x = 0.000, y = 303.537, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 4007, monster_id = 25010201, pos = { x = 331.714, y = 200.028, z = 491.170 }, rot = { x = 0.000, y = 212.017, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4009, gadget_id = 70800195, pos = { x = 328.934, y = 199.981, z = 496.795 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1004002, name = "ANY_MONSTER_DIE_4002", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4002", action = "action_EVENT_ANY_MONSTER_DIE_4002" },
{ config_id = 1004010, name = "ANY_MONSTER_DIE_4010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4010", action = "action_EVENT_ANY_MONSTER_DIE_4010" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 4001, 4003, 4004 },
gadgets = { 4009 },
regions = { },
triggers = { "ANY_MONSTER_DIE_4002" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 4005, 4006, 4007 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_4010" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4002(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4002(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220129004, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4010(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4010(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "103008") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,141 @@
-- 基础信息
local base_info = {
group_id = 220129005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 5001, monster_id = 23010101, pos = { x = 329.966, y = 200.120, z = 280.922 }, rot = { x = 0.000, y = 226.849, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 5003, monster_id = 23010601, pos = { x = 332.137, y = 200.025, z = 269.863 }, rot = { x = 0.000, y = 255.112, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 5006, monster_id = 23020101, pos = { x = 330.930, y = 200.160, z = 275.727 }, rot = { x = 0.000, y = 212.471, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5004, gadget_id = 70800195, pos = { x = 327.455, y = 200.197, z = 275.730 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1005002, name = "ANY_MONSTER_DIE_5002", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5002", action = "action_EVENT_ANY_MONSTER_DIE_5002" },
{ config_id = 1005007, name = "ANY_MONSTER_DIE_5007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5007", action = "action_EVENT_ANY_MONSTER_DIE_5007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 5001, 5003 },
gadgets = { 5004 },
regions = { },
triggers = { "ANY_MONSTER_DIE_5002" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 5006 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_5007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5002(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5002(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220129005, 3)
-- 在指定位置对应半径范围播放reminder
local pos = {x=326,y=200,z=279}
if 0 ~= ScriptLib.ShowReminderRadius(context, 201290401, pos, 60) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5007(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "103013") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,104 @@
-- 基础信息
local base_info = {
group_id = 220129006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 22090101, pos = { x = 324.250, y = 200.044, z = 69.860 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6003, gadget_id = 70800195, pos = { x = 329.604, y = 200.091, z = 72.759 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1006002, name = "ANY_MONSTER_DIE_6002", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6002", action = "action_EVENT_ANY_MONSTER_DIE_6002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6002(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6002(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "103018") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,129 @@
-- 基础信息
local base_info = {
group_id = 220129007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7002, gadget_id = 70800214, pos = { x = 333.220, y = 199.816, z = 711.649 }, rot = { x = 0.000, y = 253.475, z = 0.000 }, level = 1 },
{ config_id = 7003, gadget_id = 70211121, pos = { x = 334.740, y = 200.012, z = 727.967 }, rot = { x = 0.000, y = 278.891, z = 0.000 }, level = 1, drop_tag = "解谜高级璃月", isOneoff = true, persistent = true },
{ config_id = 7005, gadget_id = 70800107, pos = { x = 301.823, y = 246.163, z = 726.495 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7006, gadget_id = 70690037, pos = { x = 264.500, y = 247.100, z = 477.600 }, rot = { x = 358.000, y = 332.000, z = 338.300 }, level = 1 },
{ config_id = 7007, gadget_id = 70690037, pos = { x = 266.900, y = 249.300, z = 704.600 }, rot = { x = 357.100, y = 331.500, z = 332.400 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 7004, shape = RegionShape.SPHERE, radius = 35, pos = { x = 323.411, y = 200.112, z = 723.523 } }
}
-- 触发器
triggers = {
{ config_id = 1007001, name = "DUNGEON_SETTLE_7001", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_7001", action = "action_EVENT_DUNGEON_SETTLE_7001" },
{ config_id = 1007004, name = "ENTER_REGION_7004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7004", action = "action_EVENT_ENTER_REGION_7004", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7002, 7005, 7006, 7007 },
regions = { 7004 },
triggers = { "DUNGEON_SETTLE_7001", "ENTER_REGION_7004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 7003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_7001(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_7001(context, evt)
-- 创建id为7003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 7003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_7004(context, evt)
if evt.param1 ~= 7004 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_7004(context, evt)
-- 立刻切换天气
ScriptLib.EnterWeatherArea(context, 10082)
return 0
end
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 220129008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8002, gadget_id = 71700329, pos = { x = 279.778, y = 208.192, z = 291.333 }, rot = { x = 0.000, y = 21.915, z = 0.000 }, level = 1 },
{ config_id = 8003, gadget_id = 70800107, pos = { x = 328.939, y = 246.163, z = 495.027 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 8001, shape = RegionShape.SPHERE, radius = 35, pos = { x = 322.612, y = 200.051, z = 493.450 } }
}
-- 触发器
triggers = {
{ config_id = 1008001, name = "ENTER_REGION_8001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8001", action = "action_EVENT_ENTER_REGION_8001", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8002, 8003 },
regions = { 8001 },
triggers = { "ENTER_REGION_8001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_8001(context, evt)
if evt.param1 ~= 8001 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_8001(context, evt)
-- 立刻切换天气
ScriptLib.EnterWeatherArea(context, 10083)
return 0
end
@@ -0,0 +1,96 @@
-- 基础信息
local base_info = {
group_id = 220129009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9002, gadget_id = 70800107, pos = { x = 328.701, y = 246.163, z = 275.462 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9003, gadget_id = 70690037, pos = { x = 254.800, y = 248.200, z = 251.300 }, rot = { x = 358.850, y = 350.700, z = 353.100 }, level = 1 },
{ config_id = 9004, gadget_id = 70690037, pos = { x = 254.800, y = 248.200, z = 53.400 }, rot = { x = 358.900, y = 350.700, z = 353.020 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 9001, shape = RegionShape.SPHERE, radius = 35, pos = { x = 321.226, y = 200.057, z = 280.882 } }
}
-- 触发器
triggers = {
{ config_id = 1009001, name = "ENTER_REGION_9001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9001", action = "action_EVENT_ENTER_REGION_9001", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9002, 9003, 9004 },
regions = { 9001 },
triggers = { "ENTER_REGION_9001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_9001(context, evt)
if evt.param1 ~= 9001 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_9001(context, evt)
-- 立刻切换天气
ScriptLib.EnterWeatherArea(context, 10084)
return 0
end
@@ -0,0 +1,97 @@
-- 基础信息
local base_info = {
group_id = 220129010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10002, gadget_id = 70800205, pos = { x = 316.171, y = 200.603, z = 50.039 }, rot = { x = 351.825, y = 30.279, z = 359.367 }, level = 1 },
{ config_id = 10003, gadget_id = 70800107, pos = { x = 335.071, y = 246.163, z = 73.227 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10004, gadget_id = 70800111, pos = { x = 323.437, y = 209.922, z = 464.431 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10005, gadget_id = 70800111, pos = { x = 325.442, y = 210.405, z = 244.200 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 10001, shape = RegionShape.SPHERE, radius = 35, pos = { x = 321.042, y = 199.981, z = 70.923 } }
}
-- 触发器
triggers = {
{ config_id = 1010001, name = "ENTER_REGION_10001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10001", action = "action_EVENT_ENTER_REGION_10001", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10002, 10003, 10004, 10005 },
regions = { 10001 },
triggers = { "ENTER_REGION_10001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_10001(context, evt)
if evt.param1 ~= 10001 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_10001(context, evt)
-- 立刻切换天气
ScriptLib.EnterWeatherArea(context, 10085)
return 0
end
@@ -0,0 +1,126 @@
-- 基础信息
local base_info = {
group_id = 220129011
}
-- DEFS_MISCS
function SLC_Active_Portal(context)
ScriptLib.PrintContextLog(context, "SLC_Active_Portal:run func")
if ScriptLib.GetGadgetConfigId(context, {gadget_eid = context.source_entity_id}) == 11002 then
ScriptLib.PrintContextLog(context, "SLC_Active_Portal:触发传送")
ScriptLib.CreateGadget(context, { config_id = 11003 })
end
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11002, gadget_id = 70800140, pos = { x = -456.436, y = -1.932, z = -85.815 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.ChestLocked },
{ config_id = 11003, gadget_id = 70800172, pos = { x = -456.436, y = -1.932, z = -85.836 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 11001, shape = RegionShape.SPHERE, radius = 100, pos = { x = -455.335, y = -1.932, z = -64.483 } }
}
-- 触发器
triggers = {
{ config_id = 1011001, name = "ENTER_REGION_11001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11001", action = "action_EVENT_ENTER_REGION_11001", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 11001 },
triggers = { "ENTER_REGION_11001" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 11002 },
regions = { 11001 },
triggers = { "ENTER_REGION_11001" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 11003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_11001(context, evt)
if evt.param1 ~= 11001 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_11001(context, evt)
-- 立刻切换天气
ScriptLib.EnterWeatherArea(context, 10098)
--设置时间通道的变量
ScriptLib.SetGroupVariableValueByGroup(context, "time", 1, 220129014)
return 0
end
@@ -0,0 +1,101 @@
-- 基础信息
local base_info = {
group_id = 220129012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12003, gadget_id = 70800111, pos = { x = -411.880, y = -43.200, z = 971.600 }, rot = { x = 0.000, y = 0.000, z = 1.690 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 12001, shape = RegionShape.SPHERE, radius = 80, pos = { x = -432.230, y = -47.293, z = 977.660 } }
}
-- 触发器
triggers = {
{ config_id = 1012001, name = "ENTER_REGION_12001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12001", action = "action_EVENT_ENTER_REGION_12001", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 12002, gadget_id = 71700329, pos = { x = -415.168, y = -40.603, z = 975.483 }, rot = { x = 0.000, y = 348.502, z = 0.000 }, level = 1 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 12003 },
regions = { 12001 },
triggers = { "ENTER_REGION_12001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_12001(context, evt)
if evt.param1 ~= 12001 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_12001(context, evt)
-- 立刻切换天气
ScriptLib.EnterWeatherArea(context, 10097)
return 0
end
@@ -0,0 +1,96 @@
-- 基础信息
local base_info = {
group_id = 220129013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 13001, shape = RegionShape.SPHERE, radius = 10, pos = { x = 324.280, y = 200.012, z = 720.716 } }
}
-- 触发器
triggers = {
{ config_id = 1013001, name = "ENTER_REGION_13001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13001", action = "action_EVENT_ENTER_REGION_13001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 13001 },
triggers = { "ENTER_REGION_13001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_13001(context, evt)
if evt.param1 ~= 13001 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13001(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "103005") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,235 @@
-- 基础信息
local base_info = {
group_id = 220129014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 14001, gadget_id = 70800135, pos = { x = 302.975, y = 205.439, z = 721.333 }, rot = { x = 0.000, y = 85.683, z = 0.000 }, level = 1 },
{ config_id = 14002, gadget_id = 70800136, pos = { x = 302.800, y = 205.424, z = 491.802 }, rot = { x = 0.000, y = 92.182, z = 0.000 }, level = 1 },
{ config_id = 14003, gadget_id = 70800137, pos = { x = 302.991, y = 205.469, z = 269.913 }, rot = { x = 0.000, y = 86.138, z = 0.000 }, level = 1 },
{ config_id = 14004, gadget_id = 70800138, pos = { x = 302.847, y = 205.428, z = 68.287 }, rot = { x = 0.000, y = 91.963, z = 0.000 }, level = 1 },
{ config_id = 14005, gadget_id = 70800139, pos = { x = -457.264, y = -47.164, z = 974.000 }, rot = { x = 0.000, y = 85.077, z = 0.000 }, level = 1 },
{ config_id = 14006, gadget_id = 70800159, pos = { x = -458.293, y = -1.921, z = -75.525 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 14007, shape = RegionShape.CUBIC, size = { x = 400.000, y = 400.000, z = 1200.000 }, pos = { x = 331.334, y = 200.072, z = 491.685 } },
{ config_id = 14013, shape = RegionShape.SPHERE, radius = 100, pos = { x = -373.185, y = -29.190, z = 977.199 } },
{ config_id = 14014, shape = RegionShape.SPHERE, radius = 200, pos = { x = -456.181, y = -0.195, z = -51.985 } }
}
-- 触发器
triggers = {
{ config_id = 1014007, name = "ENTER_REGION_14007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14007", action = "action_EVENT_ENTER_REGION_14007", trigger_count = 0 },
{ config_id = 1014013, name = "ENTER_REGION_14013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14013", action = "action_EVENT_ENTER_REGION_14013", trigger_count = 0 },
{ config_id = 1014014, name = "ENTER_REGION_14014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14014", action = "action_EVENT_ENTER_REGION_14014", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "time", value = 2, no_refresh = true },
{ config_id = 2, name = "min_time", value = 2, no_refresh = true },
{ config_id = 3, name = "max_time", value = 3, no_refresh = true }
}
-- 废弃数据
garbages = {
regions = {
{ config_id = 14012, shape = RegionShape.CUBIC, size = { x = 300.000, y = 400.000, z = 1000.000 }, pos = { x = 331.414, y = 290.277, z = 491.542 } }
},
triggers = {
{ config_id = 1014008, name = "VARIABLE_CHANGE_14008", event = EventType.EVENT_VARIABLE_CHANGE, source = "time", condition = "condition_EVENT_VARIABLE_CHANGE_14008", action = "action_EVENT_VARIABLE_CHANGE_14008", trigger_count = 0 },
{ config_id = 1014009, name = "VARIABLE_CHANGE_14009", event = EventType.EVENT_VARIABLE_CHANGE, source = "time", condition = "condition_EVENT_VARIABLE_CHANGE_14009", action = "action_EVENT_VARIABLE_CHANGE_14009", trigger_count = 0 },
{ config_id = 1014010, name = "VARIABLE_CHANGE_14010", event = EventType.EVENT_VARIABLE_CHANGE, source = "time", condition = "condition_EVENT_VARIABLE_CHANGE_14010", action = "action_EVENT_VARIABLE_CHANGE_14010", trigger_count = 0 },
{ config_id = 1014011, name = "VARIABLE_CHANGE_14011", event = EventType.EVENT_VARIABLE_CHANGE, source = "time", condition = "condition_EVENT_VARIABLE_CHANGE_14011", action = "action_EVENT_VARIABLE_CHANGE_14011", trigger_count = 0 },
{ config_id = 1014012, name = "ENTER_REGION_14012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14012", action = "action_EVENT_ENTER_REGION_14012", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 14007, 14013, 14014 },
triggers = { "ENTER_REGION_14007", "ENTER_REGION_14013", "ENTER_REGION_14014" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 14001, 14002, 14003, 14004, 14006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 14005 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_14007(context, evt)
if evt.param1 ~= 14007 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_14007(context, evt)
ScriptLib.RemoveExtraGroupSuite(context, 220129014, 2)
ScriptLib.CreateGadget(context, { config_id = 14005 })
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14013(context, evt)
if evt.param1 ~= 14013 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_14013(context, evt)
ScriptLib.RemoveExtraGroupSuite(context, 220129016, 2)
ScriptLib.RemoveExtraGroupSuite(context, 220129017, 2)
ScriptLib.RemoveExtraGroupSuite(context, 220129018, 2)
ScriptLib.RemoveExtraGroupSuite(context, 220129019, 2)
ScriptLib.RemoveExtraGroupSuite(context, 220129016, 3)
ScriptLib.RemoveExtraGroupSuite(context, 220129017, 3)
ScriptLib.RemoveExtraGroupSuite(context, 220129018, 3)
ScriptLib.RemoveExtraGroupSuite(context, 220129019, 3)
ScriptLib.RemoveExtraGroupSuite(context, 220129011, 3)
ScriptLib.RemoveExtraGroupSuite(context, 220129020, 2)
-- 判断变量"time"为5
if ScriptLib.GetGroupVariableValue(context, "time") == 1 then
ScriptLib.RemoveExtraGroupSuite(context, 220129014, 3)
ScriptLib.CreateGadget(context, { config_id = 14001 })
ScriptLib.AddExtraGroupSuite(context, 220129016, 3)
ScriptLib.SetGroupGadgetStateByConfigId(context, 220129020, 20007, GadgetState.ChestLocked)
end
-- 判断变量"time"为5
if ScriptLib.GetGroupVariableValue(context, "time") == 2 then
ScriptLib.RemoveExtraGroupSuite(context, 220129014, 3)
ScriptLib.CreateGadget(context, { config_id = 14002 })
ScriptLib.AddExtraGroupSuite(context, 220129017, 3)
ScriptLib.SetGroupGadgetStateByConfigId(context, 220129020, 20007, GadgetState.ChestOpened)
end
-- 判断变量"time"为5
if ScriptLib.GetGroupVariableValue(context, "time") == 3 then
ScriptLib.RemoveExtraGroupSuite(context, 220129014, 3)
ScriptLib.CreateGadget(context, { config_id = 14003 })
ScriptLib.AddExtraGroupSuite(context, 220129018, 3)
ScriptLib.SetGroupGadgetStateByConfigId(context, 220129020, 20007, GadgetState.ChestTrap)
end
-- 判断变量"time"为5
if ScriptLib.GetGroupVariableValue(context, "time") == 4 then
ScriptLib.RemoveExtraGroupSuite(context, 220129014, 3)
ScriptLib.CreateGadget(context, { config_id = 14004 })
ScriptLib.AddExtraGroupSuite(context, 220129019, 3)
ScriptLib.SetGroupGadgetStateByConfigId(context, 220129020, 20007, GadgetState.ChestBramble)
end
-- 判断变量"time"为5
if ScriptLib.GetGroupVariableValue(context, "time") == 5 then
ScriptLib.RemoveExtraGroupSuite(context, 220129014, 3)
ScriptLib.CreateGadget(context, { config_id = 14006 })
ScriptLib.AddExtraGroupSuite(context, 220129016, 3)
ScriptLib.SetGroupGadgetStateByConfigId(context, 220129020, 20007, GadgetState.ChestFrozen)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14014(context, evt)
if evt.param1 ~= 14014 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_14014(context, evt)
ScriptLib.RemoveExtraGroupSuite(context, 220129014, 2)
ScriptLib.CreateGadget(context, { config_id = 14005 })
return 0
end
@@ -0,0 +1,118 @@
-- 基础信息
local base_info = {
group_id = 220129015
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 15001, monster_id = 22090101, pos = { x = 330.375, y = 199.997, z = 75.010 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 15002, gadget_id = 42209001, pos = { x = 343.207, y = 200.012, z = 87.127 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, mark_flag = 1 },
{ config_id = 15003, gadget_id = 42209001, pos = { x = 346.002, y = 200.012, z = 83.127 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, mark_flag = 2 },
{ config_id = 15004, gadget_id = 42209001, pos = { x = 347.426, y = 200.012, z = 79.127 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, mark_flag = 3 },
{ config_id = 15005, gadget_id = 42209001, pos = { x = 348.171, y = 200.012, z = 75.127 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, mark_flag = 4 },
{ config_id = 15006, gadget_id = 42209001, pos = { x = 347.511, y = 199.925, z = 71.127 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, mark_flag = 5 },
{ config_id = 15007, gadget_id = 42209001, pos = { x = 345.898, y = 200.012, z = 67.126 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, mark_flag = 6 },
{ config_id = 15008, gadget_id = 42209001, pos = { x = 346.660, y = 200.012, z = 67.125 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 15009, gadget_id = 42209001, pos = { x = 346.660, y = 200.012, z = 67.125 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 15010, gadget_id = 42209001, pos = { x = 330.259, y = 199.997, z = 75.014 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, mark_flag = 10 },
{ config_id = 15011, gadget_id = 42209001, pos = { x = 339.315, y = 200.012, z = 90.538 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, mark_flag = 11 },
{ config_id = 15012, gadget_id = 42209001, pos = { x = 335.315, y = 200.012, z = 92.524 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, mark_flag = 12 },
{ config_id = 15013, gadget_id = 42209001, pos = { x = 331.315, y = 200.052, z = 93.511 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, mark_flag = 13 },
{ config_id = 15014, gadget_id = 42209001, pos = { x = 327.315, y = 200.058, z = 92.718 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, mark_flag = 14 },
{ config_id = 15015, gadget_id = 42209001, pos = { x = 323.315, y = 200.012, z = 91.503 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, mark_flag = 15 },
{ config_id = 15016, gadget_id = 42209001, pos = { x = 319.315, y = 200.012, z = 88.853 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, mark_flag = 16 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1015017, name = "ANY_MONSTER_DIE_15017", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_15017", action = "action_EVENT_ANY_MONSTER_DIE_15017" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 15001 },
gadgets = { 15002, 15003, 15004, 15005, 15006, 15007, 15010, 15011, 15012, 15013, 15014, 15015, 15016 },
regions = { },
triggers = { "ANY_MONSTER_DIE_15017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_15017(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_15017(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "103018") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,493 @@
-- 基础信息
local base_info = {
group_id = 220129016
}
-- Trigger变量
local defs = {
pointarray = 1,
portal = 16003,
pointer = 16001,
operation = 16002,
time_group_id = 220129014,
portal_group_id = 220129020,
group_id = 220129016,
pointarray_reverse = 1,
pointarray_pointer = 5,
pointarray_pointer_reverse = 5,
otherRoom1_group_id = 220129017,
otherRoom2_group_id = 220129018,
otherRoom3_group_id = 220129019,
door = 16009,
l_compass = 0,
s_compass = 16010,
sky_compass = 16008
}
-- DEFS_MISCS
function SLC_Active_Portal(context)
ScriptLib.PrintContextLog(context, "SLC_Active_Portal:run func")
if ScriptLib.GetGadgetConfigId(context, {gadget_eid = context.source_entity_id}) == defs.door then
ScriptLib.PrintContextLog(context, "SLC_Active_Portal:触发传送")
ScriptLib.CreateGadget(context, { config_id = defs.portal })
end
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 16001, gadget_id = 70800164, pos = { x = 538.467, y = 279.000, z = 757.500 }, rot = { x = 0.000, y = 269.100, z = 231.725 }, level = 1, is_use_point_array = true },
{ config_id = 16002, gadget_id = 70800166, pos = { x = 332.739, y = 202.100, z = 711.477 }, rot = { x = 0.000, y = 253.278, z = 231.321 }, level = 1, is_use_point_array = true, worktop_config = { is_persistent = true, init_options = { 752, 753 } } },
{ config_id = 16003, gadget_id = 70800172, pos = { x = 360.360, y = 200.361, z = 725.450 }, rot = { x = 0.000, y = 268.088, z = 0.000 }, level = 1 },
{ config_id = 16008, gadget_id = 70800163, pos = { x = 555.300, y = 279.000, z = 757.500 }, rot = { x = 0.000, y = 269.100, z = 0.000 }, level = 1 },
{ config_id = 16009, gadget_id = 70800140, pos = { x = 359.615, y = 200.434, z = 725.419 }, rot = { x = 0.000, y = 269.009, z = 0.000 }, level = 1 },
{ config_id = 16010, gadget_id = 70800165, pos = { x = 333.108, y = 202.100, z = 711.588 }, rot = { x = 0.000, y = 253.278, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 16011, shape = RegionShape.SPHERE, radius = 15, pos = { x = 359.622, y = 200.012, z = 725.386 } },
{ config_id = 16015, shape = RegionShape.SPHERE, radius = 60, pos = { x = 327.156, y = 200.012, z = 723.382 } }
}
-- 触发器
triggers = {
{ config_id = 1016004, name = "SELECT_OPTION_16004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_16004", action = "action_EVENT_SELECT_OPTION_16004", trigger_count = 0 },
-- 逆时针旋转时钟
{ config_id = 1016005, name = "SELECT_OPTION_16005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_16005", action = "action_EVENT_SELECT_OPTION_16005", trigger_count = 0 },
-- 判断是否移动到目标点阵
{ config_id = 1016006, name = "PLATFORM_REACH_POINT_16006", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_16006", action = "action_EVENT_PLATFORM_REACH_POINT_16006", trigger_count = 0 },
-- 时间变量同步
{ config_id = 1016007, name = "VARIABLE_CHANGE_16007", event = EventType.EVENT_VARIABLE_CHANGE, source = "time", condition = "", action = "action_EVENT_VARIABLE_CHANGE_16007", trigger_count = 0 },
{ config_id = 1016011, name = "ENTER_REGION_16011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_16011", action = "action_EVENT_ENTER_REGION_16011", trigger_count = 0 },
{ config_id = 1016012, name = "GADGET_CREATE_16012", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_16012", action = "action_EVENT_GADGET_CREATE_16012", trigger_count = 0 },
{ config_id = 1016013, name = "GADGET_CREATE_16013", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_16013", action = "action_EVENT_GADGET_CREATE_16013", trigger_count = 0 },
{ config_id = 1016014, name = "GADGET_CREATE_16014", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_16014", action = "action_EVENT_GADGET_CREATE_16014", trigger_count = 0 },
{ config_id = 1016015, name = "ENTER_REGION_16015", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_16015", action = "action_EVENT_ENTER_REGION_16015", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "time", value = 1, no_refresh = true },
{ config_id = 2, name = "min_time", value = 1, no_refresh = true },
{ config_id = 3, name = "max_time", value = 5, no_refresh = true },
{ config_id = 4, name = "last_time", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 16002, 16009, 16010 },
regions = { 16011, 16015 },
triggers = { "SELECT_OPTION_16004", "SELECT_OPTION_16005", "PLATFORM_REACH_POINT_16006", "VARIABLE_CHANGE_16007", "ENTER_REGION_16011", "GADGET_CREATE_16012", "GADGET_CREATE_16013", "GADGET_CREATE_16014", "ENTER_REGION_16015" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 16003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 16001, 16008 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_16004(context, evt)
-- 判断是gadgetid 16002 option_id 752
if 16002 ~= evt.param1 then
return false
end
if 752 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_16004(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
local temp_min=ScriptLib.GetGroupVariableValueByGroup(context, "min_time", defs.group_id)
local temp_max=ScriptLib.GetGroupVariableValueByGroup(context, "max_time", defs.group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "last_time", temp_time, defs.group_id)
if temp_time==5 then
temp_time=1
else
temp_time=temp_time+1
end
--如果时限超过最大最小限制,则不能转动
if temp_time<temp_min or temp_time>temp_max then
ScriptLib.PrintContextLog(context, "指针超过限制")
ScriptLib.ShowReminder(context, 400138)
return 0
end
--设置时间管理变量
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.time_group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.group_id)
ScriptLib.PrintContextLog(context, "变量设置成功")
--删除操作选项
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 752)
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 753)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_16005(context, evt)
-- 判断是gadgetid 16002 option_id 753
if 16002 ~= evt.param1 then
return false
end
if 753 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_16005(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
local temp_min=ScriptLib.GetGroupVariableValueByGroup(context, "min_time", defs.group_id)
local temp_max=ScriptLib.GetGroupVariableValueByGroup(context, "max_time", defs.group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "last_time", temp_time, defs.group_id)
if temp_time==1 then
temp_time=5
else
temp_time=temp_time-1
end
--如果时限超过最大最小限制,则不能转动
if temp_time<temp_min or temp_time>temp_max then
ScriptLib.ShowReminder(context, 400138)
ScriptLib.PrintContextLog(context, "指针超过限制")
return 0
end
--设置时间管理变量
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.time_group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.group_id)
ScriptLib.PrintContextLog(context, "变量设置成功")
--删除操作选项
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 752)
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 753)
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_16006(context, evt)
-- 判断是gadgetid 为 508001的移动平台,是否到达了1 的点集中的 1 点
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
if defs.pointer ~= evt.param1 then
return false
end
if defs.pointarray ~= evt.param2 then
return false
end
if temp_time ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_16006(context, evt)
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--设置大门的state
if temp_time==1 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestLocked)
end
if temp_time==2 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestOpened)
end
if temp_time==3 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestTrap)
end
if temp_time==4 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestBramble)
end
if temp_time==5 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestFrozen)
end
--回复所有操作选项
ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_id, defs.operation, {752,753})
--罗盘刻度特效
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.sky_compass, "SGV_Time", temp_time)
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.s_compass, "SGV_Time", temp_time)
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_16007(context, evt)
if evt.param1 == evt.param2 then return -1 end
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
local temp_time1=ScriptLib.GetGroupVariableValueByGroup(context, "last_time", defs.group_id)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, defs.pointer, defs.pointarray, {temp_time1,temp_time}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
ScriptLib.PrintContextLog(context, "点阵移动成功")
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, defs.operation, defs.pointarray_pointer, {temp_time1,temp_time}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
ScriptLib.PrintContextLog(context, "点阵移动成功")
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_16011(context, evt)
if evt.param1 ~= 16011 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_16011(context, evt)
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--设置时间通道的变量
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.time_group_id)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_16012(context, evt)
if defs.sky_compass ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_16012(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--罗盘刻度特效
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.sky_compass, "SGV_Time", temp_time)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_16013(context, evt)
if defs.pointer ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_16013(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, defs.pointer, defs.pointarray, {temp_time}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
ScriptLib.PrintContextLog(context, "点阵移动成功")
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_16014(context, evt)
if defs.s_compass ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_16014(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--罗盘刻度特效
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.s_compass, "SGV_Time", temp_time)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_16015(context, evt)
if evt.param1 ~= 16015 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_16015(context, evt)
--创建天空罗盘
ScriptLib.CreateGadget(context, { config_id = defs.sky_compass })
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
if temp_time==1 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=538.4672,y=279.0,z=757.5}, {x=0,y=269.1,z=230.1391})
end
if temp_time==2 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=538.4672,y=279.0,z=757.5}, {x=0,y=269.1,z=321.7924})
end
if temp_time==3 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=538.4672,y=279.0,z=757.5}, {x=0,y=269.1,z=8.711193})
end
if temp_time==4 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=538.4672,y=279.0,z=757.5}, {x=0,y=269.1,z=97.50916})
end
if temp_time==5 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=538.4672,y=279.0,z=757.5}, {x=0,y=269.1,z=142.5089})
end
return 0
end
@@ -0,0 +1,534 @@
-- 基础信息
local base_info = {
group_id = 220129017
}
-- Trigger变量
local defs = {
pointarray = 2,
portal = 17003,
pointer = 17001,
operation = 17002,
time_group_id = 220129014,
portal_group_id = 220129020,
group_id = 220129017,
pointarray_reverse = 2,
pointarray_pointer = 6,
pointarray_pointer_reverse = 6,
otherRoom1_group_id = 220129016,
otherRoom2_group_id = 220129018,
otherRoom3_group_id = 220129019,
door = 17009,
l_compass = 0,
s_compass = 17010,
sky_compass = 17011
}
-- DEFS_MISCS
function SLC_Active_Portal(context)
ScriptLib.PrintContextLog(context, "SLC_Active_Portal:run func")
if ScriptLib.GetGadgetConfigId(context, {gadget_eid = context.source_entity_id}) == defs.door then
ScriptLib.PrintContextLog(context, "SLC_Active_Portal:触发传送")
ScriptLib.CreateGadget(context, { config_id = defs.portal })
end
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 17001, gadget_id = 70800164, pos = { x = 549.667, y = 279.000, z = 533.900 }, rot = { x = 0.000, y = 269.100, z = 320.851 }, level = 1, is_use_point_array = true },
{ config_id = 17002, gadget_id = 70800166, pos = { x = 332.682, y = 200.750, z = 481.895 }, rot = { x = 342.584, y = 265.017, z = 322.836 }, level = 1, is_use_point_array = true, worktop_config = { is_persistent = true, init_options = { 752, 753 } } },
{ config_id = 17003, gadget_id = 70800172, pos = { x = 360.404, y = 200.303, z = 495.552 }, rot = { x = 0.000, y = 268.088, z = 0.000 }, level = 1 },
{ config_id = 17009, gadget_id = 70800140, pos = { x = 359.611, y = 200.346, z = 495.630 }, rot = { x = 0.000, y = 266.212, z = 0.000 }, level = 1, state = GadgetState.ChestOpened },
{ config_id = 17010, gadget_id = 70800165, pos = { x = 333.076, y = 200.626, z = 481.929 }, rot = { x = 342.584, y = 265.017, z = 2.753 }, level = 1 },
{ config_id = 17011, gadget_id = 70800163, pos = { x = 566.500, y = 279.000, z = 533.900 }, rot = { x = 0.000, y = 269.100, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 17012, shape = RegionShape.SPHERE, radius = 15, pos = { x = 360.022, y = 200.209, z = 495.763 } },
{ config_id = 17017, shape = RegionShape.SPHERE, radius = 60, pos = { x = 330.516, y = 200.020, z = 494.998 } }
}
-- 触发器
triggers = {
{ config_id = 1017004, name = "SELECT_OPTION_17004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_17004", action = "action_EVENT_SELECT_OPTION_17004", trigger_count = 0 },
-- 逆时针旋转时钟
{ config_id = 1017005, name = "SELECT_OPTION_17005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_17005", action = "action_EVENT_SELECT_OPTION_17005", trigger_count = 0 },
-- 判断是否移动到目标点阵
{ config_id = 1017006, name = "PLATFORM_REACH_POINT_17006", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_17006", action = "action_EVENT_PLATFORM_REACH_POINT_17006", trigger_count = 0 },
-- 时间变量同步
{ config_id = 1017007, name = "VARIABLE_CHANGE_17007", event = EventType.EVENT_VARIABLE_CHANGE, source = "time", condition = "", action = "action_EVENT_VARIABLE_CHANGE_17007", trigger_count = 0 },
-- 判断是否移动到目标点阵
{ config_id = 1017008, name = "GADGET_STATE_CHANGE_17008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_17008" },
{ config_id = 1017012, name = "ENTER_REGION_17012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_17012", action = "action_EVENT_ENTER_REGION_17012", trigger_count = 0 },
{ config_id = 1017013, name = "GADGET_CREATE_17013", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_17013", action = "action_EVENT_GADGET_CREATE_17013", trigger_count = 0 },
{ config_id = 1017014, name = "GADGET_CREATE_17014", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_17014", action = "action_EVENT_GADGET_CREATE_17014", trigger_count = 0 },
{ config_id = 1017015, name = "GADGET_CREATE_17015", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_17015", action = "action_EVENT_GADGET_CREATE_17015", trigger_count = 0 },
{ config_id = 1017016, name = "SELECT_OPTION_17016", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_17016", action = "action_EVENT_SELECT_OPTION_17016" },
{ config_id = 1017017, name = "ENTER_REGION_17017", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_17017", action = "action_EVENT_ENTER_REGION_17017", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "time", value = 2, no_refresh = true },
{ config_id = 2, name = "min_time", value = 2, no_refresh = true },
{ config_id = 3, name = "max_time", value = 3, no_refresh = true },
{ config_id = 4, name = "last_time", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 17001, 17002, 17009, 17010, 17011 },
regions = { 17012, 17017 },
triggers = { "SELECT_OPTION_17004", "SELECT_OPTION_17005", "PLATFORM_REACH_POINT_17006", "VARIABLE_CHANGE_17007", "GADGET_STATE_CHANGE_17008", "ENTER_REGION_17012", "GADGET_CREATE_17013", "GADGET_CREATE_17014", "GADGET_CREATE_17015", "SELECT_OPTION_17016", "ENTER_REGION_17017" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 17003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 17001, 17011 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_17004(context, evt)
-- 判断是gadgetid 17002 option_id 752
if 17002 ~= evt.param1 then
return false
end
if 752 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_17004(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
local temp_min=ScriptLib.GetGroupVariableValueByGroup(context, "min_time", defs.group_id)
local temp_max=ScriptLib.GetGroupVariableValueByGroup(context, "max_time", defs.group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "last_time", temp_time, defs.group_id)
if temp_time==5 then
temp_time=1
else
temp_time=temp_time+1
end
--如果时限超过最大最小限制,则不能转动
if temp_time<temp_min or temp_time>temp_max then
ScriptLib.PrintContextLog(context, "指针超过限制")
ScriptLib.ShowReminder(context, 400138)
return 0
end
--设置时间管理变量
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.time_group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.group_id)
ScriptLib.PrintContextLog(context, "变量设置成功")
--删除操作选项
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 752)
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 753)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_17005(context, evt)
-- 判断是gadgetid 17002 option_id 753
if 17002 ~= evt.param1 then
return false
end
if 753 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_17005(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
local temp_min=ScriptLib.GetGroupVariableValueByGroup(context, "min_time", defs.group_id)
local temp_max=ScriptLib.GetGroupVariableValueByGroup(context, "max_time", defs.group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "last_time", temp_time, defs.group_id)
if temp_time==1 then
temp_time=5
else
temp_time=temp_time-1
end
--如果时限超过最大最小限制,则不能转动
if temp_time<temp_min or temp_time>temp_max then
ScriptLib.ShowReminder(context, 400138)
ScriptLib.PrintContextLog(context, "指针超过限制")
return 0
end
--设置时间管理变量
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.time_group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.group_id)
ScriptLib.PrintContextLog(context, "变量设置成功")
--删除操作选项
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 752)
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 753)
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_17006(context, evt)
-- 判断是gadgetid 为 508001的移动平台,是否到达了1 的点集中的 1 点
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
if defs.pointer ~= evt.param1 then
return false
end
if defs.pointarray ~= evt.param2 then
return false
end
if temp_time ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_17006(context, evt)
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--设置大门的state
if temp_time==1 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestLocked)
end
if temp_time==2 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestOpened)
end
if temp_time==3 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestTrap)
end
if temp_time==4 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestBramble)
end
if temp_time==5 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestFrozen)
end
--回复所有操作选项
ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_id, defs.operation, {752,753})
--罗盘刻度特效
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.sky_compass, "SGV_Time", temp_time)
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.s_compass, "SGV_Time", temp_time)
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_17007(context, evt)
if evt.param1 == evt.param2 then return -1 end
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
local temp_time1=ScriptLib.GetGroupVariableValueByGroup(context, "last_time", defs.group_id)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, defs.pointer, defs.pointarray, {temp_time1,temp_time}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
ScriptLib.PrintContextLog(context, "点阵移动成功")
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, defs.operation, defs.pointarray_pointer, {temp_time1,temp_time}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
ScriptLib.PrintContextLog(context, "点阵移动成功")
return 0
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_17008(context, evt)
if evt.param2 == 17009 then
ScriptLib.ShowReminder(context, 201290201)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_17012(context, evt)
if evt.param1 ~= 17012 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_17012(context, evt)
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--设置时间通道的变量
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.time_group_id)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_17013(context, evt)
if defs.sky_compass ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_17013(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--罗盘刻度特效
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.sky_compass, "SGV_Time", temp_time)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_17014(context, evt)
if defs.pointer ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_17014(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, defs.pointer, defs.pointarray, {temp_time}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
ScriptLib.PrintContextLog(context, "点阵移动成功")
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_17015(context, evt)
if defs.s_compass ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_17015(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--罗盘刻度特效
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.s_compass, "SGV_Time", temp_time)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_17016(context, evt)
-- 判断是gadgetid 17002 option_id 752
if 17002 ~= evt.param1 then
return false
end
if 752 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_17016(context, evt)
-- 触发镜头注目,注目位置为坐标{x=566.5, y=279, z=533.9},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=566.5, y=279, z=533.9}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_17017(context, evt)
if evt.param1 ~= 17017 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_17017(context, evt)
--创建天空罗盘
ScriptLib.CreateGadget(context, { config_id = defs.sky_compass })
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
if temp_time==1 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=549.6672,y=279.0,z=533.9}, {x=0,y=269.1,z=230.1391})
end
if temp_time==2 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=549.6672,y=279.0,z=533.9}, {x=0,y=269.1,z=321.7924})
end
if temp_time==3 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=549.6672,y=279.0,z=533.9}, {x=0,y=269.1,z=8.711193})
end
if temp_time==4 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=549.6672,y=279.0,z=533.9}, {x=0,y=269.1,z=97.50916})
end
if temp_time==5 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=549.6672,y=279.0,z=533.9}, {x=0,y=269.1,z=142.5089})
end
return 0
end
@@ -0,0 +1,499 @@
-- 基础信息
local base_info = {
group_id = 220129018
}
-- Trigger变量
local defs = {
pointarray = 3,
portal = 18003,
pointer = 18001,
operation = 18002,
time_group_id = 220129014,
portal_group_id = 220129020,
group_id = 220129018,
pointarray_reverse = 3,
pointarray_pointer = 7,
pointarray_pointer_reverse = 7,
otherRoom1_group_id = 220129016,
otherRoom2_group_id = 220129017,
otherRoom3_group_id = 220129019,
door = 18009,
l_compass = 0,
s_compass = 18010,
sky_compass = 18008
}
-- DEFS_MISCS
function SLC_Active_Portal(context)
ScriptLib.PrintContextLog(context, "SLC_Active_Portal:run func")
if ScriptLib.GetGadgetConfigId(context, {gadget_eid = context.source_entity_id}) == defs.door then
ScriptLib.PrintContextLog(context, "SLC_Active_Portal:触发传送")
ScriptLib.CreateGadget(context, { config_id = defs.portal })
end
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18001, gadget_id = 70800164, pos = { x = 549.167, y = 279.000, z = 309.100 }, rot = { x = 0.000, y = 269.100, z = 10.881 }, level = 1, is_use_point_array = true },
{ config_id = 18002, gadget_id = 70800166, pos = { x = 330.726, y = 200.525, z = 259.198 }, rot = { x = 342.425, y = 269.677, z = 10.844 }, level = 1, is_use_point_array = true, worktop_config = { is_persistent = true, init_options = { 752, 753 } } },
{ config_id = 18003, gadget_id = 70800172, pos = { x = 360.351, y = 200.329, z = 273.615 }, rot = { x = 0.000, y = 268.088, z = 0.000 }, level = 1 },
{ config_id = 18008, gadget_id = 70800163, pos = { x = 566.000, y = 279.000, z = 309.100 }, rot = { x = 0.000, y = 269.100, z = 0.000 }, level = 1 },
{ config_id = 18009, gadget_id = 70800140, pos = { x = 359.556, y = 200.404, z = 273.625 }, rot = { x = 0.000, y = 269.402, z = 0.000 }, level = 1 },
{ config_id = 18010, gadget_id = 70800165, pos = { x = 331.121, y = 200.400, z = 259.200 }, rot = { x = 342.425, y = 269.677, z = 1.351 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 18011, shape = RegionShape.SPHERE, radius = 15, pos = { x = 359.608, y = 200.204, z = 274.328 } },
{ config_id = 18015, shape = RegionShape.SPHERE, radius = 60, pos = { x = 329.748, y = 200.147, z = 276.040 } }
}
-- 触发器
triggers = {
{ config_id = 1018004, name = "SELECT_OPTION_18004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_18004", action = "action_EVENT_SELECT_OPTION_18004", trigger_count = 0 },
-- 逆时针旋转时钟
{ config_id = 1018005, name = "SELECT_OPTION_18005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_18005", action = "action_EVENT_SELECT_OPTION_18005", trigger_count = 0 },
-- 判断是否移动到目标点阵
{ config_id = 1018006, name = "PLATFORM_REACH_POINT_18006", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_18006", action = "action_EVENT_PLATFORM_REACH_POINT_18006", trigger_count = 0 },
-- 时间变量同步
{ config_id = 1018007, name = "VARIABLE_CHANGE_18007", event = EventType.EVENT_VARIABLE_CHANGE, source = "time", condition = "", action = "action_EVENT_VARIABLE_CHANGE_18007", trigger_count = 0 },
{ config_id = 1018011, name = "ENTER_REGION_18011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_18011", action = "action_EVENT_ENTER_REGION_18011", trigger_count = 0 },
{ config_id = 1018012, name = "GADGET_CREATE_18012", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_18012", action = "action_EVENT_GADGET_CREATE_18012", trigger_count = 0 },
{ config_id = 1018013, name = "GADGET_CREATE_18013", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_18013", action = "action_EVENT_GADGET_CREATE_18013", trigger_count = 0 },
{ config_id = 1018014, name = "GADGET_CREATE_18014", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_18014", action = "action_EVENT_GADGET_CREATE_18014", trigger_count = 0 },
{ config_id = 1018015, name = "ENTER_REGION_18015", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_18015", action = "action_EVENT_ENTER_REGION_18015", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "time", value = 3, no_refresh = true },
{ config_id = 2, name = "min_time", value = 2, no_refresh = true },
{ config_id = 3, name = "max_time", value = 3, no_refresh = true },
{ config_id = 4, name = "last_time", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 18002, 18009, 18010 },
regions = { 18011, 18015 },
triggers = { "SELECT_OPTION_18004", "SELECT_OPTION_18005", "PLATFORM_REACH_POINT_18006", "VARIABLE_CHANGE_18007", "ENTER_REGION_18011", "GADGET_CREATE_18012", "GADGET_CREATE_18013", "GADGET_CREATE_18014", "ENTER_REGION_18015" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 18003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 18001, 18008 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_18004(context, evt)
-- 判断是gadgetid 18002 option_id 752
if 18002 ~= evt.param1 then
return false
end
if 752 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_18004(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
local temp_min=ScriptLib.GetGroupVariableValueByGroup(context, "min_time", defs.group_id)
local temp_max=ScriptLib.GetGroupVariableValueByGroup(context, "max_time", defs.group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "last_time", temp_time, defs.group_id)
if temp_time==5 then
temp_time=1
else
temp_time=temp_time+1
end
--如果时限超过最大最小限制,则不能转动
if temp_time<temp_min or temp_time>temp_max then
if temp_time == 4 then
ScriptLib.PrintContextLog(context, "指针被树卡住")
ScriptLib.ShowReminder(context, 400152)
return 0
else
ScriptLib.PrintContextLog(context, "指针超过限制")
ScriptLib.ShowReminder(context, 400138)
return 0
end
end
--设置时间管理变量
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.time_group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.group_id)
ScriptLib.PrintContextLog(context, "变量设置成功")
--删除操作选项
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 752)
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 753)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_18005(context, evt)
-- 判断是gadgetid 18002 option_id 753
if 18002 ~= evt.param1 then
return false
end
if 753 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_18005(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
local temp_min=ScriptLib.GetGroupVariableValueByGroup(context, "min_time", defs.group_id)
local temp_max=ScriptLib.GetGroupVariableValueByGroup(context, "max_time", defs.group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "last_time", temp_time, defs.group_id)
if temp_time==1 then
temp_time=5
else
temp_time=temp_time-1
end
--如果时限超过最大最小限制,则不能转动
if temp_time<temp_min or temp_time>temp_max then
ScriptLib.ShowReminder(context, 400138)
ScriptLib.PrintContextLog(context, "指针超过限制")
return 0
end
--设置时间管理变量
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.time_group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.group_id)
ScriptLib.PrintContextLog(context, "变量设置成功")
--删除操作选项
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 752)
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 753)
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_18006(context, evt)
-- 判断是gadgetid 为 508001的移动平台,是否到达了1 的点集中的 1 点
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
if defs.pointer ~= evt.param1 then
return false
end
if defs.pointarray ~= evt.param2 then
return false
end
if temp_time ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_18006(context, evt)
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--设置大门的state
if temp_time==1 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestLocked)
end
if temp_time==2 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestOpened)
end
if temp_time==3 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestTrap)
end
if temp_time==4 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestBramble)
end
if temp_time==5 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestFrozen)
end
--回复所有操作选项
ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_id, defs.operation, {752,753})
--罗盘刻度特效
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.sky_compass, "SGV_Time", temp_time)
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.s_compass, "SGV_Time", temp_time)
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_18007(context, evt)
if evt.param1 == evt.param2 then return -1 end
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
local temp_time1=ScriptLib.GetGroupVariableValueByGroup(context, "last_time", defs.group_id)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, defs.pointer, defs.pointarray, {temp_time1,temp_time}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
ScriptLib.PrintContextLog(context, "点阵移动成功")
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, defs.operation, defs.pointarray_pointer, {temp_time1,temp_time}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
ScriptLib.PrintContextLog(context, "点阵移动成功")
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_18011(context, evt)
if evt.param1 ~= 18011 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_18011(context, evt)
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--设置时间通道的变量
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.time_group_id)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_18012(context, evt)
if defs.sky_compass ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_18012(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--罗盘刻度特效
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.sky_compass, "SGV_Time", temp_time)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_18013(context, evt)
if defs.pointer ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_18013(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, defs.pointer, defs.pointarray, {temp_time}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
ScriptLib.PrintContextLog(context, "点阵移动成功")
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_18014(context, evt)
if defs.s_compass ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_18014(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--罗盘刻度特效
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.s_compass, "SGV_Time", temp_time)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_18015(context, evt)
if evt.param1 ~= 18015 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_18015(context, evt)
--创建天空罗盘
ScriptLib.CreateGadget(context, { config_id = defs.sky_compass })
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
if temp_time==1 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=549.1672,y=279.0,z=309.1}, {x=0,y=269.1,z=230.1391})
end
if temp_time==2 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=549.1672,y=279.0,z=309.1}, {x=0,y=269.1,z=321.7924})
end
if temp_time==3 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=549.1672,y=279.0,z=309.1}, {x=0,y=269.1,z=8.711193})
end
if temp_time==4 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=549.1672,y=279.0,z=309.1}, {x=0,y=269.1,z=97.50916})
end
if temp_time==5 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=549.1672,y=279.0,z=309.1}, {x=0,y=269.1,z=142.5089})
end
return 0
end
@@ -0,0 +1,493 @@
-- 基础信息
local base_info = {
group_id = 220129019
}
-- Trigger变量
local defs = {
pointarray = 4,
portal = 19003,
pointer = 19001,
operation = 19002,
time_group_id = 220129014,
portal_group_id = 220129020,
group_id = 220129019,
pointarray_reverse = 4,
pointarray_pointer = 8,
pointarray_pointer_reverse = 8,
otherRoom1_group_id = 220129016,
otherRoom2_group_id = 220129017,
otherRoom3_group_id = 220129018,
door = 19009,
l_compass = 0,
s_compass = 19010,
sky_compass = 19008
}
-- DEFS_MISCS
function SLC_Active_Portal(context)
ScriptLib.PrintContextLog(context, "SLC_Active_Portal:run func")
if ScriptLib.GetGadgetConfigId(context, {gadget_eid = context.source_entity_id}) == defs.door then
ScriptLib.PrintContextLog(context, "SLC_Active_Portal:触发传送")
ScriptLib.CreateGadget(context, { config_id = defs.portal })
end
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 19001, gadget_id = 70800164, pos = { x = 534.067, y = 279.000, z = 102.000 }, rot = { x = 0.000, y = 269.100, z = 9.128 }, level = 1, is_use_point_array = true },
{ config_id = 19002, gadget_id = 70800166, pos = { x = 318.690, y = 200.915, z = 42.520 }, rot = { x = 347.229, y = 20.623, z = 12.888 }, level = 1, is_use_point_array = true, worktop_config = { is_persistent = true, init_options = { 752, 753 } } },
{ config_id = 19003, gadget_id = 70800172, pos = { x = 360.438, y = 200.344, z = 72.218 }, rot = { x = 0.000, y = 268.088, z = 0.000 }, level = 1 },
{ config_id = 19008, gadget_id = 70800163, pos = { x = 550.900, y = 279.000, z = 102.000 }, rot = { x = 0.000, y = 269.100, z = 0.000 }, level = 1 },
{ config_id = 19009, gadget_id = 70800140, pos = { x = 359.569, y = 200.367, z = 72.250 }, rot = { x = 0.000, y = 268.127, z = 0.000 }, level = 1 },
{ config_id = 19010, gadget_id = 70800165, pos = { x = 318.574, y = 200.840, z = 42.209 }, rot = { x = 347.229, y = 20.623, z = 5.394 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 19011, shape = RegionShape.SPHERE, radius = 15, pos = { x = 358.926, y = 200.141, z = 71.898 } },
{ config_id = 19016, shape = RegionShape.SPHERE, radius = 60, pos = { x = 328.629, y = 200.061, z = 73.428 } }
}
-- 触发器
triggers = {
{ config_id = 1019004, name = "SELECT_OPTION_19004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_19004", action = "action_EVENT_SELECT_OPTION_19004", trigger_count = 0 },
-- 逆时针旋转时钟
{ config_id = 1019005, name = "SELECT_OPTION_19005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_19005", action = "action_EVENT_SELECT_OPTION_19005", trigger_count = 0 },
-- 判断是否移动到目标点阵
{ config_id = 1019006, name = "PLATFORM_REACH_POINT_19006", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_19006", action = "action_EVENT_PLATFORM_REACH_POINT_19006", trigger_count = 0 },
-- 时间变量同步
{ config_id = 1019007, name = "VARIABLE_CHANGE_19007", event = EventType.EVENT_VARIABLE_CHANGE, source = "time", condition = "", action = "action_EVENT_VARIABLE_CHANGE_19007", trigger_count = 0 },
{ config_id = 1019011, name = "ENTER_REGION_19011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_19011", action = "action_EVENT_ENTER_REGION_19011", trigger_count = 0 },
{ config_id = 1019012, name = "GADGET_CREATE_19012", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_19012", action = "action_EVENT_GADGET_CREATE_19012", trigger_count = 0 },
{ config_id = 1019013, name = "GADGET_CREATE_19013", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_19013", action = "action_EVENT_GADGET_CREATE_19013", trigger_count = 0 },
{ config_id = 1019014, name = "GADGET_CREATE_19014", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_19014", action = "action_EVENT_GADGET_CREATE_19014", trigger_count = 0 },
{ config_id = 1019016, name = "ENTER_REGION_19016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_19016", action = "action_EVENT_ENTER_REGION_19016", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "time", value = 3, no_refresh = true },
{ config_id = 2, name = "min_time", value = 1, no_refresh = true },
{ config_id = 3, name = "max_time", value = 4, no_refresh = true },
{ config_id = 4, name = "last_time", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 19002, 19009, 19010 },
regions = { 19011, 19016 },
triggers = { "SELECT_OPTION_19004", "SELECT_OPTION_19005", "PLATFORM_REACH_POINT_19006", "VARIABLE_CHANGE_19007", "ENTER_REGION_19011", "GADGET_CREATE_19012", "GADGET_CREATE_19013", "GADGET_CREATE_19014", "ENTER_REGION_19016" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 19003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 19001, 19008 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_19004(context, evt)
-- 判断是gadgetid 19002 option_id 752
if 19002 ~= evt.param1 then
return false
end
if 752 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_19004(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
local temp_min=ScriptLib.GetGroupVariableValueByGroup(context, "min_time", defs.group_id)
local temp_max=ScriptLib.GetGroupVariableValueByGroup(context, "max_time", defs.group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "last_time", temp_time, defs.group_id)
if temp_time==5 then
temp_time=1
else
temp_time=temp_time+1
end
--如果时限超过最大最小限制,则不能转动
if temp_time<temp_min or temp_time>temp_max then
ScriptLib.PrintContextLog(context, "指针超过限制")
ScriptLib.ShowReminder(context, 400138)
return 0
end
--设置时间管理变量
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.time_group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.group_id)
ScriptLib.PrintContextLog(context, "变量设置成功")
--删除操作选项
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 752)
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 753)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_19005(context, evt)
-- 判断是gadgetid 19002 option_id 753
if 19002 ~= evt.param1 then
return false
end
if 753 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_19005(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
local temp_min=ScriptLib.GetGroupVariableValueByGroup(context, "min_time", defs.group_id)
local temp_max=ScriptLib.GetGroupVariableValueByGroup(context, "max_time", defs.group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "last_time", temp_time, defs.group_id)
if temp_time==1 then
temp_time=5
else
temp_time=temp_time-1
end
--如果时限超过最大最小限制,则不能转动
if temp_time<temp_min or temp_time>temp_max then
ScriptLib.ShowReminder(context, 400138)
ScriptLib.PrintContextLog(context, "指针超过限制")
return 0
end
--设置时间管理变量
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.time_group_id)
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.group_id)
ScriptLib.PrintContextLog(context, "变量设置成功")
--删除操作选项
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 752)
ScriptLib.DelWorktopOptionByGroupId(context, defs.group_id, defs.operation, 753)
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_19006(context, evt)
-- 判断是gadgetid 为 508001的移动平台,是否到达了1 的点集中的 1 点
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
if defs.pointer ~= evt.param1 then
return false
end
if defs.pointarray ~= evt.param2 then
return false
end
if temp_time ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_19006(context, evt)
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--设置大门的state
if temp_time==1 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestLocked)
end
if temp_time==2 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestOpened)
end
if temp_time==3 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestTrap)
end
if temp_time==4 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestBramble)
end
if temp_time==5 then
ScriptLib.SetGadgetStateByConfigId(context, defs.door, GadgetState.ChestFrozen)
end
--回复所有操作选项
ScriptLib.SetWorktopOptionsByGroupId(context, defs.group_id, defs.operation, {752,753})
--罗盘刻度特效
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.sky_compass, "SGV_Time", temp_time)
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.s_compass, "SGV_Time", temp_time)
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_19007(context, evt)
if evt.param1 == evt.param2 then return -1 end
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
local temp_time1=ScriptLib.GetGroupVariableValueByGroup(context, "last_time", defs.group_id)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, defs.pointer, defs.pointarray, {temp_time1,temp_time}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
ScriptLib.PrintContextLog(context, "点阵移动成功")
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, defs.operation, defs.pointarray_pointer, {temp_time1,temp_time}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
ScriptLib.PrintContextLog(context, "点阵移动成功")
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_19011(context, evt)
if evt.param1 ~= 19011 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_19011(context, evt)
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--设置时间通道的变量
ScriptLib.SetGroupVariableValueByGroup(context, "time", temp_time, defs.time_group_id)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_19012(context, evt)
if defs.sky_compass ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_19012(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--罗盘刻度特效
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.sky_compass, "SGV_Time", temp_time)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_19013(context, evt)
if defs.pointer ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_19013(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, defs.pointer, defs.pointarray, {temp_time}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
ScriptLib.PrintContextLog(context, "点阵移动成功")
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_19014(context, evt)
if defs.s_compass ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_19014(context, evt)
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
--罗盘刻度特效
ScriptLib.SetEntityServerGlobalValueByConfigId(context, defs.s_compass, "SGV_Time", temp_time)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_19016(context, evt)
if evt.param1 ~= 19016 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_19016(context, evt)
--创建天空罗盘
ScriptLib.CreateGadget(context, { config_id = defs.sky_compass })
-- 取变量"time"
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", defs.group_id)
if temp_time==1 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=534.0672,y=279.0,z=102}, {x=0,y=269.1,z=230.1391})
end
if temp_time==2 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=534.0672,y=279.0,z=102}, {x=0,y=269.1,z=321.7924})
end
if temp_time==3 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=534.0672,y=279.0,z=102}, {x=0,y=269.1,z=8.711193})
end
if temp_time==4 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=534.0672,y=279.0,z=102}, {x=0,y=269.1,z=97.50916})
end
if temp_time==5 then
--创建指针
ScriptLib.CreateGadgetByConfigIdByPos(context, defs.pointer, {x=534.0672,y=279.0,z=102}, {x=0,y=269.1,z=142.5089})
end
return 0
end
@@ -0,0 +1,113 @@
-- 基础信息
local base_info = {
group_id = 220129020
}
-- Trigger变量
local defs = {
portal = 0
}
-- DEFS_MISCS
function SLC_Active_Portal(context)
local temp_time=ScriptLib.GetGroupVariableValueByGroup(context, "time", 220129014)
if temp_time==1 then
ScriptLib.CreateGadget(context, { config_id = 20001 })
end
if temp_time==2 then
ScriptLib.CreateGadget(context, { config_id = 20002 })
end
if temp_time==3 then
ScriptLib.CreateGadget(context, { config_id = 20003 })
end
if temp_time==4 then
ScriptLib.CreateGadget(context, { config_id = 20004 })
end
if temp_time==5 then
ScriptLib.CreateGadget(context, { config_id = 20006 })
end
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 20001, gadget_id = 70800172, pos = { x = -418.295, y = -45.378, z = 980.479 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20002, gadget_id = 70800172, pos = { x = -418.295, y = -45.378, z = 980.479 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20003, gadget_id = 70800172, pos = { x = -418.295, y = -45.378, z = 980.479 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20004, gadget_id = 70800172, pos = { x = -418.295, y = -45.378, z = 980.479 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20006, gadget_id = 70800172, pos = { x = -418.295, y = -45.378, z = 980.479 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 20007, gadget_id = 70800140, pos = { x = -419.018, y = -45.216, z = 980.325 }, rot = { x = 0.000, y = 244.469, 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 = { 20007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 20001, 20002, 20003, 20004, 20006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,100 @@
-- 基础信息
local base_info = {
group_id = 220129021
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 21001, gadget_id = 70800204, pos = { x = 331.400, y = 200.500, z = 480.400 }, rot = { x = 0.000, y = 273.100, z = 0.000 }, level = 1 },
{ config_id = 21002, gadget_id = 70800220, pos = { x = 330.301, y = 199.776, z = 257.917 }, rot = { x = 0.000, y = 350.696, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1021003, name = "ANY_GADGET_DIE_21003", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_21003", action = "action_EVENT_ANY_GADGET_DIE_21003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 21001, 21002 },
regions = { },
triggers = { "ANY_GADGET_DIE_21003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_21003(context, evt)
if 21001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_21003(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220129021, EntityType.GADGET, 21002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 将本组内变量名为 "max_time" 的变量设置为 4
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "max_time", 4, 220129018) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
@@ -0,0 +1,131 @@
-- 基础信息
local base_info = {
group_id = 220129022
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 22001, gadget_id = 70350004, pos = { x = 319.843, y = 200.868, z = 247.656 }, rot = { x = 0.000, y = 25.683, z = 1.946 }, level = 1 },
{ config_id = 22002, gadget_id = 70350004, pos = { x = 319.808, y = 200.530, z = 46.769 }, rot = { x = 351.952, y = 19.717, z = 357.393 }, level = 1 },
{ config_id = 22003, gadget_id = 70360170, pos = { x = 316.296, y = 201.984, z = 250.013 }, rot = { x = 83.646, y = 20.874, z = 357.170 }, level = 1 },
{ config_id = 22004, gadget_id = 70360001, pos = { x = 316.268, y = 201.985, z = 250.025 }, rot = { x = 76.149, y = 86.904, z = 62.496 }, level = 1, worktop_config = { is_persistent = true, init_options = { 324 } } },
{ config_id = 22006, gadget_id = 70220036, pos = { x = 319.397, y = 203.203, z = 46.628 }, rot = { x = 353.075, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 22007, gadget_id = 70710470, pos = { x = 318.557, y = 201.705, z = 41.982 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1022005, name = "SELECT_OPTION_22005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_22005", action = "action_EVENT_SELECT_OPTION_22005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 22001, 22002, 22003, 22004, 22007 },
regions = { },
triggers = { "SELECT_OPTION_22005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_22005(context, evt)
-- 判断是gadgetid 22004 option_id 324
if 22004 ~= evt.param1 then
return false
end
if 324 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_22005(context, evt)
-- 删除指定group 220129022 ;指定config22004;物件身上指定option324
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220129022, 22004, 324) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 22001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 22002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 22002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为22006的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 22006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 220129023
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 23001, gadget_id = 70800217, pos = { x = 329.527, y = 201.127, z = 710.702 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 23001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,152 @@
-- 基础信息
local base_info = {
group_id = 220129024
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 24001, gadget_id = 70710505, pos = { x = 315.716, y = 199.981, z = 478.030 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_enable_interact = false },
{ config_id = 24002, gadget_id = 70360001, pos = { x = 315.699, y = 199.981, z = 478.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 24003, shape = RegionShape.SPHERE, radius = 5, pos = { x = 315.536, y = 199.981, z = 477.737 } }
}
-- 触发器
triggers = {
{ config_id = 1024003, name = "ENTER_REGION_24003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_24003", action = "action_EVENT_ENTER_REGION_24003" },
{ config_id = 1024004, name = "SELECT_OPTION_24004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_24004", action = "action_EVENT_SELECT_OPTION_24004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 24001, 24002 },
regions = { 24003 },
triggers = { "ENTER_REGION_24003", "SELECT_OPTION_24004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_24003(context, evt)
if evt.param1 ~= 24003 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_24003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220129024, 24002, {64}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_24004(context, evt)
-- 判断是gadgetid 24002 option_id 64
if 24002 ~= evt.param1 then
return false
end
if 64 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_24004(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "103010") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 删除指定group 220129024 ;指定config24002;物件身上指定option64
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220129024, 24002, 64) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220129024, EntityType.GADGET, 24002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220129024, EntityType.GADGET, 24001 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,152 @@
-- 基础信息
local base_info = {
group_id = 220129025
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 25001, gadget_id = 70710419, pos = { x = 323.564, y = 200.254, z = 248.929 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_enable_interact = false },
{ config_id = 25002, gadget_id = 70360001, pos = { x = 323.546, y = 200.254, z = 248.915 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 25003, shape = RegionShape.SPHERE, radius = 5, pos = { x = 323.384, y = 200.254, z = 248.636 } }
}
-- 触发器
triggers = {
{ config_id = 1025003, name = "ENTER_REGION_25003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_25003", action = "action_EVENT_ENTER_REGION_25003" },
{ config_id = 1025004, name = "SELECT_OPTION_25004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_25004", action = "action_EVENT_SELECT_OPTION_25004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 25001, 25002 },
regions = { 25003 },
triggers = { "ENTER_REGION_25003", "SELECT_OPTION_25004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_25003(context, evt)
if evt.param1 ~= 25003 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_25003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220129025, 25002, {64}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_25004(context, evt)
-- 判断是gadgetid 25002 option_id 64
if 25002 ~= evt.param1 then
return false
end
if 64 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_25004(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "103015") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 删除指定group 220129025 ;指定config25002;物件身上指定option64
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220129025, 25002, 64) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220129025, EntityType.GADGET, 25002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220129025, EntityType.GADGET, 25001 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,152 @@
-- 基础信息
local base_info = {
group_id = 220129026
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 26001, gadget_id = 70710419, pos = { x = 333.507, y = 200.029, z = 56.785 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_enable_interact = false },
{ config_id = 26002, gadget_id = 70360001, pos = { x = 333.489, y = 200.029, z = 56.772 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 26003, shape = RegionShape.SPHERE, radius = 5, pos = { x = 333.327, y = 200.029, z = 56.492 } }
}
-- 触发器
triggers = {
{ config_id = 1026003, name = "ENTER_REGION_26003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_26003", action = "action_EVENT_ENTER_REGION_26003" },
{ config_id = 1026004, name = "SELECT_OPTION_26004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_26004", action = "action_EVENT_SELECT_OPTION_26004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 26001, 26002 },
regions = { 26003 },
triggers = { "ENTER_REGION_26003", "SELECT_OPTION_26004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_26003(context, evt)
if evt.param1 ~= 26003 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_26003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220129026, 26002, {64}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_26004(context, evt)
-- 判断是gadgetid 26002 option_id 64
if 26002 ~= evt.param1 then
return false
end
if 64 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_26004(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "103004") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 删除指定group 220129026 ;指定config26002;物件身上指定option64
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220129026, 26002, 64) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220129026, EntityType.GADGET, 26002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220129026, EntityType.GADGET, 26001 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,121 @@
-- 基础信息
local base_info = {
group_id = 220129027
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 27001, shape = RegionShape.SPHERE, radius = 15, pos = { x = -462.396, y = -47.846, z = 974.435 } },
{ config_id = 27002, shape = RegionShape.SPHERE, radius = 5, pos = { x = 330.114, y = 202.843, z = 485.173 } }
}
-- 触发器
triggers = {
{ config_id = 1027001, name = "ENTER_REGION_27001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_27001", action = "action_EVENT_ENTER_REGION_27001" },
{ config_id = 1027002, name = "ENTER_REGION_27002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_27002", action = "action_EVENT_ENTER_REGION_27002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 27001, 27002 },
triggers = { "ENTER_REGION_27001", "ENTER_REGION_27002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_27001(context, evt)
if evt.param1 ~= 27001 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_27001(context, evt)
-- 调用提示id为 201290301 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201290301) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_27002(context, evt)
if evt.param1 ~= 27002 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_27002(context, evt)
-- 调用提示id为 201290101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201290101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,120 @@
-- 基础信息
local base_info = {
group_id = 220129028
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 28001, gadget_id = 70290395, pos = { x = 288.700, y = 206.110, z = 510.700 }, rot = { x = 353.560, y = 57.200, z = 34.100 }, level = 1 },
{ config_id = 28002, gadget_id = 70290308, pos = { x = 295.172, y = 206.145, z = 508.218 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 28003, gadget_id = 70290308, pos = { x = 295.378, y = 206.424, z = 509.763 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 28004, gadget_id = 70290395, pos = { x = 287.900, y = 206.100, z = 284.100 }, rot = { x = 353.600, y = 57.240, z = 34.150 }, level = 1 },
{ config_id = 28005, gadget_id = 70211101, pos = { x = 286.481, y = 207.897, z = 291.000 }, rot = { x = 0.000, y = 145.980, z = 8.719 }, level = 1, drop_tag = "解谜低级璃月", isOneoff = true, persistent = true },
{ config_id = 28006, gadget_id = 70290395, pos = { x = 288.000, y = 206.110, z = 82.000 }, rot = { x = 353.560, y = 50.000, z = 34.100 }, level = 1 },
{ config_id = 28008, gadget_id = 70290395, pos = { x = 288.700, y = 206.100, z = 510.700 }, rot = { x = 353.600, y = 57.200, z = 34.100 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1028007, name = "ANY_GADGET_DIE_28007", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_28007", action = "action_EVENT_ANY_GADGET_DIE_28007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 28001, 28002, 28003, 28004, 28006, 28008 },
regions = { },
triggers = { "ANY_GADGET_DIE_28007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 28005 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_28007(context, evt)
if 28001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_28007(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220129028, EntityType.GADGET, 28004 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220129028, EntityType.GADGET, 28006 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 创建id为28005的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 28005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,152 @@
-- 基础信息
local base_info = {
group_id = 220129029
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 29003, gadget_id = 70900201, pos = { x = -418.098, y = -43.947, z = 980.480 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 29001, shape = RegionShape.SPHERE, radius = 10, pos = { x = -458.829, y = -47.721, z = 975.364 } },
{ config_id = 29002, shape = RegionShape.SPHERE, radius = 10, pos = { x = -419.506, y = -44.224, z = 981.317 } }
}
-- 触发器
triggers = {
{ config_id = 1029001, name = "ENTER_REGION_29001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29001", action = "action_EVENT_ENTER_REGION_29001" },
{ config_id = 1029002, name = "ENTER_REGION_29002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29002", action = "action_EVENT_ENTER_REGION_29002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 29001 },
triggers = { "ENTER_REGION_29001" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 29003 },
regions = { 29002 },
triggers = { "ENTER_REGION_29002" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_29001(context, evt)
if evt.param1 ~= 29001 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_29001(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220129029, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_29002(context, evt)
if evt.param1 ~= 29002 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_29002(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220129029, 2)
return 0
end
@@ -0,0 +1,103 @@
-- 基础信息
local base_info = {
group_id = 220129030
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 30001, shape = RegionShape.SPHERE, radius = 8, pos = { x = 328.262, y = 200.227, z = 262.018 } }
}
-- 触发器
triggers = {
{ config_id = 1030001, name = "ENTER_REGION_30001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_30001", action = "action_EVENT_ENTER_REGION_30001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 30001 },
triggers = { "ENTER_REGION_30001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_30001(context, evt)
if evt.param1 ~= 30001 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_30001(context, evt)
if 0 ~= ScriptLib.AssignPlayerShowTemplateReminder(context,178,{param_uid_vec={},param_vec={},uid_vec={context.uid}}) then
return -1
end
return 0
end
@@ -0,0 +1,605 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": -458.9888,
"y": -1.921218,
"z": -159.7632
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 300.0,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 500.0
},
"stringParam": "",
"tranPos": {
"x": -458.988831,
"y": -1.92121756,
"z": 49.0044937
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
},
"2": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": -458.9888,
"y": -1.921218,
"z": 27.86846
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 200.0,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 500.0
},
"stringParam": "",
"tranPos": {
"x": -458.988831,
"y": -1.92121756,
"z": 49.0044937
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
},
"3": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": -554.4787,
"y": -1.921218,
"z": -32.31124
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 200.0,
"heightType": "Center",
"length": 500.0,
"useHeight": true,
"width": 100.0
},
"stringParam": "",
"tranPos": {
"x": -458.988831,
"y": -1.92121756,
"z": 49.0044937
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
},
"4": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": {
"floatParam": 0.0,
"stringParam": "",
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
}
},
"pointType": "Other",
"pos": {
"x": -357.515,
"y": -1.921218,
"z": -32.31124
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 200.0,
"heightType": "Center",
"length": 500.0,
"useHeight": true,
"width": 100.0
},
"stringParam": "",
"tranPos": {
"x": -458.988831,
"y": -1.92121756,
"z": 49.0044937
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 348.043,
"y": 200.1084,
"z": 725.4699
},
"rot": {
"x": 0.0,
"y": 271.6348,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 348.043,
"y": 200.1084,
"z": 725.4699
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"10": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 319.0878,
"y": 200.0256,
"z": 723.9427
},
"rot": {
"x": 0.0,
"y": 88.0589,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 20.0,
"z": 20.0
},
"tranPos": {
"x": 319.0878,
"y": 200.0256,
"z": 723.9427
},
"tranRot": {
"x": 0.0,
"y": 88.0589,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"11": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": -456.4363,
"y": -1.931723,
"z": -76.12798
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 30.0,
"y": 30.0,
"z": 30.0
},
"tranPos": {
"x": -456.4363,
"y": -1.931723,
"z": -76.12798
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"2": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 302.8392,
"y": 205.4317,
"z": 721.4157
},
"rot": {
"x": 0.0,
"y": 88.0589,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 10.0,
"z": 10.0
},
"tranPos": {
"x": 302.8392,
"y": 205.4317,
"z": 721.4157
},
"tranRot": {
"x": 0.0,
"y": 88.0589,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"3": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 302.082,
"y": 205.3183,
"z": 491.7983
},
"rot": {
"x": 0.0,
"y": 88.0589,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 10.0,
"z": 10.0
},
"tranPos": {
"x": 302.082,
"y": 205.4317,
"z": 491.7983
},
"tranRot": {
"x": 0.0,
"y": 88.0589,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"4": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 303.0255,
"y": 205.4809,
"z": 269.9559
},
"rot": {
"x": 0.0,
"y": 88.0589,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 10.0,
"z": 10.0
},
"tranPos": {
"x": 303.0255,
"y": 205.4809,
"z": 269.9559
},
"tranRot": {
"x": 0.0,
"y": 88.0589,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"5": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": -382.7565,
"y": 200.0122,
"z": 13.96359
},
"rot": {
"x": 0.0,
"y": 88.0589,
"z": 0.0
},
"size": {
"x": 10.0,
"y": 10.0,
"z": 10.0
},
"tranPos": {
"x": -382.7565,
"y": 200.0122,
"z": 13.96359
},
"tranRot": {
"x": 0.0,
"y": 88.0589,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"8": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 321.3576,
"y": 200.1131,
"z": 273.958
},
"rot": {
"x": 0.0,
"y": 88.0589,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 20.0,
"z": 20.0
},
"tranPos": {
"x": 321.3576,
"y": 200.1131,
"z": 273.958
},
"tranRot": {
"x": 0.0,
"y": 88.0589,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"9": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 323.83,
"y": 200.0777,
"z": 70.41645
},
"rot": {
"x": 0.0,
"y": 88.0589,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 20.0,
"z": 20.0
},
"tranPos": {
"x": 323.83,
"y": 200.0777,
"z": 70.41645
},
"tranRot": {
"x": 0.0,
"y": 88.0589,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
}
},
"transRadius": 0.0
}
@@ -0,0 +1,962 @@
[
{
"pointArrayId": 1,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 538.4672,
"y": 279.0,
"z": 757.5
},
"rotation": {
"x": 0.0,
"y": 269.099976,
"z": 230.139069
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 538.4672,
"y": 279.0,
"z": 757.5
},
"rotation": {
"x": 3.41509462E-06,
"y": 269.1,
"z": 321.792358
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 538.4672,
"y": 279.0,
"z": 757.5
},
"rotation": {
"x": 0.0,
"y": 269.1,
"z": 8.711193
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 4,
"position": {
"x": 538.4672,
"y": 279.0,
"z": 757.5
},
"rotation": {
"x": -1.70754731E-06,
"y": 269.1,
"z": 97.5091553
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 5,
"position": {
"x": 538.4672,
"y": 279.0,
"z": 757.5
},
"rotation": {
"x": 5.122642E-06,
"y": 269.099976,
"z": 142.508911
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 2,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 549.6672,
"y": 279.0,
"z": 533.9
},
"rotation": {
"x": 1.70754731E-06,
"y": 269.099976,
"z": 230.139069
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 549.6672,
"y": 279.0,
"z": 533.9
},
"rotation": {
"x": 1.70754731E-06,
"y": 269.1,
"z": 321.792358
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 549.6672,
"y": 279.0,
"z": 533.9
},
"rotation": {
"x": 0.0,
"y": 269.1,
"z": 8.711193
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 4,
"position": {
"x": 549.6672,
"y": 279.0,
"z": 533.9
},
"rotation": {
"x": 0.0,
"y": 269.1,
"z": 97.5091553
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 5,
"position": {
"x": 549.6672,
"y": 279.0,
"z": 533.9
},
"rotation": {
"x": 5.122642E-06,
"y": 269.099976,
"z": 142.508911
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 3,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 549.1672,
"y": 279.0,
"z": 309.1
},
"rotation": {
"x": 1.70754731E-06,
"y": 269.099976,
"z": 230.139069
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 549.1672,
"y": 279.0,
"z": 309.1
},
"rotation": {
"x": 1.70754731E-06,
"y": 269.1,
"z": 321.792358
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 549.1672,
"y": 279.0,
"z": 309.1
},
"rotation": {
"x": 0.0,
"y": 269.1,
"z": 8.711193
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 4,
"position": {
"x": 549.1672,
"y": 279.0,
"z": 309.1
},
"rotation": {
"x": 0.0,
"y": 269.1,
"z": 97.5091553
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 5,
"position": {
"x": 549.1672,
"y": 279.0,
"z": 309.1
},
"rotation": {
"x": 5.122642E-06,
"y": 269.099976,
"z": 142.508911
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 4,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 534.0672,
"y": 279.0,
"z": 102.0
},
"rotation": {
"x": 1.70754731E-06,
"y": 269.099976,
"z": 230.139069
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 534.0672,
"y": 279.0,
"z": 102.0
},
"rotation": {
"x": 1.70754731E-06,
"y": 269.1,
"z": 321.792358
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 534.0672,
"y": 279.0,
"z": 102.0
},
"rotation": {
"x": 0.0,
"y": 269.1,
"z": 8.711193
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 4,
"position": {
"x": 534.0672,
"y": 279.0,
"z": 102.0
},
"rotation": {
"x": 0.0,
"y": 269.1,
"z": 97.5091553
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 5,
"position": {
"x": 534.0672,
"y": 279.0,
"z": 102.0
},
"rotation": {
"x": 5.122642E-06,
"y": 269.099976,
"z": 142.508911
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 5,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 332.7388,
"y": 202.1,
"z": 711.4768
},
"rotation": {
"x": -5.122642E-06,
"y": 253.27771,
"z": 229.4784
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 332.7388,
"y": 202.1,
"z": 711.4768
},
"rotation": {
"x": 5.97641556E-05,
"y": 253.27771,
"z": 319.952576
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 332.7388,
"y": 202.1,
"z": 711.4768
},
"rotation": {
"x": -2.13443414E-07,
"y": 253.277679,
"z": 6.12750149
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 4,
"position": {
"x": 332.7388,
"y": 202.1,
"z": 711.4768
},
"rotation": {
"x": -3.24434E-05,
"y": 253.27771,
"z": 93.17932
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 5,
"position": {
"x": 332.7388,
"y": 202.1,
"z": 711.4768
},
"rotation": {
"x": 8.537737E-06,
"y": 253.27771,
"z": 141.666718
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 6,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 332.682,
"y": 200.7504,
"z": 481.8946
},
"rotation": {
"x": 342.5843,
"y": 265.017,
"z": 322.8364
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 332.682,
"y": 200.7504,
"z": 481.8946
},
"rotation": {
"x": 342.5843,
"y": 265.017,
"z": 322.8364
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 332.682,
"y": 200.7504,
"z": 481.8946
},
"rotation": {
"x": 342.5843,
"y": 265.016968,
"z": 10.182806
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 4,
"position": {
"x": 332.682,
"y": 200.7504,
"z": 481.8946
},
"rotation": {
"x": 342.5843,
"y": 265.017,
"z": 322.8364
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 5,
"position": {
"x": 332.682,
"y": 200.7504,
"z": 481.8946
},
"rotation": {
"x": 342.5843,
"y": 265.017,
"z": 322.8364
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 7,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 330.7262,
"y": 200.52504,
"z": 259.197784
},
"rotation": {
"x": 342.4249,
"y": 269.676819,
"z": 250.538712
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 330.7262,
"y": 200.52504,
"z": 259.197784
},
"rotation": {
"x": 342.4249,
"y": 269.6768,
"z": 320.5806
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 330.7262,
"y": 200.52504,
"z": 259.197784
},
"rotation": {
"x": 342.4249,
"y": 269.6768,
"z": 5.375928
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 4,
"position": {
"x": 330.7262,
"y": 200.52504,
"z": 259.197784
},
"rotation": {
"x": 342.4249,
"y": 269.676819,
"z": 95.75032
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 5,
"position": {
"x": 330.7262,
"y": 200.52504,
"z": 259.197784
},
"rotation": {
"x": 342.4249,
"y": 269.6768,
"z": 10.8437023
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 8,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 318.69043,
"y": 200.915359,
"z": 42.51971
},
"rotation": {
"x": 347.2291,
"y": 20.6230278,
"z": 236.058472
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 318.69043,
"y": 200.915359,
"z": 42.51971
},
"rotation": {
"x": 347.2291,
"y": 20.6230412,
"z": 323.506531
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": 318.69043,
"y": 200.915359,
"z": 42.51971
},
"rotation": {
"x": 347.2291,
"y": 20.6230183,
"z": 10.921339
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 4,
"position": {
"x": 318.69043,
"y": 200.915359,
"z": 42.51971
},
"rotation": {
"x": 347.229065,
"y": 20.6230221,
"z": 98.81957
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
},
{
"pointId": 5,
"position": {
"x": 318.69043,
"y": 200.915359,
"z": 42.51971
},
"rotation": {
"x": 347.2291,
"y": 20.623003,
"z": 12.8881989
},
"velocity": 0.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 15.0,
"arriveRange": 2.0
}
]
}
]
@@ -0,0 +1,128 @@
[
{
"area_id": 10082,
"points": [
{
"x": 668.2064,
"y": 942.3323
},
{
"x": 142.077713,
"y": 883.203735
},
{
"x": 159.249222,
"y": 601.2352
},
{
"x": 695.9965,
"y": 625.132935
}
]
},
{
"area_id": 10083,
"points": [
{
"x": 135.162613,
"y": 373.63147
},
{
"x": 672.6577,
"y": 407.913269
},
{
"x": 676.345337,
"y": 627.4217
},
{
"x": 141.385941,
"y": 612.067261
}
]
},
{
"area_id": 10084,
"points": [
{
"x": 181.030243,
"y": 154.822449
},
{
"x": 680.15564,
"y": 192.489059
},
{
"x": 664.8873,
"y": 407.055481
},
{
"x": 143.6763,
"y": 380.521667
}
]
},
{
"area_id": 10085,
"points": [
{
"x": 218.365417,
"y": -66.5034943
},
{
"x": 194.037155,
"y": 180.074524
},
{
"x": 641.814331,
"y": 183.23941
},
{
"x": 652.3793,
"y": -40.6072426
}
]
},
{
"area_id": 10097,
"points": [
{
"x": -683.6931,
"y": 1181.88135
},
{
"x": -668.841,
"y": 733.2088
},
{
"x": -127.590439,
"y": 679.8212
},
{
"x": -151.719574,
"y": 1186.74438
}
]
},
{
"area_id": 10098,
"points": [
{
"x": -281.3747,
"y": -243.29657
},
{
"x": -243.843262,
"y": 102.177589
},
{
"x": -627.115845,
"y": 82.0139847
},
{
"x": -608.8772,
"y": -245.318237
}
]
}
]