添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -256.0, z = -256.0 },
size = { x = 1024.0, z = 1024.0 },
born_pos = { x = 17.932, y = 2.192, z = 73.038 },
born_rot = { x = 0.000, y = 270.000, z = 0.000 },
die_y = -110,
city_id = 4,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 20151 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -256.0, z = -256.0 }, max = { x = 768.0, z = 768.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }
@@ -0,0 +1,4 @@
{
"sceneId": 20151,
"routes": []
}
@@ -0,0 +1,21 @@
-- 所有的group
groups = {
{ id = 220151001, refresh_id = 1, pos = { x = -15.871, y = 45.500, z = 12.212 } },
{ id = 220151002, refresh_id = 1, pos = { x = -160.423, y = 5.922, z = 74.296 } },
{ id = 220151003, refresh_id = 1, pos = { x = -36.081, y = 2.462, z = 58.496 } },
{ id = 220151004, refresh_id = 1, pos = { x = -29.439, y = 0.595, z = 68.983 } },
{ id = 220151005, refresh_id = 1, pos = { x = -137.771, y = -33.508, z = 70.235 } },
{ id = 220151006, refresh_id = 1001, pos = { x = -84.174, y = -38.784, z = 73.917 } },
{ id = 220151007, refresh_id = 1001, pos = { x = -138.254, y = -45.200, z = 87.452 } },
{ id = 220151008, refresh_id = 1001, pos = { x = -146.469, y = -13.848, z = 99.661 } },
{ id = 220151009, refresh_id = 1001, pos = { x = -139.023, y = 2.980, z = 61.615 } },
{ id = 220151010, refresh_id = 1, pos = { x = -237.064, y = -71.983, z = 140.574 } },
{ id = 220151011, refresh_id = 1, pos = { x = -125.406, y = -45.210, z = 51.574 } },
{ id = 220151012, refresh_id = 1, pos = { x = 626.966, y = 65.956, z = 486.424 } },
{ id = 220151013, refresh_id = 1001, pos = { x = -44.388, y = -23.098, z = 72.262 } },
{ id = 220151014, refresh_id = 1, pos = { x = 639.296, y = 58.362, z = 463.661 } },
{ id = 220151015, pos = { x = -150.410, y = 3.215, z = 60.015 } },
{ id = 220151016, refresh_id = 1, pos = { x = 618.832, y = 65.956, z = 486.679 } },
{ id = 220151017, refresh_id = 1, pos = { x = -25.863, y = 0.800, z = 50.604 } },
{ id = 220151018, refresh_id = 1, pos = { x = 630.676, y = 61.537, z = 470.285 } }
}
@@ -0,0 +1,16 @@
dummy_points = {
["Q302106_T302106_N10000005"] = { pos = { x = 620.712, y = 64.241, z = 482.543 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q302106_T302106_N1005"] = { pos = { x = 625.722, y = 65.834, z = 488.168 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q302106_T302106_N1052"] = { pos = { x = 632.158, y = 63.856, z = 483.094 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q302106_T302106_N1053"] = { pos = { x = 623.944, y = 64.241, z = 482.651 }, rot = { x = 0.000, y = 202.750, z = 0.000 } },
["Q302106_T302106_N1058"] = { pos = { x = 625.670, y = 64.241, z = 481.993 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q302106_T302106_N12709"] = { pos = { x = 623.469, y = 64.241, z = 481.200 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q302106_T302106_N12768"] = { pos = { x = 623.887, y = 64.241, z = 479.533 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q302113_N1053"] = { pos = { x = 10.183, y = 0.866, z = 71.963 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q302113_T302105_N1053"] = { pos = { x = 12.021, y = 0.592, z = 73.866 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T302105_N10000005"] = { pos = { x = 8.122, y = 0.592, z = 73.741 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T302105_N1005"] = { pos = { x = 9.143, y = 0.592, z = 70.283 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T302105_N1052"] = { pos = { x = 10.787, y = 0.592, z = 75.451 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T302105_N1058"] = { pos = { x = 8.438, y = 0.592, z = 75.417 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["T302105_N12709"] = { pos = { x = 8.751, y = 0.592, z = 71.915 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}
@@ -0,0 +1,248 @@
-- 基础信息
local base_info = {
group_id = 220151001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
-- 中场打开
{ config_id = 1001, gadget_id = 70330452, pos = { x = -30.007, y = 0.546, z = 56.557 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
-- 中场关闭
{ config_id = 1002, gadget_id = 70330424, pos = { x = -57.176, y = 3.022, z = 72.765 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_NORMAL },
-- 中场打开
{ config_id = 1004, gadget_id = 70330452, pos = { x = -44.385, y = 0.656, z = 56.455 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
-- 中场打开
{ config_id = 1005, gadget_id = 70330452, pos = { x = -15.632, y = 0.546, z = 56.537 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 1007, gadget_id = 70900201, pos = { x = -15.498, y = 1.674, z = 50.724 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1008, gadget_id = 70900201, pos = { x = -29.790, y = 1.545, z = 50.764 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1009, gadget_id = 70900201, pos = { x = -44.561, y = 1.545, z = 50.693 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1011, gadget_id = 70290196, pos = { x = -15.302, y = 0.656, z = 38.030 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1003, shape = RegionShape.CUBIC, size = { x = 20.000, y = 50.000, z = 70.000 }, pos = { x = -30.001, y = 0.701, z = 71.863 } },
{ config_id = 1006, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = 15.298, y = 5.057, z = 73.285 } },
{ config_id = 1010, shape = RegionShape.CUBIC, size = { x = 35.000, y = 10.000, z = 5.000 }, pos = { x = -29.680, y = 1.828, z = 50.401 } }
}
-- 触发器
triggers = {
{ config_id = 1001003, name = "ENTER_REGION_1003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1003", action = "action_EVENT_ENTER_REGION_1003" },
{ config_id = 1001006, name = "ENTER_REGION_1006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1006", action = "action_EVENT_ENTER_REGION_1006" },
{ config_id = 1001010, name = "ENTER_REGION_1010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1010", action = "action_EVENT_ENTER_REGION_1010" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = 大厅,
monsters = { },
gadgets = { 1001, 1002, 1004, 1005 },
regions = { 1003, 1006 },
triggers = { "ENTER_REGION_1003", "ENTER_REGION_1006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 大厅下,
monsters = { },
gadgets = { 1007, 1008, 1009, 1011 },
regions = { 1010 },
triggers = { "ENTER_REGION_1010" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 1L,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = 2L,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = 3L,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = 隧道,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = 花海,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_1003(context, evt)
if evt.param1 ~= 1003 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_1003(context, evt)
-- 将configid为 1002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220151001, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1006(context, evt)
if evt.param1 ~= 1006 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_1006(context, evt)
-- 将configid为 1002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1010(context, evt)
if evt.param1 ~= 1010 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_1010(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,374 @@
-- 基础信息
local base_info = {
group_id = 220151002
}
-- Trigger变量
local defs = {
pointarray_ID = 1,
elevatorOptionID = 24,
gadget_elevatorID = 2008
}
-- DEFS_MISCS
--旋转的时间间隔
defs.RotateTime = 5
--方尖碑configID
defs.gadget_1 = 2001
defs.gadget_2 = 2002
defs.gadget_3 = 2003
--方尖碑初始旋转角
defs.rotation_1
= 120
defs.rotation_2
= 0
defs.rotation_3
= 240
--重力压板对应的控制的方尖碑
defs.boardControlList={
[2004]={2003},
[2005]={2002},
[2006]={2001},
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70330302, pos = { x = -127.548, y = 5.872, z = 97.210 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2002, gadget_id = 70330302, pos = { x = -138.438, y = 5.872, z = 97.188 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2003, gadget_id = 70330302, pos = { x = -149.509, y = 5.872, z = 97.193 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2004, gadget_id = 70330341, pos = { x = -149.509, y = 3.346, z = 83.248 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
-- 隐藏的,不给操作
{ config_id = 2005, gadget_id = 70330341, pos = { x = -138.602, y = 5.149, z = 113.348 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 2006, gadget_id = 70330341, pos = { x = -128.089, y = 2.995, z = 83.248 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 2008, gadget_id = 70330303, pos = { x = -127.549, y = 5.872, z = 97.210 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2009, gadget_id = 70330303, pos = { x = -138.438, y = 5.872, z = 97.188 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2010, gadget_id = 70330303, pos = { x = -149.509, y = 5.872, z = 97.193 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 2011, gadget_id = 70330287, pos = { x = -138.663, y = -46.300, z = 73.021 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002007, name = "VARIABLE_CHANGE_2007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_2007", action = "action_EVENT_VARIABLE_CHANGE_2007" },
-- 初始选项
{ config_id = 1002012, name = "GADGET_STATE_CHANGE_2012", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2012", action = "action_EVENT_GADGET_STATE_CHANGE_2012" },
-- 开关1
{ config_id = 1002013, name = "SELECT_OPTION_2013", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2013", action = "action_EVENT_SELECT_OPTION_2013", trigger_count = 0 },
-- 关开1
{ config_id = 1002014, name = "SELECT_OPTION_2014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2014", action = "action_EVENT_SELECT_OPTION_2014", trigger_count = 0 },
-- 开关2
{ config_id = 1002015, name = "SELECT_OPTION_2015", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2015", action = "action_EVENT_SELECT_OPTION_2015", trigger_count = 0 },
-- 关开2
{ config_id = 1002016, name = "SELECT_OPTION_2016", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2016", action = "action_EVENT_SELECT_OPTION_2016", trigger_count = 0 }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 2017, gadget_id = 70330341, pos = { x = -138.602, y = 2.980, z = 83.248 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009, 2010, 2011 },
regions = { },
triggers = { "VARIABLE_CHANGE_2007", "GADGET_STATE_CHANGE_2012", "SELECT_OPTION_2013", "SELECT_OPTION_2014", "SELECT_OPTION_2015", "SELECT_OPTION_2016" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "success", 220151002) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2007(context, evt)
-- 将本组内变量名为 "success1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "success1", 1, 220151005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220151002, EntityType.GADGET, 2011 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 删除指定group 220151002 ;指定config2004;物件身上指定option493
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220151002, 2004, 493) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 220151002 ;指定config2006;物件身上指定option493
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220151002, 2006, 493) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 220151002 ;指定config2004;物件身上指定option492
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220151002, 2004, 492) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除指定group 0 ;指定config2006;物件身上指定option492
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 0, 2006, 492) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 2004 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2004, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2006 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2006, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2012(context, evt)
-- 检测config_id为2004的gadget是否从GadgetState.GearStop变为GadgetState.GearStart
if 2004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.GearStop ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2012(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220151002, 2004, {493}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220151002, 2006, {493}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2013(context, evt)
-- 判断是gadgetid 2004 option_id 493
if 2004 ~= evt.param1 then
return false
end
if 493 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2013(context, evt)
-- 删除指定group 220151002 ;指定config2004;物件身上指定option493
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220151002, 2004, 493) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220151002, 2004, {492}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将configid为 2004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2014(context, evt)
-- 判断是gadgetid 2004 option_id 492
if 2004 ~= evt.param1 then
return false
end
if 492 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2014(context, evt)
-- 删除指定group 220151002 ;指定config2004;物件身上指定option492
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220151002, 2004, 492) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220151002, 2004, {493}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将configid为 2004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2015(context, evt)
-- 判断是gadgetid 2006 option_id 493
if 2006 ~= evt.param1 then
return false
end
if 493 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2015(context, evt)
-- 删除指定group 220151002 ;指定config2006;物件身上指定option493
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220151002, 2006, 493) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220151002, 2006, {492}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将configid为 2006 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2016(context, evt)
-- 判断是gadgetid 2006 option_id 492
if 2006 ~= evt.param1 then
return false
end
if 492 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2016(context, evt)
-- 删除指定group 220151002 ;指定config2006;物件身上指定option492
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220151002, 2006, 492) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220151002, 2006, {493}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将configid为 2006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
@@ -0,0 +1,135 @@
-- 基础信息
local base_info = {
group_id = 220151003
}
-- Trigger变量
local defs = {
option_id = 494,
pointarray_ID = 2,
elevatorOptionID = 24,
gadget_elevatorID = 3005
}
-- DEFS_MISCS
--方尖碑configID
defs.gadget_1 = 3001
defs.gadget_2 = 3002
defs.gadget_3 = 3003
--方尖碑初始旋转角
defs.rotation_1
= 120
defs.rotation_2
= 0
defs.rotation_3
= 240
--方尖碑旋转影响的configID表
defs.gadget_connect1= { 3002,3003}
defs.gadget_connect2 = {3003}
defs.gadget_connect3= {}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70330302, pos = { x = -15.479, y = 0.600, z = 50.018 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 3002, gadget_id = 70330302, pos = { x = -29.778, y = 0.615, z = 50.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 3003, gadget_id = 70330302, pos = { x = -44.552, y = 0.615, z = 50.017 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 3007, gadget_id = 70330303, pos = { x = -15.479, y = 0.600, z = 50.018 }, rot = { x = 0.000, y = 120.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 3008, gadget_id = 70330303, pos = { x = -29.778, y = 0.615, z = 50.017 }, rot = { x = 0.000, y = 120.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 3009, gadget_id = 70330303, pos = { x = -44.552, y = 0.615, z = 50.017 }, rot = { x = 0.000, y = 120.000, z = 0.000 }, level = 1, is_use_point_array = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003004, name = "VARIABLE_CHANGE_3004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_3004", action = "action_EVENT_VARIABLE_CHANGE_3004" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 3005, gadget_id = 70330316, pos = { x = -30.294, y = -11.000, z = 72.510 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3006, gadget_id = 70330341, pos = { x = -35.662, y = -19.640, z = 77.570 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 24 } } }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3003, 3007, 3008, 3009 },
regions = { },
triggers = { "VARIABLE_CHANGE_3004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_3004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "success", 220151003) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_3004(context, evt)
-- 将本组内变量名为 "success1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "success1", 1, 220151004) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
@@ -0,0 +1,228 @@
-- 基础信息
local base_info = {
group_id = 220151004
}
-- Trigger变量
local defs = {
elevatorOptionID = 491,
gadget_elevatorID = 4001,
finalMovePoints = {1,2,3,4,5,6}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70330316, pos = { x = -30.294, y = -13.607, z = 72.795 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true, server_global_value_config = { ["SGV_ShineEffect"] = 0 } },
{ config_id = 4002, gadget_id = 70330341, pos = { x = -35.203, y = -18.551, z = 85.918 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 491 } } },
{ config_id = 4007, gadget_id = 70900201, pos = { x = -30.300, y = 0.701, z = 72.737 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 4005, shape = RegionShape.CUBIC, size = { x = 60.000, y = 20.000, z = 35.000 }, pos = { x = -29.293, y = 0.729, z = 61.595 } },
{ config_id = 4008, shape = RegionShape.CUBIC, size = { x = 3.000, y = 8.000, z = 3.000 }, pos = { x = -30.434, y = 0.701, z = 72.783 } }
}
-- 触发器
triggers = {
-- 解谜1完成
{ config_id = 1004004, name = "VARIABLE_CHANGE_4004", event = EventType.EVENT_VARIABLE_CHANGE, source = "success1", condition = "condition_EVENT_VARIABLE_CHANGE_4004", action = "action_EVENT_VARIABLE_CHANGE_4004", trigger_count = 0 },
{ config_id = 1004005, name = "ENTER_REGION_4005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4005", action = "action_EVENT_ENTER_REGION_4005" },
{ config_id = 1004008, name = "ENTER_REGION_4008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4008", action = "action_EVENT_ENTER_REGION_4008" },
-- 开关表现
{ config_id = 1004009, name = "GADGET_STATE_CHANGE_4009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_4009", action = "action_EVENT_GADGET_STATE_CHANGE_4009", trigger_count = 0 },
-- 开关表现
{ config_id = 1004010, name = "GADGET_STATE_CHANGE_4010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_4010", action = "action_EVENT_GADGET_STATE_CHANGE_4010", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "pointarray_ID", value = 3, no_refresh = false },
{ config_id = 2, name = "CurMovePoint", value = 1, no_refresh = false },
{ config_id = 3, name = "MovePoint1", value = 1, no_refresh = false },
{ config_id = 4, name = "MovePoint2", value = 2, no_refresh = false },
{ config_id = 5, name = "IsBlockMoveMode", value = 0, no_refresh = false },
{ config_id = 6, name = "success1", value = 0, no_refresh = false },
{ config_id = 7, name = "IsFinalMove", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
regions = {
{ config_id = 4003, shape = RegionShape.CUBIC, size = { x = 15.000, y = 15.000, z = 30.000 }, pos = { x = -29.661, y = -9.766, z = 72.032 } },
{ config_id = 4006, shape = RegionShape.SPHERE, radius = 5, pos = { x = -40.884, y = 0.671, z = 74.174 } }
},
triggers = {
{ config_id = 1004003, name = "ENTER_REGION_4003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4003", action = "action_EVENT_ENTER_REGION_4003" },
{ config_id = 1004006, name = "ENTER_REGION_4006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "action_EVENT_ENTER_REGION_4006" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4002 },
regions = { },
triggers = { "VARIABLE_CHANGE_4004", "GADGET_STATE_CHANGE_4009", "GADGET_STATE_CHANGE_4010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 4007 },
regions = { 4005, 4008 },
triggers = { "ENTER_REGION_4005", "ENTER_REGION_4008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_4004(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"success1"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "success1", 220151004) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_4004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220151004, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4005(context, evt)
if evt.param1 ~= 4005 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_4005(context, evt)
-- 前往A4点1
SetElevator(context, 4,1)
ScriptLib.BeginCameraSceneLookWithTemplate(context, 3,{look_configid=0, look_pos = {x = -30,y = 3,z = 73}, follow_type =2, follow_pos = {x=-40,y=15,z=80},is_broadcast =false, delay = 0, })
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4008(context, evt)
if evt.param1 ~= 4008 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_4008(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 4007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_4009(context, evt)
if 4001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4009(context, evt)
-- 将configid为 4002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_4010(context, evt)
if 4001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4010(context, evt)
-- 将configid为 4002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
require "V3_1/DeshretElevator"
@@ -0,0 +1,591 @@
-- 基础信息
local base_info = {
group_id = 220151005
}
-- Trigger变量
local defs = {
elevatorOptionID = 491,
gadget_elevatorID = 5001,
finalMovePoints = {1,2,3,4,5,6,7,8}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70330316, pos = { x = -138.626, y = -46.118, z = 73.020 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true, server_global_value_config = { ["SGV_ShineEffect"] = 0 } },
-- 1L
{ config_id = 5002, gadget_id = 70330341, pos = { x = -138.586, y = -45.210, z = 83.691 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 491 } } },
-- 2L
{ config_id = 5004, gadget_id = 70330459, pos = { x = -142.126, y = -8.291, z = 80.890 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1, worktop_config = { init_options = { 491 } } },
{ config_id = 5007, gadget_id = 70900201, pos = { x = -138.238, y = 3.136, z = 70.649 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5013, gadget_id = 70330424, pos = { x = -226.091, y = -85.628, z = 73.427 }, rot = { x = 0.000, y = 90.000, z = 180.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5014, gadget_id = 70330424, pos = { x = -226.091, y = -85.600, z = 73.427 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5015, gadget_id = 70330424, pos = { x = -204.069, y = -84.400, z = 155.272 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5016, gadget_id = 70330424, pos = { x = -204.069, y = -84.444, z = 155.272 }, rot = { x = 0.000, y = 0.000, z = 180.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 5021, gadget_id = 70330317, pos = { x = -138.574, y = 2.784, z = 73.035 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 5008, shape = RegionShape.CUBIC, size = { x = 12.000, y = 5.000, z = 12.000 }, pos = { x = -139.199, y = 3.020, z = 72.832 } },
-- 操作台附近判定
{ config_id = 5009, shape = RegionShape.CUBIC, size = { x = 9.000, y = 10.000, z = 4.000 }, pos = { x = -141.870, y = -9.718, z = 81.657 } },
-- 操作台附近判定
{ config_id = 5010, shape = RegionShape.CUBIC, size = { x = 25.000, y = 20.000, z = 35.000 }, pos = { x = -138.332, y = -9.718, z = 96.451 } }
}
-- 触发器
triggers = {
{ config_id = 1005003, name = "VARIABLE_CHANGE_5003", event = EventType.EVENT_VARIABLE_CHANGE, source = "success1", condition = "condition_EVENT_VARIABLE_CHANGE_5003", action = "action_EVENT_VARIABLE_CHANGE_5003", trigger_count = 0 },
-- 电梯抵达传送点
{ config_id = 1005005, name = "PLATFORM_ARRIVAL_5005", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_5005", action = "action_EVENT_PLATFORM_ARRIVAL_5005" },
-- 电梯向上走且玩家在操作台附近提示,(废弃提示)1000090004
{ config_id = 1005006, name = "VARIABLE_CHANGE_5006", event = EventType.EVENT_VARIABLE_CHANGE, source = "CurMovePoint", condition = "condition_EVENT_VARIABLE_CHANGE_5006", action = "action_EVENT_VARIABLE_CHANGE_5006", trigger_count = 0 },
{ config_id = 1005008, name = "ENTER_REGION_5008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5008", action = "action_EVENT_ENTER_REGION_5008" },
-- 操作台附近判定
{ config_id = 1005009, name = "ENTER_REGION_5009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5009", action = "action_EVENT_ENTER_REGION_5009", trigger_count = 0 },
-- 操作台附近判定
{ config_id = 1005010, name = "LEAVE_REGION_5010", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_5010", action = "action_EVENT_LEAVE_REGION_5010", trigger_count = 0 },
-- 关墙1
{ config_id = 1005011, name = "PLATFORM_ARRIVAL_5011", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_5011", action = "action_EVENT_PLATFORM_ARRIVAL_5011" },
-- 关墙2
{ config_id = 1005012, name = "PLATFORM_ARRIVAL_5012", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_5012", action = "action_EVENT_PLATFORM_ARRIVAL_5012" },
-- 特殊激活
{ config_id = 1005017, name = "PLATFORM_ARRIVAL_5017", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_5017", action = "action_EVENT_PLATFORM_ARRIVAL_5017" },
-- reminder触发
{ config_id = 1005018, name = "PLATFORM_ARRIVAL_5018", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_5018", action = "action_EVENT_PLATFORM_ARRIVAL_5018" },
-- 移动记录,重置最后阶段前置条件
{ config_id = 1005019, name = "GADGET_STATE_CHANGE_5019", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_5019", action = "action_EVENT_GADGET_STATE_CHANGE_5019", trigger_count = 0 },
-- 重置最后阶段电梯
{ config_id = 1005020, name = "GADGET_CREATE_5020", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_5020", action = "action_EVENT_GADGET_CREATE_5020", trigger_count = 0 },
-- 特殊激活
{ config_id = 1005022, name = "PLATFORM_ARRIVAL_5022", event = EventType.EVENT_PLATFORM_ARRIVAL, source = "", condition = "condition_EVENT_PLATFORM_ARRIVAL_5022", action = "action_EVENT_PLATFORM_ARRIVAL_5022" },
-- 电梯处于移动状态激活开关表现
{ config_id = 1005023, name = "GADGET_STATE_CHANGE_5023", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_5023", action = "action_EVENT_GADGET_STATE_CHANGE_5023", trigger_count = 0 },
-- 电梯处于静止状态关闭开关表现
{ config_id = 1005024, name = "GADGET_STATE_CHANGE_5024", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_5024", action = "action_EVENT_GADGET_STATE_CHANGE_5024", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "pointarray_ID", value = 5, no_refresh = false },
{ config_id = 2, name = "CurMovePoint", value = 2, no_refresh = false },
{ config_id = 3, name = "MovePoint1", value = 1, no_refresh = false },
{ config_id = 4, name = "MovePoint2", value = 2, no_refresh = false },
{ config_id = 5, name = "IsBlockMoveMode", value = 0, no_refresh = false },
{ config_id = 6, name = "success1", value = 0, no_refresh = false },
{ config_id = 7, name = "IsFinalMove", value = 0, no_refresh = false },
{ config_id = 9, name = "IsReminder", value = 0, no_refresh = false },
{ config_id = 10, name = "IsInL2", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001, 5002, 5004, 5013, 5014, 5015, 5016 },
regions = { 5009, 5010 },
triggers = { "VARIABLE_CHANGE_5003", "PLATFORM_ARRIVAL_5005", "VARIABLE_CHANGE_5006", "ENTER_REGION_5009", "LEAVE_REGION_5010", "PLATFORM_ARRIVAL_5011", "PLATFORM_ARRIVAL_5012", "PLATFORM_ARRIVAL_5017", "PLATFORM_ARRIVAL_5018", "GADGET_STATE_CHANGE_5019", "GADGET_CREATE_5020", "GADGET_STATE_CHANGE_5023", "GADGET_STATE_CHANGE_5024" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5007 },
regions = { 5008 },
triggers = { "ENTER_REGION_5008" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 5021 },
regions = { },
triggers = { "PLATFORM_ARRIVAL_5022" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5003(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"success1"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "success1", 220151005) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5003(context, evt)
-- 前往A6点1
SetElevator_finalMove(context,6,1)
ScriptLib.SetGroupVariableValue(context, "IsBlockMoveMode", 1)
ScriptLib.BeginCameraSceneLookWithTemplate(context, 3,{look_configid=0, look_pos = {x = -143,y = 6,z = 77}, follow_type =2, follow_pos = {x=-125,y=18,z=61},is_broadcast =false, delay = 0, })
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_5005(context, evt)
-- 判断是gadgetid 为 5001的移动平台,是否到达了6 的点集中的 8 点
if 5001 ~= evt.param1 then
return false
end
if 6 ~= evt.param2 then
return false
end
if 8 ~= evt.param3 then
return false
end
-- 判断变量"IsArrive_Flower"为0
if ScriptLib.GetGroupVariableValueByGroup(context, "IsArrive_Flower", 220151010) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_5005(context, evt)
ScriptLib.TransPlayerToPos(context, {uid_list =ScriptLib.GetSceneUidList(context), pos = {x=679.7, y=58, z=424.5}, radius = 2, rot = {x=0, y=315, z=0},is_skip_ui=false})
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5006(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"IsReminder"为0
if ScriptLib.GetGroupVariableValue(context, "IsReminder") ~= 0 then
return false
end
-- 判断变量"CurMovePoint"为1
if ScriptLib.GetGroupVariableValue(context, "CurMovePoint") ~= 1 then
return false
end
-- 判断变量"IsInL2"为1
if ScriptLib.GetGroupVariableValue(context, "IsInL2") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5006(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220151005, 2)
-- 针对当前group内变量名为 "IsReminder" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "IsReminder", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5008(context, evt)
if evt.param1 ~= 5008 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_5008(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 5007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5009(context, evt)
if evt.param1 ~= 5009 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_5009(context, evt)
-- 将本组内变量名为 "IsInL2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "IsInL2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_5010(context, evt)
-- 判断变量"IsInL2"为1
if ScriptLib.GetGroupVariableValue(context, "IsInL2") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_5010(context, evt)
-- 将本组内变量名为 "IsInL2" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "IsInL2", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_5011(context, evt)
-- 判断是gadgetid 为 5001的移动平台,是否到达了6 的点集中的 3 点
if 5001 ~= evt.param1 then
return false
end
if 6 ~= evt.param2 then
return false
end
if 3 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_5011(context, evt)
-- 将configid为 5013 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5013, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 5014 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5014, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_5012(context, evt)
-- 判断是gadgetid 为 5001的移动平台,是否到达了6 的点集中的 5 点
if 5001 ~= evt.param1 then
return false
end
if 6 ~= evt.param2 then
return false
end
if 5 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_5012(context, evt)
-- 将configid为 5015 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5015, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 5016 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5016, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220151005, EntityType.GADGET, 5013 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220151005, EntityType.GADGET, 5014 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_5017(context, evt)
-- 判断是gadgetid 为 5001的移动平台,是否到达了6 的点集中的 1 点
if 5001 ~= evt.param1 then
return false
end
if 6 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_5017(context, evt)
ScriptLib.SetEntityServerGlobalValueByConfigId(context, 5001, "SGV_ShineEffect", 1)
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_5018(context, evt)
-- 判断是gadgetid 为 5001的移动平台,是否到达了6 的点集中的 2 点
if 5001 ~= evt.param1 then
return false
end
if 6 ~= evt.param2 then
return false
end
if 2 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_5018(context, evt)
-- 调用提示id为 1000090000 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1000090000) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_5019(context, evt)
if 5001 ~= evt.param2 or GadgetState.GearAction1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_5019(context, evt)
-- 将本组内变量名为 "IsFinalMove_check" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "IsFinalMove_check", 1, 220151015) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_5020(context, evt)
if 5001 ~= evt.param1 then
return false
end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "success", 220151002) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_5020(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220151005, 3)
-- 前往A6点1
SetElevator_finalMove(context,6,1)
ScriptLib.SetGroupVariableValue(context, "IsBlockMoveMode", 1)
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_ARRIVAL_5022(context, evt)
-- 判断是gadgetid 为 5001的移动平台,是否到达了6 的点集中的 1 点
if 5001 ~= evt.param1 then
return false
end
if 6 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_ARRIVAL_5022(context, evt)
-- 将configid为 5021 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5021, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_5023(context, evt)
if 5001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_5023(context, evt)
-- 将configid为 5002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 5004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_5024(context, evt)
if 5001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_5024(context, evt)
-- 将configid为 5002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 5004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
require "V3_1/DeshretElevator"
@@ -0,0 +1,138 @@
-- 基础信息
local base_info = {
group_id = 220151006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 26120301, pos = { x = -84.208, y = -36.969, z = 70.838 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 6002, monster_id = 26120101, pos = { x = -84.125, y = -36.905, z = 76.535 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 6005, monster_id = 26090101, pos = { x = -86.442, y = -36.948, z = 73.864 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 6006, monster_id = 26090201, pos = { x = -82.358, y = -36.948, z = 73.864 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 102 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6003, gadget_id = 70211012, pos = { x = -84.240, y = -36.948, z = 73.716 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "战斗中级须弥", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 6007, gadget_id = 70900201, pos = { x = -118.360, y = -44.269, z = 49.634 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6009, gadget_id = 70290196, pos = { x = -112.714, y = -45.283, z = 31.979 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 6008, shape = RegionShape.SPHERE, radius = 4, pos = { x = -119.557, y = -44.269, z = 49.639 } }
}
-- 触发器
triggers = {
{ config_id = 1006004, name = "ANY_MONSTER_DIE_6004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6004", action = "action_EVENT_ANY_MONSTER_DIE_6004" },
{ config_id = 1006008, name = "ENTER_REGION_6008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6008", action = "action_EVENT_ENTER_REGION_6008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 6001, 6002, 6005, 6006 },
gadgets = { 6003 },
regions = { },
triggers = { "ANY_MONSTER_DIE_6004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6007, 6009 },
regions = { 6008 },
triggers = { "ENTER_REGION_6008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6004(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220151006) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220151006, 2)
-- 将configid为 6003 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6008(context, evt)
if evt.param1 ~= 6008 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_6008(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 6007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,139 @@
-- 基础信息
local base_info = {
group_id = 220151007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 7001, monster_id = 26090101, pos = { x = -150.750, y = -45.200, z = 73.814 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 7002, monster_id = 26090201, pos = { x = -146.487, y = -44.983, z = 73.549 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 7005, monster_id = 26090801, pos = { x = -148.660, y = -45.200, z = 71.577 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 7006, monster_id = 26090901, pos = { x = -148.891, y = -45.011, z = 75.629 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 102 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7003, gadget_id = 70330317, pos = { x = -138.540, y = -45.053, z = 73.414 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7008, gadget_id = 70211101, pos = { x = -127.163, y = -45.022, z = 58.587 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜低级须弥", isOneoff = true, persistent = true },
{ config_id = 7009, gadget_id = 70211101, pos = { x = -147.871, y = -45.051, z = 33.187 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "解谜低级须弥", isOneoff = true, persistent = true },
{ config_id = 7011, gadget_id = 70210101, pos = { x = -146.685, y = -44.977, z = 52.911 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜果蔬须弥", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 7007, shape = RegionShape.SPHERE, radius = 5, pos = { x = -150.006, y = -45.210, z = 67.238 } }
}
-- 触发器
triggers = {
{ config_id = 1007004, name = "ANY_MONSTER_DIE_7004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7004", action = "action_EVENT_ANY_MONSTER_DIE_7004" },
{ config_id = 1007007, name = "ENTER_REGION_7007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7007", action = "action_EVENT_ENTER_REGION_7007" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 7010, gadget_id = 70211101, pos = { x = -146.627, y = -45.210, z = 52.859 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "解谜低级须弥", isOneoff = true, persistent = true }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7003, 7008, 7009, 7011 },
regions = { 7007 },
triggers = { "ENTER_REGION_7007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 7001, 7002, 7005, 7006 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_7004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_7004(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220151007) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7004(context, evt)
-- 将configid为 7003 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 7003, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_7007(context, evt)
if evt.param1 ~= 7007 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_7007(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220151007, 2)
return 0
end
@@ -0,0 +1,137 @@
-- 基础信息
local base_info = {
group_id = 220151008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8001, monster_id = 26090901, pos = { x = -134.362, y = -9.868, z = 97.506 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 8002, monster_id = 26090901, pos = { x = -140.811, y = -9.868, z = 97.033 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 8007, monster_id = 26120401, pos = { x = -132.560, y = -9.868, z = 101.622 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 8008, monster_id = 26120401, pos = { x = -143.572, y = -9.868, z = 101.149 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 8009, monster_id = 26090901, pos = { x = -137.640, y = -9.868, z = 100.462 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8003, gadget_id = 70211012, pos = { x = -137.738, y = -8.448, z = 110.130 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, drop_tag = "战斗中级须弥", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 8005, gadget_id = 70330317, pos = { x = -138.761, y = -9.858, z = 74.072 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 8004, shape = RegionShape.CUBIC, size = { x = 20.000, y = 10.000, z = 10.000 }, pos = { x = -138.351, y = -9.858, z = 87.252 } }
}
-- 触发器
triggers = {
{ config_id = 1008004, name = "ENTER_REGION_8004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_8004", action = "action_EVENT_ENTER_REGION_8004" },
{ config_id = 1008006, name = "ANY_MONSTER_DIE_8006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8006", action = "action_EVENT_ANY_MONSTER_DIE_8006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8003 },
regions = { 8004 },
triggers = { "ENTER_REGION_8004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 8001, 8002, 8007, 8008, 8009 },
gadgets = { 8005 },
regions = { },
triggers = { "ANY_MONSTER_DIE_8006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_8004(context, evt)
if evt.param1 ~= 8004 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_8004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220151008, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_8006(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220151008) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_8006(context, evt)
-- 将configid为 8005 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8005, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 8003 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,360 @@
-- 基础信息
local base_info = {
group_id = 220151009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 9001, monster_id = 26120301, pos = { x = -131.718, y = 2.980, z = 69.493 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 9002, monster_id = 26120301, pos = { x = -145.535, y = 2.980, z = 77.782 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 101 },
{ config_id = 9014, monster_id = 26120101, pos = { x = -131.712, y = 2.980, z = 77.782 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 201 },
{ config_id = 9015, monster_id = 26120101, pos = { x = -144.951, y = 2.980, z = 69.493 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 201 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9003, gadget_id = 70330452, pos = { x = -150.578, y = 5.493, z = 96.325 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 9006, gadget_id = 70330417, pos = { x = -118.845, y = 4.929, z = 73.015 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 9009, gadget_id = 70330452, pos = { x = -137.328, y = 5.493, z = 96.185 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 9010, gadget_id = 70330452, pos = { x = -126.019, y = 5.493, z = 95.826 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 9016, gadget_id = 70310016, pos = { x = -136.776, y = 2.552, z = 75.057 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9017, gadget_id = 70310016, pos = { x = -140.616, y = 2.552, z = 75.057 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9018, gadget_id = 70310016, pos = { x = -136.689, y = 2.552, z = 70.907 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9019, gadget_id = 70310016, pos = { x = -140.501, y = 2.552, z = 70.907 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9020, gadget_id = 70900201, pos = { x = -149.458, y = 4.016, z = 83.300 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9021, gadget_id = 70900201, pos = { x = -128.034, y = 3.712, z = 83.258 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 9004, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = -138.688, y = 7.720, z = 72.593 } },
{ config_id = 9022, shape = RegionShape.SPHERE, radius = 3, pos = { x = -149.478, y = 3.656, z = 83.242 } },
{ config_id = 9023, shape = RegionShape.SPHERE, radius = 3, pos = { x = -128.207, y = 3.304, z = 83.230 } },
{ config_id = 9024, shape = RegionShape.CUBIC, size = { x = 10.000, y = 10.000, z = 10.000 }, pos = { x = -138.688, y = -5.152, z = 73.086 } }
}
-- 触发器
triggers = {
{ config_id = 1009004, name = "LEAVE_REGION_9004", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_9004", action = "action_EVENT_LEAVE_REGION_9004" },
{ config_id = 1009005, name = "ANY_MONSTER_DIE_9005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_9005", action = "action_EVENT_ANY_MONSTER_DIE_9005" },
{ config_id = 1009022, name = "ENTER_REGION_9022", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9022", action = "action_EVENT_ENTER_REGION_9022" },
{ config_id = 1009023, name = "ENTER_REGION_9023", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9023", action = "action_EVENT_ENTER_REGION_9023" },
{ config_id = 1009024, name = "ENTER_REGION_9024", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_9024", action = "action_EVENT_ENTER_REGION_9024", trigger_count = 0 },
-- 黄点提示删除保底
{ config_id = 1009025, name = "VARIABLE_CHANGE_9025", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_9025", action = "action_EVENT_VARIABLE_CHANGE_9025" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 9007, gadget_id = 70330317, pos = { x = -138.540, y = -45.053, z = 73.414 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9008, gadget_id = 70330317, pos = { x = -138.761, y = -9.858, z = 74.072 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9011, gadget_id = 70330452, pos = { x = -151.021, y = 5.393, z = 27.440 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9012, gadget_id = 70330452, pos = { x = -137.310, y = 5.393, z = 26.956 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9013, gadget_id = 70330452, pos = { x = -126.005, y = 5.393, z = 27.577 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9003, 9006, 9009, 9010 },
regions = { 9004 },
triggers = { "LEAVE_REGION_9004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 9001, 9002, 9014, 9015 },
gadgets = { 9016, 9017, 9018, 9019 },
regions = { 9024 },
triggers = { "ANY_MONSTER_DIE_9005", "ENTER_REGION_9024" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 9020, 9021 },
regions = { 9022, 9023 },
triggers = { "ENTER_REGION_9022", "ENTER_REGION_9023", "VARIABLE_CHANGE_9025" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_LEAVE_REGION_9004(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220151009) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_9004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220151009, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_9005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9005(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220151009, 4)
-- 将configid为 9003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 9009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 9010 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9010, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 改变指定group组220151002中, configid为2004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220151002, 2004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220151002中, configid为2005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220151002, 2005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220151002中, configid为2006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220151002, 2006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-138.5,6,97),持续时间为3秒,并且为强制注目形式,不广播其他玩家
local pos = {x=-138.5, y=6, z=97}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220151009, EntityType.GADGET, 9016 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220151009, EntityType.GADGET, 9017 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220151009, EntityType.GADGET, 9018 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220151009, EntityType.GADGET, 9019 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9022(context, evt)
if evt.param1 ~= 9022 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_9022(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 9020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9023(context, evt)
if evt.param1 ~= 9023 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_9023(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 9021 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_9024(context, evt)
if evt.param1 ~= 9024 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_9024(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220151009, EntityType.GADGET, 9016 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220151009, EntityType.GADGET, 9017 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220151009, EntityType.GADGET, 9018 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220151009, EntityType.GADGET, 9019 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_9025(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "success", 220151002) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_9025(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 9020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 9021 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,177 @@
-- 基础信息
local base_info = {
group_id = 220151010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 70290196, pos = { x = 619.185, y = 60.966, z = 462.675 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10002, gadget_id = 70330365, pos = { x = 679.577, y = 55.302, z = 424.791 }, rot = { x = 0.000, y = 315.000, z = 0.000 }, level = 1 },
{ config_id = 10004, gadget_id = 70330433, pos = { x = -248.140, y = -60.150, z = 142.720 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
-- 传送到花海-保底
{ config_id = 10009, shape = RegionShape.CUBIC, size = { x = 100.000, y = 8.000, z = 28.000 }, pos = { x = -176.136, y = -105.000, z = 74.294 } },
-- 传送到花海-保底
{ config_id = 10010, shape = RegionShape.CUBIC, size = { x = 28.000, y = 8.000, z = 100.000 }, pos = { x = -203.120, y = -105.000, z = 108.464 } },
-- 抵达花海variable判定
{ config_id = 10011, shape = RegionShape.SPHERE, radius = 15, pos = { x = 679.697, y = 56.610, z = 425.014 } }
}
-- 触发器
triggers = {
-- 传送到花海-保底
{ config_id = 1010009, name = "ENTER_REGION_10009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10009", action = "action_EVENT_ENTER_REGION_10009", trigger_count = 0 },
-- 传送到花海-保底
{ config_id = 1010010, name = "ENTER_REGION_10010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10010", action = "action_EVENT_ENTER_REGION_10010", trigger_count = 0 },
-- 抵达花海variable判定
{ config_id = 1010011, name = "ENTER_REGION_10011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10011", action = "action_EVENT_ENTER_REGION_10011" }
}
-- 变量
variables = {
{ config_id = 1, name = "IsArrive_Flower", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 10003, gadget_id = 70290196, pos = { x = 618.831, y = 60.829, z = 462.276 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 10006, gadget_id = 70330424, pos = { x = -226.091, y = -85.628, z = 73.427 }, rot = { x = 0.000, y = 90.000, z = 180.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 10008, gadget_id = 70330424, pos = { x = -204.069, y = -84.400, z = 155.272 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 10013, gadget_id = 70330424, pos = { x = -226.091, y = -85.600, z = 73.427 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 10014, gadget_id = 70330424, pos = { x = -204.069, y = -84.444, z = 155.272 }, rot = { x = 0.000, y = 0.000, z = 180.000 }, level = 1, state = GadgetState.GearStart }
},
regions = {
{ config_id = 10005, shape = RegionShape.SPHERE, radius = 15, pos = { x = -191.227, y = -87.861, z = 72.833 } },
{ config_id = 10007, shape = RegionShape.SPHERE, radius = 15, pos = { x = -204.412, y = -88.156, z = 125.954 } }
},
triggers = {
{ config_id = 1010005, name = "ENTER_REGION_10005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10005", action = "action_EVENT_ENTER_REGION_10005" },
{ config_id = 1010007, name = "ENTER_REGION_10007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10007", action = "action_EVENT_ENTER_REGION_10007" },
{ config_id = 1010012, name = "QUEST_FINISH_10012", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_10012", action = "action_EVENT_QUEST_FINISH_10012" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 10001, 10002, 10004 },
regions = { 10009, 10010, 10011 },
triggers = { "ENTER_REGION_10009", "ENTER_REGION_10010", "ENTER_REGION_10011" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_10009(context, evt)
if evt.param1 ~= 10009 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_10009(context, evt)
ScriptLib.TransPlayerToPos(context, {uid_list =ScriptLib.GetSceneUidList(context), pos = {x=675.8, y=58, z=427.5}, radius = 2, rot = {x=0, y=315, z=0},is_skip_ui=false})
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10010(context, evt)
if evt.param1 ~= 10010 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_10010(context, evt)
ScriptLib.TransPlayerToPos(context, {uid_list =ScriptLib.GetSceneUidList(context), pos = {x=675.8, y=58, z=427.5}, radius = 2, rot = {x=0, y=315, z=0},is_skip_ui=false})
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10011(context, evt)
if evt.param1 ~= 10011 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_10011(context, evt)
-- 将本组内变量名为 "IsArrive_Flower" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "IsArrive_Flower", 1, 220151010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
@@ -0,0 +1,341 @@
-- 基础信息
local base_info = {
group_id = 220151011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70330444, pos = { x = -133.220, y = -45.182, z = 44.300 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11002, gadget_id = 70330444, pos = { x = -133.220, y = -45.182, z = 42.940 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11003, gadget_id = 70330444, pos = { x = -120.800, y = -45.182, z = 44.300 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11004, gadget_id = 70330444, pos = { x = -120.800, y = -45.182, z = 42.940 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11005, gadget_id = 70330444, pos = { x = -120.800, y = -45.182, z = 37.275 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11006, gadget_id = 70330444, pos = { x = -120.800, y = -45.182, z = 35.916 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11007, gadget_id = 70330444, pos = { x = -133.220, y = -45.182, z = 37.275 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11008, gadget_id = 70330444, pos = { x = -133.220, y = -45.182, z = 35.916 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11009, gadget_id = 70330444, pos = { x = -132.354, y = -45.182, z = 29.570 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11010, gadget_id = 70330444, pos = { x = -133.713, y = -45.182, z = 29.567 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11011, gadget_id = 70330444, pos = { x = -143.868, y = -45.182, z = 29.570 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11012, gadget_id = 70330444, pos = { x = -145.227, y = -45.182, z = 29.567 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11013, gadget_id = 70330444, pos = { x = -144.546, y = -45.182, z = 35.892 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11014, gadget_id = 70330444, pos = { x = -144.545, y = -45.182, z = 37.252 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11015, gadget_id = 70330444, pos = { x = -143.868, y = -45.182, z = 43.568 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11016, gadget_id = 70330444, pos = { x = -145.227, y = -45.182, z = 43.568 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11017, gadget_id = 70330444, pos = { x = -144.546, y = -45.182, z = 54.980 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11018, gadget_id = 70330444, pos = { x = -144.546, y = -45.182, z = 56.339 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11019, gadget_id = 70330444, pos = { x = -133.340, y = -45.182, z = 54.980 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11020, gadget_id = 70330444, pos = { x = -133.340, y = -45.182, z = 56.339 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11021, gadget_id = 70330322, pos = { x = -124.047, y = -45.210, z = 43.596 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11022, gadget_id = 70330322, pos = { x = -130.124, y = -45.210, z = 43.596 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 11023, gadget_id = 70330322, pos = { x = -124.047, y = -45.210, z = 36.621 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11024, gadget_id = 70330322, pos = { x = -130.124, y = -45.210, z = 36.621 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 11025, gadget_id = 70330322, pos = { x = -133.091, y = -45.210, z = 32.963 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 11026, gadget_id = 70330322, pos = { x = -144.179, y = -45.210, z = 26.963 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11027, gadget_id = 70330322, pos = { x = -142.124, y = -45.210, z = 36.621 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 11028, gadget_id = 70330322, pos = { x = -144.533, y = -45.210, z = 40.525 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 11029, gadget_id = 70330322, pos = { x = -141.475, y = -45.210, z = 55.605 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 11030, gadget_id = 70330322, pos = { x = -135.398, y = -45.210, z = 55.605 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11038, gadget_id = 70330321, pos = { x = -145.587, y = -45.259, z = 59.143 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 11031, shape = RegionShape.SPHERE, radius = 7, pos = { x = -127.017, y = -44.691, z = 46.806 } },
{ config_id = 11032, shape = RegionShape.SPHERE, radius = 6, pos = { x = -127.017, y = -44.691, z = 35.970 } },
{ config_id = 11033, shape = RegionShape.SPHERE, radius = 6, pos = { x = -130.468, y = -43.930, z = 30.789 } },
{ config_id = 11034, shape = RegionShape.SPHERE, radius = 5, pos = { x = -138.011, y = -45.210, z = 32.460 } },
{ config_id = 11035, shape = RegionShape.SPHERE, radius = 4, pos = { x = -144.802, y = -43.339, z = 38.913 } },
{ config_id = 11036, shape = RegionShape.SPHERE, radius = 6, pos = { x = -149.191, y = -43.339, z = 48.857 } },
{ config_id = 11037, shape = RegionShape.SPHERE, radius = 5, pos = { x = -138.672, y = -44.718, z = 54.809 } },
{ config_id = 11039, shape = RegionShape.SPHERE, radius = 6, pos = { x = -143.452, y = -45.210, z = 62.026 } }
}
-- 触发器
triggers = {
{ config_id = 1011031, name = "ENTER_REGION_11031", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11031", action = "action_EVENT_ENTER_REGION_11031", trigger_count = 0 },
{ config_id = 1011032, name = "ENTER_REGION_11032", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11032", action = "action_EVENT_ENTER_REGION_11032", trigger_count = 0 },
{ config_id = 1011033, name = "ENTER_REGION_11033", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11033", action = "action_EVENT_ENTER_REGION_11033", trigger_count = 0 },
{ config_id = 1011034, name = "ENTER_REGION_11034", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11034", action = "action_EVENT_ENTER_REGION_11034", trigger_count = 0 },
{ config_id = 1011035, name = "ENTER_REGION_11035", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11035", action = "action_EVENT_ENTER_REGION_11035", trigger_count = 0 },
{ config_id = 1011036, name = "ENTER_REGION_11036", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11036", action = "action_EVENT_ENTER_REGION_11036", trigger_count = 0 },
{ config_id = 1011037, name = "ENTER_REGION_11037", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11037", action = "action_EVENT_ENTER_REGION_11037", trigger_count = 0 },
{ config_id = 1011039, name = "ENTER_REGION_11039", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11039", action = "action_EVENT_ENTER_REGION_11039", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11001, 11002, 11003, 11004, 11005, 11006, 11007, 11008, 11009, 11010, 11011, 11012, 11013, 11014, 11015, 11016, 11017, 11018, 11019, 11020, 11021, 11022, 11023, 11024, 11025, 11026, 11027, 11028, 11029, 11030, 11038 },
regions = { 11031, 11032, 11033, 11034, 11035, 11036, 11037, 11039 },
triggers = { "ENTER_REGION_11031", "ENTER_REGION_11032", "ENTER_REGION_11033", "ENTER_REGION_11034", "ENTER_REGION_11035", "ENTER_REGION_11036", "ENTER_REGION_11037", "ENTER_REGION_11039" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_11031(context, evt)
if evt.param1 ~= 11031 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_11031(context, evt)
-- 将configid为 11021 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11021, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 11022 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11022, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11032(context, evt)
if evt.param1 ~= 11032 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_11032(context, evt)
-- 将configid为 11023 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11023, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 11024 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11024, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11033(context, evt)
if evt.param1 ~= 11033 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_11033(context, evt)
-- 将configid为 11025 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11025, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11034(context, evt)
if evt.param1 ~= 11034 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_11034(context, evt)
-- 将configid为 11026 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11026, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 11024 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11024, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 11027 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11027, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11035(context, evt)
if evt.param1 ~= 11035 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_11035(context, evt)
-- 将configid为 11028 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11028, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11036(context, evt)
if evt.param1 ~= 11036 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_11036(context, evt)
-- 将configid为 11028 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11028, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11037(context, evt)
if evt.param1 ~= 11037 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_11037(context, evt)
-- 将configid为 11029 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11029, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 11030 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11030, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11039(context, evt)
if evt.param1 ~= 11039 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_11039(context, evt)
-- 将configid为 11038 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11038, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220151012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12001, gadget_id = 70330341, pos = { x = 624.410, y = 64.114, z = 481.045 }, 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 = { 12001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,117 @@
-- 基础信息
local base_info = {
group_id = 220151013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 13001, monster_id = 26090201, pos = { x = -44.879, y = -23.119, z = 68.338 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 13002, monster_id = 26090201, pos = { x = -44.795, y = -23.055, z = 76.433 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 13006, monster_id = 26090201, pos = { x = -48.750, y = -23.055, z = 72.687 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 102 },
{ config_id = 13007, monster_id = 26090201, pos = { x = -41.832, y = -23.074, z = 72.877 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 102 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13008, gadget_id = 70210101, pos = { x = -45.012, y = -23.098, z = 72.740 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜果蔬须弥", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 13005, shape = RegionShape.SPHERE, radius = 5, pos = { x = -44.916, y = -23.098, z = 72.401 } }
}
-- 触发器
triggers = {
{ config_id = 1013005, name = "ENTER_REGION_13005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13005", action = "action_EVENT_ENTER_REGION_13005" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 13003, gadget_id = 70211012, pos = { x = -44.920, y = -23.098, z = 72.688 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "战斗中级须弥", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
},
triggers = {
{ config_id = 1013004, name = "ANY_MONSTER_DIE_13004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_13004", action = "" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 13008 },
regions = { 13005 },
triggers = { "ENTER_REGION_13005" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 13001, 13002, 13006, 13007 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_13005(context, evt)
if evt.param1 ~= 13005 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_13005(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220151013, 2)
return 0
end
@@ -0,0 +1,234 @@
-- 基础信息
local base_info = {
group_id = 220151014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 14001, gadget_id = 70330354, pos = { x = 671.740, y = 56.901, z = 422.453 }, rot = { x = 359.309, y = 311.683, z = 334.573 }, level = 1 },
{ config_id = 14002, gadget_id = 70330354, pos = { x = 679.021, y = 57.674, z = 436.884 }, rot = { x = 354.045, y = 25.501, z = 12.264 }, level = 1 },
{ config_id = 14003, gadget_id = 70330354, pos = { x = 666.093, y = 56.911, z = 435.786 }, rot = { x = 14.562, y = 317.970, z = 351.906 }, level = 1 },
{ config_id = 14004, gadget_id = 70330354, pos = { x = 665.189, y = 54.190, z = 449.122 }, rot = { x = 9.791, y = 337.786, z = 12.599 }, level = 1 },
{ config_id = 14005, gadget_id = 70330354, pos = { x = 649.936, y = 57.401, z = 466.935 }, rot = { x = 21.700, y = 324.204, z = 350.355 }, level = 1 },
{ config_id = 14006, gadget_id = 70330354, pos = { x = 637.544, y = 59.511, z = 473.028 }, rot = { x = 345.000, y = 341.000, z = 8.600 }, level = 1 },
{ config_id = 14007, gadget_id = 70330354, pos = { x = 638.204, y = 58.435, z = 461.318 }, rot = { x = 11.000, y = 328.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 14008, shape = RegionShape.SPHERE, radius = 25, pos = { x = 658.543, y = 57.391, z = 462.657 } },
{ config_id = 14009, shape = RegionShape.SPHERE, radius = 25, pos = { x = 637.913, y = 58.803, z = 468.507 } },
{ config_id = 14010, shape = RegionShape.SPHERE, radius = 25, pos = { x = 625.434, y = 60.559, z = 470.964 } },
{ config_id = 14011, shape = RegionShape.SPHERE, radius = 15, pos = { x = 662.517, y = 57.615, z = 428.638 } },
{ config_id = 14012, shape = RegionShape.SPHERE, radius = 15, pos = { x = 672.599, y = 55.065, z = 441.987 } },
{ config_id = 14013, shape = RegionShape.SPHERE, radius = 15, pos = { x = 662.836, y = 54.654, z = 440.659 } }
}
-- 触发器
triggers = {
{ config_id = 1014008, name = "ENTER_REGION_14008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14008", action = "action_EVENT_ENTER_REGION_14008" },
{ config_id = 1014009, name = "ENTER_REGION_14009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14009", action = "action_EVENT_ENTER_REGION_14009" },
{ config_id = 1014010, name = "ENTER_REGION_14010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14010", action = "action_EVENT_ENTER_REGION_14010" },
{ config_id = 1014011, name = "ENTER_REGION_14011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14011", action = "action_EVENT_ENTER_REGION_14011" },
{ 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" },
{ 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" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 14001, 14002, 14003, 14004, 14005, 14006, 14007 },
regions = { 14008, 14009, 14010, 14011, 14012, 14013 },
triggers = { "ENTER_REGION_14008", "ENTER_REGION_14009", "ENTER_REGION_14010", "ENTER_REGION_14011", "ENTER_REGION_14012", "ENTER_REGION_14013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_14008(context, evt)
if evt.param1 ~= 14008 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_14008(context, evt)
-- 将configid为 14004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 14004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14009(context, evt)
if evt.param1 ~= 14009 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_14009(context, evt)
-- 将configid为 14005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 14005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14010(context, evt)
if evt.param1 ~= 14010 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_14010(context, evt)
-- 将configid为 14006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 14006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 14007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 14007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14011(context, evt)
if evt.param1 ~= 14011 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_14011(context, evt)
-- 将configid为 14001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 14001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14012(context, evt)
if evt.param1 ~= 14012 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_14012(context, evt)
-- 将configid为 14002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 14002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14013(context, evt)
if evt.param1 ~= 14013 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_14013(context, evt)
-- 将configid为 14003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 14003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,244 @@
-- 基础信息
local base_info = {
group_id = 220151015
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
-- 方尖碑解锁+电梯已移动+玩家进入区域时,重置电梯最后阶段
{ config_id = 15001, shape = RegionShape.CUBIC, size = { x = 35.000, y = 10.000, z = 15.000 }, pos = { x = -138.503, y = 7.500, z = 61.400 } },
-- 方尖碑解锁+电梯已移动+玩家进入区域时,重置电梯最后阶段
{ config_id = 15002, shape = RegionShape.CUBIC, size = { x = 35.000, y = 10.000, z = 15.000 }, pos = { x = -138.503, y = 7.500, z = 84.600 } },
-- 方尖碑解锁+电梯已移动+玩家进入区域时,重置电梯最后阶段
{ config_id = 15003, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 10.000 }, pos = { x = -150.200, y = 7.500, z = 73.100 } },
-- 方尖碑解锁+电梯已移动+玩家进入区域时,重置电梯最后阶段
{ config_id = 15004, shape = RegionShape.CUBIC, size = { x = 14.000, y = 10.000, z = 10.000 }, pos = { x = -127.700, y = 7.500, z = 73.072 } }
}
-- 触发器
triggers = {
-- 方尖碑解锁+电梯已移动+玩家进入区域时,重置电梯最后阶段
{ config_id = 1015001, name = "ENTER_REGION_15001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15001", action = "action_EVENT_ENTER_REGION_15001", trigger_count = 0 },
-- 方尖碑解锁+电梯已移动+玩家进入区域时,重置电梯最后阶段
{ config_id = 1015002, name = "ENTER_REGION_15002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15002", action = "action_EVENT_ENTER_REGION_15002", trigger_count = 0 },
-- 方尖碑解锁+电梯已移动+玩家进入区域时,重置电梯最后阶段
{ config_id = 1015003, name = "ENTER_REGION_15003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15003", action = "action_EVENT_ENTER_REGION_15003", trigger_count = 0 },
-- 方尖碑解锁+电梯已移动+玩家进入区域时,重置电梯最后阶段
{ config_id = 1015004, name = "ENTER_REGION_15004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15004", action = "action_EVENT_ENTER_REGION_15004", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "IsFinalMove_check", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 15001, 15002, 15003, 15004 },
triggers = { "ENTER_REGION_15001", "ENTER_REGION_15002", "ENTER_REGION_15003", "ENTER_REGION_15004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_15001(context, evt)
if evt.param1 ~= 15001 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "success", 220151002) ~= 1 then
return false
end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"IsFinalMove_check"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "IsFinalMove_check", 220151015) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_15001(context, evt)
-- 将本组内变量名为 "IsFinalMove_check" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "IsFinalMove_check", 0, 220151015) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220151005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_15002(context, evt)
if evt.param1 ~= 15002 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "success", 220151002) ~= 1 then
return false
end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"IsFinalMove_check"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "IsFinalMove_check", 220151015) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_15002(context, evt)
-- 将本组内变量名为 "IsFinalMove_check" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "IsFinalMove_check", 0, 220151015) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220151005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_15003(context, evt)
if evt.param1 ~= 15003 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "success", 220151002) ~= 1 then
return false
end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"IsFinalMove_check"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "IsFinalMove_check", 220151015) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_15003(context, evt)
-- 将本组内变量名为 "IsFinalMove_check" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "IsFinalMove_check", 0, 220151015) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220151005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_15004(context, evt)
if evt.param1 ~= 15004 then return false end
-- 判断变量"success"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "success", 220151002) ~= 1 then
return false
end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"IsFinalMove_check"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "IsFinalMove_check", 220151015) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_15004(context, evt)
-- 将本组内变量名为 "IsFinalMove_check" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "IsFinalMove_check", 0, 220151015) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220151005, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,91 @@
-- 基础信息
local base_info = {
group_id = 220151016
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 16001, gadget_id = 70290196, pos = { x = 608.537, y = 64.667, z = 481.877 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16003, gadget_id = 70211121, pos = { x = 640.538, y = 57.985, z = 467.073 }, rot = { x = 0.000, y = 250.000, z = 0.000 }, level = 1, drop_tag = "解谜高级须弥", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1016002, name = "QUEST_FINISH_16002", event = EventType.EVENT_QUEST_FINISH, source = "302106", condition = "", action = "action_EVENT_QUEST_FINISH_16002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 16001 },
regions = { },
triggers = { "QUEST_FINISH_16002" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 16003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_FINISH_16002(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220151016, 2)
return 0
end
@@ -0,0 +1,78 @@
-- 基础信息
local base_info = {
group_id = 220151017
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
{ config_id = 17005, npc_id = 12986, pos = { x = -146.167, y = -9.868, z = 85.013 }, rot = { x = 0.000, y = 171.257, z = 0.000 } },
{ config_id = 17006, npc_id = 12985, pos = { x = -26.443, y = 1.000, z = 51.775 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}
-- 装置
gadgets = {
{ config_id = 17001, gadget_id = 70710470, pos = { x = -26.373, y = 1.122, z = 51.583 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 17002, gadget_id = 70710882, pos = { x = -26.466, y = 1.054, z = 51.709 }, rot = { x = 307.631, y = 18.937, z = 344.799 }, level = 1, is_enable_interact = false },
{ config_id = 17003, gadget_id = 70710882, pos = { x = -146.054, y = -9.846, z = 85.033 }, rot = { x = 270.000, y = 36.624, z = 0.000 }, level = 1, is_enable_interact = false },
{ config_id = 17004, gadget_id = 70710470, pos = { x = -146.269, y = -9.868, z = 85.121 }, 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 = { 17001, 17002, 17003, 17004 },
regions = { },
triggers = { },
npcs = { 17005, 17006 },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 220151018
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18001, gadget_id = 70900201, pos = { x = 623.033, y = 74.944, z = 498.125 }, 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 = { 18001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,245 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 646.1666,
"y": 57.79878,
"z": 469.1992
},
"rot": {
"x": 0.0,
"y": 270.0,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": 11.3125286,
"y": -46.0,
"z": -3.71700072
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": -30.01334,
"y": -20.10032,
"z": 72.55071
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 30.0,
"z": 30.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"3": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": -150.3001,
"y": -45.21,
"z": 62.88777
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 8.0,
"y": 15.0,
"z": 5.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"4": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": -138.4692,
"y": -9.771192,
"z": 81.58008
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 15.0,
"y": 15.0,
"z": 5.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"5": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": -138.3871,
"y": 2.979999,
"z": 60.39627
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 35.0,
"y": 5.0,
"z": 50.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"6": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 679.564,
"y": 56.61954,
"z": 424.7917
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 35.0,
"y": 15.0,
"z": 35.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}
@@ -0,0 +1,492 @@
[
{
"pointArrayId": 1,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": -29.61435,
"y": 0.6560394,
"z": 43.5287323
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0
},
"rotSpeed": 120.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": -29.61435,
"y": 0.6560394,
"z": 43.5287323
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0
},
"rotSpeed": 240.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": -29.61435,
"y": 0.6560394,
"z": 43.5287323
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 2,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": -159.5706,
"y": 7.039468,
"z": 73.956
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0
},
"rotSpeed": 120.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": -159.271667,
"y": 7.039468,
"z": 73.64246
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0
},
"rotSpeed": 240.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": -159.271667,
"y": 7.039468,
"z": 73.64246
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 1.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 3,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": -30.2937,
"y": -13.29894,
"z": 72.7950058
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 4.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": -30.2937,
"y": -21.10032,
"z": 72.7950058
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 4.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 4,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": -30.2937,
"y": -0.3,
"z": 72.7950058
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 4.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": -30.2937,
"y": -21.13066,
"z": 72.7950058
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 4.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 5,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": -138.5886,
"y": -11.42385,
"z": 73.02821
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 4.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": -138.588608,
"y": -45.80974,
"z": 73.02821
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 4.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
},
{
"pointArrayId": 6,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": -138.5886,
"y": 2.0,
"z": 73.02821
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 6.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": -138.5886,
"y": -94.00374,
"z": 73.02821
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 6.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 3,
"position": {
"x": -196.790131,
"y": -94.00374,
"z": 73.4656448
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 6.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 4,
"position": {
"x": -203.200836,
"y": -94.00374,
"z": 73.4656448
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 6.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 5,
"position": {
"x": -202.800385,
"y": -94.45561,
"z": 133.785492
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 6.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 6,
"position": {
"x": -202.800385,
"y": -94.45561,
"z": 142.946121
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 6.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 7,
"position": {
"x": -203.2797,
"y": -69.34374,
"z": 141.350677
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 6.0,
"time": 0.0,
"isReachEvent": false,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 8,
"position": {
"x": -219.4908,
"y": -65.116066,
"z": 140.825775
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 6.0,
"time": 0.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
}
]
@@ -0,0 +1,44 @@
[
{
"area_id": 10140,
"points": [
{
"x": 101.192368,
"y": -31.2791061
},
{
"x": 96.18721,
"y": 261.5603
},
{
"x": -377.212982,
"y": 252.163727
},
{
"x": -356.071869,
"y": -44.85498
}
]
},
{
"area_id": 10141,
"points": [
{
"x": 817.6949,
"y": 802.589844
},
{
"x": 359.553223,
"y": 829.2791
},
{
"x": 353.525269,
"y": 250.410919
},
{
"x": 848.384155,
"y": 270.662
}
]
}
]