添加配置表

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 = -100.0, z = -150.0 },
size = { x = 200.0, z = 200.0 },
born_pos = { x = -5.672, y = 76.890, z = -100.787 },
born_rot = { x = 0.000, y = 90.000, z = 0.000 },
die_y = 10,
city_id = 3,
vision_anchor = { x = -100.0, z = -150.0 }
}
-- 所有的区块
blocks = { 40045 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -100.0, z = -150.0 }, max = { x = 100.0, z = 50.0 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,67 @@
{
"sceneId": 40045,
"routes": [
{
"localId": 1,
"name": "Platform_001",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 3.055894,
"y": 54.63976,
"z": -73.63645
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true
},
{
"pos": {
"x": 3.055894,
"y": 76.9204941,
"z": -73.63645
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 2,
"name": "Platform_001",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 3.055894,
"y": 76.92049,
"z": -73.63645
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true
},
{
"pos": {
"x": 3.055894,
"y": 54.63976,
"z": -73.63645
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true,
"reachStop": true
}
]
}
]
}
@@ -0,0 +1,10 @@
-- 所有的group
groups = {
{ id = 240045001, refresh_id = 1001, pos = { x = -8.610, y = 54.290, z = -70.462 } },
{ id = 240045002, refresh_id = 1002, pos = { x = 59.971, y = 81.890, z = -81.006 } },
{ id = 240045003, refresh_id = 1, pos = { x = 10.571, y = 71.060, z = -74.307 } },
{ id = 240045004, refresh_id = 1, pos = { x = 11.764, y = 65.847, z = -73.300 } },
{ id = 240045005, refresh_id = 1, pos = { x = 25.330, y = 77.185, z = -82.899 } },
{ id = 240045006, refresh_id = 1, pos = { x = -5.717, y = 54.351, z = -70.716 } },
{ id = 240045007, refresh_id = 1, pos = { x = 18.398, y = 65.152, z = -71.090 } }
}
@@ -0,0 +1,396 @@
-- 基础信息
local base_info = {
group_id = 240045001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1002, monster_id = 25080101, pos = { x = -5.876, y = 54.723, z = -66.866 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 1004 },
{ config_id = 1003, monster_id = 25080101, pos = { x = -13.216, y = 54.290, z = -73.136 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 1004 },
{ config_id = 1010, monster_id = 25080201, pos = { x = 25.724, y = 55.411, z = -78.505 }, rot = { x = 0.000, y = 330.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 1005 },
{ config_id = 1011, monster_id = 25080201, pos = { x = 20.990, y = 55.411, z = -78.623 }, rot = { x = 0.000, y = 40.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 1005 },
{ config_id = 1023, monster_id = 25080201, pos = { x = 22.493, y = 55.411, z = -69.039 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 1005 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1005, gadget_id = 70360279, pos = { x = 3.210, y = 65.228, z = -83.359 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1006, gadget_id = 70211001, pos = { x = 4.629, y = 66.190, z = -87.811 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级稻妻", isOneoff = true, persistent = true },
{ config_id = 1007, gadget_id = 70360282, pos = { x = 3.056, y = 54.640, z = -73.636 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, route_id = 1, start_route = false, persistent = true },
{ config_id = 1008, gadget_id = 70290141, pos = { x = 23.856, y = 56.244, z = -85.234 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1009, gadget_id = 70290136, pos = { x = 25.886, y = 55.411, z = -73.657 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 1012, gadget_id = 70360001, pos = { x = 23.903, y = 57.235, z = -85.114 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1013, gadget_id = 70360001, pos = { x = 25.747, y = 55.411, z = -73.693 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1014, gadget_id = 70211011, pos = { x = 27.313, y = 57.426, z = -84.408 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "战斗中级稻妻", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 1001, shape = RegionShape.CUBIC, size = { x = 19.000, y = 10.000, z = 4.000 }, pos = { x = -8.658, y = 58.184, z = -73.391 } },
{ config_id = 1021, shape = RegionShape.CUBIC, size = { x = 5.000, y = 10.000, z = 5.000 }, pos = { x = 3.093, y = 54.955, z = -73.641 } },
{ config_id = 1022, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2.735, y = 64.560, z = -82.882 } },
{ config_id = 1024, shape = RegionShape.SPHERE, radius = 5, pos = { x = 25.844, y = 55.411, z = -68.590 } }
}
-- 触发器
triggers = {
{ config_id = 1001001, name = "ENTER_REGION_1001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1001", action = "action_EVENT_ENTER_REGION_1001" },
{ config_id = 1001004, name = "ANY_GADGET_DIE_1004", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_1004", action = "action_EVENT_ANY_GADGET_DIE_1004" },
{ config_id = 1001015, name = "SELECT_OPTION_1015", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1015", action = "action_EVENT_SELECT_OPTION_1015" },
{ config_id = 1001016, name = "SELECT_OPTION_1016", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1016", action = "action_EVENT_SELECT_OPTION_1016" },
{ config_id = 1001017, name = "TIMER_EVENT_1017", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_1017", trigger_count = 0 },
{ config_id = 1001018, name = "GADGET_STATE_CHANGE_1018", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_1018", action = "action_EVENT_GADGET_STATE_CHANGE_1018", trigger_count = 0 },
{ config_id = 1001019, name = "PLATFORM_REACH_POINT_1019", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_1019", action = "action_EVENT_PLATFORM_REACH_POINT_1019", trigger_count = 0 },
{ config_id = 1001020, name = "PLATFORM_REACH_POINT_1020", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_1020", action = "action_EVENT_PLATFORM_REACH_POINT_1020", trigger_count = 0 },
{ config_id = 1001021, name = "ENTER_REGION_1021", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1021", action = "action_EVENT_ENTER_REGION_1021", trigger_count = 0 },
{ config_id = 1001022, name = "ENTER_REGION_1022", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1022", action = "action_EVENT_ENTER_REGION_1022" },
{ config_id = 1001024, name = "ENTER_REGION_1024", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1024", action = "action_EVENT_ENTER_REGION_1024", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1002, 1003, 1011, 1023 },
gadgets = { 1005, 1006, 1007, 1008, 1009, 1012, 1013, 1014 },
regions = { 1001, 1021, 1022, 1024 },
triggers = { "ENTER_REGION_1001", "ANY_GADGET_DIE_1004", "SELECT_OPTION_1015", "SELECT_OPTION_1016", "TIMER_EVENT_1017", "GADGET_STATE_CHANGE_1018", "PLATFORM_REACH_POINT_1019", "PLATFORM_REACH_POINT_1020", "ENTER_REGION_1021", "ENTER_REGION_1022", "ENTER_REGION_1024" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_1001(context, evt)
if evt.param1 ~= 1001 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_1001(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240045001, 1012, {73}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240045001, 1013, {72}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_1004(context, evt)
if 1005 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_1004(context, evt)
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240045006, 1)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240045006, 2)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1015(context, evt)
-- 判断是gadgetid 1012 option_id 73
if 1012 ~= evt.param1 then
return false
end
if 73 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1015(context, evt)
-- 改变指定group组240045001中, configid为1008的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045001, 1008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 240045001 ;指定config1012;物件身上指定option73
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240045001, 1012, 73) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 针对当前group内变量名为 "point" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "point", 1, 240045005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1016(context, evt)
-- 判断是gadgetid 1013 option_id 72
if 1013 ~= evt.param1 then
return false
end
if 72 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1016(context, evt)
-- 改变指定group组240045001中, configid为1009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045001, 1009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 240045001 ;指定config1013;物件身上指定option72
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240045001, 1013, 72) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_1017(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 1007, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 1007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_1018(context, evt)
-- 检测config_id为1007的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 1007 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_1018(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 1007) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_1019(context, evt)
-- 判断是gadgetid 为 1007的移动平台,是否到达了1 的路线中的 1 点
if 1007 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_1019(context, evt)
-- 延迟2秒后,向groupId为:240045001的对象,请求一次调用,并将string参数:"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240045001, "time2", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_1020(context, evt)
-- 判断是gadgetid 为 1007的移动平台,是否到达了2 的路线中的 1 点
if 1007 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_1020(context, evt)
-- 改变指定group组240045001中, configid为1007的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045001, 1007, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 1007, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1021(context, evt)
if evt.param1 ~= 1021 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_1021(context, evt)
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240045006, 5)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1022(context, evt)
if evt.param1 ~= 1022 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_1022(context, evt)
-- 调用提示id为 400450101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400450101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1024(context, evt)
if evt.param1 ~= 1024 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_1024(context, evt)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240045006, 4)
return 0
end
@@ -0,0 +1,248 @@
-- 基础信息
local base_info = {
group_id = 240045002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2011, monster_id = 23050101, pos = { x = 65.639, y = 76.940, z = -86.395 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 2014, monster_id = 23020101, pos = { x = 59.430, y = 76.859, z = -78.299 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, affix = { 1007 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2002, gadget_id = 70220071, pos = { x = 58.349, y = 76.940, z = -83.227 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 2003, gadget_id = 70220071, pos = { x = 58.349, y = 76.940, z = -78.287 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 2004, gadget_id = 70220070, pos = { x = 58.720, y = 76.940, z = -81.020 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2005, gadget_id = 70220071, pos = { x = 56.381, y = 76.956, z = -80.997 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2008, gadget_id = 70211021, pos = { x = 61.078, y = 77.010, z = -81.151 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "战斗高级稻妻", isOneoff = true, persistent = true },
{ config_id = 2009, gadget_id = 70290137, pos = { x = 46.452, y = 77.263, z = -80.979 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 2012, gadget_id = 70220071, pos = { x = 63.480, y = 76.940, z = -88.729 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 2013, gadget_id = 70220070, pos = { x = 63.372, y = 76.947, z = -83.227 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 2015, gadget_id = 70220070, pos = { x = 63.387, y = 76.940, z = -78.820 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 2016, gadget_id = 70220071, pos = { x = 63.288, y = 76.943, z = -81.026 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 2017, gadget_id = 70220070, pos = { x = 63.714, y = 76.940, z = -72.860 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 2001, shape = RegionShape.CUBIC, size = { x = 4.000, y = 10.000, z = 10.000 }, pos = { x = 49.883, y = 81.726, z = -80.882 } },
{ config_id = 2010, shape = RegionShape.SPHERE, radius = 5, pos = { x = 34.780, y = 77.040, z = -81.498 } },
{ config_id = 2020, shape = RegionShape.CUBIC, size = { x = 4.000, y = 10.000, z = 10.000 }, pos = { x = 49.883, y = 81.726, z = -80.882 } }
}
-- 触发器
triggers = {
{ config_id = 1002001, name = "ENTER_REGION_2001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2001", action = "action_EVENT_ENTER_REGION_2001", trigger_count = 0 },
{ config_id = 1002006, name = "ANY_MONSTER_LIVE_2006", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_2006", action = "action_EVENT_ANY_MONSTER_LIVE_2006", trigger_count = 0 },
{ config_id = 1002007, name = "ANY_MONSTER_DIE_2007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2007", action = "" },
{ config_id = 1002010, name = "ENTER_REGION_2010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2010", action = "action_EVENT_ENTER_REGION_2010", trigger_count = 0 },
{ config_id = 1002018, name = "CHALLENGE_FAIL_2018", event = EventType.EVENT_CHALLENGE_FAIL, source = "", condition = "", action = "action_EVENT_CHALLENGE_FAIL_2018" },
{ config_id = 1002019, name = "CHALLENGE_SUCCESS_2019", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_2019" },
{ config_id = 1002020, name = "ENTER_REGION_2020", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2020", action = "action_EVENT_ENTER_REGION_2020" }
}
-- 变量
variables = {
{ config_id = 1, name = "alive1", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2002, 2003, 2004, 2005, 2009, 2012, 2013, 2015, 2016, 2017 },
regions = { 2001, 2010, 2020 },
triggers = { "ENTER_REGION_2001", "ANY_MONSTER_LIVE_2006", "ENTER_REGION_2010", "CHALLENGE_FAIL_2018", "CHALLENGE_SUCCESS_2019", "ENTER_REGION_2020" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 2011, 2014 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_2007" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 2008 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_2001(context, evt)
if evt.param1 ~= 2001 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_2001(context, evt)
-- 改变指定group组240045002中, configid为2009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045002, 2009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_2006(context, evt)
if 2011 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_2006(context, evt)
-- 创建编号为1(该挑战的识别id),挑战内容为1的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 1, 240045002, 2, 0, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 将本组内变量名为 "alive1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "alive1", 1, 240045002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2007(context, evt)
-- 判断指定group组剩余怪物数量是否是1
if ScriptLib.GetGroupMonsterCountByGroupId(context, 240045002) ~= 1 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2010(context, evt)
if evt.param1 ~= 2010 then return false end
-- 判断角色数量不少于0
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 0 then
return false
end
-- 判断变量"alive1"为1
if ScriptLib.GetGroupVariableValue(context, "alive1") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2010(context, evt)
-- 改变指定group组240045002中, configid为2009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045002, 2009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_2018(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240045002, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_2019(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 240045002, 3)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2020(context, evt)
if evt.param1 ~= 2020 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_2020(context, evt)
-- 改变指定group组240045002中, configid为2009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045002, 2009, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除suite7的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240045006, 7)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240045002, 2)
return 0
end
@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 240045003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70220070, pos = { x = 15.036, y = 71.290, z = -85.676 }, rot = { x = 0.000, y = 80.000, z = 0.000 }, level = 1 },
{ config_id = 3002, gadget_id = 70220071, pos = { x = 14.642, y = 71.281, z = -83.475 }, rot = { x = 0.000, y = 80.000, z = 0.000 }, level = 1 },
{ config_id = 3003, gadget_id = 70220071, pos = { x = 15.053, y = 71.280, z = -87.937 }, rot = { x = 0.000, y = 100.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 = { 3001, 3002, 3003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,414 @@
-- 基础信息
local base_info = {
group_id = 240045004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70360279, pos = { x = 23.039, y = 64.879, z = -68.650 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 4002, gadget_id = 70360288, pos = { x = 15.678, y = 71.090, z = -68.257 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 4003, gadget_id = 70360287, pos = { x = 10.850, y = 70.958, z = -76.707 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4004, gadget_id = 70360170, pos = { x = 15.998, y = 67.036, z = -66.217 }, rot = { x = 90.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 4006, gadget_id = 70360287, pos = { x = 10.706, y = 65.730, z = -81.975 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 4012, gadget_id = 70290141, pos = { x = 28.825, y = 65.752, z = -87.144 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 4013, gadget_id = 70360001, pos = { x = 28.912, y = 66.559, z = -87.047 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 4015, gadget_id = 70290141, pos = { x = 10.140, y = 71.990, z = -95.133 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4016, gadget_id = 70360001, pos = { x = 10.296, y = 72.982, z = -94.822 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4018, gadget_id = 70211011, pos = { x = 13.457, y = 71.965, z = -94.499 }, rot = { x = 0.000, y = 327.000, z = 0.000 }, level = 1, drop_tag = "战斗中级稻妻", isOneoff = true, persistent = true },
{ config_id = 4021, gadget_id = 70211001, pos = { x = 8.267, y = 65.851, z = -74.781 }, rot = { x = 0.000, y = 66.000, z = 0.000 }, level = 1, drop_tag = "战斗低级稻妻", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 4005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 17.649, y = 65.690, z = -62.071 } },
{ config_id = 4007, shape = RegionShape.CUBIC, size = { x = 5.000, y = 5.000, z = 5.000 }, pos = { x = 10.602, y = 73.789, z = -79.647 } },
{ config_id = 4009, shape = RegionShape.CUBIC, size = { x = 5.000, y = 5.000, z = 5.000 }, pos = { x = 10.602, y = 68.053, z = -79.203 } },
{ config_id = 4019, shape = RegionShape.SPHERE, radius = 5, pos = { x = 21.633, y = 66.427, z = -71.042 } },
{ config_id = 4020, shape = RegionShape.SPHERE, radius = 5, pos = { x = 24.010, y = 55.411, z = -67.635 } }
}
-- 触发器
triggers = {
{ 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 = 1004007, name = "ENTER_REGION_4007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4007", action = "action_EVENT_ENTER_REGION_4007", trigger_count = 0 },
{ config_id = 1004008, name = "SELECT_OPTION_4008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4008", action = "action_EVENT_SELECT_OPTION_4008", trigger_count = 0 },
{ config_id = 1004009, name = "ENTER_REGION_4009", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4009", action = "action_EVENT_ENTER_REGION_4009", trigger_count = 0 },
{ config_id = 1004010, name = "SELECT_OPTION_4010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4010", action = "action_EVENT_SELECT_OPTION_4010", trigger_count = 0 },
{ config_id = 1004011, name = "SELECT_OPTION_4011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4011", action = "action_EVENT_SELECT_OPTION_4011" },
{ config_id = 1004014, name = "SELECT_OPTION_4014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4014", action = "action_EVENT_SELECT_OPTION_4014" },
{ config_id = 1004017, name = "SELECT_OPTION_4017", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4017", action = "action_EVENT_SELECT_OPTION_4017" },
{ config_id = 1004019, name = "ENTER_REGION_4019", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4019", action = "action_EVENT_ENTER_REGION_4019" },
{ config_id = 1004020, name = "ENTER_REGION_4020", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4020", action = "action_EVENT_ENTER_REGION_4020" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4001, 4002, 4003, 4004, 4006, 4012, 4013, 4015, 4016, 4018, 4021 },
regions = { 4005, 4007, 4009, 4019, 4020 },
triggers = { "ENTER_REGION_4005", "ENTER_REGION_4007", "SELECT_OPTION_4008", "ENTER_REGION_4009", "SELECT_OPTION_4010", "SELECT_OPTION_4011", "SELECT_OPTION_4014", "SELECT_OPTION_4017", "ENTER_REGION_4019", "ENTER_REGION_4020" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
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)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240045004, 4004, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240045004, 4003, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240045004, 4006, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240045004, 4013, {73}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240045004, 4016, {73}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4007(context, evt)
if evt.param1 ~= 4007 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_4007(context, evt)
-- 改变指定group组240045004中, configid为4003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045004, 4003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4008(context, evt)
-- 判断是gadgetid 4003 option_id 1
if 4003 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4008(context, evt)
-- 改变指定group组240045004中, configid为4003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045004, 4003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4009(context, evt)
if evt.param1 ~= 4009 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_4009(context, evt)
-- 改变指定group组240045004中, configid为4006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045004, 4006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4010(context, evt)
-- 判断是gadgetid 4006 option_id 1
if 4006 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4010(context, evt)
-- 改变指定group组240045004中, configid为4006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045004, 4006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4011(context, evt)
-- 判断是gadgetid 4004 option_id 24
if 4004 ~= evt.param1 then
return false
end
if 24 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4011(context, evt)
-- 改变指定group组240045004中, configid为4002的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045004, 4002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 240045004 ;指定config4004;物件身上指定option24
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240045004, 4004, 24) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组240045004中, configid为4004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045004, 4004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除suite8的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240045006, 8)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 240045006, 4)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4014(context, evt)
-- 判断是gadgetid 4013 option_id 73
if 4013 ~= evt.param1 then
return false
end
if 73 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4014(context, evt)
-- 改变指定group组240045004中, configid为4012的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045004, 4012, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 240045004 ;指定config4013;物件身上指定option73
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240045004, 4013, 73) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240045006, 3)
-- 针对当前group内变量名为 "point" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "point", 1, 240045005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4017(context, evt)
-- 判断是gadgetid 4016 option_id 73
if 4016 ~= evt.param1 then
return false
end
if 73 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4017(context, evt)
-- 改变指定group组240045004中, configid为4015的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045004, 4015, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 240045004 ;指定config4016;物件身上指定option73
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240045004, 4016, 73) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 针对当前group内变量名为 "point" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValueByGroup(context, "point", 1, 240045005) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4019(context, evt)
if evt.param1 ~= 4019 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_4019(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240045006, 2)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 240045006, 3)
-- 添加suite8的新内容
ScriptLib.AddExtraGroupSuite(context, 240045006, 8)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4020(context, evt)
if evt.param1 ~= 4020 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_4020(context, evt)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240045006, 4)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 240045006, 5)
return 0
end
@@ -0,0 +1,334 @@
-- 基础信息
local base_info = {
group_id = 240045005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70290140, pos = { x = 25.572, y = 77.038, z = -81.017 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5002, gadget_id = 70290145, pos = { x = 25.045, y = 83.199, z = -81.022 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5003, gadget_id = 70290142, pos = { x = 25.315, y = 79.034, z = -81.019 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5004, gadget_id = 70290144, pos = { x = 25.284, y = 78.567, z = -81.593 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5005, gadget_id = 70290144, pos = { x = 25.284, y = 79.752, z = -81.022 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5006, gadget_id = 70290143, pos = { x = 25.269, y = 78.570, z = -80.492 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5007, gadget_id = 70360001, pos = { x = 25.608, y = 77.985, z = -81.225 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5014, gadget_id = 70360288, pos = { x = 13.308, y = 76.994, z = -69.461 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 5015, gadget_id = 70360170, pos = { x = 6.384, y = 78.595, z = -78.948 }, rot = { x = 90.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 5016, shape = RegionShape.SPHERE, radius = 10, pos = { x = 10.018, y = 77.706, z = -71.806 } }
}
-- 触发器
triggers = {
{ config_id = 1005008, name = "TIMER_EVENT_5008", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_5008" },
{ config_id = 1005009, name = "GADGET_STATE_CHANGE_5009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_5009", action = "action_EVENT_GADGET_STATE_CHANGE_5009" },
{ config_id = 1005010, name = "GADGET_STATE_CHANGE_5010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_5010", action = "action_EVENT_GADGET_STATE_CHANGE_5010" },
{ config_id = 1005011, name = "GADGET_STATE_CHANGE_5011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_5011", action = "action_EVENT_GADGET_STATE_CHANGE_5011" },
{ config_id = 1005012, name = "SELECT_OPTION_5012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5012", action = "action_EVENT_SELECT_OPTION_5012" },
{ config_id = 1005013, name = "VARIABLE_CHANGE_5013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_5013", action = "action_EVENT_VARIABLE_CHANGE_5013" },
{ config_id = 1005016, name = "ENTER_REGION_5016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5016", action = "action_EVENT_ENTER_REGION_5016" },
{ config_id = 1005017, name = "SELECT_OPTION_5017", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5017", action = "action_EVENT_SELECT_OPTION_5017" }
}
-- 变量
variables = {
{ config_id = 1, name = "point", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001, 5002, 5003, 5004, 5005, 5006, 5007, 5014, 5015 },
regions = { 5016 },
triggers = { "TIMER_EVENT_5008", "GADGET_STATE_CHANGE_5009", "GADGET_STATE_CHANGE_5010", "GADGET_STATE_CHANGE_5011", "SELECT_OPTION_5012", "VARIABLE_CHANGE_5013", "ENTER_REGION_5016", "SELECT_OPTION_5017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_TIMER_EVENT_5008(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240045005, 5007, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组240045005中, configid为5003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045005, 5003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_5009(context, evt)
-- 检测config_id为5001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 5001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_5009(context, evt)
-- 改变指定group组240045005中, configid为5004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045005, 5004, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_5010(context, evt)
-- 检测config_id为5001的gadget是否从GadgetState.GearStart变为GadgetState.GearStop
if 5001 ~= evt.param2 or GadgetState.GearStop ~= evt.param1 or GadgetState.GearStart ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_5010(context, evt)
-- 改变指定group组240045005中, configid为5006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045005, 5006, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_5011(context, evt)
-- 检测config_id为5001的gadget是否从GadgetState.GearStop变为GadgetState.GearAction1
if 5001 ~= evt.param2 or GadgetState.GearAction1 ~= evt.param1 or GadgetState.GearStop ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_5011(context, evt)
-- 改变指定group组240045005中, configid为5005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045005, 5005, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟1.5秒后,向groupId为:240045005的对象,请求一次调用,并将string参数:"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240045005, "time1", 1.5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5012(context, evt)
-- 判断是gadgetid 5007 option_id 1
if 5007 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5012(context, evt)
-- 改变指定group组240045005中, configid为5001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045005, 5001, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240045005中, configid为5003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045005, 5003, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除suite6的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240045006, 6)
-- 添加suite7的新内容
ScriptLib.AddExtraGroupSuite(context, 240045006, 7)
-- 改变指定group组240045005中, configid为5006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045005, 5006, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240045005中, configid为5005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045005, 5005, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组240045005中, configid为5004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045005, 5004, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 240045005 ;指定config5007;物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240045005, 5007, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 删除suite1的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240045006, 1)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240045006, 2)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240045006, 3)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240045006, 4)
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 240045006, 5)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_5013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"point"为3
if ScriptLib.GetGroupVariableValue(context, "point") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_5013(context, evt)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 240045006, 6)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5016(context, evt)
if evt.param1 ~= 5016 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_5016(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240045005, 5015, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5017(context, evt)
-- 判断是gadgetid 5015 option_id 24
if 5015 ~= evt.param1 then
return false
end
if 24 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5017(context, evt)
-- 改变指定group组240045005中, configid为5014的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045005, 5014, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 240045005 ;指定config5015;物件身上指定option24
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240045005, 5015, 24) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组240045005中, configid为5015的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240045005, 5015, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,142 @@
-- 基础信息
local base_info = {
group_id = 240045006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70900201, pos = { x = 3.004, y = 65.845, z = -82.134 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6002, gadget_id = 70900201, pos = { x = 22.313, y = 66.179, z = -73.221 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6003, gadget_id = 70900201, pos = { x = 23.737, y = 56.458, z = -69.301 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6004, gadget_id = 70900201, pos = { x = 28.959, y = 67.974, z = -87.116 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6005, gadget_id = 70900201, pos = { x = 3.273, y = 55.532, z = -73.651 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6006, gadget_id = 70900201, pos = { x = 25.301, y = 80.417, z = -81.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6007, gadget_id = 70900201, pos = { x = 60.915, y = 78.353, z = -81.026 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 6008, gadget_id = 70900202, pos = { x = 16.180, y = 67.436, z = -66.184 }, 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 = { 6001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 6002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 6004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 6003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 6005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 6006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 6007 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 6008 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,76 @@
-- 基础信息
local base_info = {
group_id = 240045007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70210101, pos = { x = -11.486, y = 55.707, z = -67.975 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜果蔬稻妻", isOneoff = true, persistent = true },
{ config_id = 7002, gadget_id = 70210101, pos = { x = 27.102, y = 65.812, z = -62.539 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜人文稻妻", isOneoff = true, persistent = true },
{ config_id = 7003, gadget_id = 70210101, pos = { x = 8.133, y = 66.986, z = -72.348 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜果蔬稻妻", isOneoff = true, persistent = true },
{ config_id = 7004, gadget_id = 70210101, pos = { x = 13.021, y = 55.788, z = -67.781 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜通用稻妻", isOneoff = true, persistent = true },
{ config_id = 7005, gadget_id = 70210101, pos = { x = 10.126, y = 55.616, z = -67.488 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜果蔬稻妻", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7002, 7003, 7004, 7005 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,85 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 69.24037,
"y": 77.01,
"z": -80.91654
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 3.0,
"y": 3.0,
"z": 3.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": false
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 37.87686,
"y": 80.41127,
"z": -81.11029
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 10.0,
"z": 20.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
}