添加配置表

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

View File

@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -3767.5, z = -3015.0 },
size = { x = 8247.4, z = 7459.5 },
born_pos = { x = -20.825, y = -8.000, z = 97.825 },
born_rot = { x = 0.000, y = 270.000, z = 0.000 },
die_y = -40,
city_id = 1,
vision_anchor = { x = -3767.5, z = -3015.0 }
}
-- 所有的区块
blocks = { 20103 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -3767.5, z = -3015.0 }, max = { x = 4479.9, z = 4444.5 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }

View File

@@ -0,0 +1,79 @@
{
"sceneId": 20103,
"routes": [
{
"localId": 1,
"name": "Route_001",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -133.634735,
"y": -12.495265,
"z": 124.203484
},
"waitTime": 2.0,
"speedLevel": 1
},
{
"pos": {
"x": -129.23761,
"y": -12.495265,
"z": 120.072708
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": -123.961815,
"y": -12.495265,
"z": 118.87944
},
"waitTime": 2.0,
"speedLevel": 1
}
]
},
{
"localId": 2,
"name": "Route_002",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -81.42512,
"y": -15.57714,
"z": 126.4987
},
"waitTime": 2.0,
"speedLevel": 1
},
{
"pos": {
"x": -84.90315,
"y": -15.5158062,
"z": 123.749054
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": -76.85477,
"y": -15.4741058,
"z": 123.79557
},
"waitTime": 2.0,
"speedLevel": 1
}
]
}
]
}

View File

@@ -0,0 +1,7 @@
-- 所有的group
groups = {
{ id = 220103001, refresh_id = 1001, pos = { x = -25.236, y = -7.914, z = 98.159 } },
{ id = 220103002, refresh_id = 1002, pos = { x = -118.293, y = -12.170, z = 129.631 } },
{ id = 220103003, refresh_id = 999999, pos = { x = -86.977, y = -15.484, z = 118.634 } },
{ id = 220103004, refresh_id = 999999, pos = { x = -149.054, y = 18.016, z = 44.824 } }
}

View File

@@ -0,0 +1,4 @@
dummy_points = {
["Q1800017daiyin"] = { pos = { x = -150.177, y = 18.016, z = 43.320 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q1800017paimon"] = { pos = { x = -151.288, y = 18.016, z = 45.024 }, rot = { x = 0.000, y = 117.293, z = 0.000 } }
}

View File

@@ -0,0 +1,224 @@
-- 基础信息
local base_info = {
group_id = 220103001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1008, monster_id = 21010101, pos = { x = -53.208, y = -8.094, z = 100.026 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 9015 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1001, gadget_id = 70360002, pos = { x = -30.792, y = -7.983, z = 94.561 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1002, gadget_id = 70900202, pos = { x = -30.792, y = -6.610, z = 94.561 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1003, gadget_id = 70350003, pos = { x = -34.772, y = -8.103, z = 97.992 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1006, gadget_id = 70220007, pos = { x = -55.082, y = -8.140, z = 100.382 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1007, gadget_id = 70211111, pos = { x = -57.298, y = -8.095, z = 100.219 }, rot = { x = 0.000, y = 65.000, z = 0.000 }, level = 6, drop_tag = "解谜中级蒙德", isOneoff = true, persistent = true },
{ config_id = 1009, gadget_id = 70220013, pos = { x = -49.207, y = -7.984, z = 85.149 }, rot = { x = 0.000, y = 35.000, z = 0.000 }, level = 1 },
{ config_id = 1010, gadget_id = 70220013, pos = { x = -51.316, y = -7.984, z = 85.224 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1012, gadget_id = 70220026, pos = { x = -47.174, y = -7.984, z = 85.062 }, rot = { x = 0.000, y = 165.000, z = 0.000 }, level = 1 },
{ config_id = 1013, gadget_id = 70220025, pos = { x = -42.021, y = -7.938, z = 91.364 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1014, gadget_id = 70220025, pos = { x = -43.319, y = -7.923, z = 90.052 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1015, gadget_id = 70900205, pos = { x = -62.503, y = -28.519, z = 114.537 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1016, gadget_id = 70220005, pos = { x = -53.627, y = -7.983, z = 104.693 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1017, gadget_id = 70220005, pos = { x = -52.878, y = -7.984, z = 105.549 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1019, gadget_id = 70900201, pos = { x = -61.989, y = -6.169, z = 90.201 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1021, gadget_id = 70900201, pos = { x = -77.826, y = -7.083, z = 102.120 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1018, shape = RegionShape.CUBIC, size = { x = 10.000, y = 20.000, z = 20.000 }, pos = { x = -29.063, y = -4.557, z = 98.900 } },
{ config_id = 1020, shape = RegionShape.CUBIC, size = { x = 5.000, y = 20.000, z = 30.000 }, pos = { x = -63.554, y = -6.705, z = 97.164 } }
}
-- 触发器
triggers = {
{ config_id = 1001004, name = "GADGET_CREATE_1004", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1004", action = "action_EVENT_GADGET_CREATE_1004" },
{ config_id = 1001005, name = "SELECT_OPTION_1005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_1005", action = "action_EVENT_SELECT_OPTION_1005" },
{ 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" },
{ config_id = 1001020, name = "ENTER_REGION_1020", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1020", action = "action_EVENT_ENTER_REGION_1020" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1008 },
gadgets = { 1001, 1002, 1003, 1006, 1007, 1009, 1010, 1012, 1013, 1014, 1015, 1016, 1017 },
regions = { 1018 },
triggers = { "GADGET_CREATE_1004", "SELECT_OPTION_1005", "ENTER_REGION_1018" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 1015, 1019 },
regions = { 1020 },
triggers = { "ENTER_REGION_1020" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1004(context, evt)
if 1001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1004(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220103001, 1001, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_1005(context, evt)
-- 判断是gadgetid 1001 option_id 1
if 1001 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_1005(context, evt)
-- 改变指定group组220103001中 configid为1003的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220103001, 1003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 220103001 指定config1001物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220103001, 1001, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 改变指定group组220103001中 configid为1001的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220103001, 1001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220103001, 2)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220103001, EntityType.GADGET, 1002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
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
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_1018(context, evt)
-- 调用提示id为 201030101 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 201030101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_1020(context, evt)
if evt.param1 ~= 1020 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_1020(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220103001, monsters = {}, gadgets = {1019} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创建id为1021的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1021 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220103002, 2)
return 0
end

View File

@@ -0,0 +1,294 @@
-- 基础信息
local base_info = {
group_id = 220103002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2004, monster_id = 21011001, pos = { x = -86.345, y = -15.484, z = 110.679 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 2005, monster_id = 21010901, pos = { x = -75.489, y = -15.484, z = 110.611 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 2006, monster_id = 21010502, pos = { x = -81.425, y = -15.577, z = 126.499 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 32 },
{ config_id = 2011, monster_id = 21010701, pos = { x = -88.250, y = -15.483, z = 115.363 }, rot = { x = 0.000, y = 60.000, z = 0.000 }, level = 1 },
{ config_id = 2012, monster_id = 21010701, pos = { x = -74.194, y = -15.483, z = 117.713 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 2013, monster_id = 21020201, pos = { x = -88.654, y = -15.498, z = 125.424 }, rot = { x = 0.000, y = 150.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2002, gadget_id = 70211111, pos = { x = -91.910, y = -15.497, z = 99.314 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 6, drop_tag = "解谜中级蒙德", isOneoff = true, persistent = true },
{ config_id = 2003, gadget_id = 70220013, pos = { x = -92.710, y = -15.483, z = 101.221 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2007, gadget_id = 70900202, pos = { x = -81.369, y = -13.968, z = 117.829 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 2009, gadget_id = 70350003, pos = { x = -103.011, y = -12.495, z = 125.732 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 2010, gadget_id = 70900201, pos = { x = -123.964, y = -11.467, z = 128.077 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2016, gadget_id = 70900205, pos = { x = -62.760, y = -28.142, z = 126.794 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2017, gadget_id = 70220026, pos = { x = -71.348, y = -15.484, z = 106.273 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2018, gadget_id = 70220025, pos = { x = -72.762, y = -15.416, z = 105.968 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2019, gadget_id = 70220025, pos = { x = -71.703, y = -15.412, z = 107.846 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2020, gadget_id = 70360002, pos = { x = -81.369, y = -15.397, z = 117.829 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 2021, gadget_id = 70220025, pos = { x = -75.166, y = -15.390, z = 104.259 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2022, gadget_id = 70220035, pos = { x = -90.280, y = -15.517, z = 105.310 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1 },
{ config_id = 2023, gadget_id = 70220035, pos = { x = -90.915, y = -15.570, z = 106.224 }, rot = { x = 0.000, y = 60.000, z = 0.000 }, level = 1 },
{ config_id = 2024, gadget_id = 70220014, pos = { x = -93.705, y = -15.594, z = 109.918 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2025, gadget_id = 70220014, pos = { x = -93.702, y = -15.541, z = 111.176 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2026, gadget_id = 70220026, pos = { x = -78.403, y = -15.483, z = 131.184 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2027, gadget_id = 70220013, pos = { x = -71.630, y = -15.484, z = 104.472 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2028, gadget_id = 70220013, pos = { x = -73.487, y = -15.484, z = 104.430 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2029, gadget_id = 70310001, pos = { x = -81.557, y = -15.571, z = 104.939 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2030, gadget_id = 70220013, pos = { x = -76.913, y = -15.465, z = 130.133 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2031, gadget_id = 70310001, pos = { x = -82.173, y = -15.569, z = 130.757 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2032, gadget_id = 70220013, pos = { x = -90.668, y = -15.483, z = 101.298 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2033, gadget_id = 70310001, pos = { x = -71.642, y = -15.472, z = 120.464 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2034, gadget_id = 70310001, pos = { x = -71.567, y = -15.500, z = 113.044 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2035, gadget_id = 70220015, pos = { x = -71.347, y = -15.183, z = 126.176 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1 },
{ config_id = 2036, gadget_id = 70220015, pos = { x = -71.385, y = -15.137, z = 125.334 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1 },
{ config_id = 2037, gadget_id = 70220015, pos = { x = -71.397, y = -15.173, z = 124.477 }, rot = { x = 0.000, y = 0.000, z = 90.000 }, level = 1 },
{ config_id = 2038, gadget_id = 70211101, pos = { x = -73.613, y = -15.583, z = 128.694 }, rot = { x = 0.000, y = 215.000, z = 0.000 }, level = 6, drop_tag = "解谜低级蒙德", isOneoff = true, persistent = true },
{ config_id = 2039, gadget_id = 70310001, pos = { x = -92.309, y = -15.606, z = 115.759 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2040, gadget_id = 70220025, pos = { x = -80.926, y = -15.429, z = 109.085 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2041, gadget_id = 70220025, pos = { x = -84.213, y = -15.340, z = 117.918 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2042, gadget_id = 70220025, pos = { x = -73.848, y = -15.421, z = 117.388 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2043, gadget_id = 70220025, pos = { x = -88.377, y = -15.429, z = 115.316 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2044, gadget_id = 70220025, pos = { x = -88.434, y = -15.424, z = 125.453 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2047, gadget_id = 70220025, pos = { x = -81.359, y = -15.333, z = 115.112 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 2001, shape = RegionShape.CUBIC, size = { x = 25.000, y = 10.000, z = 30.000 }, pos = { x = -82.465, y = -12.172, z = 118.110 } }
}
-- 触发器
triggers = {
{ config_id = 1002001, name = "ENTER_REGION_2001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_2001", action = "action_EVENT_ENTER_REGION_2001" },
{ config_id = 1002008, name = "TIMER_EVENT_2008", event = EventType.EVENT_TIMER_EVENT, source = "monster", condition = "", action = "action_EVENT_TIMER_EVENT_2008" },
{ config_id = 1002014, name = "ANY_MONSTER_DIE_2014", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_2014", action = "action_EVENT_ANY_MONSTER_DIE_2014" },
{ config_id = 1002015, name = "SELECT_OPTION_2015", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_2015", action = "action_EVENT_SELECT_OPTION_2015" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2002, 2003, 2009, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023, 2024, 2025, 2026, 2027, 2028, 2029, 2030, 2031, 2032, 2033, 2034, 2035, 2036, 2037, 2038, 2039, 2040, 2041, 2042, 2043, 2044, 2047 },
regions = { 2001 },
triggers = { "ENTER_REGION_2001", "TIMER_EVENT_2008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 2004, 2005, 2006 },
gadgets = { 2016 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 2011, 2012, 2013 },
gadgets = { 2016 },
regions = { },
triggers = { "ANY_MONSTER_DIE_2014", "SELECT_OPTION_2015" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_2001(context, evt)
if evt.param1 ~= 2001 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_2001(context, evt)
-- 延迟12秒后,向groupId为220103002的对象,请求一次调用,并将string参数"monster" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220103002, "monster", 12) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 将configid为 2029 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2029, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2031 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2031, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2033 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2033, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2034 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2034, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2039 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2039, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 改变指定group组220103002中 configid为2020的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220103002, 2020, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220103001, monsters = {}, gadgets = {1021} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_2008(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220103002, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_2014(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220103002) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_2014(context, evt)
-- 改变指定group组220103002中 configid为2020的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220103002, 2020, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220103002, 2020, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 创建id为2007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_2015(context, evt)
-- 判断是gadgetid 2020 option_id 1
if 2020 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_2015(context, evt)
-- 改变指定group组220103002中 configid为2009的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220103002, 2009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 220103002 指定config2020物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220103002, 2020, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 2020 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2020, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220103003, 2)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220103002, monsters = {}, gadgets = {2007} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创建id为2010的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end

View File

@@ -0,0 +1,226 @@
-- 基础信息
local base_info = {
group_id = 220103003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3001, monster_id = 22010101, pos = { x = -115.966, y = -12.486, z = 124.851 }, rot = { x = 0.000, y = 315.000, z = 0.000 }, level = 1, pose_id = 9013 },
{ config_id = 3002, monster_id = 21010201, pos = { x = -121.789, y = -12.468, z = 130.907 }, rot = { x = 0.000, y = 135.000, z = 0.000 }, level = 1, pose_id = 9012 },
{ config_id = 3003, monster_id = 21010201, pos = { x = -118.868, y = -12.495, z = 132.367 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, pose_id = 9012 },
{ config_id = 3004, monster_id = 21010201, pos = { x = -123.219, y = -12.469, z = 126.096 }, rot = { x = 0.000, y = 65.000, z = 0.000 }, level = 1, pose_id = 9012 },
{ config_id = 3005, monster_id = 21010201, pos = { x = -115.681, y = -12.486, z = 130.898 }, rot = { x = 0.000, y = 235.000, z = 0.000 }, level = 1, pose_id = 9012 },
{ config_id = 3040, monster_id = 21010502, pos = { x = -133.635, y = -12.495, z = 124.204 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3006, gadget_id = 70350033, pos = { x = -128.424, y = -12.471, z = 127.701 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 3007, gadget_id = 70300107, pos = { x = -118.951, y = -12.465, z = 128.099 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 3009, gadget_id = 70220010, pos = { x = -118.224, y = -12.484, z = 118.392 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3010, gadget_id = 70220010, pos = { x = -119.141, y = -12.484, z = 138.050 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 3011, gadget_id = 70310001, pos = { x = -138.239, y = -12.484, z = 124.424 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3012, gadget_id = 70220010, pos = { x = -132.219, y = -12.483, z = 134.820 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 3013, gadget_id = 70350003, pos = { x = -128.498, y = -12.394, z = 112.040 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3014, gadget_id = 70220013, pos = { x = -118.310, y = -12.480, z = 114.390 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3015, gadget_id = 70220026, pos = { x = -116.635, y = -12.484, z = 114.550 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1 },
{ config_id = 3016, gadget_id = 70220026, pos = { x = -119.932, y = -12.484, z = 114.471 }, rot = { x = 0.000, y = 300.000, z = 0.000 }, level = 1 },
{ config_id = 3017, gadget_id = 70220014, pos = { x = -115.745, y = -12.484, z = 139.286 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3018, gadget_id = 70220014, pos = { x = -117.345, y = -12.484, z = 139.921 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3019, gadget_id = 70310001, pos = { x = -111.043, y = -12.565, z = 119.815 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3020, gadget_id = 70310001, pos = { x = -110.960, y = -12.484, z = 131.609 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3021, gadget_id = 70310001, pos = { x = -124.364, y = -12.483, z = 114.568 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3022, gadget_id = 70310001, pos = { x = -132.648, y = -12.525, z = 114.717 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3023, gadget_id = 70220016, pos = { x = -134.806, y = -11.585, z = 141.420 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3024, gadget_id = 70220016, pos = { x = -133.718, y = -11.585, z = 141.404 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3025, gadget_id = 70220016, pos = { x = -132.599, y = -11.585, z = 141.394 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3026, gadget_id = 70220026, pos = { x = -110.472, y = -12.483, z = 137.893 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3027, gadget_id = 70220026, pos = { x = -127.315, y = -12.484, z = 141.381 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3028, gadget_id = 70220026, pos = { x = -125.844, y = -12.484, z = 141.492 }, rot = { x = 0.000, y = 60.000, z = 0.000 }, level = 1 },
{ config_id = 3029, gadget_id = 70310001, pos = { x = -137.909, y = -12.483, z = 131.313 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3030, gadget_id = 70211101, pos = { x = -139.111, y = -12.483, z = 127.788 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 6, drop_tag = "解谜低级蒙德", isOneoff = true, persistent = true },
{ config_id = 3031, gadget_id = 70220013, pos = { x = -140.373, y = -12.621, z = 117.505 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3032, gadget_id = 70220026, pos = { x = -140.242, y = -12.607, z = 119.217 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1 },
{ config_id = 3034, gadget_id = 70220013, pos = { x = -139.067, y = -12.484, z = 138.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3035, gadget_id = 70500000, pos = { x = -139.975, y = -12.499, z = 120.134 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2010, isOneoff = true },
{ config_id = 3036, gadget_id = 70220026, pos = { x = -139.215, y = -12.483, z = 136.937 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3037, gadget_id = 70220026, pos = { x = -138.752, y = -12.615, z = 116.367 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3038, gadget_id = 70220025, pos = { x = -139.753, y = -12.503, z = 120.060 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3039, gadget_id = 70220025, pos = { x = -139.201, y = -12.421, z = 127.708 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3041, gadget_id = 70500000, pos = { x = -91.083, y = -15.484, z = 99.615 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2010, isOneoff = true },
{ config_id = 3042, gadget_id = 70900205, pos = { x = -129.884, y = -14.568, z = 132.426 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3043, gadget_id = 70500000, pos = { x = -90.404, y = -15.484, z = 99.364 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2010, isOneoff = true },
{ config_id = 3044, gadget_id = 70500000, pos = { x = -139.269, y = -12.645, z = 117.265 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2010, isOneoff = true }
}
-- 区域
regions = {
{ config_id = 3008, shape = RegionShape.CUBIC, size = { x = 5.000, y = 10.000, z = 5.000 }, pos = { x = -107.199, y = -8.982, z = 125.650 } }
}
-- 触发器
triggers = {
{ config_id = 1003008, name = "ENTER_REGION_3008", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3008", action = "action_EVENT_ENTER_REGION_3008" },
{ config_id = 1003033, name = "ANY_MONSTER_DIE_3033", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_3033", action = "action_EVENT_ANY_MONSTER_DIE_3033" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3006, 3007, 3011, 3013, 3014, 3015, 3016, 3017, 3018, 3019, 3020, 3021, 3022, 3023, 3024, 3025, 3026, 3027, 3028, 3029, 3030, 3031, 3032, 3034, 3035, 3036, 3037, 3038, 3039, 3041, 3042, 3043, 3044 },
regions = { 3008 },
triggers = { "ENTER_REGION_3008", "ANY_MONSTER_DIE_3033" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 3001, 3002, 3003, 3004, 3005, 3040 },
gadgets = { 3009, 3010, 3012, 3042 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_3008(context, evt)
if evt.param1 ~= 3008 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_3008(context, evt)
-- 将configid为 3006 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3011 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3011, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3019 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3019, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3020 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3020, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3021 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3021, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3022 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3022, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_3033(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_3033(context, evt)
-- 将configid为 3013 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3013, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 解锁目标8
if 0 ~= ScriptLib.UnlockForce(context, 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_force")
return -1
end
-- 解锁目标11
if 0 ~= ScriptLib.UnlockForce(context, 11) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_force")
return -1
end
-- 将configid为 3006 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220103004, 2)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220103002, monsters = {}, gadgets = {2010} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,175 @@
-- 基础信息
local base_info = {
group_id = 220103004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 22010301, pos = { x = -145.273, y = 18.036, z = 47.016 }, rot = { x = 0.000, y = 200.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 4002, monster_id = 22010101, pos = { x = -149.004, y = 18.036, z = 46.974 }, rot = { x = 0.000, y = 160.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4003, gadget_id = 70211021, pos = { x = -147.039, y = 18.016, z = 41.063 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 6, drop_tag = "战斗高级蒙德", isOneoff = true, persistent = true },
{ config_id = 4004, gadget_id = 70900201, pos = { x = -144.487, y = 15.459, z = 75.007 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4005, gadget_id = 70500000, pos = { x = -148.599, y = 18.016, z = 42.062 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2010, isOneoff = true },
{ config_id = 4008, gadget_id = 70500000, pos = { x = -145.184, y = 18.145, z = 40.114 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2010, isOneoff = true },
{ config_id = 4010, gadget_id = 70900205, pos = { x = -136.441, y = 14.224, z = 30.395 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4011, gadget_id = 70220013, pos = { x = -136.083, y = 19.017, z = 46.950 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 4012, gadget_id = 70220013, pos = { x = -136.360, y = 19.016, z = 44.696 }, rot = { x = 0.000, y = 30.000, z = 0.000 }, level = 1 },
{ config_id = 4013, gadget_id = 70220013, pos = { x = -157.057, y = 19.016, z = 47.031 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4014, gadget_id = 70220026, pos = { x = -157.237, y = 19.017, z = 45.476 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 4015, gadget_id = 70220026, pos = { x = -156.663, y = 19.016, z = 44.217 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4016, gadget_id = 70220025, pos = { x = -148.505, y = 18.071, z = 42.029 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4017, gadget_id = 70220025, pos = { x = -140.772, y = 18.085, z = 51.383 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4018, gadget_id = 70220025, pos = { x = -142.357, y = 18.076, z = 51.461 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4019, gadget_id = 70220025, pos = { x = -141.318, y = 18.083, z = 49.987 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4020, gadget_id = 70220025, pos = { x = -150.252, y = 18.076, z = 41.179 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4021, gadget_id = 70220025, pos = { x = -150.929, y = 18.071, z = 42.320 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 4006, shape = RegionShape.CUBIC, size = { x = 30.000, y = 20.000, z = 10.000 }, pos = { x = -146.268, y = 23.810, z = 71.168 } }
}
-- 触发器
triggers = {
{ config_id = 1004006, name = "ENTER_REGION_4006", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4006", action = "action_EVENT_ENTER_REGION_4006" },
{ config_id = 1004007, name = "ANY_MONSTER_DIE_4007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_4007", action = "action_EVENT_ANY_MONSTER_DIE_4007" },
{ config_id = 1004009, name = "QUEST_FINISH_4009", event = EventType.EVENT_QUEST_FINISH, source = "", condition = "condition_EVENT_QUEST_FINISH_4009", action = "action_EVENT_QUEST_FINISH_4009" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4010, 4011, 4012, 4013, 4014, 4015, 4016, 4017, 4018, 4019, 4020, 4021 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 4001, 4002 },
gadgets = { 4004, 4005, 4008, 4010 },
regions = { 4006 },
triggers = { "ENTER_REGION_4006", "ANY_MONSTER_DIE_4007", "QUEST_FINISH_4009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_4006(context, evt)
if evt.param1 ~= 4006 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_4006(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220103004, monsters = {}, gadgets = {4004} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_4007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_4007(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "220103004") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_QUEST_FINISH_4009(context, evt)
--检查ID为1800018的任务的完成状态是否为11=完成0=失败)
--此事件需要配合Quest表使用在Quest表里的完成执行中配置“通知group脚本”则该任务完成后服务端会向对应的group发送通知参数1填写场景ID参数2填写group ID如果不填则会通知所有group
--检查任务ID
if 1800018 ~= evt.param1 then
return false
end
--检查任务成功状态
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_FINISH_4009(context, evt)
-- 创建id为4003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end

File diff suppressed because it is too large Load Diff