添加配置表

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 = -55.390, y = 252.130, z = -98.900 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -620,
city_id = 2,
vision_anchor = { x = -1000.0, z = -1000.0 }
}
-- 所有的区块
blocks = { 50066 }
-- 所有的区块范围坐标
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,121 @@
{
"sceneId": 50066,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "OneWay",
"rotType": "ROT_ROUND",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -84.43812,
"y": -572.639,
"z": -176.731186
},
"waitTime": 0.0,
"targetVelocity": 4.5,
"rotRoundReachDir": {
"x": 2.617013,
"y": 168.727051,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 2.617013,
"y": 168.727051,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": -79.37479,
"y": -573.8229,
"z": -202.1331
},
"waitTime": 0.0,
"targetVelocity": 4.5,
"rotRoundReachDir": {
"x": 2.617013,
"y": 168.727051,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 2.617013,
"y": 168.727051,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": -79.1795044,
"y": -573.8685,
"z": -203.1128
},
"waitTime": 0.0,
"targetVelocity": 4.5,
"rotRoundReachDir": {
"x": 0.0310455021,
"y": 153.940933,
"z": 4.16881724E-10
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0310455021,
"y": 153.940933,
"z": 4.16881724E-10
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": -71.3055344,
"y": -573.878235,
"z": -219.214676
},
"waitTime": 0.0,
"targetVelocity": 4.5,
"rotRoundReachDir": {
"x": 0.0310455021,
"y": 153.940933,
"z": 4.16881724E-10
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0310455021,
"y": 153.940933,
"z": 4.16881724E-10
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": -70.8662338,
"y": -573.8788,
"z": -220.113022
},
"waitTime": 0.0,
"targetVelocity": 4.5,
"rotRoundReachDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundWaitRounds": 0,
"reachStop": true
}
]
}
]
}
@@ -0,0 +1,8 @@
-- 所有的group
groups = {
{ id = 250066001, pos = { x = -48.524, y = 248.058, z = 29.040 } },
{ id = 250066002, pos = { x = -51.169, y = 248.083, z = -23.085 } },
{ id = 250066003, pos = { x = -35.388, y = -124.929, z = -31.379 } },
{ id = 250066004, pos = { x = -72.114, y = -571.808, z = -156.300 } },
{ id = 250066005, pos = { x = -71.835, y = -573.779, z = -226.184 } }
}
@@ -0,0 +1,7 @@
dummy_points = {
["Q11013DungeonEndShenhe"] = { pos = { x = -70.617, y = -573.877, z = -245.867 }, rot = { x = 0.000, y = 175.828, z = 0.000 } },
["Q11013DungeonLevel1Shenhe"] = { pos = { x = -50.237, y = 248.041, z = -29.064 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11013DungeonLevel2Shenhe"] = { pos = { x = -34.835, y = -124.962, z = -36.614 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q11013DungeonLevel3Shenhe"] = { pos = { x = -70.921, y = -571.837, z = -151.933 }, rot = { x = 0.000, y = 212.214, z = 0.000 } },
["Q11013DungeonStartShenhe"] = { pos = { x = -57.081, y = 251.100, z = -100.626 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}
@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 250066001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70380016, pos = { x = -161.133, y = 246.100, z = 105.310 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1002, gadget_id = 70380016, pos = { x = -56.733, y = 246.100, z = -100.143 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1003, gadget_id = 70380016, pos = { x = 26.447, y = 246.100, z = 107.656 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1001, 1002, 1003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,227 @@
-- 基础信息
local base_info = {
group_id = 250066002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70330019, pos = { x = -52.412, y = 247.203, z = -48.847 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 2002, gadget_id = 70330019, pos = { x = -74.119, y = 247.179, z = -13.033 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 2003, gadget_id = 70330019, pos = { x = -29.337, y = 247.391, z = -12.940 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 2004, gadget_id = 70330021, pos = { x = -49.202, y = 247.293, z = -48.603 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 2005, gadget_id = 70330021, pos = { x = -73.498, y = 247.248, z = -10.903 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 2006, gadget_id = 70330021, pos = { x = -26.904, y = 247.342, z = -14.802 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 2011, gadget_id = 70900039, pos = { x = -51.712, y = 248.085, z = -23.202 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop, persistent = true },
{ config_id = 2013, gadget_id = 70900201, pos = { x = -51.441, y = 248.735, z = -23.556 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1002007, name = "GADGET_STATE_CHANGE_2007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2007", action = "action_EVENT_GADGET_STATE_CHANGE_2007", trigger_count = 0 },
{ config_id = 1002008, name = "GADGET_STATE_CHANGE_2008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2008", action = "action_EVENT_GADGET_STATE_CHANGE_2008", trigger_count = 0 },
{ config_id = 1002009, name = "GADGET_STATE_CHANGE_2009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2009", action = "action_EVENT_GADGET_STATE_CHANGE_2009", trigger_count = 0 },
{ config_id = 1002010, name = "VARIABLE_CHANGE_2010", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_2010", action = "action_EVENT_VARIABLE_CHANGE_2010" },
{ config_id = 1002012, name = "GADGET_STATE_CHANGE_2012", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_2012", action = "action_EVENT_GADGET_STATE_CHANGE_2012" }
}
-- 变量
variables = {
{ config_id = 1, name = "box1", value = 0, no_refresh = false },
{ config_id = 2, name = "box2", value = 0, no_refresh = false },
{ config_id = 3, name = "box3", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2003, 2004, 2005, 2006, 2011, 2013 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_2007", "GADGET_STATE_CHANGE_2008", "GADGET_STATE_CHANGE_2009", "VARIABLE_CHANGE_2010", "GADGET_STATE_CHANGE_2012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2007(context, evt)
if 2001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2007(context, evt)
-- 将本组内变量名为 "box1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "box1", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2008(context, evt)
if 2002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2008(context, evt)
-- 将本组内变量名为 "box2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "box2", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2009(context, evt)
if 2003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2009(context, evt)
-- 将本组内变量名为 "box3" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "box3", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_2010(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"box1"为1
if ScriptLib.GetGroupVariableValue(context, "box1") ~= 1 then
return false
end
-- 判断变量"box2"为1
if ScriptLib.GetGroupVariableValue(context, "box2") ~= 1 then
return false
end
-- 判断变量"box3"为1
if ScriptLib.GetGroupVariableValue(context, "box3") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_2010(context, evt)
-- 将configid为 2011 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2011, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2500660021") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_2012(context, evt)
if 2011 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_2012(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2500660022") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250066002, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250066003, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,141 @@
-- 基础信息
local base_info = {
group_id = 250066003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70900039, pos = { x = -35.737, y = -124.927, z = -30.839 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3002, gadget_id = 70710199, pos = { x = -28.333, y = -124.573, z = -30.545 }, rot = { x = 0.000, y = 3.507, z = 0.000 }, level = 1 },
{ config_id = 3004, gadget_id = 70900201, pos = { x = -36.002, y = -124.764, z = -31.266 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3005, shape = RegionShape.SPHERE, radius = 35, pos = { x = -35.164, y = -124.936, z = -31.060 } }
}
-- 触发器
triggers = {
{ config_id = 1003003, name = "GADGET_STATE_CHANGE_3003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_3003", action = "action_EVENT_GADGET_STATE_CHANGE_3003" },
{ config_id = 1003005, name = "ENTER_REGION_3005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3005", action = "action_EVENT_ENTER_REGION_3005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3004 },
regions = { 3005 },
triggers = { "GADGET_STATE_CHANGE_3003", "ENTER_REGION_3005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_3003(context, evt)
if 3001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_3003(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2500660032") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250066003, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250066004, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_3005(context, evt)
if evt.param1 ~= 3005 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_3005(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2500660031") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,165 @@
-- 基础信息
local base_info = {
group_id = 250066004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4001, gadget_id = 70900039, pos = { x = -72.103, y = -571.809, z = -156.417 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4003, gadget_id = 70900201, pos = { x = -72.724, y = -571.667, z = -156.891 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 4004, shape = RegionShape.CUBIC, size = { x = 50.000, y = 20.000, z = 50.000 }, pos = { x = -36.144, y = -576.322, z = -33.774 } },
{ config_id = 4005, shape = RegionShape.SPHERE, radius = 15, pos = { x = -70.398, y = -571.819, z = -156.437 } }
}
-- 触发器
triggers = {
{ config_id = 1004002, name = "GADGET_STATE_CHANGE_4002", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_4002", action = "action_EVENT_GADGET_STATE_CHANGE_4002" },
{ config_id = 1004004, name = "ENTER_REGION_4004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4004", action = "action_EVENT_ENTER_REGION_4004" },
{ config_id = 1004005, name = "ENTER_REGION_4005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4005", action = "action_EVENT_ENTER_REGION_4005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 4001, 4003 },
regions = { 4004, 4005 },
triggers = { "GADGET_STATE_CHANGE_4002", "ENTER_REGION_4004", "ENTER_REGION_4005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_4002(context, evt)
if 4001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_4002(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2500660043") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 250066005, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 250066004, EntityType.GADGET, 4003 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4004(context, evt)
if evt.param1 ~= 4004 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_4004(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2500660041") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4005(context, evt)
if evt.param1 ~= 4005 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_4005(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2500660042") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
@@ -0,0 +1,117 @@
-- 基础信息
local base_info = {
group_id = 250066005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70710010, pos = { x = -84.611, y = -572.638, z = -176.351 }, rot = { x = 0.000, y = 175.667, z = 0.000 }, level = 1, route_id = 1, start_route = false },
{ config_id = 5002, gadget_id = 70710010, pos = { x = -63.837, y = -573.893, z = -233.608 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 1, start_route = false },
{ config_id = 5003, gadget_id = 70710006, pos = { x = -64.187, y = -573.892, z = -232.927 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 5004, gadget_id = 70710006, pos = { x = -70.840, y = -573.893, z = -220.469 }, rot = { x = 0.000, y = 175.848, z = 0.000 }, level = 1 },
{ config_id = 5005, gadget_id = 70220024, pos = { x = -71.127, y = -573.839, z = -293.588 }, rot = { x = 0.000, y = 184.165, z = 0.000 }, level = 1 },
{ config_id = 5007, gadget_id = 70900201, pos = { x = -68.960, y = -573.877, z = -246.629 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 5006, shape = RegionShape.SPHERE, radius = 35, pos = { x = -69.710, y = -572.709, z = -275.110 } }
}
-- 触发器
triggers = {
{ config_id = 1005006, name = "ENTER_REGION_5006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5006", action = "action_EVENT_ENTER_REGION_5006", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 5001, 5002, 5003, 5004, 5005, 5007 },
regions = { 5006 },
triggers = { "ENTER_REGION_5006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_5006(context, evt)
if evt.param1 ~= 5006 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_5006(context, evt)
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "2500660051") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 250066005, EntityType.GADGET, 5007 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
@@ -0,0 +1,8 @@
{
"areas": {},
"doors": {},
"entities": {},
"forces": {},
"points": {},
"transRadius": 0.0
}