添加配置表

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 = -2901.5 },
size = { x = 8012.0, z = 7163.6 },
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 = -2901.5 }
}
-- 所有的区块
blocks = { 20009 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -3767.5, z = -2901.5 }, max = { x = 4244.5, z = 4262.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }

View File

@@ -0,0 +1,262 @@
{
"sceneId": 20009,
"routes": [
{
"localId": 1,
"name": "DefaultRouteName",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -80.60808,
"y": -15.403718,
"z": 121.997688
},
"waitTime": 4.0,
"speedLevel": 1
},
{
"pos": {
"x": -73.91947,
"y": -15.4838,
"z": 127.76326
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 20009002,
"name": "Route_20009002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -100.288704,
"y": -13.0619926,
"z": 127.342529
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -92.47781,
"y": -15.483552,
"z": 127.022682
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -84.03392,
"y": -15.39664,
"z": 121.902733
},
"waitTime": 0.0,
"speedLevel": 2
}
]
},
{
"localId": 20009003,
"name": "Route_20009003",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -100.783638,
"y": -12.8586864,
"z": 124.616173
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -92.4733047,
"y": -15.483552,
"z": 123.438873
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -86.2025146,
"y": -15.39664,
"z": 120.214119
},
"waitTime": 0.0,
"speedLevel": 2
},
{
"pos": {
"x": -86.3386459,
"y": -15.3412991,
"z": 118.394943
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 20009004,
"name": "Platform_20009004",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -90.23437,
"y": -15.495801,
"z": 102.389511
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": -90.544136,
"y": -15.5062313,
"z": 102.443192
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": -90.63721,
"y": -14.4897709,
"z": 103.145058
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": -90.76775,
"y": -14.7981253,
"z": 103.799583
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": -89.7004547,
"y": -15.2618532,
"z": 103.809532
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": -89.78483,
"y": -15.0488424,
"z": 102.723022
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": -90.1359558,
"y": -15.48329,
"z": 102.129318
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": -91.04542,
"y": -13.3283119,
"z": 100.1891
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": -88.36467,
"y": -12.7591448,
"z": 100.916504
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": -93.14853,
"y": -9.092147,
"z": 98.6805344
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": -93.09103,
"y": -12.73686,
"z": 104.430817
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": -92.44379,
"y": -13.07781,
"z": 99.92475
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 20009005,
"name": "Route_20009005",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": -136.301331,
"y": -12.4835691,
"z": 125.31974
},
"waitTime": 1.0,
"speedLevel": 1
},
{
"pos": {
"x": -136.372665,
"y": -12.4834881,
"z": 131.040268
},
"waitTime": 1.0,
"speedLevel": 1
}
]
}
]
}

View File

@@ -0,0 +1,12 @@
-- 所有的group
groups = {
{ id = 220009001, refresh_id = 1, pos = { x = -49.220, y = -8.026, z = 94.972 } },
{ id = 220009002, refresh_id = 1001, pos = { x = -88.555, y = -15.483, z = 121.586 } },
{ id = 220009003, refresh_id = 1001, pos = { x = -79.318, y = -15.500, z = 141.031 } },
{ id = 220009006, pos = { x = -147.102, y = 18.016, z = 45.554 } },
{ id = 220009007, refresh_id = 1001, pos = { x = -90.166, y = -15.484, z = 123.605 } },
{ id = 220009011, refresh_id = 1, pos = { x = -127.460, y = -12.279, z = 104.879 } },
{ id = 220009012, pos = { x = -120.207, y = -12.410, z = 129.045 } },
{ id = 220009013, pos = { x = -120.268, y = -0.442, z = 131.824 } },
{ id = 220009901, pos = { x = -49.316, y = -8.023, z = 95.911 } }
}

View File

@@ -0,0 +1,5 @@
dummy_points = {
["Q306Ambor"] = { pos = { x = -148.601, y = 18.017, z = 45.633 }, rot = { x = 0.000, y = 40.870, z = 0.000 } },
["Q306Player"] = { pos = { x = -146.859, y = 18.017, z = 47.546 }, rot = { x = 0.000, y = 224.510, z = 0.000 } },
["Q306SavePointIntro"] = { pos = { x = -78.160, y = -8.107, z = 95.438 }, rot = { x = 0.000, y = 62.100, z = 0.000 } }
}

View File

@@ -0,0 +1,536 @@
-- 基础信息
local base_info = {
group_id = 220009001
}
-- Trigger变量
local defs = {
gadget_id_1 = 137,
gadget_id_2 = 138,
gadget_id_3 = 55,
gadget_id_4 = 54,
gadget_id_5 = 1,
gadget_id_6 = 179
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 40, gadget_id = 70211001, pos = { x = -57.614, y = -8.053, z = 100.279 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 54, gadget_id = 70360002, pos = { x = -31.765, y = -7.983, z = 93.852 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1 },
{ config_id = 55, gadget_id = 70350003, pos = { x = -34.695, y = -8.215, z = 97.867 }, rot = { x = 0.000, y = 89.380, z = 0.000 }, level = 1 },
{ config_id = 117, gadget_id = 70220003, pos = { x = -54.935, y = -8.013, z = 90.081 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_id = 11010200, drop_count = 1 },
{ config_id = 133, gadget_id = 70900202, pos = { x = -31.776, y = -6.267, z = 93.813 }, rot = { x = 0.000, y = 344.902, z = 0.000 }, level = 1 },
{ config_id = 136, gadget_id = 70220003, pos = { x = -55.168, y = -8.133, z = 99.973 }, rot = { x = 0.000, y = 273.638, z = 2.725 }, level = 1, drop_id = 11010200, drop_count = 1 },
{ config_id = 137, gadget_id = 70900201, pos = { x = -147.054, y = 33.493, z = 45.681 }, rot = { x = 0.000, y = 114.434, z = 0.000 }, level = 1 },
{ config_id = 138, gadget_id = 70900201, pos = { x = -103.756, y = -10.747, z = 125.827 }, rot = { x = 0.000, y = 165.455, z = 0.000 }, level = 1 },
{ config_id = 139, gadget_id = 70900201, pos = { x = -128.360, y = -10.570, z = 111.474 }, rot = { x = 0.000, y = 153.233, z = 0.000 }, level = 1 },
{ config_id = 140, gadget_id = 70900201, pos = { x = -145.004, y = 20.898, z = 73.701 }, rot = { x = 0.000, y = 260.139, z = 0.000 }, level = 1 },
{ config_id = 141, gadget_id = 70900202, pos = { x = -147.252, y = 20.577, z = 45.472 }, rot = { x = 0.000, y = 153.773, z = 0.000 }, level = 1 },
{ config_id = 142, gadget_id = 70900201, pos = { x = -147.084, y = 23.299, z = 36.055 }, rot = { x = 0.000, y = 315.355, z = 0.000 }, level = 1 },
{ config_id = 179, gadget_id = 70900201, pos = { x = -78.032, y = -5.085, z = 102.966 }, rot = { x = 0.000, y = 165.455, z = 0.000 }, level = 1 },
{ config_id = 180, gadget_id = 70900201, pos = { x = -58.156, y = -5.750, z = 90.192 }, rot = { x = 0.000, y = 165.455, z = 0.000 }, level = 1 },
{ config_id = 221, gadget_id = 70220013, pos = { x = -45.893, y = -7.984, z = 83.410 }, rot = { x = 0.000, y = 345.009, z = 0.000 }, level = 1 },
{ config_id = 222, gadget_id = 70220014, pos = { x = -47.239, y = -7.984, z = 82.956 }, rot = { x = 0.000, y = 197.503, z = 0.000 }, level = 1 },
{ config_id = 223, gadget_id = 70220014, pos = { x = -45.619, y = -7.984, z = 85.002 }, rot = { x = 0.000, y = 69.885, z = 0.000 }, level = 1 },
{ config_id = 224, gadget_id = 70220014, pos = { x = -58.787, y = -8.041, z = 98.614 }, rot = { x = 0.000, y = 191.643, z = 0.000 }, level = 1 },
{ config_id = 226, gadget_id = 70220013, pos = { x = -52.181, y = -7.984, z = 83.359 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 227, gadget_id = 70220003, pos = { x = -73.840, y = -7.983, z = 99.019 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, drop_id = 11010200, drop_count = 1 },
{ config_id = 228, gadget_id = 70220003, pos = { x = -67.307, y = -7.984, z = 96.299 }, rot = { x = 0.000, y = 51.507, z = 0.000 }, level = 1, drop_id = 11010200, drop_count = 1 },
{ config_id = 229, gadget_id = 70220003, pos = { x = -68.884, y = -7.924, z = 96.876 }, rot = { x = 359.949, y = 113.010, z = 1.169 }, level = 1, drop_id = 11010200, drop_count = 1 },
{ config_id = 230, gadget_id = 70220003, pos = { x = -70.340, y = -8.014, z = 99.588 }, rot = { x = 0.000, y = 49.948, z = 0.000 }, level = 1, drop_id = 11010200, drop_count = 1 },
{ config_id = 231, gadget_id = 70220003, pos = { x = -70.526, y = -7.983, z = 96.307 }, rot = { x = 0.000, y = 104.500, z = 0.000 }, level = 1, drop_id = 11010200, drop_count = 1 },
{ config_id = 232, gadget_id = 70220003, pos = { x = -72.420, y = -7.984, z = 97.557 }, rot = { x = 0.000, y = 300.400, z = 0.000 }, level = 1, drop_id = 11010200, drop_count = 1 },
{ config_id = 266, gadget_id = 70220003, pos = { x = -91.194, y = -15.556, z = 103.128 }, rot = { x = 0.000, y = 4.192, z = 0.000 }, level = 1, drop_id = 11010200, drop_count = 1 },
{ config_id = 267, gadget_id = 70220003, pos = { x = -90.185, y = -15.475, z = 102.534 }, rot = { x = 0.000, y = 4.192, z = 0.000 }, level = 1, drop_id = 11010200, drop_count = 1 },
{ config_id = 268, gadget_id = 70220003, pos = { x = -93.620, y = -15.371, z = 102.818 }, rot = { x = 0.000, y = 4.192, z = 0.000 }, level = 1, drop_id = 11010200, drop_count = 1 },
{ config_id = 277, gadget_id = 70220025, pos = { x = -46.020, y = -7.910, z = 85.765 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 278, gadget_id = 70220025, pos = { x = -45.719, y = -7.955, z = 84.087 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 279, gadget_id = 70220025, pos = { x = -46.600, y = -7.920, z = 104.200 }, rot = { x = 274.136, y = 265.819, z = 100.064 }, level = 1 },
{ config_id = 280, gadget_id = 70220025, pos = { x = -48.236, y = -7.946, z = 104.247 }, rot = { x = 270.000, y = 296.124, z = 0.000 }, level = 1 },
{ config_id = 281, gadget_id = 70220025, pos = { x = -47.380, y = -7.913, z = 106.320 }, rot = { x = 270.000, y = 296.124, z = 0.000 }, level = 1 },
{ config_id = 282, gadget_id = 70220025, pos = { x = -92.060, y = -11.283, z = 133.565 }, rot = { x = 270.020, y = 272.832, z = 0.000 }, level = 1 },
{ config_id = 283, gadget_id = 70220025, pos = { x = -92.089, y = -11.608, z = 130.526 }, rot = { x = 270.000, y = 343.412, z = 0.000 }, level = 1 },
{ config_id = 288, gadget_id = 70220025, pos = { x = -143.230, y = 14.340, z = 61.390 }, rot = { x = 270.000, y = 132.925, z = 0.000 }, level = 1 },
{ config_id = 289, gadget_id = 70220025, pos = { x = -137.530, y = -12.420, z = 141.240 }, rot = { x = 270.000, y = 78.869, z = 0.000 }, level = 1 },
{ config_id = 290, gadget_id = 70220025, pos = { x = -139.580, y = -12.420, z = 138.440 }, rot = { x = 270.000, y = 80.850, z = 0.000 }, level = 1 },
{ config_id = 291, gadget_id = 70220025, pos = { x = -111.200, y = -12.420, z = 139.370 }, rot = { x = 270.000, y = 96.378, z = 0.000 }, level = 1 },
{ config_id = 292, gadget_id = 70220025, pos = { x = -108.940, y = -12.420, z = 140.470 }, rot = { x = 270.000, y = 96.378, z = 0.000 }, level = 1 },
{ config_id = 293, gadget_id = 70220025, pos = { x = -112.410, y = -12.420, z = 141.760 }, rot = { x = 270.000, y = 96.378, z = 0.000 }, level = 1 },
{ config_id = 294, gadget_id = 70220025, pos = { x = -132.030, y = -12.420, z = 109.550 }, rot = { x = 270.000, y = 96.378, z = 0.000 }, level = 1 },
{ config_id = 295, gadget_id = 70220025, pos = { x = -144.838, y = -12.536, z = 110.801 }, rot = { x = 272.071, y = 90.591, z = 6.574 }, level = 1 },
{ config_id = 296, gadget_id = 70220025, pos = { x = -125.870, y = -0.330, z = 133.040 }, rot = { x = 270.000, y = 106.782, z = 0.000 }, level = 1 },
{ config_id = 297, gadget_id = 70220025, pos = { x = -128.880, y = -0.330, z = 131.900 }, rot = { x = 270.000, y = 106.782, z = 0.000 }, level = 1 },
{ config_id = 298, gadget_id = 70220025, pos = { x = -127.540, y = -0.330, z = 128.010 }, rot = { x = 270.000, y = 106.782, z = 0.000 }, level = 1 },
{ config_id = 299, gadget_id = 70220025, pos = { x = -129.810, y = -0.330, z = 121.230 }, rot = { x = 270.000, y = 106.782, z = 0.000 }, level = 1 },
{ config_id = 300, gadget_id = 70220025, pos = { x = -124.960, y = -0.330, z = 122.830 }, rot = { x = 270.000, y = 106.782, z = 0.000 }, level = 1 },
{ config_id = 301, gadget_id = 70220025, pos = { x = -130.170, y = -0.330, z = 129.960 }, rot = { x = 270.000, y = 68.164, z = 0.000 }, level = 1 },
{ config_id = 302, gadget_id = 70220025, pos = { x = -140.410, y = -12.420, z = 137.020 }, rot = { x = 270.000, y = 80.850, z = 0.000 }, level = 1 },
{ config_id = 303, gadget_id = 70220025, pos = { x = -135.530, y = -12.420, z = 141.960 }, rot = { x = 270.000, y = 80.850, z = 0.000 }, level = 1 },
{ config_id = 304, gadget_id = 70220025, pos = { x = -137.500, y = -12.420, z = 139.160 }, rot = { x = 270.000, y = 80.850, z = 0.000 }, level = 1 },
{ config_id = 305, gadget_id = 70220025, pos = { x = -141.050, y = -12.420, z = 139.810 }, rot = { x = 270.000, y = 78.869, z = 0.000 }, level = 1 },
{ config_id = 306, gadget_id = 70220025, pos = { x = -108.570, y = -12.420, z = 137.840 }, rot = { x = 270.000, y = 96.378, z = 0.000 }, level = 1 },
{ config_id = 307, gadget_id = 70220025, pos = { x = -82.535, y = -15.596, z = 128.959 }, rot = { x = 270.000, y = 184.972, z = 0.000 }, level = 1 },
{ config_id = 308, gadget_id = 70220025, pos = { x = -80.677, y = -15.491, z = 128.851 }, rot = { x = 273.102, y = 274.972, z = 270.000 }, level = 1 },
{ config_id = 309, gadget_id = 70220014, pos = { x = -54.273, y = -7.983, z = 86.140 }, rot = { x = 0.000, y = 197.503, z = 0.000 }, level = 1 },
{ config_id = 310, gadget_id = 70220014, pos = { x = -54.265, y = -7.983, z = 85.149 }, rot = { x = 0.000, y = 197.503, z = 0.000 }, level = 1 },
{ config_id = 311, gadget_id = 70220005, pos = { x = -86.860, y = -15.483, z = 102.123 }, rot = { x = 0.000, y = 20.955, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3, shape = RegionShape.SPHERE, radius = 8.31, pos = { x = -31.918, y = -7.914, z = 97.735 } },
{ config_id = 4, shape = RegionShape.SPHERE, radius = 18.11, pos = { x = -55.900, y = -7.983, z = 98.000 } },
{ config_id = 11, shape = RegionShape.SPHERE, radius = 14.82, pos = { x = -57.836, y = -7.984, z = 94.916 } },
{ config_id = 23, shape = RegionShape.SPHERE, radius = 5, pos = { x = -128.691, y = -12.343, z = 106.523 } },
{ config_id = 24, shape = RegionShape.CUBIC, size = { x = 53.300, y = 30.180, z = 1.000 }, pos = { x = -146.000, y = 27.580, z = 64.569 } },
{ config_id = 25, shape = RegionShape.CUBIC, size = { x = 28.840, y = 13.500, z = 3.000 }, pos = { x = -82.392, y = -7.983, z = 103.346 } },
{ config_id = 31, shape = RegionShape.CUBIC, size = { x = 2.080, y = 1.000, z = 6.620 }, pos = { x = -105.123, y = -12.483, z = 125.626 } },
{ config_id = 32, shape = RegionShape.CUBIC, size = { x = 38.870, y = 29.000, z = 2.700 }, pos = { x = -146.564, y = 21.306, z = 78.699 } },
{ config_id = 37, shape = RegionShape.SPHERE, radius = 5, pos = { x = -61.871, y = -8.136, z = 89.862 } }
}
-- 触发器
triggers = {
{ config_id = 1000003, name = "ENTER_REGION_3", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_3", action = "action_EVENT_ENTER_REGION_3", forbid_guest = false },
{ config_id = 1000004, name = "ENTER_REGION_4", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_4", action = "action_EVENT_ENTER_REGION_4", forbid_guest = false },
{ config_id = 1000006, name = "ANY_MONSTER_DIE_6", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_6", action = "" },
{ config_id = 1000008, name = "DUNGEON_SETTLE_8", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_8", action = "" },
{ config_id = 1000009, name = "GADGET_CREATE_9", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_9", action = "action_EVENT_GADGET_CREATE_9" },
{ config_id = 1000011, name = "ENTER_REGION_11", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11", action = "", forbid_guest = false },
{ config_id = 1000017, name = "SELECT_OPTION_17", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_17", action = "action_EVENT_SELECT_OPTION_17", forbid_guest = false },
{ config_id = 1000023, name = "ENTER_REGION_23", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_23", action = "action_EVENT_ENTER_REGION_23", forbid_guest = false },
{ config_id = 1000024, name = "ENTER_REGION_24", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_24", action = "action_EVENT_ENTER_REGION_24", forbid_guest = false },
{ config_id = 1000025, name = "ENTER_REGION_25", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_25", action = "action_EVENT_ENTER_REGION_25", forbid_guest = false },
{ config_id = 1000031, name = "ENTER_REGION_31", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_31", action = "action_EVENT_ENTER_REGION_31", forbid_guest = false },
{ config_id = 1000032, name = "ENTER_REGION_32", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_32", action = "action_EVENT_ENTER_REGION_32", forbid_guest = false },
{ config_id = 1000034, name = "ANY_GADGET_DIE_34", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_34", action = "action_EVENT_ANY_GADGET_DIE_34" },
{ config_id = 1000036, name = "ANY_GADGET_DIE_36", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_36", action = "action_EVENT_ANY_GADGET_DIE_36" },
{ config_id = 1000037, name = "ENTER_REGION_37", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_37", action = "action_EVENT_ENTER_REGION_37", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 40, 54, 55, 117, 133, 136, 221, 222, 223, 224, 227, 228, 229, 230, 231, 232, 266, 267, 268, 277, 278, 279, 280, 281, 282, 283, 288, 289, 290, 291, 292, 293, 294, 295, 296, 297, 298, 299, 300, 301, 302, 303, 304, 305, 306, 307, 308, 309, 310, 311 },
regions = { 3, 4, 11, 23, 24, 25, 31, 32, 37 },
triggers = { "ENTER_REGION_3", "ENTER_REGION_4", "ANY_MONSTER_DIE_6", "GADGET_CREATE_9", "ENTER_REGION_11", "SELECT_OPTION_17", "ENTER_REGION_23", "ENTER_REGION_24", "ENTER_REGION_25", "ENTER_REGION_31", "ENTER_REGION_32", "ANY_GADGET_DIE_34", "ANY_GADGET_DIE_36", "ENTER_REGION_37" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_3(context, evt)
if evt.param1 ~= 3 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_3(context, evt)
-- 调用提示id为 1001002 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1001002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_4(context, evt)
if evt.param1 ~= 4 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_4(context, evt)
if 0 ~= ScriptLib.ShowReminder(context, 1002001) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_1 }) then
return -1
end
pos = {x=-147.3, y=33.0, z=49.9}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_6(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_8(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_9(context, evt)
-- 判断是gadgetid 54
if 54 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_9(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11(context, evt)
if evt.param1 ~= 11 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 condition_EVENT_SELECT_OPTION_17(context, evt)
-- 判断是gadgetid 54 option_id 1
if 54 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_17(context, evt)
-- 改变指定group组220009001中 configid为54的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220009001, 54, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220009001中 configid为55的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220009001, 55, GadgetState.GearStart) 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 = 220009001, monsters = {}, gadgets = {133} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 删除指定group 220009001 指定config54物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220009001, 54, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_23(context, evt)
if evt.param1 ~= 23 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_23(context, evt)
-- 创生gadget 140
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 140 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220009001, monsters = {}, gadgets = {139} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 触发镜头注目,注目位置为坐标(-1481875持续时间为3秒并且为强制注目形式不广播其他玩家
local pos = {x=-148, y=18, z=75}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_24(context, evt)
if evt.param1 ~= 24 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_24(context, evt)
-- 调用提示id为 1032001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1032001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_25(context, evt)
if evt.param1 ~= 25 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_25(context, evt)
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_2 }) then
return -1
end
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220009001, monsters = {}, gadgets = {defs.gadget_id_6} }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_31(context, evt)
if evt.param1 ~= 31 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_31(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220009001, monsters = {}, gadgets = {138} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创生gadget 139
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 139 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_32(context, evt)
if evt.param1 ~= 32 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_32(context, evt)
-- 创生gadget 141
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 141 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220009001, monsters = {}, gadgets = {140} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_34(context, evt)
if 141 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_34(context, evt)
-- 创生gadget 142
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 142 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_36(context, evt)
if 117 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_36(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220009001, monsters = {}, gadgets = {137} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创生gadget 180
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 180 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_37(context, evt)
if evt.param1 ~= 37 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_37(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220009001, monsters = {}, gadgets = {180} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创生gadget 179
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 179 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end

View File

@@ -0,0 +1,260 @@
-- 基础信息
local base_info = {
group_id = 220009002
}
-- Trigger变量
local defs = {
gadget_id_1 = 205,
gadget_id_2 = 235,
gadget_id_3 = 236,
gadget_id_4 = 237,
gadget_id_5 = 239
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1, monster_id = 21010301, pos = { x = -81.290, y = -15.397, z = 117.627 }, rot = { x = 0.000, y = 245.495, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 56, gadget_id = 70350003, pos = { x = -102.896, y = -12.620, z = 125.774 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 195, gadget_id = 70220013, pos = { x = -74.946, y = -15.585, z = 128.889 }, rot = { x = 6.239, y = 76.614, z = 0.000 }, level = 1 },
{ config_id = 196, gadget_id = 70220013, pos = { x = -76.636, y = -15.525, z = 130.226 }, rot = { x = 0.000, y = 343.343, z = 358.631 }, level = 1 },
{ config_id = 201, gadget_id = 70220014, pos = { x = -74.678, y = -15.505, z = 127.274 }, rot = { x = 0.000, y = 227.925, z = 0.000 }, level = 1 },
{ config_id = 202, gadget_id = 70220014, pos = { x = -85.905, y = -15.496, z = 130.270 }, rot = { x = 0.000, y = 144.043, z = 0.000 }, level = 1 },
{ config_id = 203, gadget_id = 70220014, pos = { x = -86.730, y = -15.611, z = 128.996 }, rot = { x = 0.000, y = 150.564, z = 0.000 }, level = 1 },
{ config_id = 205, gadget_id = 70211002, pos = { x = -81.624, y = -15.606, z = 129.374 }, rot = { x = 0.000, y = 180.072, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 235, gadget_id = 70220007, pos = { x = -92.485, y = -15.483, z = 101.636 }, rot = { x = 0.000, y = 15.024, z = 0.000 }, level = 1 },
{ config_id = 236, gadget_id = 70220007, pos = { x = -90.272, y = -15.484, z = 99.337 }, rot = { x = 0.000, y = 274.345, z = 0.000 }, level = 1 },
{ config_id = 237, gadget_id = 70220007, pos = { x = -92.296, y = -10.603, z = 96.805 }, rot = { x = 86.555, y = 175.767, z = 180.000 }, level = 1 },
{ config_id = 238, gadget_id = 70211001, pos = { x = -94.280, y = -15.052, z = 98.450 }, rot = { x = 0.000, y = 46.422, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 239, gadget_id = 70220005, pos = { x = -90.206, y = -15.478, z = 103.334 }, rot = { x = 0.000, y = 33.307, z = 0.000 }, level = 1 },
{ config_id = 242, gadget_id = 70220013, pos = { x = -72.054, y = -15.484, z = 103.397 }, rot = { x = 0.680, y = 13.127, z = 358.812 }, level = 1 },
{ config_id = 243, gadget_id = 70220013, pos = { x = -71.111, y = -15.484, z = 105.301 }, rot = { x = 1.069, y = 34.689, z = 359.145 }, level = 1 },
{ config_id = 244, gadget_id = 70220014, pos = { x = -70.596, y = -15.484, z = 106.722 }, rot = { x = 0.000, y = 144.043, z = 0.000 }, level = 1 },
{ config_id = 245, gadget_id = 70220014, pos = { x = -73.577, y = -15.405, z = 102.923 }, rot = { x = 0.000, y = 144.043, z = 0.000 }, level = 1 },
{ config_id = 269, gadget_id = 70220005, pos = { x = -92.488, y = -15.543, z = 103.780 }, rot = { x = 0.000, y = 44.118, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 15, shape = RegionShape.CUBIC, size = { x = 30.000, y = 10.000, z = 40.000 }, pos = { x = -133.848, y = -12.483, z = 129.853 } },
{ config_id = 21, shape = RegionShape.SPHERE, radius = 5, pos = { x = -127.516, y = -12.221, z = 105.636 } },
{ config_id = 42, shape = RegionShape.CUBIC, size = { x = 31.010, y = 20.960, z = 3.860 }, pos = { x = -83.849, y = -15.483, z = 106.733 } }
}
-- 触发器
triggers = {
{ config_id = 1000015, name = "ENTER_REGION_15", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15", action = "action_EVENT_ENTER_REGION_15", trigger_count = 0, forbid_guest = false },
{ config_id = 1000021, name = "ENTER_REGION_21", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_21", action = "action_EVENT_ENTER_REGION_21", forbid_guest = false },
{ config_id = 1000038, name = "ANY_MONSTER_DIE_38", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_38", action = "action_EVENT_ANY_MONSTER_DIE_38" },
{ config_id = 1000039, name = "TIMER_EVENT_39", event = EventType.EVENT_TIMER_EVENT, source = "start", condition = "", action = "action_EVENT_TIMER_EVENT_39" },
{ config_id = 1000042, name = "ENTER_REGION_42", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_42", action = "action_EVENT_ENTER_REGION_42", trigger_count = 0, forbid_guest = false },
{ config_id = 1000043, name = "CLIENT_EXECUTE_43", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElementFlora", condition = "", action = "action_EVENT_CLIENT_EXECUTE_43", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "isoff", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1000044, name = "ANY_GADGET_DIE_44", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_44", action = "action_EVENT_ANY_GADGET_DIE_44" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 1 },
gadgets = { 56, 195, 196, 201, 202, 203, 205, 235, 236, 237, 238, 239, 242, 243, 244, 245, 269 },
regions = { 15, 21, 42 },
triggers = { "ENTER_REGION_15", "ENTER_REGION_21", "ANY_MONSTER_DIE_38", "TIMER_EVENT_39", "ENTER_REGION_42", "CLIENT_EXECUTE_43" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_15(context, evt)
if evt.param1 ~= 15 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_15(context, evt)
-- 将configid为 56 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 56, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "isoff" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isoff", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_21(context, evt)
if evt.param1 ~= 21 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_21(context, evt)
-- 将configid为 56 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 56, 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_38(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_38(context, evt)
-- play_type含义1·代表开始播放 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=-101, y=-6, z=124}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
return -1
end
-- 调用提示id为 10010101 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10010101) then
return -1
end
-- 延迟4秒后,向groupId为220009002的对象,请求一次调用,并将string参数"start" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220009002, "start", 4) then
return -1
end
-- 解锁目标205
if 0 ~= ScriptLib.ChangeGroupGadget(context, { config_id = defs.gadget_id_1, state = GadgetState.Default }) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_39(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220009007, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_42(context, evt)
if evt.param1 ~= 42 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"isoff"为1
if ScriptLib.GetGroupVariableValue(context, "isoff") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_42(context, evt)
-- 将configid为 56 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 56, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_43(context, evt)
-- 针对groupid为 220009002 中该config对应的物件进行状态改变操作
local this_gadget = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
--ScriptLib.PrintLog("config_id="..this_gadget)
ScriptLib.SetGadgetEnableInteract(context, 220009002, this_gadget, true)
return 0
end

View File

@@ -0,0 +1,268 @@
-- 基础信息
local base_info = {
group_id = 220009003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4, monster_id = 21010301, pos = { x = -132.754, y = -12.484, z = 123.487 }, rot = { x = 0.000, y = 17.425, z = 0.000 }, level = 1, disableWander = true, pose_id = 9003 },
{ config_id = 7, monster_id = 21010301, pos = { x = -132.701, y = -12.404, z = 132.173 }, rot = { x = 0.000, y = 172.644, z = 0.000 }, level = 1, disableWander = true, pose_id = 9003 },
{ config_id = 20, monster_id = 21010301, pos = { x = -136.623, y = -12.404, z = 125.420 }, rot = { x = 0.000, y = 7.778, z = 0.000 }, level = 1 },
{ config_id = 23, monster_id = 21010401, pos = { x = -133.949, y = -10.628, z = 135.540 }, rot = { x = 0.000, y = 185.298, z = 0.000 }, level = 1, disableWander = true, pose_id = 402 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6, gadget_id = 70211021, pos = { x = -147.059, y = 18.017, z = 41.452 }, rot = { x = 0.000, y = 0.173, z = 0.000 }, level = 1, chest_drop_id = 11010300, drop_count = 1, isOneoff = true },
{ config_id = 58, gadget_id = 70350003, pos = { x = -128.496, y = -12.591, z = 112.104 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 115, gadget_id = 70211001, pos = { x = -122.952, y = -0.587, z = 124.220 }, rot = { x = 0.000, y = 91.315, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 121, gadget_id = 70690001, pos = { x = -132.751, y = -12.542, z = 101.901 }, rot = { x = 15.200, y = 230.200, z = 0.000 }, level = 1 },
{ config_id = 122, gadget_id = 70690001, pos = { x = -138.812, y = -14.223, z = 97.888 }, rot = { x = 327.110, y = 242.700, z = 0.000 }, level = 1 },
{ config_id = 123, gadget_id = 70690001, pos = { x = -147.262, y = -8.902, z = 93.456 }, rot = { x = 319.600, y = 244.000, z = 0.000 }, level = 1 },
{ config_id = 124, gadget_id = 70690001, pos = { x = -154.469, y = -4.187, z = 89.189 }, rot = { x = 310.100, y = 215.000, z = 0.000 }, level = 1 },
{ config_id = 125, gadget_id = 70690001, pos = { x = -157.980, y = 3.730, z = 83.446 }, rot = { x = 295.000, y = 140.600, z = 0.000 }, level = 1 },
{ config_id = 130, gadget_id = 70300014, pos = { x = -147.284, y = 18.016, z = 45.438 }, rot = { x = 0.000, y = 122.580, z = 0.000 }, level = 1 },
{ config_id = 131, gadget_id = 70690001, pos = { x = -134.000, y = 26.000, z = 97.900 }, rot = { x = 13.300, y = 205.400, z = 0.000 }, level = 1 },
{ config_id = 206, gadget_id = 70211002, pos = { x = -139.312, y = -12.483, z = 127.649 }, rot = { x = 0.000, y = 90.168, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 207, gadget_id = 70220013, pos = { x = -123.054, y = -12.476, z = 141.902 }, rot = { x = 359.858, y = 179.868, z = 1.128 }, level = 1 },
{ config_id = 209, gadget_id = 70220013, pos = { x = -138.418, y = -12.484, z = 138.128 }, rot = { x = 0.000, y = 42.922, z = 0.000 }, level = 1 },
{ config_id = 211, gadget_id = 70220013, pos = { x = -114.150, y = -12.483, z = 141.406 }, rot = { x = 0.000, y = 164.645, z = 0.000 }, level = 1 },
{ config_id = 212, gadget_id = 70220014, pos = { x = -141.646, y = -12.484, z = 116.255 }, rot = { x = 0.000, y = 285.765, z = 0.000 }, level = 1 },
{ config_id = 215, gadget_id = 70220013, pos = { x = -107.744, y = -12.561, z = 138.859 }, rot = { x = 0.000, y = 164.645, z = 0.000 }, level = 1 },
{ config_id = 216, gadget_id = 70310001, pos = { x = -132.998, y = -12.541, z = 114.212 }, rot = { x = 0.000, y = 171.446, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 217, gadget_id = 70310001, pos = { x = -141.138, y = -12.559, z = 121.241 }, rot = { x = 0.000, y = 171.446, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 218, gadget_id = 70310001, pos = { x = -141.318, y = -12.484, z = 135.226 }, rot = { x = 0.000, y = 171.446, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 219, gadget_id = 70310001, pos = { x = -131.667, y = -12.483, z = 142.026 }, rot = { x = 0.000, y = 171.446, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 248, gadget_id = 70220005, pos = { x = -132.408, y = -12.491, z = 136.792 }, rot = { x = 0.000, y = 271.518, z = 0.000 }, level = 4 },
{ config_id = 249, gadget_id = 70220016, pos = { x = -121.724, y = -12.040, z = 114.013 }, rot = { x = 17.409, y = 85.074, z = 267.766 }, level = 1 },
{ config_id = 250, gadget_id = 70220016, pos = { x = -120.642, y = -11.957, z = 114.049 }, rot = { x = 17.409, y = 85.074, z = 267.766 }, level = 1 },
{ config_id = 251, gadget_id = 70220016, pos = { x = -119.528, y = -11.920, z = 114.137 }, rot = { x = 17.409, y = 85.074, z = 267.766 }, level = 1 },
{ config_id = 254, gadget_id = 70220005, pos = { x = -131.860, y = -12.498, z = 137.603 }, rot = { x = 0.000, y = 193.188, z = 0.000 }, level = 4 },
{ config_id = 255, gadget_id = 70220016, pos = { x = -116.855, y = -12.045, z = 141.685 }, rot = { x = 2.885, y = 272.707, z = 266.862 }, level = 1 },
{ config_id = 258, gadget_id = 70220014, pos = { x = -138.996, y = -12.527, z = 113.801 }, rot = { x = 0.000, y = 285.765, z = 0.000 }, level = 1 },
{ config_id = 259, gadget_id = 70220014, pos = { x = -137.855, y = -12.527, z = 113.808 }, rot = { x = 0.000, y = 285.765, z = 0.000 }, level = 1 },
{ config_id = 260, gadget_id = 70220016, pos = { x = -117.985, y = -12.031, z = 141.776 }, rot = { x = 2.885, y = 272.707, z = 266.862 }, level = 1 },
{ config_id = 261, gadget_id = 70220016, pos = { x = -119.203, y = -11.996, z = 141.726 }, rot = { x = 2.885, y = 272.707, z = 266.862 }, level = 1 },
{ config_id = 262, gadget_id = 70220013, pos = { x = -126.633, y = -12.483, z = 141.764 }, rot = { x = 359.858, y = 179.868, z = 1.128 }, level = 1 },
{ config_id = 263, gadget_id = 70220014, pos = { x = -124.851, y = -12.483, z = 141.822 }, rot = { x = 0.000, y = 285.765, z = 0.000 }, level = 1 },
{ config_id = 273, gadget_id = 70310001, pos = { x = -140.194, y = -12.484, z = 125.950 }, rot = { x = 0.000, y = 171.446, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 274, gadget_id = 70310001, pos = { x = -140.275, y = -12.484, z = 129.318 }, rot = { x = 0.000, y = 171.446, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 275, gadget_id = 70220013, pos = { x = -133.995, y = -12.484, z = 135.627 }, rot = { x = 0.000, y = 42.922, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 45, shape = RegionShape.SPHERE, radius = 5, pos = { x = -100.885, y = -12.859, z = 126.083 } },
{ config_id = 46, shape = RegionShape.SPHERE, radius = 5, pos = { x = -111.012, y = -12.483, z = 126.292 } }
}
-- 触发器
triggers = {
{ config_id = 1000002, name = "DUNGEON_SETTLE_2", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_2", action = "action_EVENT_DUNGEON_SETTLE_2" },
{ config_id = 1000016, name = "ANY_MONSTER_DIE_16", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_16", action = "action_EVENT_ANY_MONSTER_DIE_16" },
{ config_id = 1000033, name = "ANY_GADGET_DIE_33", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_33", action = "action_EVENT_ANY_GADGET_DIE_33" },
{ config_id = 1000045, name = "ENTER_REGION_45", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_45", action = "action_EVENT_ENTER_REGION_45", forbid_guest = false },
{ config_id = 1000046, name = "ENTER_REGION_46", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_46", action = "action_EVENT_ENTER_REGION_46", forbid_guest = false },
{ config_id = 1000050, name = "ANY_GADGET_DIE_50", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_50", action = "action_EVENT_ANY_GADGET_DIE_50" }
}
-- 变量
variables = {
{ config_id = 1, name = "isoff", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 4, 7, 20 },
gadgets = { 58, 115, 130, 206, 207, 209, 211, 212, 215, 216, 217, 218, 219, 248, 249, 250, 251, 254, 255, 258, 259, 260, 261, 262, 263, 273, 274, 275 },
regions = { 45, 46 },
triggers = { "DUNGEON_SETTLE_2", "ANY_MONSTER_DIE_16", "ANY_GADGET_DIE_33", "ENTER_REGION_45", "ENTER_REGION_46", "ANY_GADGET_DIE_50" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_2(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_2(context, evt)
-- 创生gadget 6
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 6 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_16(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_16(context, evt)
-- 将configid为 58 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 58, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 解锁目标206
if 0 ~= ScriptLib.ChangeGroupGadget(context, { config_id = 206, state = GadgetState.Default }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_33(context, evt)
if 130 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_33(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220009001, monsters = {}, gadgets = {141} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_45(context, evt)
if evt.param1 ~= 45 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_45(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 23, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_46(context, evt)
if evt.param1 ~= 46 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"isoff"为0
if ScriptLib.GetGroupVariableValue(context, "isoff") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_46(context, evt)
-- 触发镜头注目,注目位置为坐标(-132-11137持续时间为3秒并且为强制注目形式不广播其他玩家
local pos = {x=-132, y=-11, z=137}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 3, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 调用提示id为 10010201 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 10010201) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_50(context, evt)
if 248 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_50(context, evt)
-- 将本组内变量名为 "isoff" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isoff", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end

View File

@@ -0,0 +1,96 @@
-- 基础信息
local base_info = {
group_id = 220009006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 27, shape = RegionShape.SPHERE, radius = 5, pos = { x = -147.024, y = 17.958, z = 49.227 } }
}
-- 触发器
triggers = {
{ config_id = 1000027, name = "ENTER_REGION_27", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_27", action = "action_EVENT_ENTER_REGION_27", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { },
regions = { 27 },
triggers = { "ENTER_REGION_27" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_27(context, evt)
if evt.param1 ~= 27 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_27(context, evt)
-- 杀死Group内所有gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220009006, kill_policy = GroupKillPolicy.GROUP_KILL_GADGET }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_gadget_by_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,104 @@
-- 基础信息
local base_info = {
group_id = 220009007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 21, monster_id = 21010301, pos = { x = -100.805, y = -12.859, z = 127.209 }, rot = { x = 0.000, y = 89.310, z = 0.000 }, level = 1 },
{ config_id = 22, monster_id = 21010301, pos = { x = -100.625, y = -12.859, z = 124.179 }, rot = { x = 0.000, y = 89.310, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000040, name = "ANY_MONSTER_DIE_40", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_40", action = "action_EVENT_ANY_MONSTER_DIE_40" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 21, 22 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_40" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_40(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_40(context, evt)
-- 改变指定group组220009002中 configid为56的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220009002, 56, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end

View File

@@ -0,0 +1,301 @@
-- 基础信息
local base_info = {
group_id = 220009011
}
-- Trigger变量
local defs = {
gadget_id_1 = 8,
gadget_id_2 = 9,
gadget_id_3 = 10,
gadget_id_4 = 11,
gadget_id_5 = 12,
gadget_id_6 = 13,
gadget_id_7 = 14,
gadget_id_8 = 15,
gadget_id_9 = 17,
gadget_id_10 = 18,
gadget_id_11 = 19,
gadget_id_12 = 20,
gadget_id_13 = 21
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 264, gadget_id = 70900007, pos = { x = -127.457, y = -12.292, z = 105.543 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 265, gadget_id = 70900202, pos = { x = -127.446, y = -10.741, z = 105.566 }, rot = { x = 0.000, y = 273.797, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 48, shape = RegionShape.SPHERE, radius = 5, pos = { x = -110.526, y = -12.484, z = 125.723 } },
{ config_id = 55, shape = RegionShape.SPHERE, radius = 5, pos = { x = -128.157, y = -12.296, z = 106.285 } },
{ config_id = 57, shape = RegionShape.SPHERE, radius = 5, pos = { x = -128.394, y = -12.404, z = 103.065 } }
}
-- 触发器
triggers = {
{ config_id = 1000047, name = "GADGET_STATE_CHANGE_47", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_47", action = "action_EVENT_GADGET_STATE_CHANGE_47" },
{ config_id = 1000048, name = "ENTER_REGION_48", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_48", action = "action_EVENT_ENTER_REGION_48", forbid_guest = false },
{ config_id = 1000055, name = "ENTER_REGION_55", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_55", action = "action_EVENT_ENTER_REGION_55", forbid_guest = false },
{ config_id = 1000057, name = "ENTER_REGION_57", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_57", action = "action_EVENT_ENTER_REGION_57", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
{ config_id = 1, name = "isoff", value = 0, no_refresh = true },
{ config_id = 2, name = "windon1", value = 0, no_refresh = true },
{ config_id = 3, name = "windon2", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 48, 55, 57 },
triggers = { "GADGET_STATE_CHANGE_47", "ENTER_REGION_48", "ENTER_REGION_55", "ENTER_REGION_57" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_47(context, evt)
if 264 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_47(context, evt)
-- 将本组内变量名为 "isoff" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "isoff", 1) then
return -1
end
if 0 ~= ScriptLib.ShowClientGuide(context, "GuideAvatarFlyInWind") then
return -1
end
-- 将本组内变量名为 "windon1" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "windon1", 1) then
return -1
end
-- 解锁目标8
if 0 ~= ScriptLib.UnlockForce(context, defs.gadget_id_1) then
return -1
end
-- 解锁目标9
if 0 ~= ScriptLib.UnlockForce(context, defs.gadget_id_2) then
return -1
end
-- 解锁目标10
if 0 ~= ScriptLib.UnlockForce(context, defs.gadget_id_3) then
return -1
end
-- 解锁目标11
if 0 ~= ScriptLib.UnlockForce(context, defs.gadget_id_4) then
return -1
end
-- 解锁目标12
if 0 ~= ScriptLib.UnlockForce(context, defs.gadget_id_5) then
return -1
end
-- 解锁目标13
if 0 ~= ScriptLib.UnlockForce(context, defs.gadget_id_6) then
return -1
end
-- 解锁目标14
if 0 ~= ScriptLib.UnlockForce(context, defs.gadget_id_7) then
return -1
end
-- 解锁目标15
if 0 ~= ScriptLib.UnlockForce(context, defs.gadget_id_8) then
return -1
end
-- 解锁目标17
if 0 ~= ScriptLib.UnlockForce(context, defs.gadget_id_9) then
return -1
end
-- 解锁目标18
if 0 ~= ScriptLib.UnlockForce(context, defs.gadget_id_10) then
return -1
end
-- 解锁目标19
if 0 ~= ScriptLib.UnlockForce(context, defs.gadget_id_11) then
return -1
end
-- 解锁目标20
if 0 ~= ScriptLib.UnlockForce(context, defs.gadget_id_12) then
return -1
end
-- 解锁目标21
if 0 ~= ScriptLib.UnlockForce(context, defs.gadget_id_13) then
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220009011, monsters = {}, gadgets = {265} }) then
return -1
end
if ScriptLib.GetGroupVariableValue(context, "windon1") + ScriptLib.GetGroupVariableValue(context, "windon2") > 1 then
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "220009011") then
return -1
end
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_48(context, evt)
if evt.param1 ~= 48 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_48(context, evt)
-- 创生gadget 264
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 264 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_55(context, evt)
if evt.param1 ~= 55 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"isoff"为0
if ScriptLib.GetGroupVariableValue(context, "isoff") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_55(context, evt)
-- 调用提示id为 1031001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1031001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 创生gadget 265
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 265 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_57(context, evt)
if evt.param1 ~= 57 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_57(context, evt)
-- 将本组内变量名为 "windon2" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "windon2", 1) then
return -1
end
if ScriptLib.GetGroupVariableValue(context, "windon1") + ScriptLib.GetGroupVariableValue(context, "windon2") >1 then
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "220009011") then
return -1
end
end
return 0
end

View File

@@ -0,0 +1,71 @@
-- 基础信息
local base_info = {
group_id = 220009012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,71 @@
-- 基础信息
local base_info = {
group_id = 220009013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,120 @@
-- 基础信息
local base_info = {
group_id = 220009901
}
-- Trigger变量
local defs = {
gadget_id_1 = 28,
gadget_id_2 = 29,
gadget_id_3 = 30,
gadget_id_4 = 56
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 28, shape = RegionShape.SPHERE, radius = 20.4, pos = { x = -63.699, y = -7.984, z = 96.682 } },
{ config_id = 29, shape = RegionShape.CUBIC, size = { x = 20.000, y = 9.940, z = 20.000 }, pos = { x = -79.597, y = -7.613, z = 98.022 } },
{ config_id = 30, shape = RegionShape.SPHERE, radius = 16.2, pos = { x = -128.398, y = -12.483, z = 125.991 } },
{ config_id = 56, shape = RegionShape.SPHERE, radius = 5, pos = { x = -127.322, y = -12.404, z = 101.642 } }
}
-- 触发器
triggers = {
{ config_id = 1000028, name = "ENTER_REGION_28", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_28", action = "", trigger_count = 0, forbid_guest = false },
{ config_id = 1000029, name = "ENTER_REGION_29", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_29", action = "", trigger_count = 0, forbid_guest = false },
{ config_id = 1000030, name = "ENTER_REGION_30", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_30", action = "", trigger_count = 0, forbid_guest = false },
{ config_id = 1000056, name = "ENTER_REGION_56", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_56", action = "", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { },
regions = { 28, 29, 56 },
triggers = { "ENTER_REGION_28", "ENTER_REGION_29", "ENTER_REGION_56" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_28(context, evt)
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30607) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
return true
end
return false
end
-- 触发条件
function condition_EVENT_ENTER_REGION_29(context, evt)
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30608) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
return true
end
return false
end
-- 触发条件
function condition_EVENT_ENTER_REGION_30(context, evt)
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30609) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_3 then
return true
end
return false
end
-- 触发条件
function condition_EVENT_ENTER_REGION_56(context, evt)
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30612) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_4 then
return true
end
return false
end

File diff suppressed because it is too large Load Diff