添加配置表

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 = -512.0, z = -512.0 },
size = { x = 1024.0, z = 1024.0 },
born_pos = { x = 11.491, y = 71.990, z = -95.202 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -20,
city_id = 3,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 40050 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -512.0, z = -512.0 }, max = { x = 512.0, z = 512.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,132 @@
{
"sceneId": 40050,
"routes": [
{
"localId": 1,
"name": "Platform_001",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 3.161084,
"y": 54.31866,
"z": -73.66878
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true
},
{
"pos": {
"x": 3.161084,
"y": 76.99866,
"z": -73.66878
},
"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.161084,
"y": 76.99866,
"z": -73.66878
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true
},
{
"pos": {
"x": 3.161084,
"y": 54.31866,
"z": -73.66878
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true,
"reachStop": true
}
]
},
{
"localId": 3,
"name": "Route_003",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 3.31223178,
"y": 76.9210052,
"z": -90.0232239
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 3.63342381,
"y": 76.9210052,
"z": -100.7188
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 4,
"name": "Route_004",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 11.1835947,
"y": 77.04,
"z": -89.86238
},
"waitTime": 3.0,
"speedLevel": 1
},
{
"pos": {
"x": 14.0950508,
"y": 77.04,
"z": -90.15075
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 17.8831635,
"y": 77.04,
"z": -89.23478
},
"waitTime": 0.0,
"speedLevel": 1
}
]
}
]
}
@@ -0,0 +1,19 @@
-- 所有的group
groups = {
{ id = 240050001, pos = { x = 14.000, y = 77.055, z = -79.926 } },
{ id = 240050002, refresh_id = 1, pos = { x = 11.720, y = 71.287, z = -87.852 } },
{ id = 240050003, refresh_id = 1, pos = { x = -7.077, y = 54.277, z = -77.269 } },
{ id = 240050004, refresh_id = 1001, pos = { x = -7.195, y = 54.370, z = -72.777 } },
{ id = 240050005, refresh_id = 1, pos = { x = -5.485, y = 76.890, z = -101.334 } },
{ id = 240050006, pos = { x = 64.265, y = 76.941, z = -83.143 } },
{ id = 240050007, pos = { x = 23.552, y = 55.411, z = -77.402 } },
{ id = 240050008, refresh_id = 1, pos = { x = 3.934, y = 54.344, z = -71.347 } },
{ id = 240050009, refresh_id = 1, pos = { x = 23.058, y = 65.152, z = -72.754 } },
{ id = 240050010, refresh_id = 1001, pos = { x = 26.611, y = 65.851, z = -87.280 } },
{ id = 240050011, pos = { x = 23.070, y = 55.411, z = -79.024 } },
{ id = 240050012, refresh_id = 1, pos = { x = 20.625, y = 76.984, z = -82.517 } },
{ id = 240050013, refresh_id = 1, pos = { x = 15.198, y = 77.163, z = -87.705 } },
{ id = 240050014, refresh_id = 1001, pos = { x = 20.859, y = 77.040, z = -80.016 } },
{ id = 240050015, refresh_id = 1001, pos = { x = 25.104, y = 55.411, z = -75.768 } },
{ id = 240050016, refresh_id = 1, pos = { x = 10.998, y = 71.990, z = -92.730 } }
}
@@ -0,0 +1,13 @@
dummy_points = {
["Q7227402"] = { pos = { x = 47.286, y = 77.040, z = -81.144 }, rot = { x = 0.000, y = 3.100, z = 0.000 } },
["Q7227402_1"] = { pos = { x = 65.185, y = 76.958, z = -80.093 }, rot = { x = 0.000, y = 226.369, z = 0.000 } },
["Q7227402_2"] = { pos = { x = 64.446, y = 76.941, z = -82.818 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WQ-7226612-paimon"] = { pos = { x = 24.320, y = 55.412, z = -80.810 }, rot = { x = 0.000, y = 209.981, z = 0.000 } },
["WQ-7226612-player"] = { pos = { x = 23.426, y = 55.411, z = -80.736 }, rot = { x = 0.000, y = 167.185, z = 0.000 } },
["WQ-7226616-paimon"] = { pos = { x = 23.091, y = 56.637, z = -87.459 }, rot = { x = 0.000, y = 244.785, z = 0.000 } },
["WQ-7226616-player"] = { pos = { x = 22.740, y = 56.244, z = -86.526 }, rot = { x = 0.000, y = 199.269, z = 0.000 } },
["WQ-72266-Baidai-Dicheng"] = { pos = { x = 21.727, y = 56.244, z = -88.279 }, rot = { x = 0.000, y = 34.059, z = 0.000 } },
["WQ-7227401"] = { pos = { x = 11.223, y = 71.280, z = -89.901 }, rot = { x = 0.000, y = 48.692, z = 0.000 } },
["WQ-72274-10324"] = { pos = { x = 26.790, y = 65.722, z = -85.989 }, rot = { x = 0.000, y = 240.209, z = 0.000 } },
["WQ-72274-12212"] = { pos = { x = 24.894, y = 65.722, z = -88.017 }, rot = { x = 0.000, y = 27.183, z = 0.000 } }
}
@@ -0,0 +1,362 @@
-- 基础信息
local base_info = {
group_id = 240050001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70360001, pos = { x = -10.240, y = 77.553, z = -98.917 }, rot = { x = 0.000, y = 93.040, z = 0.000 }, level = 1 },
{ config_id = 1004, gadget_id = 70290141, pos = { x = -10.045, y = 76.890, z = -98.919 }, rot = { x = 0.000, y = 89.169, z = 0.000 }, level = 1 },
{ config_id = 1005, gadget_id = 70290141, pos = { x = 26.835, y = 55.416, z = -73.788 }, rot = { x = 0.000, y = 270.900, z = 0.000 }, level = 1 },
{ config_id = 1006, gadget_id = 70290141, pos = { x = 14.632, y = 65.851, z = -87.329 }, rot = { x = 0.000, y = 271.630, z = 0.000 }, level = 1 },
{ config_id = 1008, gadget_id = 70360001, pos = { x = 26.323, y = 56.646, z = -73.806 }, rot = { x = 0.000, y = 93.040, z = 0.000 }, level = 1 },
{ config_id = 1009, gadget_id = 70360001, pos = { x = 14.399, y = 66.698, z = -87.292 }, rot = { x = 0.000, y = 93.040, z = 0.000 }, level = 1 },
{ config_id = 1013, gadget_id = 70900201, pos = { x = -9.681, y = 77.851, z = -98.977 }, rot = { x = 0.000, y = 91.010, z = 0.000 }, level = 1 },
{ config_id = 1014, gadget_id = 70900201, pos = { x = 26.436, y = 56.436, z = -73.783 }, rot = { x = 0.000, y = 91.010, z = 0.000 }, level = 1 },
{ config_id = 1015, gadget_id = 70900201, pos = { x = 14.208, y = 66.716, z = -87.375 }, rot = { x = 0.000, y = 91.010, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
-- 1
{ config_id = 1016, shape = RegionShape.CUBIC, size = { x = 10.000, y = 5.000, z = 10.000 }, pos = { x = 22.912, y = 79.000, z = -81.223 } },
-- 2
{ config_id = 1017, shape = RegionShape.CUBIC, size = { x = 10.000, y = 5.000, z = 10.000 }, pos = { x = 22.912, y = 79.000, z = -81.223 } },
-- 3
{ config_id = 1018, shape = RegionShape.CUBIC, size = { x = 10.000, y = 5.000, z = 10.000 }, pos = { x = 22.912, y = 79.000, z = -81.223 } }
}
-- 触发器
triggers = {
-- 1
{ config_id = 1001002, name = "GADGET_CREATE_1002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1002", action = "action_EVENT_GADGET_CREATE_1002", trigger_count = 0 },
-- 2
{ config_id = 1001003, name = "GADGET_CREATE_1003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1003", action = "action_EVENT_GADGET_CREATE_1003", trigger_count = 0 },
-- 3
{ config_id = 1001007, name = "GADGET_CREATE_1007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1007", action = "action_EVENT_GADGET_CREATE_1007", trigger_count = 0 },
-- 1
{ config_id = 1001010, name = "SELECT_OPTION_1010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1010", action = "action_EVENT_SELECT_OPTION_1010", trigger_count = 0 },
-- 2
{ config_id = 1001011, name = "SELECT_OPTION_1011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1011", action = "action_EVENT_SELECT_OPTION_1011", trigger_count = 0 },
-- 2
{ config_id = 1001012, name = "SELECT_OPTION_1012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1012", action = "action_EVENT_SELECT_OPTION_1012", trigger_count = 0 },
-- 1
{ config_id = 1001016, name = "ENTER_REGION_1016", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1016", action = "action_EVENT_ENTER_REGION_1016", trigger_count = 0 },
-- 2
{ config_id = 1001017, name = "ENTER_REGION_1017", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1017", action = "action_EVENT_ENTER_REGION_1017", trigger_count = 0 },
-- 3
{ config_id = 1001018, name = "ENTER_REGION_1018", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1018", action = "action_EVENT_ENTER_REGION_1018", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1004, 1005, 1006, 1008, 1009 },
regions = { 1016, 1017, 1018 },
triggers = { "GADGET_CREATE_1002", "GADGET_CREATE_1003", "GADGET_CREATE_1007", "SELECT_OPTION_1010", "SELECT_OPTION_1011", "SELECT_OPTION_1012", "ENTER_REGION_1016", "ENTER_REGION_1017", "ENTER_REGION_1018" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1002(context, evt)
if 1001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240050001, 1001, {73}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_1003(context, evt)
if 1008 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240050001, 1008, {73}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_1007(context, evt)
if 1009 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240050001, 1009, {73}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1010(context, evt)
-- 判断是gadgetid 1001 option_id 73
if 1001 ~= evt.param1 then
return false
end
if 73 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1010(context, evt)
-- 将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
-- 删除指定group 240050001 ;指定config1001;物件身上指定option73
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240050001, 1001, 73) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1013 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1011(context, evt)
-- 判断是gadgetid 1008 option_id 73
if 1008 ~= evt.param1 then
return false
end
if 73 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1011(context, evt)
-- 将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
-- 删除指定group 240050001 ;指定config1008;物件身上指定option73
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240050001, 1008, 73) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1014 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1012(context, evt)
-- 判断是gadgetid 1009 option_id 73
if 1009 ~= evt.param1 then
return false
end
if 73 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1012(context, evt)
-- 将configid为 1006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 240050001 ;指定config1009;物件身上指定option73
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240050001, 1009, 73) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 1015 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1016(context, evt)
if evt.param1 ~= 1016 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 240050001, 1004) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_1016(context, evt)
-- 创建id为1013的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1013 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1017(context, evt)
if evt.param1 ~= 1017 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 240050001, 1005) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_1017(context, evt)
-- 创建id为1014的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1014 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1018(context, evt)
if evt.param1 ~= 1018 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
if GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 240050001, 1006) then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_1018(context, evt)
-- 创建id为1015的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1015 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,317 @@
-- 基础信息
local base_info = {
group_id = 240050002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70220070, pos = { x = 10.430, y = 71.286, z = -82.554 }, rot = { x = 0.000, y = 353.878, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70220071, pos = { x = 14.637, y = 71.262, z = -84.986 }, rot = { x = 0.000, y = 88.220, z = 0.000 }, level = 1 },
{ config_id = 2004, gadget_id = 70220071, pos = { x = 12.679, y = 71.277, z = -82.566 }, rot = { x = 0.000, y = 6.311, z = 0.000 }, level = 1 },
{ config_id = 2005, gadget_id = 70360287, pos = { x = 10.800, y = 70.951, z = -76.645 }, rot = { x = 0.000, y = 359.421, z = 0.000 }, level = 1 },
{ config_id = 2006, gadget_id = 70360287, pos = { x = 10.753, y = 65.547, z = -82.022 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 2007, gadget_id = 70360288, pos = { x = 15.578, y = 71.099, z = -67.656 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 2014, gadget_id = 70360001, pos = { x = 16.200, y = 66.829, z = -66.238 }, rot = { x = 0.000, y = 93.337, z = 0.000 }, level = 1 },
{ config_id = 2015, gadget_id = 70360170, pos = { x = 16.027, y = 66.778, z = -66.233 }, rot = { x = 90.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 2008, shape = RegionShape.CUBIC, size = { x = 6.000, y = 5.000, z = 5.000 }, pos = { x = 10.923, y = 68.175, z = -84.731 } },
{ config_id = 2010, shape = RegionShape.CUBIC, size = { x = 6.000, y = 6.000, z = 6.000 }, pos = { x = 10.703, y = 67.048, z = -79.130 } },
{ config_id = 2011, shape = RegionShape.CUBIC, size = { x = 5.000, y = 4.000, z = 5.000 }, pos = { x = 10.574, y = 72.903, z = -74.153 } },
{ config_id = 2013, shape = RegionShape.CUBIC, size = { x = 6.000, y = 6.000, z = 6.000 }, pos = { x = 10.524, y = 72.220, z = -79.474 } }
}
-- 触发器
triggers = {
{ config_id = 1002008, name = "ENTER_REGION_2008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2008", action = "action_EVENT_ENTER_REGION_2008", trigger_count = 0 },
{ config_id = 1002009, name = "SELECT_OPTION_2009", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2009", action = "action_EVENT_SELECT_OPTION_2009", trigger_count = 0 },
{ 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 = 1002011, name = "ENTER_REGION_2011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2011", action = "action_EVENT_ENTER_REGION_2011", trigger_count = 0 },
{ config_id = 1002012, name = "SELECT_OPTION_2012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2012", action = "action_EVENT_SELECT_OPTION_2012", trigger_count = 0 },
{ config_id = 1002013, name = "ENTER_REGION_2013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2013", action = "action_EVENT_ENTER_REGION_2013", trigger_count = 0 },
{ config_id = 1002016, name = "GADGET_CREATE_2016", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_2016", action = "action_EVENT_GADGET_CREATE_2016", trigger_count = 0 },
{ config_id = 1002017, name = "SELECT_OPTION_2017", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2017", action = "action_EVENT_SELECT_OPTION_2017", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "open", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2004, 2005, 2006, 2007, 2014, 2015 },
regions = { 2008, 2010, 2011, 2013 },
triggers = { "ENTER_REGION_2008", "SELECT_OPTION_2009", "ENTER_REGION_2010", "ENTER_REGION_2011", "SELECT_OPTION_2012", "ENTER_REGION_2013", "GADGET_CREATE_2016", "SELECT_OPTION_2017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_2008(context, evt)
if evt.param1 ~= 2008 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_2008(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240050002, 2006, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2009(context, evt)
-- 判断是gadgetid 2006 option_id 1
if 2006 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2009(context, evt)
-- 删除指定group 240050002 ;指定config2006;物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240050002, 2006, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_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
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2010(context, evt)
if evt.param1 ~= 2010 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_2010(context, evt)
-- 将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_ENTER_REGION_2011(context, evt)
if evt.param1 ~= 2011 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_2011(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240050002, 2005, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2012(context, evt)
-- 判断是gadgetid 2005 option_id 1
if 2005 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2012(context, evt)
-- 删除指定group 240050002 ;指定config2005;物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240050002, 2005, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 2005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_2013(context, evt)
if evt.param1 ~= 2013 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_2013(context, evt)
-- 将configid为 2005 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2005, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_2016(context, evt)
if 2014 ~= evt.param1 or GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
-- 判断变量"open"为0
if ScriptLib.GetGroupVariableValue(context, "open") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_2016(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2017(context, evt)
-- 判断是gadgetid 2014 option_id 1
if 2014 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2017(context, evt)
-- 删除指定group 240050002 ;指定config2014;物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240050002, 2014, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 2015 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2015, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "open" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "open", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
@@ -0,0 +1,151 @@
-- 基础信息
local base_info = {
group_id = 240050003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70360288, pos = { x = 3.122, y = 64.671, z = -84.984 }, rot = { x = 0.000, y = 359.806, z = 0.000 }, level = 1 },
{ config_id = 3002, gadget_id = 70360170, pos = { x = 1.066, y = 56.501, z = -85.786 }, rot = { x = 87.644, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3005, gadget_id = 70360001, pos = { x = 1.077, y = 56.495, z = -85.417 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3006, gadget_id = 70710521, pos = { x = 3.116, y = 54.411, z = -85.135 }, rot = { x = 0.000, y = 86.179, z = 0.000 }, level = 1 },
{ config_id = 3007, gadget_id = 70710522, pos = { x = 3.150, y = 54.431, z = -82.473 }, rot = { x = 0.000, y = 178.782, z = 0.000 }, level = 1 },
{ config_id = 3008, gadget_id = 70710522, pos = { x = 3.107, y = 55.513, z = -84.884 }, rot = { x = 353.465, y = 359.921, z = 3.476 }, level = 1 },
{ config_id = 3009, gadget_id = 70900393, pos = { x = 4.219, y = 54.356, z = -80.586 }, rot = { x = 0.000, y = 12.063, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3010, gadget_id = 70900393, pos = { x = -1.797, y = 54.467, z = -84.537 }, rot = { x = 1.584, y = 26.618, z = 0.784 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1003003, name = "GADGET_CREATE_3003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_3003", action = "action_EVENT_GADGET_CREATE_3003", trigger_count = 0 },
{ config_id = 1003004, name = "SELECT_OPTION_3004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3004", action = "action_EVENT_SELECT_OPTION_3004", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "open", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3005, 3006, 3007, 3008, 3009, 3010 },
regions = { },
triggers = { "GADGET_CREATE_3003", "SELECT_OPTION_3004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_3003(context, evt)
if 3005 ~= evt.param1 then
return false
end
-- 判断变量"open"为0
if ScriptLib.GetGroupVariableValue(context, "open") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_3003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240050003, 3005, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3004(context, evt)
-- 判断是gadgetid 3005 option_id 7
if 3005 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3004(context, evt)
-- 将configid为 3001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 240050003 ;指定config3005;物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240050003, 3005, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将本组内变量名为 "open" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "open", 1, 240050003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
return 0
end
@@ -0,0 +1,153 @@
-- 基础信息
local base_info = {
group_id = 240050004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 25080101, pos = { x = -13.468, y = 54.563, z = -75.249 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1004 },
{ config_id = 4003, monster_id = 25080201, pos = { x = -12.988, y = 54.566, z = -70.950 }, rot = { x = 0.000, y = 182.515, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1004 },
{ config_id = 4008, monster_id = 25080201, pos = { x = 3.223, y = 76.921, z = -90.182 }, rot = { x = 0.238, y = 164.711, z = 359.398 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 4009, monster_id = 25080301, pos = { x = -0.194, y = 54.500, z = -82.267 }, rot = { x = 0.000, y = 153.254, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4004, gadget_id = 70710450, pos = { x = -13.126, y = 54.563, z = -73.223 }, rot = { x = 0.000, y = 4.875, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 4006, gadget_id = 70710414, pos = { x = 1.587, y = 54.596, z = -84.624 }, rot = { x = 345.531, y = 2.104, z = 358.577 }, level = 1 },
{ config_id = 4007, gadget_id = 70710415, pos = { x = -0.169, y = 54.415, z = -84.024 }, rot = { x = 0.000, y = 243.341, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 4010, shape = RegionShape.SPHERE, radius = 3, pos = { x = 3.119, y = 75.474, z = -85.607 } },
{ config_id = 4012, shape = RegionShape.SPHERE, radius = 3, pos = { x = 14.867, y = 65.395, z = -62.577 } }
}
-- 触发器
triggers = {
{ config_id = 1004010, name = "ENTER_REGION_4010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4010", action = "action_EVENT_ENTER_REGION_4010" },
{ config_id = 1004012, name = "ENTER_REGION_4012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4012", action = "action_EVENT_ENTER_REGION_4012" }
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
monsters = {
{ config_id = 4002, monster_id = 23010301, pos = { x = -1.463, y = 76.890, z = -97.119 }, rot = { x = 0.000, y = 228.394, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true }
},
regions = {
{ config_id = 4011, shape = RegionShape.SPHERE, radius = 3, pos = { x = -4.324, y = 77.282, z = -100.922 } }
},
triggers = {
{ config_id = 1004011, name = "ENTER_REGION_4011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4011", action = "action_EVENT_ENTER_REGION_4011" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 4001, 4003, 4009 },
gadgets = { 4004, 4006, 4007 },
regions = { 4010, 4012 },
triggers = { "ENTER_REGION_4010", "ENTER_REGION_4012" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_4010(context, evt)
if evt.param1 ~= 4010 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_4010(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4008, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4012(context, evt)
if evt.param1 ~= 4012 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_4012(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4001, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4003, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4009, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,77 @@
-- 基础信息
local base_info = {
group_id = 240050005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5003, gadget_id = 70220070, pos = { x = -10.186, y = 76.896, z = -97.473 }, rot = { x = 0.000, y = 319.353, z = 0.000 }, level = 1 },
{ config_id = 5004, gadget_id = 70220070, pos = { x = -0.820, y = 76.897, z = -99.587 }, rot = { x = 0.000, y = 50.751, z = 0.000 }, level = 1 },
{ config_id = 5005, gadget_id = 70710135, pos = { x = -9.291, y = 76.891, z = -104.146 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5006, gadget_id = 71700105, pos = { x = -9.018, y = 77.052, z = -104.482 }, rot = { x = 0.061, y = 72.363, z = 359.928 }, level = 1 },
{ config_id = 5007, gadget_id = 70220071, pos = { x = -10.514, y = 76.892, z = -100.531 }, rot = { x = 0.000, y = 242.819, z = 0.000 }, level = 1 },
{ config_id = 5008, gadget_id = 70220071, pos = { x = -1.429, y = 76.750, z = -104.427 }, rot = { x = 0.000, y = 160.843, 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 = { 5003, 5004, 5005, 5006, 5007, 5008 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,243 @@
-- 基础信息
local base_info = {
group_id = 240050006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 6001, monster_id = 23010301, pos = { x = 64.414, y = 76.948, z = -82.707 }, rot = { x = 0.000, y = 21.166, z = 0.000 }, level = 1, title_id = 155, special_name_id = 10093 },
{ config_id = 6021, monster_id = 25080301, pos = { x = 70.316, y = 76.956, z = -73.743 }, rot = { x = 0.000, y = 212.356, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 6022, monster_id = 25080201, pos = { x = 70.209, y = 76.940, z = -89.430 }, rot = { x = 0.000, y = 319.836, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 6029, monster_id = 23020101, pos = { x = 65.185, y = 76.958, z = -80.093 }, rot = { x = 0.000, y = 240.197, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, title_id = 155, special_name_id = 10092 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6008, gadget_id = 70220070, pos = { x = 69.233, y = 76.940, z = -79.040 }, rot = { x = 0.000, y = 83.272, z = 0.000 }, level = 1 },
{ config_id = 6009, gadget_id = 70220071, pos = { x = 69.064, y = 76.941, z = -83.543 }, rot = { x = 0.000, y = 104.365, z = 0.000 }, level = 1 },
{ config_id = 6010, gadget_id = 70220070, pos = { x = 69.327, y = 76.940, z = -81.288 }, rot = { x = 0.000, y = 91.265, z = 0.000 }, level = 1 },
{ config_id = 6011, gadget_id = 70220070, pos = { x = 65.084, y = 76.940, z = -76.512 }, rot = { x = 0.000, y = 3.470, z = 0.000 }, level = 1 },
{ config_id = 6012, gadget_id = 70220070, pos = { x = 65.082, y = 76.941, z = -85.685 }, rot = { x = 0.000, y = 179.310, z = 0.000 }, level = 1 },
{ config_id = 6013, gadget_id = 70220071, pos = { x = 62.867, y = 76.938, z = -85.720 }, rot = { x = 0.000, y = 179.310, z = 0.000 }, level = 1 },
{ config_id = 6014, gadget_id = 70220071, pos = { x = 62.812, y = 76.941, z = -76.457 }, rot = { x = 0.000, y = 359.145, z = 0.000 }, level = 1 },
{ config_id = 6015, gadget_id = 70220071, pos = { x = 64.016, y = 76.940, z = -74.795 }, rot = { x = 0.000, y = 94.352, z = 0.000 }, level = 1 },
{ config_id = 6016, gadget_id = 70220070, pos = { x = 63.923, y = 76.940, z = -87.048 }, rot = { x = 0.000, y = 87.147, z = 0.000 }, level = 1 },
{ config_id = 6017, gadget_id = 70220070, pos = { x = 45.532, y = 77.040, z = -77.762 }, rot = { x = 0.000, y = 62.093, z = 0.000 }, level = 1 },
{ config_id = 6018, gadget_id = 70220071, pos = { x = 44.398, y = 77.040, z = -84.062 }, rot = { x = 0.000, y = 149.947, z = 0.000 }, level = 1 },
{ config_id = 6019, gadget_id = 70220070, pos = { x = 34.563, y = 77.040, z = -78.389 }, rot = { x = 0.000, y = 68.653, z = 0.000 }, level = 1 },
{ config_id = 6020, gadget_id = 70220070, pos = { x = 36.059, y = 77.005, z = -83.523 }, rot = { x = 0.000, y = 114.012, z = 0.000 }, level = 1 },
{ config_id = 6023, gadget_id = 70290136, pos = { x = 68.016, y = 76.857, z = -81.334 }, rot = { x = 0.000, y = 270.175, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 6025, gadget_id = 70360001, pos = { x = 67.698, y = 78.287, z = -81.297 }, rot = { x = 0.000, y = 259.085, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 标记完成
{ config_id = 1006007, name = "QUEST_FINISH_6007", event = EventType.EVENT_QUEST_FINISH, source = "7226612", condition = "", action = "action_EVENT_QUEST_FINISH_6007", trigger_count = 0 },
{ config_id = 1006024, name = "GADGET_CREATE_6024", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_6024", action = "action_EVENT_GADGET_CREATE_6024", trigger_count = 0 },
{ config_id = 1006026, name = "SELECT_OPTION_6026", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_6026", action = "action_EVENT_SELECT_OPTION_6026", trigger_count = 0 },
{ config_id = 1006031, name = "MONSTER_BATTLE_6031", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "condition_EVENT_MONSTER_BATTLE_6031", action = "action_EVENT_MONSTER_BATTLE_6031", trigger_count = 0 },
{ config_id = 1006032, name = "ANY_MONSTER_DIE_6032", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6032", action = "action_EVENT_ANY_MONSTER_DIE_6032", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "quest", value = 0, no_refresh = true }
}
-- 废弃数据
garbages = {
regions = {
{ config_id = 6027, shape = RegionShape.CUBIC, size = { x = 2.000, y = 2.000, z = 10.000 }, pos = { x = 29.304, y = 77.040, z = -80.994 } }
},
triggers = {
{ config_id = 1006003, name = "GATHER_6003", event = EventType.EVENT_GATHER, source = "", condition = "condition_EVENT_GATHER_6003", action = "action_EVENT_GATHER_6003", trigger_count = 0 },
{ config_id = 1006006, name = "GATHER_6006", event = EventType.EVENT_GATHER, source = "", condition = "condition_EVENT_GATHER_6006", action = "action_EVENT_GATHER_6006", trigger_count = 0 },
{ config_id = 1006027, name = "ENTER_REGION_6027", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6027", action = "action_EVENT_ENTER_REGION_6027" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 4,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 6001, 6029 },
gadgets = { 6008, 6009, 6010, 6011, 6012, 6013, 6014, 6015, 6016, 6017, 6018, 6019, 6020, 6023, 6025 },
regions = { },
triggers = { "QUEST_FINISH_6007", "GADGET_CREATE_6024", "SELECT_OPTION_6026", "MONSTER_BATTLE_6031", "ANY_MONSTER_DIE_6032" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 6021, 6022 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_6032" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_6032" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 6008, 6009, 6010, 6011, 6012, 6013, 6014, 6015, 6016, 6017, 6018, 6019, 6020, 6023 },
regions = { },
triggers = { "QUEST_FINISH_6007", "GADGET_CREATE_6024", "SELECT_OPTION_6026", "MONSTER_BATTLE_6031", "ANY_MONSTER_DIE_6032" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_FINISH_6007(context, evt)
-- 将本组内变量名为 "quest" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "quest", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_6024(context, evt)
if 6025 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_6024(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240050006, 6025, {72}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_6026(context, evt)
-- 判断是gadgetid 6025 option_id 72
if 6025 ~= evt.param1 then
return false
end
if 72 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_6026(context, evt)
-- 删除指定group 240050006 ;指定config6025;物件身上指定option72
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240050006, 6025, 72) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 6023 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6023, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_MONSTER_BATTLE_6031(context, evt)
if 6001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_BATTLE_6031(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 240050006, 2)
-- 调用提示id为 500660231 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 500660231) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6032(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_6032(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "fin_7226621") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,89 @@
-- 基础信息
local base_info = {
group_id = 240050007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
{ config_id = 7005, npc_id = 20519, pos = { x = 23.988, y = 56.736, z = -81.725 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}
-- 装置
gadgets = {
{ config_id = 7002, gadget_id = 70710174, pos = { x = 27.521, y = 57.427, z = -87.624 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7003, gadget_id = 71700105, pos = { x = 20.351, y = 56.378, z = -86.823 }, rot = { x = 0.000, y = 58.607, z = 0.000 }, level = 1 },
{ config_id = 7004, gadget_id = 70710174, pos = { x = 20.995, y = 56.261, z = -87.681 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7006, gadget_id = 70710174, pos = { x = 27.412, y = 57.427, z = -87.988 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1007001, name = "QUEST_FINISH_7001", event = EventType.EVENT_QUEST_FINISH, source = "7226614", condition = "", action = "action_EVENT_QUEST_FINISH_7001", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7002, 7003, 7004, 7006 },
regions = { },
triggers = { "QUEST_FINISH_7001" },
npcs = { 7005 },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_FINISH_7001(context, evt)
-- 调用提示id为 500660227 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 500660227) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,182 @@
-- 基础信息
local base_info = {
group_id = 240050008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70360282, pos = { x = 3.161, y = 54.319, z = -73.669 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, route_id = 1, start_route = false, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1008002, name = "GADGET_STATE_CHANGE_8002", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_8002", action = "action_EVENT_GADGET_STATE_CHANGE_8002", trigger_count = 0 },
{ config_id = 1008003, name = "PLATFORM_REACH_POINT_8003", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_8003", action = "action_EVENT_PLATFORM_REACH_POINT_8003", trigger_count = 0 },
{ config_id = 1008004, name = "TIMER_EVENT_8004", event = EventType.EVENT_TIMER_EVENT, source = "time", condition = "", action = "action_EVENT_TIMER_EVENT_8004", trigger_count = 0 },
{ config_id = 1008005, name = "PLATFORM_REACH_POINT_8005", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_8005", action = "action_EVENT_PLATFORM_REACH_POINT_8005", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_8002", "PLATFORM_REACH_POINT_8003", "TIMER_EVENT_8004", "PLATFORM_REACH_POINT_8005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_8002(context, evt)
-- 检测config_id为8001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 8001 ~= 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_8002(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 8001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_8003(context, evt)
-- 判断是gadgetid 为 8001的移动平台,是否到达了1 的路线中的 1 点
if 8001 ~= 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_8003(context, evt)
-- 延迟2秒后,向groupId为:240050008的对象,请求一次调用,并将string参数:"time" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240050008, "time", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_8004(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 8001, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 8001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_8005(context, evt)
-- 判断是gadgetid 为 8001的移动平台,是否到达了2 的路线中的 1 点
if 8001 ~= 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_8005(context, evt)
-- 将configid为 8001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 8001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 8001, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
return 0
end
@@ -0,0 +1,244 @@
-- 基础信息
local base_info = {
group_id = 240050009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70350004, pos = { x = 23.455, y = 64.555, z = -65.245 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9002, gadget_id = 70360170, pos = { x = 25.683, y = 67.007, z = -65.462 }, rot = { x = 89.479, y = 33.825, z = 122.900 }, level = 1 },
{ config_id = 9004, gadget_id = 70360001, pos = { x = 26.031, y = 66.710, z = -65.426 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 创建时加载开门按钮
{ config_id = 1009003, name = "GADGET_CREATE_9003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_9003", action = "action_EVENT_GADGET_CREATE_9003", trigger_count = 0 },
-- open=1 加载关门
{ config_id = 1009005, name = "VARIABLE_CHANGE_9005", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_9005", action = "action_EVENT_VARIABLE_CHANGE_9005", trigger_count = 0 },
-- 点击后开门
{ config_id = 1009006, name = "SELECT_OPTION_9006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9006", action = "action_EVENT_SELECT_OPTION_9006", trigger_count = 0 },
-- 点击后关门
{ config_id = 1009007, name = "SELECT_OPTION_9007", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9007", action = "action_EVENT_SELECT_OPTION_9007", trigger_count = 0 },
-- open=0 加载开门
{ config_id = 1009008, name = "VARIABLE_CHANGE_9008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_9008", action = "action_EVENT_VARIABLE_CHANGE_9008", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "open", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001, 9002, 9004 },
regions = { },
triggers = { "GADGET_CREATE_9003", "VARIABLE_CHANGE_9005", "SELECT_OPTION_9006", "SELECT_OPTION_9007", "VARIABLE_CHANGE_9008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_9003(context, evt)
if 9004 ~= evt.param1 then
return false
end
-- 判断变量"open"为0
if ScriptLib.GetGroupVariableValue(context, "open") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_9003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240050009, 9004, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_9005(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"open"为1
if ScriptLib.GetGroupVariableValue(context, "open") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_9005(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240050009, 9004, {4}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9006(context, evt)
-- 判断是gadgetid 9004 option_id 1
if 9004 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9006(context, evt)
-- 将configid为 9001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 9002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 240050009 ;指定config9004;物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240050009, 9004, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将本组内变量名为 "open" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "open", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9007(context, evt)
-- 判断是gadgetid 9004 option_id 4
if 9004 ~= evt.param1 then
return false
end
if 4 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9007(context, evt)
-- 将configid为 9001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 9002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 240050009 ;指定config9004;物件身上指定option4
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240050009, 9004, 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将本组内变量名为 "open" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "open", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_9008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"open"为0
if ScriptLib.GetGroupVariableValue(context, "open") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_9008(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240050009, 9004, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,129 @@
-- 基础信息
local base_info = {
group_id = 240050010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 10001, monster_id = 25080301, pos = { x = 24.894, y = 65.722, z = -88.117 }, rot = { x = 0.000, y = 27.183, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1003 },
{ config_id = 10002, monster_id = 25080201, pos = { x = 24.959, y = 65.719, z = -79.116 }, rot = { x = 0.000, y = 190.751, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1004 },
{ config_id = 10004, monster_id = 23010101, pos = { x = 26.774, y = 65.722, z = -85.989 }, rot = { x = 0.000, y = 240.209, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 9011 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 10005, shape = RegionShape.CUBIC, size = { x = 20.000, y = 10.000, z = 20.000 }, pos = { x = 25.748, y = 66.394, z = -86.836 } }
}
-- 触发器
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", trigger_count = 0 },
{ config_id = 1010009, name = "MONSTER_BATTLE_10009", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "condition_EVENT_MONSTER_BATTLE_10009", action = "action_EVENT_MONSTER_BATTLE_10009" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 10005 },
triggers = { "ENTER_REGION_10005", "MONSTER_BATTLE_10009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 10001, 10002, 10004 },
gadgets = { },
regions = { },
triggers = { "MONSTER_BATTLE_10009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_10005(context, evt)
if evt.param1 ~= 10005 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_10005(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 240050010, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_MONSTER_BATTLE_10009(context, evt)
if 10002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_MONSTER_BATTLE_10009(context, evt)
-- 调用提示id为 500660224 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 500660224) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,239 @@
-- 基础信息
local base_info = {
group_id = 240050011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70360122, pos = { x = 23.605, y = 55.824, z = -81.717 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true, interact_id = 76 },
{ config_id = 11002, gadget_id = 70350293, pos = { x = 23.644, y = 55.850, z = -81.713 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, interact_id = 43, is_use_point_array = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1011003, name = "GADGET_STATE_CHANGE_11003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_11003", action = "action_EVENT_GADGET_STATE_CHANGE_11003", trigger_count = 0 },
{ config_id = 1011004, name = "GADGET_STATE_CHANGE_11004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_11004", action = "action_EVENT_GADGET_STATE_CHANGE_11004", trigger_count = 0 },
{ config_id = 1011005, name = "GADGET_STATE_CHANGE_11005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_11005", action = "action_EVENT_GADGET_STATE_CHANGE_11005", trigger_count = 0 },
{ config_id = 1011006, name = "TIME_AXIS_PASS_11006", event = EventType.EVENT_TIME_AXIS_PASS, source = "opendoor", condition = "condition_EVENT_TIME_AXIS_PASS_11006", action = "action_EVENT_TIME_AXIS_PASS_11006", trigger_count = 0 },
{ config_id = 1011007, name = "GROUP_LOAD_11007", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_11007", action = "action_EVENT_GROUP_LOAD_11007", trigger_count = 0 },
{ config_id = 1011008, name = "VARIABLE_CHANGE_11008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_11008", action = "action_EVENT_VARIABLE_CHANGE_11008", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "open", value = 0, no_refresh = true },
{ config_id = 2, name = "opendoor", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_11003", "GADGET_STATE_CHANGE_11004", "GADGET_STATE_CHANGE_11005", "TIME_AXIS_PASS_11006", "GROUP_LOAD_11007", "VARIABLE_CHANGE_11008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 11001, 11002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_11003", "GADGET_STATE_CHANGE_11004", "GADGET_STATE_CHANGE_11005", "TIME_AXIS_PASS_11006", "VARIABLE_CHANGE_11008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_11003(context, evt)
-- 检测config_id为11002的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 11002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"open"为1
if ScriptLib.GetGroupVariableValue(context, "open") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_11003(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 11002, 1, {1,2}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
-- 创建标识为"opendoor",时间节点为{3}的时间轴,false用于控制该时间轴是否循环
ScriptLib.InitTimeAxis(context, "opendoor", {3}, false)
-- 针对当前group内变量名为 "opendoor" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "opendoor", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_11004(context, evt)
if 11001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_11004(context, evt)
-- 将本组内变量名为 "open" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "open", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_11005(context, evt)
-- 检测config_id为11002的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 11002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
-- 判断变量"open"为0
if ScriptLib.GetGroupVariableValue(context, "open") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_11005(context, evt)
-- 调用提示id为 500660214 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 500660214) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIME_AXIS_PASS_11006(context, evt)
if "opendoor" ~= evt.source_name or 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIME_AXIS_PASS_11006(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "fin_7226615") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_11007(context, evt)
-- 判断变量"opendoor"为1
if ScriptLib.GetGroupVariableValue(context, "opendoor") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_11007(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "fin_7226615") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_11008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"open"为1
if ScriptLib.GetGroupVariableValue(context, "open") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_11008(context, evt)
-- 将configid为 11001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,229 @@
-- 基础信息
local base_info = {
group_id = 240050012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12001, gadget_id = 70290140, pos = { x = 25.706, y = 77.040, z = -80.978 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 12002, gadget_id = 70290145, pos = { x = 25.084, y = 83.196, z = -81.025 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 12003, gadget_id = 70290142, pos = { x = 25.484, y = 79.036, z = -81.027 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 12004, gadget_id = 70290144, pos = { x = 25.436, y = 78.569, z = -80.457 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 12005, gadget_id = 70290144, pos = { x = 25.437, y = 79.726, z = -81.029 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 12006, gadget_id = 70290143, pos = { x = 25.428, y = 78.589, z = -81.596 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 12007, gadget_id = 70360001, pos = { x = 25.639, y = 78.408, z = -81.309 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1012008, name = "TIMER_EVENT_12008", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_12008" },
{ config_id = 1012009, name = "GADGET_STATE_CHANGE_12009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_12009", action = "action_EVENT_GADGET_STATE_CHANGE_12009" },
{ config_id = 1012010, name = "GADGET_STATE_CHANGE_12010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_12010", action = "action_EVENT_GADGET_STATE_CHANGE_12010" },
{ config_id = 1012011, name = "GADGET_STATE_CHANGE_12011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_12011", action = "action_EVENT_GADGET_STATE_CHANGE_12011" },
{ config_id = 1012012, name = "SELECT_OPTION_12012", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_12012", action = "action_EVENT_SELECT_OPTION_12012" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 12001, 12002, 12003, 12004, 12005, 12006, 12007 },
regions = { },
triggers = { "TIMER_EVENT_12008", "GADGET_STATE_CHANGE_12009", "GADGET_STATE_CHANGE_12010", "GADGET_STATE_CHANGE_12011", "SELECT_OPTION_12012" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_TIMER_EVENT_12008(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 240050012, 12007, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组240050012中, configid为12003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240050012, 12003, 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_12009(context, evt)
-- 检测config_id为12001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 12001 ~= 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_12009(context, evt)
-- 改变指定group组240050012中, configid为12004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240050012, 12004, 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_12010(context, evt)
-- 检测config_id为12001的gadget是否从GadgetState.GearStart变为GadgetState.GearStop
if 12001 ~= 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_12010(context, evt)
-- 改变指定group组240050012中, configid为12005的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240050012, 12005, 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_12011(context, evt)
-- 检测config_id为12001的gadget是否从GadgetState.GearStop变为GadgetState.GearAction1
if 12001 ~= 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_12011(context, evt)
-- 改变指定group组240050012中, configid为12006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240050012, 12006, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟1秒后,向groupId为:240050012的对象,请求一次调用,并将string参数:"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 240050012, "time1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_12012(context, evt)
-- 判断是gadgetid 12007 option_id 1
if 12007 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_12012(context, evt)
-- 改变指定group组240050012中, configid为12001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 240050012, 12001, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 12003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 12006 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 12004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 12005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 删除指定group 240050012 ;指定config12007;物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 240050012, 12007, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 240050013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13001, gadget_id = 70210101, pos = { x = 19.480, y = 77.761, z = -93.139 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜武器稻妻", isOneoff = true, persistent = true },
{ config_id = 13003, gadget_id = 70210101, pos = { x = 12.450, y = 78.004, z = -96.205 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜武器稻妻", isOneoff = true, persistent = true },
{ config_id = 13004, gadget_id = 70210101, pos = { x = 14.419, y = 77.094, z = -94.760 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜人文稻妻", isOneoff = true, persistent = true },
{ config_id = 13006, gadget_id = 70210101, pos = { x = 7.748, y = 72.098, z = -75.045 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜人文稻妻", isOneoff = true, persistent = true },
{ config_id = 13007, gadget_id = 70210101, pos = { x = 7.619, y = 71.107, z = -68.325 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜人文稻妻", isOneoff = true, persistent = true },
{ config_id = 13009, gadget_id = 70210101, pos = { x = 9.067, y = 66.858, z = -66.750 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜武器稻妻", isOneoff = true, persistent = true },
{ config_id = 13010, gadget_id = 70210101, pos = { x = 7.022, y = 66.717, z = -72.122 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜人文稻妻", isOneoff = true, persistent = true },
{ config_id = 13011, gadget_id = 70210101, pos = { x = 2.918, y = 65.184, z = -79.891 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜人文稻妻", isOneoff = true, persistent = true },
{ config_id = 13012, gadget_id = 70210101, pos = { x = 4.577, y = 65.184, z = -79.061 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜武器稻妻", isOneoff = true, persistent = true },
{ config_id = 13014, gadget_id = 70210101, pos = { x = 7.985, y = 55.744, z = -67.395 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜果蔬稻妻", isOneoff = true, persistent = true },
{ config_id = 13016, gadget_id = 70210101, pos = { x = 17.187, y = 55.729, z = -67.972 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜果蔬稻妻", isOneoff = true, persistent = true },
{ config_id = 13017, gadget_id = 70210101, pos = { x = 8.758, y = 72.196, z = -80.092 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜人文稻妻", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
gadgets = {
{ config_id = 13002, gadget_id = 70210101, pos = { x = 13.687, y = 78.505, z = -95.041 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜人文稻妻", isOneoff = true, persistent = true },
{ config_id = 13005, gadget_id = 70210101, pos = { x = 13.801, y = 77.133, z = -95.131 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜人文稻妻", isOneoff = true, persistent = true },
{ config_id = 13008, gadget_id = 70210101, pos = { x = 8.931, y = 66.775, z = -68.226 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜人文稻妻", isOneoff = true, persistent = true },
{ config_id = 13013, gadget_id = 70210101, pos = { x = 12.913, y = 55.743, z = -67.582 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜人文稻妻", isOneoff = true, persistent = true },
{ config_id = 13015, gadget_id = 70210101, pos = { x = 16.866, y = 55.728, z = -67.556 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "搜刮点解谜人文稻妻", isOneoff = true, persistent = true },
{ config_id = 13018, gadget_id = 70210101, pos = { x = 7.716, y = 72.247, z = -78.276 }, rot = { x = 0.000, y = 0.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 = { 13001, 13003, 13004, 13006, 13007, 13009, 13010, 13011, 13012, 13014, 13016, 13017 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,104 @@
-- 基础信息
local base_info = {
group_id = 240050014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 14001, monster_id = 25080101, pos = { x = 19.908, y = 77.026, z = -77.128 }, rot = { x = 0.000, y = 173.102, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 14002, monster_id = 25080201, pos = { x = 15.811, y = 77.131, z = -94.330 }, rot = { x = 0.000, y = 339.264, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1004 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 14003, shape = RegionShape.SPHERE, radius = 3, pos = { x = 2.909, y = 70.681, z = -73.422 } }
}
-- 触发器
triggers = {
{ config_id = 1014003, name = "ENTER_REGION_14003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14003", action = "action_EVENT_ENTER_REGION_14003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 14003 },
triggers = { "ENTER_REGION_14003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_14003(context, evt)
if evt.param1 ~= 14003 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_14003(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 14001, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 14002, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,136 @@
-- 基础信息
local base_info = {
group_id = 240050015
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 15001, monster_id = 25080201, pos = { x = 24.486, y = 55.411, z = -67.846 }, rot = { x = 0.000, y = 202.408, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, pose_id = 1 },
{ config_id = 15002, monster_id = 23010501, pos = { x = 13.472, y = 54.600, z = -74.345 }, rot = { x = 0.000, y = 76.916, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 15003, shape = RegionShape.CUBIC, size = { x = 5.000, y = 5.000, z = 5.000 }, pos = { x = 23.211, y = 61.416, z = -68.502 } }
}
-- 触发器
triggers = {
{ 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" },
{ config_id = 1015004, name = "ANY_MONSTER_DIE_15004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_15004", action = "action_EVENT_ANY_MONSTER_DIE_15004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 15003 },
triggers = { "ENTER_REGION_15003", "ANY_MONSTER_DIE_15004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_15003(context, evt)
if evt.param1 ~= 15003 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_15003(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 15001, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 15002, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_15004(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_15004(context, evt)
-- 触发镜头注目,注目位置为坐标{x=23.8464, y=57.15248, z=-81.48334},持续时间为2秒,并且为强制注目形式,不广播其他玩家
local pos = {x=23.8464, y=57.15248, z=-81.48334}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = true, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 调用提示id为 500660226 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 500660226) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,92 @@
-- 基础信息
local base_info = {
group_id = 240050016
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 16001, gadget_id = 70290135, pos = { x = 11.907, y = 71.280, z = -88.940 }, rot = { x = 0.000, y = 4.685, z = 0.000 }, level = 1 },
{ config_id = 16002, gadget_id = 70290135, pos = { x = 11.973, y = 71.286, z = -86.451 }, rot = { x = 0.000, y = 355.420, z = 0.000 }, level = 1 },
{ config_id = 16003, gadget_id = 70290135, pos = { x = 12.013, y = 71.286, z = -83.779 }, rot = { x = 0.000, y = 351.374, z = 0.000 }, level = 1 },
{ config_id = 16004, gadget_id = 70290135, pos = { x = 11.915, y = 71.279, z = -81.022 }, rot = { x = 0.000, y = 351.374, z = 0.000 }, level = 1 },
{ config_id = 16005, gadget_id = 70290135, pos = { x = 11.172, y = 71.286, z = -77.904 }, rot = { x = 0.000, y = 352.846, z = 0.000 }, level = 1 },
{ config_id = 16006, gadget_id = 70290135, pos = { x = 10.822, y = 71.054, z = -75.054 }, rot = { x = 0.000, y = 9.406, z = 0.000 }, level = 1 },
{ config_id = 16007, gadget_id = 70290135, pos = { x = 11.977, y = 71.054, z = -71.728 }, rot = { x = 0.000, y = 28.142, z = 0.000 }, level = 1 },
{ config_id = 16008, gadget_id = 70290135, pos = { x = 13.337, y = 71.054, z = -69.651 }, rot = { x = 0.000, y = 40.273, z = 0.000 }, level = 1 },
{ config_id = 16009, gadget_id = 70290135, pos = { x = 16.416, y = 70.779, z = -67.691 }, rot = { x = 79.085, y = 135.199, z = 47.169 }, level = 1 },
{ config_id = 16010, gadget_id = 70290135, pos = { x = 16.785, y = 69.000, z = -67.909 }, rot = { x = 75.266, y = 148.359, z = 60.655 }, level = 1 },
{ config_id = 16011, gadget_id = 70290135, pos = { x = 17.202, y = 65.152, z = -67.635 }, rot = { x = 0.000, y = 107.627, z = 0.000 }, level = 1 },
{ config_id = 16012, gadget_id = 70290135, pos = { x = 19.221, y = 65.152, z = -68.046 }, rot = { x = 0.000, y = 113.494, z = 0.000 }, level = 1 },
{ config_id = 16013, gadget_id = 70290135, pos = { x = 20.925, y = 64.692, z = -68.126 }, rot = { x = 86.881, y = 267.052, z = 178.404 }, level = 1 },
{ config_id = 16014, gadget_id = 70290135, pos = { x = 20.943, y = 62.311, z = -68.075 }, rot = { x = 77.407, y = 194.437, z = 105.460 }, level = 1 },
{ config_id = 16015, gadget_id = 70290135, pos = { x = 20.901, y = 60.401, z = -68.026 }, rot = { x = 66.275, y = 187.765, z = 98.471 }, level = 1 },
{ config_id = 16016, gadget_id = 70290135, pos = { x = 21.810, y = 55.413, z = -70.597 }, rot = { x = 1.924, y = 159.538, z = 3.105 }, level = 1 },
{ config_id = 16017, gadget_id = 70290135, pos = { x = 23.011, y = 55.411, z = -73.391 }, rot = { x = 1.924, y = 182.966, z = 3.105 }, level = 1 },
{ config_id = 16018, gadget_id = 70290135, pos = { x = 23.530, y = 55.405, z = -75.954 }, rot = { x = 2.225, y = 175.637, z = 6.988 }, level = 1 },
{ config_id = 16019, gadget_id = 70290135, pos = { x = 23.757, y = 55.411, z = -78.322 }, rot = { x = 2.225, y = 187.728, z = 6.988 }, level = 1 },
{ config_id = 16020, gadget_id = 70290135, pos = { x = 23.943, y = 55.876, z = -80.627 }, rot = { x = 339.044, y = 182.465, z = 6.017 }, level = 1 },
{ config_id = 16021, gadget_id = 70290135, pos = { x = 23.430, y = 56.224, z = -84.507 }, rot = { x = 355.936, y = 220.130, z = 5.513 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 16001, 16002, 16003, 16004, 16005, 16006, 16007, 16008, 16009, 16010, 16011, 16012, 16013, 16014, 16015, 16016, 16017, 16018, 16019, 16020, 16021 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,8 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {},
"transRadius": 0.0
}
@@ -0,0 +1,53 @@
[
{
"pointArrayId": 1,
"platformPointList": [
{
"pointId": 1,
"position": {
"x": 23.64352,
"y": 55.84979,
"z": -81.71347
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
},
{
"pointId": 2,
"position": {
"x": 11.6310148,
"y": 55.84979,
"z": -81.71347
},
"rotation": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"velocity": 0.0,
"time": 1.0,
"isReachEvent": true,
"rotAxis": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotSpeed": 0.0,
"arriveRange": 2.0
}
]
}
]