添加配置表

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 = -3141.5, z = -3294.5 },
size = { x = 6874.2, z = 6909.4 },
born_pos = { x = -10.099, y = 51.949, z = -13.915 },
born_rot = { x = 0.000, y = 16.606, z = 0.000 },
die_y = 36,
city_id = 1,
vision_anchor = { x = -3141.5, z = -3294.5 }
}
-- 所有的区块
blocks = { 20022 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -3141.5, z = -3294.5 }, max = { x = 3732.7, z = 3614.9 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,339 @@
{
"sceneId": 20022,
"routes": [
{
"localId": 20022001,
"name": "Route_20022001",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 2.793149,
"y": 53.016552,
"z": 29.1075821
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 16.07091,
"y": 51.01637,
"z": 39.27179
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 19.0135365,
"y": 51.01634,
"z": 42.4997139
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 19.3112068,
"y": 51.0162964,
"z": 63.613266
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 5.331134,
"y": 46.99952,
"z": 62.6960373
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": -5.02068043,
"y": 46.99952,
"z": 62.62642
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": -4.916807,
"y": 46.9995155,
"z": 69.22656
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": -5.16021538,
"y": 41.9552,
"z": 85.82428
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 12.6465111,
"y": 42.01654,
"z": 121.772278
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 52.6592865,
"y": 42.0164146,
"z": 121.121552
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 20022002,
"name": "Route_20022002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 14.16529,
"y": 49.6170769,
"z": 61.19993
},
"waitTime": 0.0
},
{
"pos": {
"x": 8.450092,
"y": 46.9995155,
"z": 62.9975624
},
"waitTime": 0.0
},
{
"pos": {
"x": -5.002715,
"y": 47.00723,
"z": 70.15049
},
"waitTime": 0.0
},
{
"pos": {
"x": -3.297871,
"y": 42.0165939,
"z": 84.86263
},
"waitTime": 0.0
},
{
"pos": {
"x": 8.79213,
"y": 42.0162468,
"z": 87.8374252
},
"waitTime": 0.0
}
]
},
{
"localId": 20022003,
"name": "Route_20022003",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -1.69944906,
"y": 42.01642,
"z": 88.1692352
},
"waitTime": 0.0
},
{
"pos": {
"x": 2.12342143,
"y": 42.0164337,
"z": 101.05201
},
"waitTime": 0.0
},
{
"pos": {
"x": 4.684944,
"y": 42.0164337,
"z": 101.037727
},
"waitTime": 10.0
}
]
},
{
"localId": 20022004,
"name": "Route_20022004",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -4.182522,
"y": 42.0166969,
"z": 88.11765
},
"waitTime": 0.0
},
{
"pos": {
"x": 1.97807658,
"y": 42.01634,
"z": 105.872215
},
"waitTime": 0.0
},
{
"pos": {
"x": 4.68746328,
"y": 42.01645,
"z": 105.989792
},
"waitTime": 10.0
}
]
},
{
"localId": 20022005,
"name": "Route_20022005",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 8.318868,
"y": 42.0166969,
"z": 98.18976
},
"waitTime": 3.0
},
{
"pos": {
"x": 10.4453192,
"y": 42.01668,
"z": 98.03926
},
"waitTime": 0.0
},
{
"pos": {
"x": 10.468749,
"y": 42.0167274,
"z": 103.54567
},
"waitTime": 3.0
},
{
"pos": {
"x": 8.987677,
"y": 42.0167274,
"z": 103.516876
},
"waitTime": 3.0
},
{
"pos": {
"x": 10.6012611,
"y": 42.01672,
"z": 103.62252
},
"waitTime": 0.0
},
{
"pos": {
"x": 10.5221052,
"y": 42.0161858,
"z": 108.360046
},
"waitTime": 0.0
},
{
"pos": {
"x": 8.91945648,
"y": 42.0161743,
"z": 108.48349
},
"waitTime": 3.0
}
]
},
{
"localId": 20022006,
"name": "Route_20022006",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 29.4375687,
"y": 42.016613,
"z": 130.886108
},
"waitTime": 0.0
},
{
"pos": {
"x": 33.4190865,
"y": 42.0164948,
"z": 130.637558
},
"waitTime": 0.0
},
{
"pos": {
"x": 32.97678,
"y": 42.0164528,
"z": 122.750793
},
"waitTime": 0.0
},
{
"pos": {
"x": 12.7742977,
"y": 42.01661,
"z": 122.42202
},
"waitTime": 0.0
},
{
"pos": {
"x": 0.300031424,
"y": 42.01651,
"z": 100.4737
},
"waitTime": 0.0
}
]
}
]
}
@@ -0,0 +1,14 @@
-- 所有的group
groups = {
{ id = 220022001, refresh_id = 1002, pos = { x = -2.024, y = 52.000, z = 12.622 } },
{ id = 220022002, refresh_id = 1001, pos = { x = 29.196, y = 51.007, z = 39.792 } },
{ id = 220022004, refresh_id = 1001, pos = { x = 3.965, y = 42.016, z = 99.079 } },
{ id = 220022005, refresh_id = 1001, pos = { x = 90.887, y = 39.470, z = 122.111 } },
{ id = 220022006, refresh_id = 1001, pos = { x = 148.546, y = 39.590, z = 120.929 } },
{ id = 220022007, refresh_id = 1002, pos = { x = 191.364, y = 56.826, z = 111.014 } },
{ id = 220022008, refresh_id = 1002, pos = { x = 60.615, y = 58.500, z = 120.014 } },
{ id = 220022009, pos = { x = 201.478, y = 42.016, z = 111.604 } },
{ id = 220022010, refresh_id = 1001, pos = { x = 194.102, y = 42.096, z = 116.135 } },
{ id = 220022011, pos = { x = -2.372, y = 47.016, z = 56.548 } },
{ id = 220022013, refresh_id = 1, pos = { x = 1.261, y = 53.016, z = 24.650 } }
}
@@ -0,0 +1,9 @@
dummy_points = {
["Q49006Paimon"] = { pos = { x = 189.326, y = 42.000, z = 124.907 }, rot = { x = 0.000, y = 96.433, z = 0.000 } },
["Q49006Player"] = { pos = { x = 189.552, y = 42.000, z = 122.909 }, rot = { x = 0.000, y = 38.073, z = 0.000 } },
["Q49006Qin"] = { pos = { x = 191.257, y = 42.000, z = 124.643 }, rot = { x = 0.000, y = 245.730, z = 0.000 } },
["Q49006QinLeave"] = { pos = { x = 190.500, y = 42.000, z = 132.389 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q49012Paimon"] = { pos = { x = 2.319, y = 53.016, z = 29.859 }, rot = { x = 0.000, y = 345.752, z = 0.000 } },
["Q49012Player"] = { pos = { x = -0.213, y = 53.016, z = 29.900 }, rot = { x = 0.000, y = 12.074, z = 0.000 } },
["Q49012Qin"] = { pos = { x = 0.768, y = 53.017, z = 32.569 }, rot = { x = 0.000, y = 181.182, z = 0.000 } }
}
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 220022001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1, monster_id = 22010101, pos = { x = 0.186, y = 53.016, z = 27.313 }, rot = { x = 0.000, y = 38.072, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, special_name_id = 10004 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 1 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,146 @@
-- 基础信息
local base_info = {
group_id = 220022002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3, monster_id = 21010301, pos = { x = 31.256, y = 50.952, z = 42.884 }, rot = { x = 0.000, y = 53.766, z = 0.000 }, level = 1, disableWander = true, pose_id = 9003 },
{ config_id = 4, monster_id = 21010701, pos = { x = 31.874, y = 51.102, z = 41.978 }, rot = { x = 0.000, y = 49.251, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 45, monster_id = 20010801, pos = { x = 39.134, y = 42.017, z = 87.641 }, rot = { x = 0.000, y = 107.677, z = 0.000 }, level = 1 },
{ config_id = 46, monster_id = 20010801, pos = { x = 39.941, y = 42.016, z = 90.644 }, rot = { x = 0.000, y = 107.677, z = 0.000 }, level = 1 },
{ config_id = 47, monster_id = 20010801, pos = { x = 36.672, y = 42.017, z = 89.236 }, rot = { x = 0.000, y = 107.677, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1, gadget_id = 70211001, pos = { x = 33.374, y = 50.797, z = 41.493 }, rot = { x = 0.000, y = 43.077, z = 0.000 }, level = 6, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true },
{ config_id = 51, gadget_id = 70211001, pos = { x = -6.936, y = 42.016, z = 121.403 }, rot = { x = 0.000, y = 87.658, z = 0.000 }, level = 6, drop_tag = "战斗低级蒙德", isOneoff = true, persistent = true },
{ config_id = 52, gadget_id = 70211011, pos = { x = 45.693, y = 42.017, z = 80.384 }, rot = { x = 0.000, y = 359.713, z = 0.000 }, level = 6, drop_tag = "战斗中级蒙德", isOneoff = true, persistent = true },
{ config_id = 2002, gadget_id = 70220014, pos = { x = 2.554, y = 52.977, z = 25.265 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2003, gadget_id = 70220014, pos = { x = 3.150, y = 52.942, z = 26.949 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2004, gadget_id = 70220014, pos = { x = -2.411, y = 53.017, z = 24.851 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2005, gadget_id = 70220014, pos = { x = -2.746, y = 53.016, z = 25.741 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2006, gadget_id = 70220013, pos = { x = 4.694, y = 53.016, z = 26.893 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 19, shape = RegionShape.SPHERE, radius = 4, pos = { x = 45.653, y = 42.108, z = 80.846 } },
{ config_id = 2001, shape = RegionShape.SPHERE, radius = 6.08, pos = { x = 28.928, y = 51.007, z = 39.405 } }
}
-- 触发器
triggers = {
{ config_id = 1000019, name = "ENTER_REGION_19", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_19", action = "action_EVENT_ENTER_REGION_19", forbid_guest = false },
{ 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", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 3, 4 },
gadgets = { 1, 51, 52, 2002, 2003, 2004, 2005, 2006 },
regions = { 19, 2001 },
triggers = { "ENTER_REGION_19", "ENTER_REGION_2001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_19(context, evt)
if evt.param1 ~= 19 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_19(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 45, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 46, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 47, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
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)
-- 调用提示id为 200220101 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200220101) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,251 @@
-- 基础信息
local base_info = {
group_id = 220022004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 21010301, pos = { x = 5.428, y = 42.017, z = 107.040 }, rot = { x = 0.000, y = 220.615, z = 0.000 }, level = 1, disableWander = true, affix = { 1006, 1007, 1008 } },
{ config_id = 4002, monster_id = 21030101, pos = { x = 6.116, y = 42.071, z = 111.410 }, rot = { x = 0.000, y = 220.615, z = 0.000 }, level = 1, disableWander = true, affix = { 1006, 1007, 1008 } },
{ config_id = 4008, monster_id = 21010301, pos = { x = 7.274, y = 42.017, z = 105.523 }, rot = { x = 0.000, y = 232.115, z = 0.000 }, level = 1, disableWander = true, affix = { 1006, 1007, 1008 } },
{ config_id = 4009, monster_id = 21010301, pos = { x = 0.516, y = 42.016, z = 108.717 }, rot = { x = 0.001, y = 183.316, z = 359.969 }, level = 1, disableWander = true, affix = { 1006, 1007, 1008 } },
{ config_id = 4010, monster_id = 21010301, pos = { x = 3.036, y = 42.016, z = 108.137 }, rot = { x = 0.000, y = 202.456, z = 0.000 }, level = 1, disableWander = true, affix = { 1006, 1007, 1008 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4003, gadget_id = 70350003, pos = { x = 54.824, y = 42.016, z = 120.932 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 4011, gadget_id = 70900201, pos = { x = 54.424, y = 44.124, z = 120.863 }, rot = { x = 0.000, y = 179.568, z = 0.000 }, level = 1 },
{ config_id = 4012, gadget_id = 70220007, pos = { x = -5.571, y = 41.887, z = 118.636 }, rot = { x = 0.000, y = 4.870, z = 0.000 }, level = 1 },
{ config_id = 4013, gadget_id = 70220013, pos = { x = -2.122, y = 42.017, z = 118.460 }, rot = { x = 0.000, y = 254.593, z = 0.000 }, level = 1 },
{ config_id = 4014, gadget_id = 70220013, pos = { x = 4.592, y = 42.016, z = 73.233 }, rot = { x = 0.000, y = 265.504, z = 0.000 }, level = 1 },
{ config_id = 4015, gadget_id = 70220013, pos = { x = 2.857, y = 41.961, z = 72.952 }, rot = { x = 0.000, y = 265.504, z = 0.000 }, level = 1 },
{ config_id = 4016, gadget_id = 70220013, pos = { x = -9.532, y = 46.940, z = 59.963 }, rot = { x = 0.000, y = 272.403, z = 0.000 }, level = 1 },
{ config_id = 4017, gadget_id = 70220013, pos = { x = 15.015, y = 42.016, z = 117.009 }, rot = { x = 0.000, y = 272.403, z = 0.000 }, level = 1 },
{ config_id = 4018, gadget_id = 70220013, pos = { x = 15.265, y = 42.042, z = 118.901 }, rot = { x = 0.000, y = 297.712, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 6, shape = RegionShape.SPHERE, radius = 5, pos = { x = 61.408, y = 41.600, z = 121.088 } },
{ config_id = 4004, shape = RegionShape.CUBIC, size = { x = 49.860, y = 27.430, z = 4.990 }, pos = { x = -4.255, y = 42.017, z = 85.314 } }
}
-- 触发器
triggers = {
{ config_id = 1000004, name = "CHALLENGE_SUCCESS_4", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1001", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_4" },
{ config_id = 1000006, name = "ENTER_REGION_6", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6", action = "action_EVENT_ENTER_REGION_6", forbid_guest = false },
{ 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", forbid_guest = false },
{ config_id = 1004005, name = "TIMER_EVENT_4005", event = EventType.EVENT_TIMER_EVENT, source = "Trigger", condition = "", action = "action_EVENT_TIMER_EVENT_4005" },
{ config_id = 1004006, name = "ANY_MONSTER_LIVE_4006", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_4006", action = "action_EVENT_ANY_MONSTER_LIVE_4006" },
{ config_id = 1004007, name = "CHALLENGE_FAIL_4007", event = EventType.EVENT_CHALLENGE_FAIL, source = "", condition = "", action = "action_EVENT_CHALLENGE_FAIL_4007" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4003, 4012, 4013, 4014, 4015, 4016, 4017, 4018 },
regions = { },
triggers = { "CHALLENGE_SUCCESS_4", "CHALLENGE_FAIL_4007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 4003, 4012, 4013, 4014, 4015, 4016, 4017, 4018 },
regions = { 6, 4004 },
triggers = { "CHALLENGE_SUCCESS_4", "ENTER_REGION_6", "ENTER_REGION_4004", "TIMER_EVENT_4005", "ANY_MONSTER_LIVE_4006", "CHALLENGE_FAIL_4007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_4(context, evt)
-- 将configid为 4003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创生gadget 4011
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 4011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6(context, evt)
if evt.param1 ~= 6 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_6(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220022004, monsters = {}, gadgets = {4011} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
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)
-- 调用提示id为 200220201 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200220201) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 延迟2秒后,向groupId为:220022004的对象,请求一次调用,并将string参数:"Trigger" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220022004, "Trigger", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_4005(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4002, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4010, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟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 = 4008, 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
-- play_type含义:1·代表开始播放; 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=14, y=42, z=101}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_soundplay")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_4006(context, evt)
if 4002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_4006(context, evt)
-- 创建编号为1001(该挑战的识别id),挑战内容为2004的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1001, 2004, 220022004, 5, 0, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_4007(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220022004, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220022004, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,157 @@
-- 基础信息
local base_info = {
group_id = 220022005
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 15, monster_id = 21010301, pos = { x = 90.068, y = 39.517, z = 129.378 }, rot = { x = 0.464, y = 87.029, z = 359.890 }, level = 1, disableWander = true, affix = { 1006, 1007, 1008 }, pose_id = 9012 },
{ config_id = 16, monster_id = 21010301, pos = { x = 90.243, y = 39.516, z = 126.855 }, rot = { x = 0.000, y = 60.433, z = 0.000 }, level = 1, disableWander = true, affix = { 1006, 1007, 1008 }, pose_id = 9012 },
{ config_id = 17, monster_id = 20010801, pos = { x = 119.913, y = 39.517, z = 130.405 }, rot = { x = 0.000, y = 55.323, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 18, monster_id = 20010801, pos = { x = 118.239, y = 39.596, z = 128.657 }, rot = { x = 0.000, y = 146.998, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } },
{ config_id = 19, monster_id = 20010801, pos = { x = 119.397, y = 39.517, z = 128.100 }, rot = { x = 0.000, y = 318.073, z = 0.000 }, level = 1, disableWander = true, affix = { 1007 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6, gadget_id = 70320002, pos = { x = 93.902, y = 39.517, z = 129.762 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearAction1 },
{ config_id = 7, gadget_id = 70350002, pos = { x = 173.944, y = 42.022, z = 120.918 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 8, gadget_id = 70310004, pos = { x = 148.423, y = 39.590, z = 120.937 }, rot = { x = 0.000, y = 289.372, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 63, gadget_id = 70320002, pos = { x = 122.021, y = 39.517, z = 130.164 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearAction1 },
{ config_id = 69, gadget_id = 70320002, pos = { x = 124.111, y = 39.426, z = 130.207 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearAction1 }
}
-- 区域
regions = {
{ config_id = 5001, shape = RegionShape.SPHERE, radius = 11.3, pos = { x = 71.842, y = 42.185, z = 121.146 } },
{ config_id = 5002, shape = RegionShape.CUBIC, size = { x = 7.500, y = 12.920, z = 28.570 }, pos = { x = 111.465, y = 39.517, z = 122.817 } }
}
-- 触发器
triggers = {
{ config_id = 1005001, name = "ENTER_REGION_5001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5001", action = "action_EVENT_ENTER_REGION_5001", forbid_guest = false },
{ config_id = 1005002, name = "ENTER_REGION_5002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_5002", action = "action_EVENT_ENTER_REGION_5002", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 15, 16, 17, 18, 19 },
gadgets = { 6, 7, 8, 63, 69 },
regions = { 5001, 5002 },
triggers = { "ENTER_REGION_5001", "ENTER_REGION_5002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_5001(context, evt)
if evt.param1 ~= 5001 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_5001(context, evt)
-- 调用提示id为 200220301 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200220301) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将configid为 63 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 63, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 6 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 6, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 69 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 69, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- play_type含义:1·代表开始播放; 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=71, y=42, z=121}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_soundplay")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_5002(context, evt)
if evt.param1 ~= 5002 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_5002(context, evt)
-- 调用提示id为 200220501 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200220501) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,126 @@
-- 基础信息
local base_info = {
group_id = 220022006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 20, monster_id = 21010301, pos = { x = 148.651, y = 39.517, z = 123.775 }, rot = { x = 0.000, y = 210.877, z = 0.000 }, level = 1, disableWander = true, affix = { 1006, 1007, 1008 }, pose_id = 9002 },
{ config_id = 21, monster_id = 21010301, pos = { x = 145.526, y = 39.516, z = 121.616 }, rot = { x = 0.000, y = 90.885, z = 0.000 }, level = 1, disableWander = true, affix = { 1006, 1007, 1008 }, pose_id = 9002 },
{ config_id = 22, monster_id = 21010301, pos = { x = 148.538, y = 39.516, z = 119.419 }, rot = { x = 0.000, y = 343.819, z = 0.000 }, level = 1, disableWander = true, affix = { 1006, 1007, 1008 }, pose_id = 9003 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 6001, shape = RegionShape.SPHERE, radius = 10.22, pos = { x = 147.548, y = 39.590, z = 120.955 } }
}
-- 触发器
triggers = {
{ config_id = 1000005, name = "ANY_MONSTER_DIE_5", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_5", action = "action_EVENT_ANY_MONSTER_DIE_5" },
{ config_id = 1006001, name = "ENTER_REGION_6001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6001", action = "action_EVENT_ENTER_REGION_6001", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 20, 21, 22 },
gadgets = { },
regions = { 6001 },
triggers = { "ANY_MONSTER_DIE_5", "ENTER_REGION_6001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_5(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_5(context, evt)
-- 改变指定group组220022005中, configid为7的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220022005, 7, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_6001(context, evt)
if evt.param1 ~= 6001 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_6001(context, evt)
-- 改变指定group组220022005中, configid为7的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220022005, 7, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
@@ -0,0 +1,244 @@
-- 基础信息
local base_info = {
group_id = 220022007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 23, monster_id = 22010101, pos = { x = 198.125, y = 42.016, z = 121.025 }, rot = { x = 0.000, y = 271.874, z = 0.000 }, level = 1, affix = { 1007, 1008, 1010 } },
{ config_id = 7001, monster_id = 21010501, pos = { x = 201.501, y = 44.444, z = 106.091 }, rot = { x = 0.000, y = 345.002, z = 0.000 }, level = 1, disableWander = true, affix = { 1006, 1007, 1008, 1018 }, pose_id = 32 },
{ config_id = 7002, monster_id = 21010301, pos = { x = 196.533, y = 42.016, z = 109.952 }, rot = { x = 0.366, y = 331.955, z = 0.443 }, level = 1, disableWander = true, affix = { 1006, 1007, 1008, 1018 } },
{ config_id = 7003, monster_id = 21010301, pos = { x = 200.425, y = 42.016, z = 114.409 }, rot = { x = 0.000, y = 312.345, z = 0.000 }, level = 1, disableWander = true, affix = { 1006, 1007, 1008, 1018 } },
{ config_id = 7004, monster_id = 21010301, pos = { x = 199.360, y = 42.017, z = 111.219 }, rot = { x = 0.000, y = 326.936, z = 0.000 }, level = 1, disableWander = true, affix = { 1006, 1007, 1008, 1018 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11, gadget_id = 70350002, pos = { x = 190.461, y = 41.969, z = 137.667 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 12, gadget_id = 70211022, pos = { x = 190.386, y = 42.100, z = 121.021 }, rot = { x = 0.000, y = 269.271, z = 0.000 }, level = 6, drop_tag = "战斗高级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 7, shape = RegionShape.SPHERE, radius = 5, pos = { x = 190.154, y = 42.644, z = 121.067 } },
{ config_id = 7007, shape = RegionShape.SPHERE, radius = 5, pos = { x = 190.154, y = 42.644, z = 121.067 } }
}
-- 触发器
triggers = {
{ config_id = 1000007, name = "ENTER_REGION_7", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7", action = "action_EVENT_ENTER_REGION_7", forbid_guest = false },
{ config_id = 1000010, name = "ANY_MONSTER_DIE_10", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_10", action = "action_EVENT_ANY_MONSTER_DIE_10" },
{ config_id = 1007005, name = "ANY_MONSTER_DIE_7005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7005", action = "action_EVENT_ANY_MONSTER_DIE_7005" },
{ config_id = 1007006, name = "TIMER_EVENT_7006", event = EventType.EVENT_TIMER_EVENT, source = "delaykill", condition = "", action = "action_EVENT_TIMER_EVENT_7006" },
{ config_id = 1007007, name = "ENTER_REGION_7007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_7007", action = "action_EVENT_ENTER_REGION_7007", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11, 12 },
regions = { 7, 7007 },
triggers = { "ENTER_REGION_7", "ANY_MONSTER_DIE_10", "ANY_MONSTER_DIE_7005", "TIMER_EVENT_7006", "ENTER_REGION_7007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_7(context, evt)
if evt.param1 ~= 7 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_7(context, evt)
-- 将configid为 11 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 11, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 改变指定group组220022005中, configid为7的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220022005, 7, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 7001, delay_time = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 7002, delay_time = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 7003, delay_time = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 7004, delay_time = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_10(context, evt)
if 23 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_10(context, evt)
-- 将本组内变量名为 "iskill" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValueByGroup(context, "iskill", 1, 220022010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable_by_group")
return -1
end
-- 延迟1秒后,向groupId为:220022007的对象,请求一次调用,并将string参数:"delaykill" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220022007, "delaykill", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "220022007") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 解锁目标12
if 0 ~= ScriptLib.ChangeGroupGadget(context, { config_id = 12, state = GadgetState.Default }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_7005(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7005(context, evt)
-- 调用提示id为 200220401 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 200220401) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 延迟2秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 23, delay_time = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220022010, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_7006(context, evt)
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220022010, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_7007(context, evt)
if evt.param1 ~= 7007 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_7007(context, evt)
-- 将configid为 12 的物件更改为状态 GadgetState.ChestLocked
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12, GadgetState.ChestLocked) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,225 @@
-- 基础信息
local base_info = {
group_id = 220022008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 32, monster_id = 21010501, pos = { x = 104.143, y = 58.500, z = 129.126 }, rot = { x = 0.000, y = 272.960, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 33, monster_id = 21010501, pos = { x = 104.138, y = 58.500, z = 123.722 }, rot = { x = 0.000, y = 272.960, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 34, monster_id = 21010501, pos = { x = 109.310, y = 63.169, z = 126.946 }, rot = { x = 0.000, y = 272.960, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 35, monster_id = 20010301, pos = { x = 140.930, y = 59.069, z = 117.413 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 36, monster_id = 20010301, pos = { x = 140.932, y = 59.241, z = 125.559 }, rot = { x = 0.000, y = 248.737, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 37, monster_id = 20010301, pos = { x = 136.079, y = 59.069, z = 120.958 }, rot = { x = 0.000, y = 57.668, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 38, monster_id = 20010401, pos = { x = 139.148, y = 59.000, z = 121.555 }, rot = { x = 0.000, y = 281.740, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 39, monster_id = 21010901, pos = { x = 158.957, y = 65.784, z = 124.279 }, rot = { x = 0.000, y = 267.803, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 40, monster_id = 21010901, pos = { x = 158.973, y = 65.784, z = 122.975 }, rot = { x = 0.000, y = 270.626, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 41, monster_id = 21010901, pos = { x = 158.913, y = 65.784, z = 121.540 }, rot = { x = 0.000, y = 270.392, z = 0.000 }, level = 1, disableWander = true, pose_id = 32 },
{ config_id = 42, monster_id = 24010101, pos = { x = 190.909, y = 49.844, z = 190.655 }, rot = { x = 0.000, y = 175.246, z = 0.000 }, level = 1, affix = { 1008, 1011 }, isElite = true, pose_id = 101 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 17, gadget_id = 70211011, pos = { x = 109.536, y = 63.029, z = 125.064 }, rot = { x = 0.000, y = 269.099, z = 0.000 }, level = 6, drop_tag = "战斗中级蒙德", isOneoff = true, persistent = true },
{ config_id = 18, gadget_id = 70220004, pos = { x = 156.288, y = 61.242, z = 128.949 }, rot = { x = 0.000, y = 7.989, z = 0.000 }, level = 1 },
{ config_id = 19, gadget_id = 70220004, pos = { x = 159.559, y = 61.242, z = 129.052 }, rot = { x = 0.000, y = 353.862, z = 0.000 }, level = 1 },
{ config_id = 20, gadget_id = 70220004, pos = { x = 162.163, y = 61.242, z = 129.122 }, rot = { x = 0.000, y = 343.680, z = 0.000 }, level = 1 },
{ config_id = 21, gadget_id = 70220004, pos = { x = 164.815, y = 61.242, z = 129.233 }, rot = { x = 0.000, y = 171.075, z = 0.000 }, level = 1 },
{ config_id = 22, gadget_id = 70220004, pos = { x = 168.167, y = 61.242, z = 129.200 }, rot = { x = 0.000, y = 97.468, z = 0.000 }, level = 1 },
{ config_id = 23, gadget_id = 70220004, pos = { x = 175.822, y = 59.000, z = 130.515 }, rot = { x = 0.000, y = 256.177, z = 0.000 }, level = 1 },
{ config_id = 24, gadget_id = 70220004, pos = { x = 175.935, y = 59.000, z = 134.830 }, rot = { x = 0.000, y = 243.325, z = 0.000 }, level = 1 },
{ config_id = 25, gadget_id = 70220004, pos = { x = 156.188, y = 61.242, z = 125.776 }, rot = { x = 0.000, y = 52.458, z = 0.000 }, level = 1 },
{ config_id = 26, gadget_id = 70220004, pos = { x = 156.102, y = 61.242, z = 122.702 }, rot = { x = 0.000, y = 178.373, z = 0.000 }, level = 1 },
{ config_id = 27, gadget_id = 70220004, pos = { x = 156.098, y = 61.242, z = 119.718 }, rot = { x = 0.000, y = 167.702, z = 0.000 }, level = 1 },
{ config_id = 28, gadget_id = 70220004, pos = { x = 156.136, y = 61.242, z = 116.702 }, rot = { x = 0.000, y = 145.631, z = 0.000 }, level = 1 },
{ config_id = 29, gadget_id = 70220004, pos = { x = 156.428, y = 61.242, z = 113.508 }, rot = { x = 0.000, y = 125.146, z = 0.000 }, level = 1 },
{ config_id = 30, gadget_id = 70900201, pos = { x = 190.514, y = 45.734, z = 138.321 }, rot = { x = 0.000, y = 122.004, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 12, shape = RegionShape.SPHERE, radius = 5, pos = { x = 190.408, y = 42.000, z = 132.085 } },
{ config_id = 13, shape = RegionShape.SPHERE, radius = 12.3, pos = { x = 148.027, y = 59.000, z = 120.488 } },
{ config_id = 14, shape = RegionShape.CUBIC, size = { x = 120.000, y = 1.000, z = 44.600 }, pos = { x = 108.068, y = 56.518, z = 121.632 } }
}
-- 触发器
triggers = {
{ config_id = 1000011, name = "ANY_MONSTER_DIE_11", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11", action = "action_EVENT_ANY_MONSTER_DIE_11" },
{ config_id = 1000012, name = "ENTER_REGION_12", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12", action = "action_EVENT_ENTER_REGION_12", forbid_guest = false },
{ config_id = 1000013, name = "ENTER_REGION_13", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13", action = "action_EVENT_ENTER_REGION_13", forbid_guest = false },
{ config_id = 1000014, name = "ENTER_REGION_14", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14", action = "action_EVENT_ENTER_REGION_14", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 32, 33, 34, 39, 40, 41, 42 },
gadgets = { 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29 },
regions = { 12, 13 },
triggers = { "ANY_MONSTER_DIE_11", "ENTER_REGION_12", "ENTER_REGION_13" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { 14 },
triggers = { "ENTER_REGION_14" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_11(context, evt)
if 42 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_11(context, evt)
-- 改变指定group组220022007中, configid为11的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220022007, 11, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 创生gadget 30
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 30 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_12(context, evt)
if evt.param1 ~= 12 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_12(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220022008, monsters = {}, gadgets = {30} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13(context, evt)
if evt.param1 ~= 13 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_13(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 35, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 36, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 37, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 38, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14(context, evt)
if evt.param1 ~= 14 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_14(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220022008, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,164 @@
-- 基础信息
local base_info = {
group_id = 220022009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000024, name = "ANY_MONSTER_DIE_24", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_24", action = "action_EVENT_ANY_MONSTER_DIE_24", trigger_count = 0 },
{ config_id = 1000025, name = "ANY_MONSTER_DIE_25", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_25", action = "action_EVENT_ANY_MONSTER_DIE_25", trigger_count = 0 },
{ config_id = 1000026, name = "ANY_MONSTER_DIE_26", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_26", action = "action_EVENT_ANY_MONSTER_DIE_26", trigger_count = 0 },
{ config_id = 1000027, name = "ANY_MONSTER_DIE_27", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_27", action = "action_EVENT_ANY_MONSTER_DIE_27", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_24", "ANY_MONSTER_DIE_25", "ANY_MONSTER_DIE_26", "ANY_MONSTER_DIE_27" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_24(context, evt)
if 48 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_24(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 48, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_25(context, evt)
if 49 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_25(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 49, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_26(context, evt)
if 50 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_26(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 50, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_27(context, evt)
if 51 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_27(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 51, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,211 @@
-- 基础信息
local base_info = {
group_id = 220022010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 48, monster_id = 20010801, pos = { x = 196.863, y = 42.016, z = 127.690 }, rot = { x = 0.000, y = 242.500, z = 0.000 }, level = 1 },
{ config_id = 49, monster_id = 20010801, pos = { x = 196.580, y = 42.017, z = 112.971 }, rot = { x = 0.000, y = 310.889, z = 0.000 }, level = 1 },
{ config_id = 50, monster_id = 20010801, pos = { x = 184.920, y = 42.016, z = 113.409 }, rot = { x = 0.000, y = 25.952, z = 0.000 }, level = 1 },
{ config_id = 51, monster_id = 20010801, pos = { x = 182.830, y = 42.016, z = 128.318 }, rot = { x = 0.000, y = 135.169, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000030, name = "ANY_MONSTER_DIE_30", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_30", action = "action_EVENT_ANY_MONSTER_DIE_30", trigger_count = 0 },
{ config_id = 1000031, name = "ANY_MONSTER_DIE_31", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_31", action = "action_EVENT_ANY_MONSTER_DIE_31", trigger_count = 0 },
{ config_id = 1000032, name = "ANY_MONSTER_DIE_32", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_32", action = "action_EVENT_ANY_MONSTER_DIE_32", trigger_count = 0 },
{ config_id = 1000033, name = "ANY_MONSTER_DIE_33", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_33", action = "action_EVENT_ANY_MONSTER_DIE_33", trigger_count = 0 },
{ config_id = 1010001, name = "ANY_MONSTER_DIE_10001", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_10001", action = "action_EVENT_ANY_MONSTER_DIE_10001" }
}
-- 变量
variables = {
{ config_id = 1, name = "iskill", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
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 = suite_2,
monsters = { 48, 49, 50, 51 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_30", "ANY_MONSTER_DIE_31", "ANY_MONSTER_DIE_32", "ANY_MONSTER_DIE_33", "ANY_MONSTER_DIE_10001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_30(context, evt)
if 48 ~= evt.param1 then
return false
end
-- 判断变量"iskill"为0
if ScriptLib.GetGroupVariableValue(context, "iskill") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_30(context, evt)
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 48, delay_time = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_31(context, evt)
if 49 ~= evt.param1 then
return false
end
-- 判断变量"iskill"为0
if ScriptLib.GetGroupVariableValue(context, "iskill") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_31(context, evt)
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 49, delay_time = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_32(context, evt)
if 50 ~= evt.param1 then
return false
end
-- 判断变量"iskill"为0
if ScriptLib.GetGroupVariableValue(context, "iskill") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_32(context, evt)
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 50, delay_time = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_33(context, evt)
if 51 ~= evt.param1 then
return false
end
-- 判断变量"iskill"为0
if ScriptLib.GetGroupVariableValue(context, "iskill") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_33(context, evt)
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 51, delay_time = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_10001(context, evt)
-- 判断变量"iskill"为1
if ScriptLib.GetGroupVariableValue(context, "iskill") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_10001(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220022010, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,71 @@
-- 基础信息
local base_info = {
group_id = 220022011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,122 @@
-- 基础信息
local base_info = {
group_id = 220022013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 70, gadget_id = 70220034, pos = { x = 3.403, y = 53.016, z = 24.792 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 5 },
{ config_id = 71, gadget_id = 70220034, pos = { x = 2.669, y = 52.928, z = 26.125 }, rot = { x = 0.000, y = 300.218, z = 0.000 }, level = 5 }
}
-- 区域
regions = {
{ config_id = 34, shape = RegionShape.CUBIC, size = { x = 7.380, y = 20.190, z = 6.480 }, pos = { x = -0.300, y = 53.016, z = 24.426 } }
}
-- 触发器
triggers = {
{ config_id = 1000034, name = "ENTER_REGION_34", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_34", action = "action_EVENT_ENTER_REGION_34", forbid_guest = false },
{ config_id = 1013001, name = "ANY_GADGET_DIE_13001", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "", action = "action_EVENT_ANY_GADGET_DIE_13001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 70, 71 },
regions = { 34 },
triggers = { "ENTER_REGION_34", "ANY_GADGET_DIE_13001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_34(context, evt)
if evt.param1 ~= 34 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_34(context, evt)
-- 杀死Group内所有gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220022013, kill_policy = GroupKillPolicy.GROUP_KILL_GADGET }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_gadget_by_group")
return -1
end
-- 通知任务系统完成条件类型"LUA通知",复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "220022013") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220022001, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_13001(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220022001, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,779 @@
{
"areas": {},
"doors": {},
"entities": {
"10": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 152.8757,
"y": 36.17988,
"z": 50.89223
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 100.0,
"heightType": "Center",
"length": 100.0,
"useHeight": true,
"width": 200.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
},
"11": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 258.0046,
"y": 56.793,
"z": 123.6201
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 31.5,
"heightType": "Center",
"length": 50.0,
"useHeight": true,
"width": 100.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
},
"2": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 68.86131,
"y": 22.89163,
"z": 126.0122
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 31.5,
"heightType": "Center",
"length": 317.7,
"useHeight": true,
"width": 367.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
},
"3": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": -0.01873739,
"y": 33.89527,
"z": -6.486285
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 31.5,
"heightType": "Center",
"length": 68.3,
"useHeight": true,
"width": 75.38
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
},
"4": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 67.11954,
"y": 51.0,
"z": 63.01286
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 45.09,
"heightType": "Center",
"length": 6.83,
"useHeight": true,
"width": 85.5
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "ReturnRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
},
"5": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 203.0228,
"y": 42.0166,
"z": 109.636
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 31.5,
"heightType": "Center",
"length": 20.0,
"useHeight": true,
"width": 20.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "NoReviveRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
},
"6": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 217.3795,
"y": 42.70999,
"z": 101.305
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 50.0,
"useHeight": true,
"width": 10.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "ReturnRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
},
"7": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 205.2485,
"y": 42.01665,
"z": 85.60976
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 50.0,
"heightType": "Center",
"length": 10.0,
"useHeight": true,
"width": 56.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "ReturnRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
},
"8": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 96.00911,
"y": 17.80099,
"z": 67.79412
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 31.5,
"heightType": "Center",
"length": 317.7,
"useHeight": true,
"width": 367.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
},
"9": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 98.83692,
"y": 52.03693,
"z": 170.6443
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 31.5,
"heightType": "Center",
"length": 50.0,
"useHeight": true,
"width": 300.0
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
}
},
"forces": {},
"points": {
"1": {
"$type": "DungeonQuitPoint",
"alias": "",
"areaId": 0,
"gadgetId": 70120004,
"groupLimit": false,
"isModelHidden": false,
"pointType": "DungeonQuitPoint",
"pos": {
"x": 190.5041,
"y": 41.99952,
"z": 134.6721
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 5.0,
"y": 5.0,
"z": 5.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"2": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [
220022004
],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": -8.70362,
"y": 47.01673,
"z": 55.1176
},
"rot": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 20.0,
"z": 69.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"3": {
"$type": "DungeonWayPoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70120003,
"groupIds": [
220022005,
220022006,
220022007
],
"groupLimit": false,
"isActive": false,
"isBoss": false,
"isModelHidden": false,
"pointType": "DungeonWayPoint",
"pos": {
"x": 67.34823,
"y": 39.51643,
"z": 113.4057
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 20.0,
"z": 20.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"4": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 72.37892,
"y": 39.51667,
"z": 120.4924
},
"rot": {
"x": 0.0,
"y": 89.3987,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 20.0,
"z": 40.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"5": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 155.0837,
"y": 39.51672,
"z": 121.0019
},
"rot": {
"x": 0.0,
"y": 89.3987,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 20.0,
"z": 40.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
},
"6": {
"$type": "DungeonSlipRevivePoint",
"alias": "",
"areaId": 0,
"disableClientTrigger": false,
"gadgetId": 70010006,
"groupIds": [],
"groupLimit": false,
"isActive": false,
"isModelHidden": false,
"pointType": "DungeonSlipRevivePoint",
"pos": {
"x": 182.1352,
"y": 41.99952,
"z": 120.6924
},
"rot": {
"x": 0.0,
"y": 89.3987,
"z": 0.0
},
"size": {
"x": 20.0,
"y": 20.0,
"z": 40.0
},
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true
}
},
"transRadius": 0.0
}