添加配置表

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 = -3183.1, z = -3914.8 },
size = { x = 7251.8, z = 7647.9 },
born_pos = { x = 549.825, y = -43.000, z = 36.335 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = -80,
city_id = 1,
vision_anchor = { x = -3183.1, z = -3914.8 }
}
-- 所有的区块
blocks = { 20011 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -3183.1, z = -3914.8 }, max = { x = 4068.8, z = 3733.1 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }

View File

@@ -0,0 +1,432 @@
{
"sceneId": 20011,
"routes": [
{
"localId": 1,
"name": "Monster8",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 450.0475,
"y": -24.93475,
"z": 68.92326
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 445.268036,
"y": -24.78375,
"z": 66.11084
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 443.693939,
"y": -24.7836647,
"z": 71.88788
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 440.500183,
"y": -24.88075,
"z": 66.25617
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 2,
"name": "Monster11",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 406.544678,
"y": -24.1,
"z": 129.7899
},
"waitTime": 2.0,
"speedLevel": 1
},
{
"pos": {
"x": 406.007477,
"y": -24.1,
"z": 122.4812
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 404.424164,
"y": -24.1,
"z": 116.982361
},
"waitTime": 2.0,
"speedLevel": 1
}
]
},
{
"localId": 3,
"name": "Monster12",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 396.9108,
"y": -24.1,
"z": 130.860092
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 396.31778,
"y": -24.1,
"z": 126.755615
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 397.0787,
"y": -24.1,
"z": 122.50061
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 4,
"name": "Monster18",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 493.416046,
"y": -23.5500011,
"z": 123.702538
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 488.2016,
"y": -23.5500011,
"z": 124.158356
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 486.31485,
"y": -23.5500011,
"z": 131.073914
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 5,
"name": "Monster19",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 493.723083,
"y": -23.5500011,
"z": 117.225494
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 488.657562,
"y": -23.5500011,
"z": 117.516434
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 486.389771,
"y": -23.5500011,
"z": 111.764984
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 6,
"name": "Platform_70_1",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 531.6137,
"y": -22.354126,
"z": 141.291733
},
"waitTime": 2.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 531.7345,
"y": -25.9260368,
"z": 141.51712
},
"waitTime": 0.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 7,
"name": "Platform_007",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 526.57,
"y": -25.87,
"z": 121.53
},
"waitTime": 2.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 514.62,
"y": -25.87,
"z": 121.53
},
"waitTime": 2.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 8,
"name": "Platform_008",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 531.73,
"y": -8.97,
"z": 189.87
},
"waitTime": 3.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 531.73,
"y": -10.37,
"z": 163.65
},
"waitTime": 3.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 20011009,
"name": "Platform_140_1",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 520.592163,
"y": -25.9569244,
"z": 151.538712
},
"waitTime": 1.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 531.7254,
"y": -25.9303932,
"z": 146.457733
},
"waitTime": 1.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 20011010,
"name": "Platform_139_1",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 531.6551,
"y": -19.022974,
"z": 136.50238
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 531.7733,
"y": -25.91493,
"z": 136.483643
},
"waitTime": 1.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 20011011,
"name": "Platform_138_1",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 540.096741,
"y": -25.91135,
"z": 131.707916
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 531.764,
"y": -25.8959274,
"z": 131.4623
},
"waitTime": 1.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 20011012,
"name": "Platform_137_1",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 545.3401,
"y": -25.84115,
"z": 131.852661
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 544.449646,
"y": -27.0396252,
"z": 126.4357
},
"waitTime": 0.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 531.7497,
"y": -25.92897,
"z": 126.481857
},
"waitTime": 1.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 20011013,
"name": "Platform_141",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 531.597961,
"y": -25.75782,
"z": 151.429169
},
"waitTime": 2.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 531.6605,
"y": -10.3795509,
"z": 153.641891
},
"waitTime": 3.0,
"targetVelocity": 3.0
}
]
}
]
}

View File

@@ -0,0 +1,10 @@
-- 所有的group
groups = {
{ id = 220011001, refresh_id = 1001, pos = { x = 482.533, y = -21.557, z = 67.901 } },
{ id = 220011002, refresh_id = 1001, pos = { x = 404.611, y = -22.097, z = 123.562 } },
{ id = 220011003, refresh_id = 1001, pos = { x = 487.411, y = -21.557, z = 120.364 } },
{ id = 220011004, refresh_id = 1, pos = { x = 532.904, y = -1.984, z = 242.369 } },
{ id = 220011006, refresh_id = 1001, pos = { x = 411.579, y = -22.050, z = 67.135 } },
{ id = 220011007, refresh_id = 1, pos = { x = 512.678, y = -37.384, z = 70.972 } },
{ id = 220011901, pos = { x = 514.882, y = -37.384, z = 72.990 } }
}

View File

@@ -0,0 +1,9 @@
dummy_points = {
["Q30812Player"] = { pos = { x = 550.087, y = -38.184, z = 59.971 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q308Lisa"] = { pos = { x = 535.240, y = -1.984, z = 252.617 }, rot = { x = 0.000, y = 241.240, z = 0.000 } },
["Q308LisaDungeon"] = { pos = { x = 550.122, y = -38.150, z = 62.006 }, rot = { x = 0.000, y = 179.450, z = 0.000 } },
["Q308LisaWay"] = { pos = { x = 550.122, y = -38.150, z = 62.006 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["Q308Paimon"] = { pos = { x = 533.844, y = -1.984, z = 250.744 }, rot = { x = 0.000, y = 31.312, z = 0.000 } },
["Q308Player"] = { pos = { x = 533.174, y = -1.953, z = 251.773 }, rot = { x = 0.000, y = 73.661, z = 0.000 } },
["Q308SavePointIntro"] = { pos = { x = 474.457, y = -20.033, z = 72.402 }, rot = { x = 0.000, y = 0.000, z = 0.000 } }
}

View File

@@ -0,0 +1,653 @@
-- 基础信息
local base_info = {
group_id = 220011001
}
-- Trigger变量
local defs = {
gadget_id_1 = 1047
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1001, monster_id = 20011201, pos = { x = 448.686, y = -24.413, z = 68.376 }, rot = { x = 0.000, y = 92.335, z = 0.000 }, level = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1002, gadget_id = 70211101, pos = { x = 507.446, y = -37.485, z = 83.806 }, rot = { x = 0.000, y = 182.260, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", isOneoff = true },
{ config_id = 1003, gadget_id = 70350002, pos = { x = 469.561, y = -20.423, z = 67.499 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1004, gadget_id = 70360002, pos = { x = 475.525, y = -20.035, z = 63.895 }, rot = { x = 0.000, y = 90.056, z = 0.000 }, level = 1 },
{ config_id = 1005, gadget_id = 70211001, pos = { x = 428.371, y = -22.064, z = 53.570 }, rot = { x = 0.000, y = 321.609, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 1006, gadget_id = 70350002, pos = { x = 406.374, y = -22.161, z = 81.408 }, rot = { x = 0.000, y = 180.210, z = 0.000 }, level = 1 },
{ config_id = 1007, gadget_id = 70350002, pos = { x = 423.516, y = -22.097, z = 71.100 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1008, gadget_id = 70220013, pos = { x = 490.493, y = -20.051, z = 78.232 }, rot = { x = 0.000, y = 41.505, z = 0.000 }, level = 1 },
{ config_id = 1009, gadget_id = 70220013, pos = { x = 491.485, y = -20.265, z = 75.821 }, rot = { x = 0.000, y = 272.591, z = 0.000 }, level = 1 },
{ config_id = 1010, gadget_id = 70211101, pos = { x = 495.062, y = -20.033, z = 77.011 }, rot = { x = 0.000, y = 75.558, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", isOneoff = true },
{ config_id = 1011, gadget_id = 70220014, pos = { x = 489.414, y = -20.334, z = 79.560 }, rot = { x = 0.000, y = 283.946, z = 0.000 }, level = 1 },
{ config_id = 1012, gadget_id = 70220013, pos = { x = 502.881, y = -37.317, z = 81.759 }, rot = { x = 0.000, y = 351.358, z = 0.000 }, level = 1 },
{ config_id = 1013, gadget_id = 70220013, pos = { x = 505.355, y = -37.535, z = 82.002 }, rot = { x = 0.000, y = 314.506, z = 0.000 }, level = 1 },
{ config_id = 1014, gadget_id = 70220013, pos = { x = 504.487, y = -37.735, z = 80.146 }, rot = { x = 0.000, y = 290.533, z = 0.000 }, level = 1 },
{ config_id = 1015, gadget_id = 70310002, pos = { x = 494.202, y = -26.998, z = 70.886 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1016, gadget_id = 70310002, pos = { x = 494.425, y = -26.764, z = 64.127 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1017, gadget_id = 70310002, pos = { x = 495.341, y = -16.234, z = 72.000 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 1018, gadget_id = 70310002, pos = { x = 494.991, y = -16.363, z = 63.191 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1019, gadget_id = 70310002, pos = { x = 450.161, y = -19.643, z = 64.219 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1020, gadget_id = 70310001, pos = { x = 425.898, y = -22.324, z = 65.538 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1021, gadget_id = 70310001, pos = { x = 425.962, y = -22.151, z = 76.792 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1022, gadget_id = 70310001, pos = { x = 400.746, y = -20.073, z = 78.909 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 1023, gadget_id = 70310001, pos = { x = 411.845, y = -20.076, z = 78.945 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 1024, gadget_id = 70310002, pos = { x = 472.137, y = -15.665, z = 61.579 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1025, gadget_id = 70310002, pos = { x = 472.140, y = -15.580, z = 73.325 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1026, gadget_id = 70310002, pos = { x = 500.972, y = -31.446, z = 84.375 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 1027, gadget_id = 70310001, pos = { x = 420.841, y = -22.084, z = 58.142 }, rot = { x = 0.000, y = 98.952, z = 0.000 }, level = 1 },
{ config_id = 1028, gadget_id = 70310001, pos = { x = 544.595, y = -42.056, z = 46.233 }, rot = { x = 0.000, y = 223.245, z = 0.000 }, level = 1 },
{ config_id = 1029, gadget_id = 70310001, pos = { x = 555.298, y = -42.020, z = 46.185 }, rot = { x = 0.000, y = 183.036, z = 0.000 }, level = 1 },
{ config_id = 1030, gadget_id = 70310001, pos = { x = 544.739, y = -43.356, z = 40.212 }, rot = { x = 0.000, y = 63.973, z = 0.000 }, level = 1 },
{ config_id = 1031, gadget_id = 70310001, pos = { x = 555.476, y = -43.385, z = 40.564 }, rot = { x = 0.000, y = 83.172, z = 0.000 }, level = 1 },
{ config_id = 1032, gadget_id = 70310001, pos = { x = 555.558, y = -40.544, z = 51.271 }, rot = { x = 0.000, y = 76.840, z = 0.000 }, level = 1 },
{ config_id = 1033, gadget_id = 70310001, pos = { x = 544.648, y = -40.557, z = 51.131 }, rot = { x = 0.000, y = 265.978, z = 0.000 }, level = 1 },
{ config_id = 1034, gadget_id = 70310001, pos = { x = 555.398, y = -39.273, z = 55.224 }, rot = { x = 0.000, y = 209.609, z = 0.000 }, level = 1 },
{ config_id = 1035, gadget_id = 70310001, pos = { x = 544.782, y = -39.282, z = 55.270 }, rot = { x = 0.000, y = 97.228, z = 0.000 }, level = 1 },
{ config_id = 1036, gadget_id = 70310001, pos = { x = 555.310, y = -38.151, z = 71.121 }, rot = { x = 0.000, y = 348.422, z = 0.000 }, level = 1 },
{ config_id = 1037, gadget_id = 70310001, pos = { x = 545.100, y = -38.135, z = 71.161 }, rot = { x = 0.000, y = 239.016, z = 0.000 }, level = 1 },
{ config_id = 1038, gadget_id = 70310001, pos = { x = 555.394, y = -38.213, z = 81.758 }, rot = { x = 0.000, y = 21.280, z = 0.000 }, level = 1 },
{ config_id = 1039, gadget_id = 70310001, pos = { x = 545.119, y = -38.184, z = 81.482 }, rot = { x = 0.000, y = 100.803, z = 0.000 }, level = 1 },
{ config_id = 1040, gadget_id = 70900202, pos = { x = 532.301, y = 2.338, z = 219.869 }, rot = { x = 0.000, y = 331.636, z = 0.000 }, level = 1 },
{ config_id = 1041, gadget_id = 70900202, pos = { x = 496.332, y = -34.534, z = 67.662 }, rot = { x = 0.000, y = 274.978, z = 0.000 }, level = 1 },
{ config_id = 1042, gadget_id = 70900202, pos = { x = 475.449, y = -18.451, z = 63.887 }, rot = { x = 0.000, y = 162.878, z = 0.000 }, level = 1 },
{ config_id = 1047, gadget_id = 70900008, pos = { x = 410.549, y = -22.101, z = 63.921 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1048, gadget_id = 70211002, pos = { x = 400.092, y = -22.083, z = 65.379 }, rot = { x = 0.000, y = 91.011, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 1049, gadget_id = 70900201, pos = { x = 533.887, y = -1.984, z = 248.031 }, rot = { x = 0.000, y = 120.050, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 13, shape = RegionShape.SPHERE, radius = 9, pos = { x = 549.954, y = -38.121, z = 75.771 } },
{ config_id = 14, shape = RegionShape.CUBIC, size = { x = 15.000, y = 10.000, z = 25.000 }, pos = { x = 512.009, y = -35.200, z = 75.080 } },
{ config_id = 16, shape = RegionShape.CUBIC, size = { x = 6.000, y = 5.000, z = 12.000 }, pos = { x = 459.749, y = -22.562, z = 69.188 } },
{ config_id = 17, shape = RegionShape.CUBIC, size = { x = 6.000, y = 8.000, z = 3.800 }, pos = { x = 430.517, y = -22.137, z = 63.496 } },
{ config_id = 36, shape = RegionShape.CUBIC, size = { x = 8.000, y = 5.000, z = 8.000 }, pos = { x = 496.588, y = -27.480, z = 67.701 } },
{ config_id = 37, shape = RegionShape.CUBIC, size = { x = 6.000, y = 3.000, z = 9.000 }, pos = { x = 496.978, y = -16.889, z = 67.723 } },
{ config_id = 44, shape = RegionShape.CUBIC, size = { x = 15.000, y = 3.000, z = 3.000 }, pos = { x = 550.039, y = -42.195, z = 43.212 } },
{ config_id = 45, shape = RegionShape.CUBIC, size = { x = 15.000, y = 5.000, z = 3.000 }, pos = { x = 549.723, y = -41.104, z = 48.071 } },
{ config_id = 46, shape = RegionShape.SPHERE, radius = 5, pos = { x = 549.864, y = -38.150, z = 62.537 } }
}
-- 触发器
triggers = {
{ config_id = 1000001, name = "GADGET_CREATE_1", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1", action = "action_EVENT_GADGET_CREATE_1" },
{ config_id = 1000004, name = "SELECT_OPTION_4", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4", action = "action_EVENT_SELECT_OPTION_4", forbid_guest = false },
{ config_id = 1000007, name = "ANY_MONSTER_DIE_7", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7", action = "action_EVENT_ANY_MONSTER_DIE_7" },
{ 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 },
{ config_id = 1000016, name = "ENTER_REGION_16", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_16", action = "action_EVENT_ENTER_REGION_16", forbid_guest = false },
{ config_id = 1000017, name = "ENTER_REGION_17", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_17", action = "action_EVENT_ENTER_REGION_17", forbid_guest = false },
{ config_id = 1000036, name = "ENTER_REGION_36", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_36", action = "action_EVENT_ENTER_REGION_36", forbid_guest = false },
{ 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 },
{ config_id = 1000039, name = "GADGET_CREATE_39", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_39", action = "action_EVENT_GADGET_CREATE_39" },
{ config_id = 1000044, name = "ENTER_REGION_44", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_44", action = "action_EVENT_ENTER_REGION_44", forbid_guest = false },
{ 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 = 1000060, name = "GADGET_STATE_CHANGE_60", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_60", action = "action_EVENT_GADGET_STATE_CHANGE_60", trigger_count = 0 },
{ config_id = 1000064, name = "TIMER_EVENT_64", event = EventType.EVENT_TIMER_EVENT, source = "begin", condition = "", action = "action_EVENT_TIMER_EVENT_64", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 1001 },
gadgets = { 1002, 1003, 1004, 1005, 1006, 1007, 1008, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027, 1028, 1029, 1030, 1031, 1032, 1033, 1034, 1035, 1036, 1037, 1038, 1039, 1047, 1048 },
regions = { 13, 14, 16, 17, 36, 37, 44, 45, 46 },
triggers = { "GADGET_CREATE_1", "SELECT_OPTION_4", "ANY_MONSTER_DIE_7", "ENTER_REGION_13", "ENTER_REGION_14", "ENTER_REGION_16", "ENTER_REGION_17", "ENTER_REGION_36", "ENTER_REGION_37", "GADGET_CREATE_39", "ENTER_REGION_44", "ENTER_REGION_45", "ENTER_REGION_46", "GADGET_STATE_CHANGE_60", "TIMER_EVENT_64" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1(context, evt)
-- 判断是gadgetid 1004
if 1004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {1}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4(context, evt)
-- 判断是gadgetid 1004 option_id 1
if 1004 ~= evt.param1 then
return false
end
if 1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220011007, 2)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220011007, 3)
-- 将configid为 1003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 220011001 指定config1004物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220011001, 1004, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220011001, monsters = {}, gadgets = {1042} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_7(context, evt)
--判断死亡怪物的configid是否为 1001
if evt.param1 ~= 1001 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7(context, evt)
-- 将configid为 1007 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1007, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1020 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1020, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1021 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1021, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
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)
-- 触发镜头注目注目位置为坐标550-3583持续时间为3秒并且为强制注目形式不广播其他玩家
local pos = {x=550, y=-35, z=83}
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为 1041001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 创生gadget 1041
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1041 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
-- 创生gadget 1049
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1049 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
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)
-- 调用提示id为 1041011 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041011) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 展示名称为"GuideAvatarFlyInWind"的引导,见GuideData表参数类型为string
if 0 ~= ScriptLib.ShowClientGuide(context, "GuideAvatarFlyInWind") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : show_client_guide")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 220011001, EntityType.GADGET, 1049 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220011007, 2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_16(context, evt)
if evt.param1 ~= 16 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_16(context, evt)
-- 调用提示id为 1041041 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041041) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 将configid为 1019 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1019, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_17(context, evt)
if evt.param1 ~= 17 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_17(context, evt)
-- 调用提示id为 1041031 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041031) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_36(context, evt)
if evt.param1 ~= 36 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_36(context, evt)
-- 将configid为 1015 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1015, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1016 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1016, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220011001, monsters = {}, gadgets = {1041,1049} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创生gadget 1042
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 1042 }) 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)
-- 将configid为 1017 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1017, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1018 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1018, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1024 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1024, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1025 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1025, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_39(context, evt)
if 1026 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_39(context, evt)
-- 将configid为 1026 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1026, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1027 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1027, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_44(context, evt)
if evt.param1 ~= 44 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_44(context, evt)
-- 将configid为 1028 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1028, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1029 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1029, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1030 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1030, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1031 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1031, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
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)
-- 将configid为 1032 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1032, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1033 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1033, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1034 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1034, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1035 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1035, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
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
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_46(context, evt)
-- 将configid为 1036 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1036, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1037 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1037, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1038 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1038, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 1039 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1039, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_60(context, evt)
if GadgetState.GearStart ~= evt.param1 or defs.gadget_id_1 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_60(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "LisaOne") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : add_quest_progress")
return -1
end
-- 延迟3秒后,向groupId为220011001的对象,请求一次调用,并将string参数"begin" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220011001, "begin", 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_64(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220011006, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end

View File

@@ -0,0 +1,229 @@
-- 基础信息
local base_info = {
group_id = 220011002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2001, monster_id = 21010401, pos = { x = 403.547, y = -23.915, z = 127.105 }, rot = { x = 0.000, y = 182.002, z = 0.000 }, level = 3, disableWander = true, pose_id = 402 },
{ config_id = 2002, monster_id = 21010401, pos = { x = 408.938, y = -24.157, z = 125.166 }, rot = { x = 0.000, y = 206.842, z = 0.000 }, level = 3, disableWander = true, pose_id = 402 },
{ config_id = 2003, monster_id = 21010401, pos = { x = 397.369, y = -24.082, z = 125.887 }, rot = { x = 0.000, y = 159.597, z = 0.000 }, level = 3, disableWander = true, pose_id = 402 },
{ config_id = 2004, monster_id = 21010201, pos = { x = 400.309, y = -24.535, z = 130.894 }, rot = { x = 0.000, y = 181.892, z = 0.000 }, level = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2005, gadget_id = 70350002, pos = { x = 415.696, y = -24.157, z = 120.856 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 2006, gadget_id = 70211002, pos = { x = 403.362, y = -24.195, z = 122.321 }, rot = { x = 0.000, y = 180.016, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", state = GadgetState.ChestLocked, isOneoff = true },
{ config_id = 2007, gadget_id = 70220005, pos = { x = 399.790, y = -23.586, z = 140.555 }, rot = { x = 0.000, y = 212.019, z = 0.000 }, level = 1 },
{ config_id = 2008, gadget_id = 70220014, pos = { x = 401.448, y = -23.735, z = 141.314 }, rot = { x = 0.000, y = 206.747, z = 0.000 }, level = 1 },
{ config_id = 2009, gadget_id = 70220013, pos = { x = 404.071, y = -23.598, z = 141.198 }, rot = { x = 0.000, y = 199.722, z = 0.000 }, level = 1 },
{ config_id = 2010, gadget_id = 70220013, pos = { x = 402.690, y = -23.677, z = 142.969 }, rot = { x = 0.000, y = 205.364, z = 0.000 }, level = 1 },
{ config_id = 2011, gadget_id = 70220013, pos = { x = 399.898, y = -23.576, z = 142.352 }, rot = { x = 0.000, y = 92.675, z = 0.000 }, level = 1 },
{ config_id = 2012, gadget_id = 70310001, pos = { x = 414.010, y = -22.193, z = 126.607 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 2013, gadget_id = 70310001, pos = { x = 413.830, y = -22.155, z = 114.879 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 2014, gadget_id = 70900202, pos = { x = 422.935, y = -22.809, z = 120.917 }, rot = { x = 0.000, y = 215.579, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 33, shape = RegionShape.CUBIC, size = { x = 5.000, y = 3.000, z = 10.000 }, pos = { x = 418.490, y = -24.134, z = 121.102 } },
{ config_id = 62, shape = RegionShape.CUBIC, size = { x = 10.000, y = 3.000, z = 10.000 }, pos = { x = 418.126, y = -22.550, z = 71.301 } }
}
-- 触发器
triggers = {
{ config_id = 1000009, name = "ANY_MONSTER_DIE_9", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_9", action = "action_EVENT_ANY_MONSTER_DIE_9" },
{ 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" },
{ config_id = 1000033, name = "ENTER_REGION_33", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_33", action = "action_EVENT_ENTER_REGION_33", forbid_guest = false },
{ config_id = 1000062, name = "ENTER_REGION_62", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_62", action = "action_EVENT_ENTER_REGION_62", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 2001, 2002, 2003, 2004 },
gadgets = { 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 },
regions = { 33, 62 },
triggers = { "ANY_MONSTER_DIE_9", "ANY_MONSTER_DIE_32", "ENTER_REGION_33", "ENTER_REGION_62" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_9(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 220011007, 5)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220011007, 4)
-- 将configid为 2005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2012 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2012, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 2013 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2013, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创生gadget 2014
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 2014 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
-- 调用提示id为 1041042 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041042) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 触发镜头注目注目位置为坐标415-19121持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=415, y=-19, z=121}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_32(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_32(context, evt)
-- 将configid为 2006 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_33(context, evt)
if evt.param1 ~= 33 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_33(context, evt)
-- 调用提示id为 1041072 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041072) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_62(context, evt)
if evt.param1 ~= 62 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_62(context, evt)
-- 触发镜头注目注目位置为坐标410-2263持续时间为1秒并且为强制注目形式不广播其他玩家
local pos = {x=410, y=-22, z=63}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 1, 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为 1041093 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041093) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,520 @@
-- 基础信息
local base_info = {
group_id = 220011003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 3001, monster_id = 21010401, pos = { x = 488.998, y = -24.119, z = 126.999 }, rot = { x = 0.000, y = 239.999, z = 0.000 }, level = 3, pose_id = 402 },
{ config_id = 3002, monster_id = 21010401, pos = { x = 488.459, y = -23.420, z = 116.250 }, rot = { x = 0.000, y = 305.466, z = 0.000 }, level = 3, pose_id = 402 },
{ config_id = 3003, monster_id = 20011101, pos = { x = 486.595, y = -23.615, z = 120.939 }, rot = { x = 0.000, y = 269.280, z = 0.000 }, level = 3, disableWander = true },
{ config_id = 3004, monster_id = 21010401, pos = { x = 489.836, y = -22.880, z = 121.183 }, rot = { x = 0.000, y = 280.530, z = 0.000 }, level = 3, pose_id = 402 },
{ config_id = 3005, monster_id = 21010201, pos = { x = 480.113, y = -22.880, z = 126.691 }, rot = { x = 0.000, y = 140.117, z = 0.000 }, level = 3 },
{ config_id = 3006, monster_id = 21010201, pos = { x = 481.056, y = -22.880, z = 116.133 }, rot = { x = 0.000, y = 53.650, z = 0.000 }, level = 3 },
{ config_id = 3007, monster_id = 21010201, pos = { x = 491.968, y = -23.010, z = 116.600 }, rot = { x = 0.000, y = 297.970, z = 0.000 }, level = 3 },
{ config_id = 3008, monster_id = 21010201, pos = { x = 492.038, y = -23.010, z = 126.518 }, rot = { x = 0.000, y = 225.324, z = 0.000 }, level = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3009, gadget_id = 70350002, pos = { x = 463.668, y = -9.541, z = 120.944 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 3010, gadget_id = 70350002, pos = { x = 500.938, y = -23.180, z = 121.640 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3011, gadget_id = 70310001, pos = { x = 460.074, y = -7.317, z = 126.777 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3012, gadget_id = 70310001, pos = { x = 460.087, y = -7.185, z = 115.093 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3013, gadget_id = 70310002, pos = { x = 498.672, y = -18.596, z = 127.408 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3014, gadget_id = 70310002, pos = { x = 498.679, y = -18.511, z = 116.032 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3015, gadget_id = 70310002, pos = { x = 430.307, y = -13.330, z = 128.477 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3016, gadget_id = 70310002, pos = { x = 430.301, y = -13.358, z = 114.697 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3017, gadget_id = 70310002, pos = { x = 430.318, y = -19.403, z = 128.472 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3018, gadget_id = 70310002, pos = { x = 430.298, y = -19.434, z = 114.665 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 3019, gadget_id = 70900202, pos = { x = 511.916, y = -24.254, z = 121.694 }, rot = { x = 0.000, y = 48.844, z = 0.000 }, level = 1 },
{ config_id = 3020, gadget_id = 70900202, pos = { x = 532.830, y = -23.262, z = 123.108 }, rot = { x = 0.000, y = 215.626, z = 0.000 }, level = 1 },
{ config_id = 3021, gadget_id = 70220013, pos = { x = 458.379, y = -9.350, z = 111.762 }, rot = { x = 0.000, y = 147.084, z = 0.000 }, level = 1 },
{ config_id = 3022, gadget_id = 70220013, pos = { x = 455.744, y = -9.300, z = 111.288 }, rot = { x = 0.000, y = 241.337, z = 0.000 }, level = 1 },
{ config_id = 3023, gadget_id = 70220013, pos = { x = 453.328, y = -9.254, z = 110.179 }, rot = { x = 0.000, y = 163.634, z = 0.000 }, level = 1 },
{ config_id = 3024, gadget_id = 70220013, pos = { x = 459.152, y = -9.254, z = 109.246 }, rot = { x = 0.000, y = 238.989, z = 0.000 }, level = 1 },
{ config_id = 3025, gadget_id = 70211101, pos = { x = 456.424, y = -9.254, z = 107.768 }, rot = { x = 0.000, y = 245.888, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", isOneoff = true },
{ config_id = 3026, gadget_id = 70220014, pos = { x = 455.003, y = -9.366, z = 109.295 }, rot = { x = 0.000, y = 299.250, z = 0.000 }, level = 1 },
{ config_id = 3027, gadget_id = 70220014, pos = { x = 456.474, y = -9.254, z = 113.151 }, rot = { x = 0.000, y = 34.842, z = 0.000 }, level = 1 },
{ config_id = 3028, gadget_id = 70220014, pos = { x = 454.405, y = -9.350, z = 110.894 }, rot = { x = 0.000, y = 48.810, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 11, shape = RegionShape.SPHERE, radius = 7.3, pos = { x = 435.196, y = -7.707, z = 121.122 } },
{ config_id = 26, shape = RegionShape.CUBIC, size = { x = 10.000, y = 8.000, z = 15.000 }, pos = { x = 506.843, y = -22.500, z = 121.314 } },
{ config_id = 40, shape = RegionShape.SPHERE, radius = 5, pos = { x = 422.789, y = -24.284, z = 120.497 } },
{ config_id = 41, shape = RegionShape.CUBIC, size = { x = 15.000, y = 3.000, z = 15.000 }, pos = { x = 426.984, y = -17.041, z = 121.846 } }
}
-- 触发器
triggers = {
{ config_id = 1000011, name = "ENTER_REGION_11", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11", action = "action_EVENT_ENTER_REGION_11", forbid_guest = false },
{ config_id = 1000012, name = "VARIABLE_CHANGE_12", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_12", action = "action_EVENT_VARIABLE_CHANGE_12" },
{ config_id = 1000022, name = "ANY_MONSTER_DIE_22", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_22", action = "action_EVENT_ANY_MONSTER_DIE_22" },
{ config_id = 1000026, name = "ENTER_REGION_26", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_26", action = "action_EVENT_ENTER_REGION_26", forbid_guest = false },
{ config_id = 1000040, name = "ENTER_REGION_40", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_40", action = "action_EVENT_ENTER_REGION_40", forbid_guest = false },
{ config_id = 1000041, name = "ENTER_REGION_41", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_41", action = "action_EVENT_ENTER_REGION_41", forbid_guest = false },
{ config_id = 1000066, name = "ANY_MONSTER_DIE_66", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_66", action = "action_EVENT_ANY_MONSTER_DIE_66" },
{ config_id = 1000067, name = "ANY_MONSTER_DIE_67", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_67", action = "action_EVENT_ANY_MONSTER_DIE_67" },
{ config_id = 1000068, name = "ANY_MONSTER_DIE_68", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_68", action = "action_EVENT_ANY_MONSTER_DIE_68" },
{ config_id = 1000069, name = "ANY_MONSTER_DIE_69", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_69", action = "action_EVENT_ANY_MONSTER_DIE_69" },
{ config_id = 1000070, name = "ANY_MONSTER_DIE_70", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_70", action = "action_EVENT_ANY_MONSTER_DIE_70" },
{ config_id = 1000071, name = "ANY_MONSTER_DIE_71", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_71", action = "action_EVENT_ANY_MONSTER_DIE_71" },
{ config_id = 1000072, name = "ANY_MONSTER_DIE_72", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_72", action = "action_EVENT_ANY_MONSTER_DIE_72" },
{ config_id = 1000073, name = "ANY_MONSTER_DIE_73", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_73", action = "action_EVENT_ANY_MONSTER_DIE_73" }
}
-- 变量
variables = {
{ config_id = 1, name = "Key", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 3001, 3002, 3003, 3004 },
gadgets = { 3009, 3010, 3011, 3012, 3013, 3014, 3015, 3016, 3017, 3018, 3021, 3022, 3023, 3024, 3025, 3026, 3027, 3028 },
regions = { 11, 26, 40, 41 },
triggers = { "ENTER_REGION_11", "VARIABLE_CHANGE_12", "ANY_MONSTER_DIE_22", "ENTER_REGION_26", "ENTER_REGION_40", "ENTER_REGION_41", "ANY_MONSTER_DIE_66", "ANY_MONSTER_DIE_67", "ANY_MONSTER_DIE_68", "ANY_MONSTER_DIE_69", "ANY_MONSTER_DIE_70", "ANY_MONSTER_DIE_71", "ANY_MONSTER_DIE_72", "ANY_MONSTER_DIE_73" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
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 action_EVENT_ENTER_REGION_11(context, evt)
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 220011007, 6)
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220011007, 5)
-- 将configid为 3009 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3009, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3011 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3011, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3012 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3012, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_12(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"Key"为8
if ScriptLib.GetGroupVariableValue(context, "Key") ~= 8 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_12(context, evt)
-- 将configid为 3010 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3010, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3013 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3013, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3014 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3014, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创生gadget 3019
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3019 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_22(context, evt)
-- 判断剩余怪物数量是否是1
if ScriptLib.GetGroupMonsterCount(context) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_22(context, evt)
-- 调用提示id为 1037001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1037001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_26(context, evt)
if evt.param1 ~= 26 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_26(context, evt)
-- 添加suite7的新内容
ScriptLib.AddExtraGroupSuite(context, 220011007, 7)
-- 删除suite6的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220011007, 6)
-- 调用提示id为 1041022 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041022) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220011003, monsters = {}, gadgets = {3019} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创生gadget 3020
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 3020 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_40(context, evt)
if evt.param1 ~= 40 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_40(context, evt)
-- 将configid为 3017 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3017, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3018 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3018, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_41(context, evt)
if evt.param1 ~= 41 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_41(context, evt)
-- 将configid为 3015 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3015, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 3016 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3016, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220011002, monsters = {}, gadgets = {2014} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_66(context, evt)
--判断死亡怪物的configid是否为 3005
if evt.param1 ~= 3005 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_66(context, evt)
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_67(context, evt)
if 3006 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_67(context, evt)
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_68(context, evt)
if 3007 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_68(context, evt)
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_69(context, evt)
if 3008 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_69(context, evt)
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_70(context, evt)
--判断死亡怪物的configid是否为 3002
if evt.param1 ~= 3002 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_70(context, evt)
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3006, delay_time = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_71(context, evt)
--判断死亡怪物的configid是否为 3001
if evt.param1 ~= 3001 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_71(context, evt)
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3005, delay_time = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_72(context, evt)
--判断死亡怪物的configid是否为 3004
if evt.param1 ~= 3004 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_72(context, evt)
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3007, delay_time = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3008, delay_time = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_73(context, evt)
--判断死亡怪物的configid是否为 3003
if evt.param1 ~= 3003 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_73(context, evt)
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end

View File

@@ -0,0 +1,392 @@
-- 基础信息
local base_info = {
group_id = 220011004
}
-- Trigger变量
local defs = {
gadget_id_1 = 97,
gadget_id_2 = 70,
gadget_id_3 = 137,
gadget_id_4 = 138,
gadget_id_5 = 139,
gadget_id_6 = 140,
gadget_id_7 = 4,
gadget_id_8 = 83,
gadget_id_9 = 7
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 29, gadget_id = 70300016, pos = { x = 533.847, y = -1.984, z = 254.026 }, rot = { x = 0.000, y = 181.174, z = 0.000 }, level = 1, persistent = true },
{ config_id = 56, gadget_id = 70310001, pos = { x = 522.986, y = -2.133, z = 251.939 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 57, gadget_id = 70310001, pos = { x = 543.354, y = -2.069, z = 252.100 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 58, gadget_id = 70310001, pos = { x = 528.495, y = -2.061, z = 261.877 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 59, gadget_id = 70310001, pos = { x = 525.688, y = -2.085, z = 256.865 }, rot = { x = 0.000, y = 37.098, z = 0.000 }, level = 1 },
{ config_id = 60, gadget_id = 70310001, pos = { x = 540.554, y = -2.066, z = 256.967 }, rot = { x = 0.000, y = 110.444, z = 0.000 }, level = 1 },
{ config_id = 69, gadget_id = 70211021, pos = { x = 533.532, y = -2.051, z = 257.035 }, rot = { x = 0.000, y = 180.627, z = 0.000 }, level = 1, chest_drop_id = 11010600, drop_count = 1, isOneoff = true },
{ config_id = 70, gadget_id = 70380001, pos = { x = 531.604, y = -22.408, z = 141.296 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 6, start_route = false },
{ config_id = 81, gadget_id = 70310001, pos = { x = 537.904, y = -2.046, z = 261.743 }, rot = { x = 0.000, y = 247.823, z = 0.000 }, level = 1 },
{ config_id = 82, gadget_id = 70380001, pos = { x = 520.953, y = -25.990, z = 121.329 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 7 },
{ config_id = 83, gadget_id = 70360002, pos = { x = 532.819, y = -24.889, z = 123.122 }, rot = { x = 0.000, y = 270.679, z = 0.000 }, level = 1 },
{ config_id = 84, gadget_id = 70900205, pos = { x = 531.371, y = -24.819, z = 121.518 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 85, gadget_id = 70900205, pos = { x = 531.472, y = -9.345, z = 158.632 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86, gadget_id = 70380001, pos = { x = 531.644, y = -10.726, z = 163.823 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 8 },
{ config_id = 97, gadget_id = 70900202, pos = { x = 531.416, y = -8.752, z = 158.659 }, rot = { x = 0.000, y = 103.806, z = 0.000 }, level = 1 },
{ config_id = 98, gadget_id = 70900202, pos = { x = 532.576, y = -1.080, z = 221.851 }, rot = { x = 0.000, y = 277.205, z = 0.000 }, level = 1 },
{ config_id = 137, gadget_id = 70380001, pos = { x = 545.317, y = -25.822, z = 131.972 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20011012, start_route = false },
{ config_id = 138, gadget_id = 70380001, pos = { x = 540.062, y = -25.787, z = 131.692 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20011011, start_route = false },
{ config_id = 139, gadget_id = 70380001, pos = { x = 531.673, y = -18.917, z = 136.523 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20011010, start_route = false },
{ config_id = 140, gadget_id = 70380001, pos = { x = 520.582, y = -25.972, z = 151.526 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20011009, start_route = false },
{ config_id = 141, gadget_id = 70900205, pos = { x = 531.747, y = -25.927, z = 151.336 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 38, shape = RegionShape.CUBIC, size = { x = 40.000, y = 5.000, z = 10.000 }, pos = { x = 533.597, y = -2.137, z = 238.024 } },
{ config_id = 53, shape = RegionShape.SPHERE, radius = 5, pos = { x = 531.109, y = -9.328, z = 158.314 } },
{ config_id = 54, shape = RegionShape.SPHERE, radius = 5, pos = { x = 532.769, y = -2.051, z = 223.711 } },
{ config_id = 63, shape = RegionShape.CUBIC, size = { x = 5.000, y = 5.000, z = 3.000 }, pos = { x = 531.533, y = -23.574, z = 151.641 } }
}
-- 触发器
triggers = {
{ config_id = 1000038, name = "ENTER_REGION_38", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_38", action = "action_EVENT_ENTER_REGION_38", forbid_guest = false },
{ config_id = 1000043, name = "DUNGEON_SETTLE_43", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_43", action = "action_EVENT_DUNGEON_SETTLE_43" },
{ config_id = 1000047, name = "GADGET_CREATE_47", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_47", action = "action_EVENT_GADGET_CREATE_47" },
{ config_id = 1000048, name = "SELECT_OPTION_48", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_48", action = "action_EVENT_SELECT_OPTION_48", forbid_guest = false },
{ config_id = 1000053, name = "ENTER_REGION_53", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_53", action = "action_EVENT_ENTER_REGION_53", forbid_guest = false },
{ config_id = 1000054, name = "ENTER_REGION_54", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_54", action = "action_EVENT_ENTER_REGION_54", forbid_guest = false },
{ config_id = 1000063, name = "ENTER_REGION_63", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_63", action = "action_EVENT_ENTER_REGION_63", forbid_guest = false },
{ config_id = 1004001, name = "ANY_GADGET_DIE_4001", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_4001", action = "action_EVENT_ANY_GADGET_DIE_4001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 29, 56, 57, 58, 59, 60, 70, 81, 82, 83, 84, 85, 86, 137, 138, 139, 140, 141 },
regions = { 38, 53, 54, 63 },
triggers = { "ENTER_REGION_38", "DUNGEON_SETTLE_43", "GADGET_CREATE_47", "SELECT_OPTION_48", "ENTER_REGION_53", "ENTER_REGION_54", "ENTER_REGION_63", "ANY_GADGET_DIE_4001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_38(context, evt)
if evt.param1 ~= 38 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_38(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
-- 将configid为 57 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 57, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将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
-- 将configid为 59 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 59, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 60 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 60, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 81 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 81, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 调用提示id为 1041112 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041112) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_43(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_43(context, evt)
-- 创生gadget 69
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 69 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_47(context, evt)
if 83 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_47(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_48(context, evt)
-- 判断是gadgetid 83
if 83 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_48(context, evt)
-- 根据不同的选项做不同的操作
if defs.gadget_id_9 == evt.param2 then
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, defs.gadget_id_2) then
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, defs.gadget_id_3) then
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, defs.gadget_id_4) then
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, defs.gadget_id_5) then
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, defs.gadget_id_6) then
return -1
end
-- 删除指定group 220011004 指定config83物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220011004, defs.gadget_id_8, 7) then
return -1
end
-- 解锁目标4
if 0 ~= ScriptLib.UnlockForce(context, defs.gadget_id_7) then
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220011003, monsters = {}, gadgets = {3020} }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_1 }) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_8, GadgetState.GearStart) then
return -1
end
return 0
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 3020}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_53(context, evt)
if evt.param1 ~= 53 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_53(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220011004, monsters = {}, gadgets = {97} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
-- 创生gadget 98
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 98 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
-- 调用提示id为 1041026 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041026) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_54(context, evt)
if evt.param1 ~= 54 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_54(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220011004, monsters = {}, gadgets = {98} }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monsters_and_gadgets_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_63(context, evt)
if evt.param1 ~= 63 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_63(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 141) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_4001(context, evt)
if 29 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_4001(context, evt)
-- 展示名称为"GuideGoddessMapUnlock"的引导,见GuideData表参数类型为string
if 0 ~= ScriptLib.ShowClientGuide(context, "GuideGoddessMapUnlock") then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : show_client_guide")
return -1
end
-- 删除suite7的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220011007, 7)
return 0
end

View File

@@ -0,0 +1,169 @@
-- 基础信息
local base_info = {
group_id = 220011006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 9, monster_id = 20011201, pos = { x = 409.722, y = -22.182, z = 67.230 }, rot = { x = 0.000, y = 136.765, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 25, monster_id = 20011201, pos = { x = 409.713, y = -21.990, z = 60.594 }, rot = { x = 0.000, y = 36.531, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 26, monster_id = 20011201, pos = { x = 408.620, y = -22.084, z = 61.386 }, rot = { x = 0.000, y = 76.905, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 28, monster_id = 20011201, pos = { x = 408.790, y = -22.050, z = 65.882 }, rot = { x = 0.000, y = 109.366, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000008, name = "CHALLENGE_SUCCESS_8", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_8" },
{ config_id = 1000061, name = "CHALLENGE_FAIL_61", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_61" },
{ config_id = 1000065, name = "ANY_MONSTER_LIVE_65", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_65", action = "action_EVENT_ANY_MONSTER_LIVE_65" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 9, 25, 26, 28 },
gadgets = { },
regions = { },
triggers = { "CHALLENGE_SUCCESS_8", "CHALLENGE_FAIL_61", "ANY_MONSTER_LIVE_65" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_8(context, evt)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220011007, 3)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220011007, 4)
-- 改变指定group组220011001中 configid为1006的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220011001, 1006, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220011001中 configid为1022的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220011001, 1022, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 改变指定group组220011001中 configid为1023的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220011001, 1023, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 触发镜头注目注目位置为坐标406-1781持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=406, y=-17, z=81}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 2, is_force = true, is_broadcast = false, is_recover_keep_current = true, delay = 0,
is_set_follow_pos = false, follow_pos = pos_follow, is_force_walk = false, is_change_play_mode = false,
is_set_screen_XY = false, screen_x = 0, screen_y = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_cameraLook_Begin")
return -1
end
-- 改变指定group组220011001中 configid为1048的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220011001, 1048, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_61(context, evt)
-- 改变指定group组220011001中 configid为1047的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220011001, 1047, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220011006, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_65(context, evt)
if 9 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_65(context, evt)
-- 创建编号为1该挑战的识别id),挑战内容为137的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 137, 20, 220011006, 4, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end

View File

@@ -0,0 +1,131 @@
-- 基础信息
local base_info = {
group_id = 220011007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70900201, pos = { x = 475.451, y = -19.397, z = 63.753 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7002, gadget_id = 70900201, pos = { x = 410.603, y = -20.794, z = 63.956 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7003, gadget_id = 70900201, pos = { x = 415.979, y = -20.636, z = 120.934 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7004, gadget_id = 70900201, pos = { x = 435.086, y = -6.887, z = 121.048 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7005, gadget_id = 70900201, pos = { x = 505.158, y = -21.535, z = 121.325 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7006, gadget_id = 70900201, pos = { x = 533.850, y = -1.161, z = 254.105 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 7001 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 7002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 7003 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 7004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 7005 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 7006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,119 @@
-- 基础信息
local base_info = {
group_id = 220011901
}
-- Trigger变量
local defs = {
gadget_id_1 = 49,
gadget_id_2 = 50,
gadget_id_3 = 51,
gadget_id_4 = 55
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 49, shape = RegionShape.SPHERE, radius = 5, pos = { x = 460.379, y = -24.350, z = 69.159 } },
{ config_id = 50, shape = RegionShape.SPHERE, radius = 5, pos = { x = 406.504, y = -22.573, z = 107.872 } },
{ config_id = 51, shape = RegionShape.CUBIC, size = { x = 30.000, y = 2.000, z = 30.000 }, pos = { x = 487.505, y = -17.535, z = 121.603 } },
{ config_id = 55, shape = RegionShape.SPHERE, radius = 7.3, pos = { x = 411.721, y = -22.083, z = 63.952 } }
}
-- 触发器
triggers = {
{ config_id = 1000049, name = "ENTER_REGION_49", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_49", action = "", trigger_count = 0, forbid_guest = false },
{ config_id = 1000050, name = "ENTER_REGION_50", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_50", action = "", trigger_count = 0, forbid_guest = false },
{ config_id = 1000051, name = "ENTER_REGION_51", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_51", action = "", trigger_count = 0, forbid_guest = false },
{ config_id = 1000055, name = "ENTER_REGION_55", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_55", action = "", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 49, 50, 51, 55 },
triggers = { "ENTER_REGION_49", "ENTER_REGION_50", "ENTER_REGION_51", "ENTER_REGION_55" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_49(context, evt)
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30807) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_1 then
return true
end
return false
end
-- 触发条件
function condition_EVENT_ENTER_REGION_50(context, evt)
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30808) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_2 then
return true
end
return false
end
-- 触发条件
function condition_EVENT_ENTER_REGION_51(context, evt)
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30809) == QuestState.UNFINISHED and evt.param1 == defs.gadget_id_3 then
return true
end
return false
end
-- 触发条件
function condition_EVENT_ENTER_REGION_55(context, evt)
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30812) == 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