添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions
@@ -0,0 +1,24 @@
-- 地图配置
scene_config = {
begin_pos = { x = -337.4, z = -222.4 },
size = { x = 1197.2, z = 921.9 },
born_pos = { x = 96.828, y = 0.687, z = 292.196 },
born_rot = { x = 0.000, y = 90.000, z = 0.000 },
die_y = -32.52615,
city_id = 1,
vision_anchor = { x = -337.4, z = -222.4 }
}
-- 所有的区块
blocks = { 20000 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -337.4, z = -222.4 }, max = { x = 859.8, z = 699.5 } }
}
-- Dummy Points
dummy_points = { }
-- Routes
routes_config = { "routes" }
@@ -0,0 +1,897 @@
{
"sceneId": 20000,
"routes": [
{
"localId": 1,
"name": "Platform_001",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 21.3757362,
"y": 13.1353588,
"z": -23.5831928
},
"waitTime": 2.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 21.421608,
"y": 1.19262588,
"z": -23.5831928
},
"waitTime": 2.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 2,
"name": "Route_002",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 60.6229668,
"y": 5.0,
"z": -45.07943
},
"waitTime": 1.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 60.0334167,
"y": 5.0,
"z": -36.69221
},
"waitTime": 1.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 3,
"name": "Platform_003",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 62.2767868,
"y": 5.331745,
"z": -36.1001968
},
"waitTime": 1.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 49.68495,
"y": 7.75745773,
"z": -45.6996536
},
"waitTime": 1.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 4,
"name": "Platform_004",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 67.60939,
"y": 3.0,
"z": -47.6154556
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 73.88874,
"y": 5.0,
"z": -43.1052551
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 69.51057,
"y": 3.0,
"z": -35.0083542
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 62.25197,
"y": 5.0,
"z": -35.7702942
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 60.5382462,
"y": 3.0,
"z": -42.8904037
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 66.4005356,
"y": 5.0,
"z": -47.98841
},
"waitTime": 0.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 5,
"name": "Route_005",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 140.51976,
"y": 0.49999994,
"z": 241.571823
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 134.401031,
"y": 0.5,
"z": 252.594864
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 123.137054,
"y": 0.5,
"z": 252.50264
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 119.48674,
"y": 0.50000006,
"z": 242.993668
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 122.1506,
"y": 0.5,
"z": 232.385162
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 133.8742,
"y": 0.50000006,
"z": 227.401886
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 141.222122,
"y": 0.49999994,
"z": 236.9779
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 6,
"name": "Route_006",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 67.66766,
"y": 2.00000143,
"z": 217.845947
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 67.8733749,
"y": 1.99999833,
"z": 254.075974
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 52.03694,
"y": 1.99999785,
"z": 256.309875
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 46.9344826,
"y": 1.99999714,
"z": 243.578125
},
"waitTime": 0.0,
"speedLevel": 1
},
{
"pos": {
"x": 41.7850456,
"y": 2.00000119,
"z": 219.055389
},
"waitTime": 0.0,
"speedLevel": 1
}
]
},
{
"localId": 20000007,
"name": "Platform_20000007",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 82.22555,
"y": 0.5,
"z": -13.8563395
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 90.6615753,
"y": 2.676342,
"z": -18.04402
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 97.51422,
"y": 2.63345337,
"z": -11.10784
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 85.6175156,
"y": 2.79940414,
"z": -9.710276
},
"waitTime": 0.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 20000008,
"name": "Platform_20000008",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 89.12973,
"y": 2.76853752,
"z": -5.99292755
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": 95.77568,
"y": 2.23536682,
"z": 11.75077
},
"waitTime": 0.0,
"targetVelocity": 4.0
}
]
},
{
"localId": 20000009,
"name": "Platform_20000009",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 94.0049,
"y": 1.98840714,
"z": 14.9708862
},
"waitTime": 0.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": 76.09073,
"y": 2.098557,
"z": 32.59501
},
"waitTime": 0.0,
"targetVelocity": 4.0,
"hasReachEvent": true
}
]
},
{
"localId": 20000010,
"name": "Platform_20000010",
"type": "Reciprocate",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 92.3599854,
"y": -1.340766,
"z": -114.311172
},
"waitTime": 5.0,
"targetVelocity": 4.0
},
{
"pos": {
"x": 92.433876,
"y": -1.37482738,
"z": -122.292427
},
"waitTime": 5.0,
"targetVelocity": 4.0
}
]
},
{
"localId": 20000011,
"name": "Platform_20000011",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 93.506485,
"y": 0.246423721,
"z": -126.3586
},
"waitTime": 10.0,
"targetVelocity": 1.0
},
{
"pos": {
"x": 92.2355652,
"y": -0.238999486,
"z": -126.710785
},
"waitTime": 10.0,
"targetVelocity": 1.0
}
]
},
{
"localId": 20000012,
"name": "123",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 188.292114,
"y": -1.46233845,
"z": 47.0503845
},
"waitTime": 1.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 188.153015,
"y": -0.8607745,
"z": 52.67951
},
"waitTime": 1.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 20000013,
"name": "124",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 191.998856,
"y": -1.47575521,
"z": 44.37244
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 191.972076,
"y": -0.893359661,
"z": 52.6922226
},
"waitTime": 0.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 20000014,
"name": "125",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 195.950058,
"y": -1.67380333,
"z": 42.22155
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 194.704666,
"y": -0.856433868,
"z": 52.69018
},
"waitTime": 0.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 20000015,
"name": "126",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 199.71553,
"y": -1.486537,
"z": 41.2229042
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 198.01207,
"y": -0.8719702,
"z": 52.6938858
},
"waitTime": 0.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 20000016,
"name": "127",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 202.2655,
"y": -1.79458714,
"z": 44.0320778
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 201.471878,
"y": -0.767807961,
"z": 52.81653
},
"waitTime": 0.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 20000017,
"name": "Route_20000017",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 802.5684,
"y": 5.90144348,
"z": 362.027466
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 810.7374,
"y": 5.46284437,
"z": 361.995331
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 815.727539,
"y": 5.46284437,
"z": 361.491577
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 819.880249,
"y": 5.90144253,
"z": 361.5135
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 820.044434,
"y": 5.90144348,
"z": 356.443
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 825.3037,
"y": 5.462845,
"z": 356.3974
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 834.114563,
"y": 5.46284437,
"z": 355.96167
},
"waitTime": 0.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 20000018,
"name": "Platform_20000018",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 802.6508,
"y": 5.462845,
"z": 363.378326
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 821.1673,
"y": 5.433359,
"z": 363.026459
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 821.7376,
"y": 5.46284437,
"z": 357.136139
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 830.521362,
"y": 5.462845,
"z": 357.084
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 830.3852,
"y": 5.90144348,
"z": 353.2554
},
"waitTime": 0.0,
"targetVelocity": 3.0
},
{
"pos": {
"x": 838.2076,
"y": 5.462845,
"z": 353.700958
},
"waitTime": 0.0,
"targetVelocity": 3.0
}
]
},
{
"localId": 20000019,
"name": "Platform_20000019",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 60.24194,
"y": 15.0,
"z": 629.693665
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 60.1847153,
"y": 15.0,
"z": 579.9851
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 109.954826,
"y": 15.0,
"z": 579.9602
},
"waitTime": 0.0,
"targetVelocity": 5.0
},
{
"pos": {
"x": 110.1086,
"y": 14.5,
"z": 630.313049
},
"waitTime": 0.0,
"targetVelocity": 5.0
}
]
},
{
"localId": 20000020,
"name": "Platform_20000020",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 67.9903641,
"y": 0.500000834,
"z": 603.805664
},
"waitTime": 0.0
},
{
"pos": {
"x": 76.36636,
"y": 15.4978523,
"z": 599.9235
},
"waitTime": 0.0
}
]
},
{
"localId": 20000021,
"name": "MovingElf_Test",
"type": "OneWay",
"rotType": "ROT_ANGLE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 101.335793,
"y": -11.6846981,
"z": 549.520569
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true,
"rotAngleMoveSpeed": 0.0,
"rotAngleWaitSpeed": 0.0,
"rotAngleSameStop": false,
"reachStop": true
},
{
"pos": {
"x": 105.513985,
"y": -11.6846981,
"z": 543.3648
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true,
"rotAngleMoveSpeed": 0.0,
"rotAngleWaitSpeed": 0.0,
"rotAngleSameStop": false
},
{
"pos": {
"x": 108.953362,
"y": -10.269949,
"z": 538.126465
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotAngleMoveSpeed": 0.0,
"rotAngleWaitSpeed": 0.0,
"rotAngleSameStop": false
}
]
},
{
"localId": 20000022,
"name": "Platform_20000022",
"type": "Loop",
"rotType": "ROT_ANGLE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 124.422379,
"y": -12.0,
"z": 640.3308
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotAngleMoveSpeed": 0.0,
"rotAngleWaitSpeed": 0.0,
"rotAngleSameStop": false,
"reachStop": true
},
{
"pos": {
"x": 124.5596,
"y": -12.0,
"z": 633.9969
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotAngleMoveSpeed": 0.0,
"rotAngleWaitSpeed": 0.0,
"rotAngleSameStop": false
},
{
"pos": {
"x": 130.839569,
"y": -12.0,
"z": 633.955566
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotAngleMoveSpeed": 0.0,
"rotAngleWaitSpeed": 0.0,
"rotAngleSameStop": false
},
{
"pos": {
"x": 130.8659,
"y": -12.0,
"z": 640.277
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotAngleMoveSpeed": 0.0,
"rotAngleWaitSpeed": 0.0,
"rotAngleSameStop": false
}
]
}
]
}
@@ -0,0 +1,78 @@
-- 所有的group
groups = {
{ id = 220000001, refresh_id = 1001, pos = { x = 55.675, y = 0.540, z = -2.178 } },
{ id = 220000002, refresh_id = 1, pos = { x = 58.788, y = 0.500, z = -56.542 } },
{ id = 220000004, refresh_id = 1002, pos = { x = -60.401, y = 0.470, z = -38.146 } },
{ id = 220000005, refresh_id = 999999, pos = { x = 71.049, y = 0.500, z = -40.952 } },
{ id = 220000006, refresh_id = 1, pos = { x = 83.374, y = 0.500, z = -51.479 } },
{ id = 220000007, refresh_id = 1, pos = { x = 58.980, y = 0.540, z = -79.618 } },
{ id = 220000008, refresh_id = 1, pos = { x = 22.747, y = 0.500, z = -77.932 } },
{ id = 220000009, refresh_id = 1, pos = { x = -10.432, y = 0.500, z = -68.821 } },
{ id = 220000010, refresh_id = 1, pos = { x = 51.226, y = 0.500, z = -32.579 } },
{ id = 220000018, refresh_id = 1, pos = { x = 55.798, y = 0.500, z = -41.484 } },
{ id = 220000019, refresh_id = 1, pos = { x = 135.440, y = 0.500, z = 42.082 } },
{ id = 220000020, refresh_id = 1001, pos = { x = 140.509, y = 0.500, z = 93.230 } },
{ id = 220000021, refresh_id = 1001, pos = { x = 140.430, y = 2.000, z = 136.004 } },
{ id = 220000022, refresh_id = 1001, pos = { x = 136.686, y = 0.500, z = 182.586 } },
{ id = 220000023, refresh_id = 1002, pos = { x = 128.635, y = 2.114, z = 241.389 } },
{ id = 220000024, refresh_id = 1001, pos = { x = 78.178, y = 0.500, z = 55.906 } },
{ id = 220000025, refresh_id = 1001, pos = { x = 77.674, y = 0.500, z = 94.845 } },
{ id = 220000026, refresh_id = 999998, pos = { x = 69.335, y = 0.500, z = 123.889 } },
{ id = 220000027, refresh_id = 1001, pos = { x = 59.100, y = 0.500, z = 168.479 } },
{ id = 220000028, refresh_id = 1002, pos = { x = 58.925, y = 5.016, z = 234.892 } },
{ id = 220000029, refresh_id = 1, pos = { x = 93.724, y = 0.500, z = -75.407 } },
{ id = 220000030, refresh_id = 1001, pos = { x = -1.004, y = 1.348, z = 73.638 } },
{ id = 220000031, refresh_id = 1001, pos = { x = 2.292, y = 0.500, z = 200.976 } },
{ id = 220000034, refresh_id = 1, pos = { x = 89.031, y = 0.500, z = -13.836 } },
{ id = 220000035, refresh_id = 1, pos = { x = 88.981, y = 0.500, z = 0.088 } },
{ id = 220000036, pos = { x = 143.130, y = 1.133, z = -2.084 } },
{ id = 220000037, refresh_id = 1001, pos = { x = 143.086, y = 1.133, z = -2.941 } },
{ id = 220000038, refresh_id = 1, pos = { x = 94.917, y = 0.500, z = -58.292 } },
{ id = 220000039, refresh_id = 1, pos = { x = 90.587, y = 0.500, z = -88.094 } },
{ id = 220000040, refresh_id = 1, pos = { x = 92.631, y = -10.500, z = -149.104 } },
{ id = 220000041, refresh_id = 1001, pos = { x = 170.517, y = 0.641, z = 50.819 } },
{ id = 220000043, refresh_id = 1, pos = { x = 108.083, y = 0.500, z = 34.994 } },
{ id = 220000044, refresh_id = 1002, pos = { x = 148.468, y = 0.500, z = 276.696 } },
{ id = 220000045, refresh_id = 1001, pos = { x = 417.419, y = 5.573, z = 276.551 } },
{ id = 220000046, refresh_id = 1, pos = { x = 461.321, y = 5.573, z = 311.343 } },
{ id = 220000047, refresh_id = 1, pos = { x = 828.110, y = 5.901, z = 362.540 } },
{ id = 220000048, refresh_id = 1, pos = { x = 274.293, y = 5.573, z = 279.321 } },
{ id = 220000049, refresh_id = 1, pos = { x = 652.808, y = 5.793, z = 357.352 } },
{ id = 220000050, refresh_id = 1, pos = { x = 751.700, y = 5.633, z = 360.401 } },
{ id = 220000051, refresh_id = 1, pos = { x = 91.932, y = 0.500, z = 276.629 } },
{ id = 220000052, pos = { x = 42.099, y = 0.540, z = 284.224 } },
{ id = 220000054, pos = { x = 1.914, y = 1.802, z = 284.792 } },
{ id = 220000055, pos = { x = -14.388, y = 4.141, z = 326.425 } },
{ id = 220000056, pos = { x = -40.995, y = 15.770, z = 298.897 } },
{ id = 220000057, pos = { x = -25.395, y = 10.307, z = 294.537 } },
{ id = 220000058, pos = { x = 34.852, y = 0.540, z = 286.896 } },
{ id = 220000059, pos = { x = 26.876, y = 0.540, z = 287.060 } },
{ id = 220000060, refresh_id = 1, pos = { x = 7.147, y = 0.500, z = 379.901 } },
{ id = 220000064, refresh_id = 1, pos = { x = -63.692, y = 0.540, z = 520.849 } },
{ id = 220000066, refresh_id = 1, pos = { x = 106.192, y = 0.540, z = 316.079 } },
{ id = 220000068, refresh_id = 1, pos = { x = 132.057, y = 0.540, z = 386.221 } },
{ id = 220000069, refresh_id = 999999, pos = { x = -20.888, y = 0.722, z = 635.770 } },
{ id = 220000071, refresh_id = 1, pos = { x = 170.763, y = 4.280, z = 321.755 } },
{ id = 220000072, refresh_id = 1002, pos = { x = 96.660, y = 0.500, z = 569.410 } },
{ id = 220000074, refresh_id = 1, pos = { x = 93.773, y = 0.540, z = 396.275 } },
{ id = 220000075, refresh_id = 1, pos = { x = 88.651, y = 0.540, z = 378.092 } },
{ id = 220000076, refresh_id = 1001, pos = { x = 77.308, y = 0.540, z = 423.327 } },
{ id = 220000078, refresh_id = 1, pos = { x = 106.564, y = -12.000, z = 537.535 } },
{ id = 220000079, pos = { x = 55.618, y = -12.000, z = 615.298 } },
{ id = 220000080, refresh_id = 1, pos = { x = 115.431, y = 0.540, z = 422.065 } },
{ id = 220000081, refresh_id = 1, pos = { x = 41.689, y = -10.300, z = 580.928 } },
{ id = 220000082, refresh_id = 1, pos = { x = 128.122, y = -12.000, z = 597.389 } },
{ id = 220000083, refresh_id = 1, pos = { x = 118.495, y = -12.000, z = 675.147 } },
{ id = 220000084, refresh_id = 1, pos = { x = 134.166, y = -12.000, z = 637.732 } },
{ id = 220000085, refresh_id = 1, pos = { x = 134.148, y = -12.000, z = 656.397 } },
{ id = 220000086, refresh_id = 1, pos = { x = -87.911, y = 0.500, z = 270.395 } },
{ id = 220000087, refresh_id = 1001, pos = { x = 35.156, y = -12.000, z = 665.522 } },
{ id = 220000088, refresh_id = 1002, pos = { x = 78.657, y = 0.800, z = -180.800 } },
{ id = 220000089, refresh_id = 1002, pos = { x = 20.523, y = 0.800, z = -149.146 } },
{ id = 220000090, refresh_id = 1002, pos = { x = -52.325, y = 0.800, z = -137.095 } },
{ id = 220000091, refresh_id = 1001, pos = { x = -120.262, y = 0.800, z = -135.898 } },
{ id = 220000092, refresh_id = 1001, pos = { x = -197.003, y = 0.800, z = -136.992 } },
{ id = 220000093, refresh_id = 1001, pos = { x = 104.407, y = 0.540, z = 287.529 } },
{ id = 220000094, refresh_id = 1001, pos = { x = 99.130, y = 0.540, z = 469.026 } },
{ id = 220000095, refresh_id = 1001, pos = { x = 125.543, y = 0.540, z = 470.691 } }
}
@@ -0,0 +1,2 @@
dummy_points = {
}
@@ -0,0 +1,284 @@
-- 基础信息
local base_info = {
group_id = 220000001
}
-- Trigger变量
local defs = {
monster_id_1 = 1001,
monster_id_2 = 1002,
monster_id_3 = 1003,
monster_id_4 = 1004,
monster_id_5 = 1005,
monster_id_6 = 1006,
monster_id_7 = 1007,
monster_id_8 = 1008,
gadget_id_1 = 100,
gadget_id_2 = 101,
gadget_id_3 = 102
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1001, monster_id = 20010801, pos = { x = 57.499, y = 0.500, z = -2.595 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1002, monster_id = 20010801, pos = { x = 64.907, y = 0.500, z = 5.814 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1003, monster_id = 20011001, pos = { x = 60.626, y = 0.500, z = 0.895 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1004, monster_id = 20010901, pos = { x = 56.622, y = 0.500, z = 8.253 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1005, monster_id = 20011001, pos = { x = 53.984, y = 0.500, z = 5.116 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1006, monster_id = 20011001, pos = { x = 58.994, y = 0.500, z = 5.488 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1007, monster_id = 20011101, pos = { x = 52.430, y = 0.500, z = 6.416 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1008, monster_id = 20010901, pos = { x = 62.412, y = 0.500, z = 7.166 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1009, gadget_id = 70350001, pos = { x = 57.011, y = 0.500, z = -22.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 1010, gadget_id = 70360002, pos = { x = 63.180, y = 0.500, z = -28.576 }, rot = { x = 0.000, y = 161.385, z = 0.000 }, level = 1 },
{ config_id = 1011, gadget_id = 70211011, pos = { x = 111.400, y = 22.900, z = -36.916 }, rot = { x = 0.000, y = 95.413, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", isOneoff = true },
{ config_id = 1012, gadget_id = 70211011, pos = { x = 111.417, y = 22.900, z = -40.480 }, rot = { x = 0.000, y = 29.270, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", isOneoff = true },
{ config_id = 1013, gadget_id = 70380002, pos = { x = 21.541, y = 2.923, z = -22.585 }, rot = { x = 270.000, y = 0.000, z = 0.000 }, level = 1, route_id = 1 }
}
-- 区域
regions = {
{ config_id = 10, shape = RegionShape.SPHERE, radius = 19.05, pos = { x = 58.247, y = 0.500, z = -39.930 } },
{ config_id = 11, shape = RegionShape.SPHERE, radius = 20.08, pos = { x = 18.585, y = 0.500, z = -41.411 } }
}
-- 触发器
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 = 1000003, name = "SELECT_OPTION_3", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3", action = "action_EVENT_SELECT_OPTION_3", forbid_guest = false },
{ 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 = 1000005, name = "SELECT_OPTION_5", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5", action = "action_EVENT_SELECT_OPTION_5", forbid_guest = false },
{ config_id = 1000010, name = "ENTER_REGION_10", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10", action = "action_EVENT_ENTER_REGION_10", trigger_count = 0, forbid_guest = false },
{ 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", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 1009, 1010, 1011, 1012, 1013 },
regions = { 10, 11 },
triggers = { "GADGET_CREATE_1", "SELECT_OPTION_3", "SELECT_OPTION_4", "SELECT_OPTION_5", "ENTER_REGION_10", "ENTER_REGION_11" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1(context, evt)
if 1010 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {100,101,102}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3(context, evt)
-- 判断是gadgetid 1010
if 1010 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3(context, evt)
-- 根据不同的选项做不同的操作
if defs.gadget_id_1 == evt.param2 then
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = defs.monster_id_1, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = defs.monster_id_2, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = defs.monster_id_3, delay_time = 0 }) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.monster_id_1, GadgetState.GearStart) then
return -1
end
return 0
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4(context, evt)
-- 判断是gadgetid 1010
if 1010 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4(context, evt)
-- 根据不同的选项做不同的操作
if defs.gadget_id_2 == evt.param2 then
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = defs.monster_id_4, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = defs.monster_id_5, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = defs.monster_id_6, delay_time = 0 }) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.monster_id_1, GadgetState.GearStart) then
return -1
end
return 0
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5(context, evt)
-- 判断是gadgetid 1010
if 1010 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5(context, evt)
-- 根据不同的选项做不同的操作
if defs.gadget_id_3 == evt.param2 then
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = defs.monster_id_7, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = defs.monster_id_8, delay_time = 0 }) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.monster_id_1, GadgetState.GearStart) then
return -1
end
return 0
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10(context, evt)
if evt.param1 ~= 10 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_10(context, evt)
-- play_type含义:1·代表开始播放; 2·代表停止播放
-- 在指定位置播放或停止音效资源
pos = {x=53, y=2, z=-53}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
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 action_EVENT_ENTER_REGION_11(context, evt)
-- play_type含义:1·代表开始播放; 2·代表停止播放
-- 在指定位置播放或停止音效资源
pos = {x=53, y=2, z=-53}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 2, is_broadcast = false }) then
return -1
end
return 0
end
@@ -0,0 +1,224 @@
-- 基础信息
local base_info = {
group_id = 220000002
}
-- Trigger变量
local defs = {
gadget_id_1 = 2001,
gadget_id_2 = 2002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 2001, gadget_id = 70350002, pos = { x = 59.118, y = 0.500, z = -57.825 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2002, gadget_id = 70350003, pos = { x = 23.628, y = 0.500, z = -57.671 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 2003, gadget_id = 70360002, pos = { x = 54.907, y = 0.500, z = -54.910 }, rot = { x = 0.000, y = 358.317, z = 0.000 }, level = 1 },
{ config_id = 2004, gadget_id = 70360002, pos = { x = 19.966, y = 0.500, z = -55.153 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 12, shape = RegionShape.SPHERE, radius = 5, pos = { x = 21.552, y = 0.400, z = 0.159 } }
}
-- 触发器
triggers = {
{ config_id = 1000006, name = "GADGET_CREATE_6", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_6", action = "action_EVENT_GADGET_CREATE_6" },
{ config_id = 1000007, name = "SELECT_OPTION_7", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7", action = "action_EVENT_SELECT_OPTION_7", trigger_count = 0, forbid_guest = false },
{ config_id = 1000008, name = "GADGET_CREATE_8", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_8", action = "action_EVENT_GADGET_CREATE_8" },
{ config_id = 1000009, name = "SELECT_OPTION_9", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9", action = "action_EVENT_SELECT_OPTION_9", trigger_count = 0, forbid_guest = false },
{ config_id = 1000012, name = "ENTER_REGION_12", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12", action = "action_EVENT_ENTER_REGION_12", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 2001, 2002, 2003, 2004 },
regions = { 12 },
triggers = { "GADGET_CREATE_6", "SELECT_OPTION_7", "GADGET_CREATE_8", "SELECT_OPTION_9", "ENTER_REGION_12" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_6(context, evt)
if 2003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_6(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {1,4}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_7(context, evt)
-- 判断是gadgetid 2003
if 2003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_7(context, evt)
-- 根据不同的选项做不同的操作
if 1 == evt.param2 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_option")
return -1
end
return 0
end
-- 根据不同的选项做不同的操作
if 4 == evt.param2 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_option")
return -1
end
return 0
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_8(context, evt)
if 2004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_8(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {1,4}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9(context, evt)
-- 判断是gadgetid 2004
if 2004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9(context, evt)
-- 根据不同的选项做不同的操作
if 1 == evt.param2 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_option")
return -1
end
return 0
end
-- 根据不同的选项做不同的操作
if 4 == evt.param2 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 2002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_option")
return -1
end
return 0
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_12(context, evt)
if evt.param1 ~= 12 then return false end
-- 判断是gadgetid 2003
if 2003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_12(context, evt)
-- 根据不同的选项做不同的操作
if defs.gadget_id_2 == evt.param2 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_1, GadgetState.Default) then
return -1
end
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220000002, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
return -1
end
return 0
end
@@ -0,0 +1,173 @@
-- 基础信息
local base_info = {
group_id = 220000004
}
-- Trigger变量
local defs = {
gadget_id_1 = 4005,
gadget_id_2 = 120,
gadget_id_3 = 121
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 4001, monster_id = 21020101, pos = { x = -67.068, y = 0.470, z = -37.355 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4002, monster_id = 20011001, pos = { x = -69.966, y = 0.470, z = -41.026 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4003, monster_id = 20011001, pos = { x = -69.455, y = 0.470, z = -33.898 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 4004, monster_id = 21020201, pos = { x = -74.544, y = 0.470, z = -38.009 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 4005, gadget_id = 70350002, pos = { x = -42.421, y = 0.470, z = -37.486 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 4006, gadget_id = 70360002, pos = { x = -39.910, y = 0.450, z = -33.825 }, rot = { x = 0.000, y = 108.316, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000013, name = "GADGET_CREATE_13", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_13", action = "action_EVENT_GADGET_CREATE_13" },
{ config_id = 1000014, name = "SELECT_OPTION_14", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_14", action = "action_EVENT_SELECT_OPTION_14", forbid_guest = false },
{ config_id = 1000015, name = "SELECT_OPTION_15", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_15", action = "action_EVENT_SELECT_OPTION_15", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 4005, 4006 },
regions = { },
triggers = { "GADGET_CREATE_13", "SELECT_OPTION_14", "SELECT_OPTION_15" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_13(context, evt)
if 4006 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_13(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {120,121}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_14(context, evt)
-- 判断是gadgetid 4006
if 4006 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_14(context, evt)
-- 根据不同的选项做不同的操作
if defs.gadget_id_2 == evt.param2 then
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 13, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 14, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 15, delay_time = 0 }) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_1, GadgetState.GearStart) then
return -1
end
return 0
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_15(context, evt)
-- 判断是gadgetid 4006
if 4006 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_15(context, evt)
-- 根据不同的选项做不同的操作
if defs.gadget_id_3 == evt.param2 then
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 16, delay_time = 0 }) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_1, GadgetState.Default) then
return -1
end
return 0
end
return 0
end
@@ -0,0 +1,320 @@
-- 基础信息
local base_info = {
group_id = 220000005
}
-- Trigger变量
local defs = {
gadget_id_1 = 5006,
gadget_id_2 = 5002,
gadget_id_3 = 5003,
gadget_id_4 = 5001,
gadget_id_5 = 5007,
gadget_id_6 = 7001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 5001, gadget_id = 70900007, pos = { x = 67.167, y = 0.587, z = -40.812 }, rot = { x = 0.000, y = 305.180, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 5002, gadget_id = 70900008, pos = { x = 73.981, y = 0.547, z = -48.492 }, rot = { x = 0.000, y = 159.915, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 5003, gadget_id = 70900009, pos = { x = 76.723, y = 0.500, z = -32.653 }, rot = { x = 0.000, y = 29.283, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 5004, gadget_id = 70350003, pos = { x = 73.703, y = 1.529, z = -53.205 }, rot = { x = 0.000, y = 15.515, z = 0.000 }, level = 1 },
{ config_id = 5005, gadget_id = 70350003, pos = { x = 75.804, y = 1.433, z = -28.966 }, rot = { x = 0.000, y = 135.560, z = 0.000 }, level = 1 },
{ config_id = 5006, gadget_id = 70211012, pos = { x = 87.927, y = 0.500, z = -61.169 }, rot = { x = 0.000, y = 5.447, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", state = GadgetState.ChestLocked, showcutscene = true, isOneoff = true },
{ config_id = 5007, gadget_id = 70360001, pos = { x = 84.636, y = 1.323, z = -51.203 }, rot = { x = 0.000, y = 206.115, z = 0.000 }, level = 1 },
{ config_id = 5008, gadget_id = 70500000, pos = { x = 88.057, y = 0.500, z = -27.508 }, rot = { x = 0.000, y = 104.057, z = 0.000 }, level = 1, point_type = 2019 },
{ config_id = 5009, gadget_id = 70211011, pos = { x = 85.100, y = 0.500, z = -30.860 }, rot = { x = 0.000, y = 168.034, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", showcutscene = true, isOneoff = true }
}
-- 区域
regions = {
{ config_id = 21, shape = RegionShape.SPHERE, radius = 5, pos = { x = 65.644, y = 0.500, z = -41.466 } },
{ config_id = 69, shape = RegionShape.SPHERE, radius = 11.6, pos = { x = 87.168, y = 0.500, z = -62.278 } }
}
-- 触发器
triggers = {
{ config_id = 1000016, name = "GADGET_STATE_CHANGE_16", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_16", action = "action_EVENT_GADGET_STATE_CHANGE_16", trigger_count = 0 },
{ config_id = 1000017, name = "GADGET_STATE_CHANGE_17", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_17", action = "action_EVENT_GADGET_STATE_CHANGE_17", trigger_count = 0 },
{ config_id = 1000018, name = "GADGET_STATE_CHANGE_18", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_18", action = "action_EVENT_GADGET_STATE_CHANGE_18", trigger_count = 0 },
{ config_id = 1000019, name = "GADGET_STATE_CHANGE_19", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_19", action = "action_EVENT_GADGET_STATE_CHANGE_19", trigger_count = 0 },
{ config_id = 1000020, name = "GADGET_STATE_CHANGE_20", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_20", action = "action_EVENT_GADGET_STATE_CHANGE_20", trigger_count = 0 },
{ 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", trigger_count = 0, forbid_guest = false },
{ config_id = 1000022, name = "GADGET_CREATE_22", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_22", action = "action_EVENT_GADGET_CREATE_22" },
{ config_id = 1000023, name = "SELECT_OPTION_23", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_23", action = "action_EVENT_SELECT_OPTION_23", forbid_guest = false },
{ config_id = 1000024, name = "GATHER_24", event = EventType.EVENT_GATHER, source = "21", condition = "", action = "action_EVENT_GATHER_24", forbid_guest = false },
{ config_id = 1000069, name = "ENTER_REGION_69", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_69", action = "action_EVENT_ENTER_REGION_69", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 5001, 5002, 5003, 5004, 5005, 5006, 5007, 5008 },
regions = { 21, 69 },
triggers = { "GADGET_STATE_CHANGE_16", "GADGET_STATE_CHANGE_17", "GADGET_STATE_CHANGE_18", "GADGET_STATE_CHANGE_19", "GADGET_STATE_CHANGE_20", "ENTER_REGION_21", "GADGET_CREATE_22", "SELECT_OPTION_23", "GATHER_24", "ENTER_REGION_69" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_16(context, evt)
if GadgetState.GearStart ~= evt.param1 or defs.gadget_id_2 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_16(context, evt)
-- 将configid为 5004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5004, 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_17(context, evt)
if GadgetState.GearStart ~= evt.param1 or defs.gadget_id_3 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_17(context, evt)
-- 将configid为 5005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5005, 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_18(context, evt)
if GadgetState.GearStart ~= evt.param1 or defs.gadget_id_4 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_18(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000018, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_19(context, evt)
ScriptLib.PrintLog("enter condition judge")
if GadgetState.GearStop ~= evt.param1 or defs.gadget_id_2 ~= evt.param2 then
ScriptLib.PrintLog("judge false")
return false
end
ScriptLib.PrintLog("judge true")
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_19(context, evt)
-- 将configid为 5004 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5004, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_20(context, evt)
ScriptLib.PrintLog("enter condition judge")
if GadgetState.GearStop ~= evt.param1 or defs.gadget_id_3 ~= evt.param2 then
ScriptLib.PrintLog("judge false")
return false
end
ScriptLib.PrintLog("judge true")
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_20(context, evt)
-- 将configid为 5005 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5005, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_21(context, evt)
ScriptLib.PrintLog("Enter condition judge")
if GadgetState.GearStop ~= evt.param1 or defs.gadget_id_4 ~= evt.param2 then
ScriptLib.PrintLog("judge false")
return false
end
ScriptLib.PrintLog("judge true")
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_21(context, evt)
-- 将configid为 15 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 15, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_22(context, evt)
if 5007 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_22(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {23}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_23(context, evt)
-- 判断是gadgetid 5007
if 5007 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_23(context, evt)
-- 根据不同的选项做不同的操作
if defs.gadget_id_6 == evt.param2 then
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_1 }) then
return -1
end
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000006, suite = 2 }) then
return -1
end
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220000005, defs.gadget_id_5,23 ) then
return -1
end
end
-- 重新生成指定group,指定suite
return 0
end
-- 触发操作
function action_EVENT_GATHER_24(context, evt)
-- 创生gadget 5009
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 5009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_69(context, evt)
if evt.param1 ~= 69 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_69(context, evt)
-- 解锁目标5006
if 0 ~= ScriptLib.ChangeGroupGadget(context, { config_id = 5006, state = GadgetState.Default }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_gadget")
return -1
end
return 0
end
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 220000006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 20, gadget_id = 70520007, pos = { x = 84.662, y = 1.635, z = -51.147 }, rot = { x = 0.000, y = 119.779, 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 = { 20 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,105 @@
-- 基础信息
local base_info = {
group_id = 220000007
}
-- Trigger变量
local defs = {
gadget_id_1 = 7004,
gadget_id_2 = 7003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 7001, gadget_id = 70900018, pos = { x = 66.703, y = 0.797, z = -87.188 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7002, gadget_id = 70900018, pos = { x = 50.643, y = 0.653, z = -86.946 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 7003, gadget_id = 70220013, pos = { x = 67.899, y = 0.466, z = -86.618 }, rot = { x = 0.000, y = 40.031, z = 0.000 }, level = 1 },
{ config_id = 7004, gadget_id = 70211011, pos = { x = 58.985, y = 0.500, z = -83.761 }, rot = { x = 0.000, y = 75.470, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", showcutscene = true, isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000025, name = "ANY_GADGET_DIE_25", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_25", action = "action_EVENT_ANY_GADGET_DIE_25" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 7001, 7002, 7003 },
regions = { },
triggers = { "ANY_GADGET_DIE_25" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_25(context, evt)
ScriptLib.PrintLog("enter condition")
if defs.gadget_id_2 ~= evt.param1 then
ScriptLib.PrintLog("configid judge false")
return false
end
ScriptLib.PrintLog("configid judge true")
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_25(context, evt)
ScriptLib.PrintLog("enter action")
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_1 }) then
ScriptLib.PrintLog("create gadget fail")
return -1
end
return 0
end
@@ -0,0 +1,105 @@
-- 基础信息
local base_info = {
group_id = 220000008
}
-- Trigger变量
local defs = {
gadget_id_1 = 30
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 27, gadget_id = 70900014, pos = { x = 30.036, y = 0.215, z = -86.574 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, arguments = { 0, 0, 0 } },
{ config_id = 28, gadget_id = 70900014, pos = { x = 13.643, y = 0.062, z = -86.744 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, arguments = { 0, 0, 0 } },
{ config_id = 29, gadget_id = 70310001, pos = { x = 30.081, y = 1.140, z = -86.406 }, rot = { x = 0.000, y = 109.302, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 30, gadget_id = 70310001, pos = { x = 13.619, y = 1.053, z = -86.785 }, rot = { x = 0.000, y = 310.981, z = 0.000 }, level = 1 },
{ config_id = 31, gadget_id = 70211011, pos = { x = 21.468, y = 0.500, z = -83.693 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", showcutscene = true, isOneoff = true },
{ config_id = 32, gadget_id = 70320001, pos = { x = 30.086, y = 0.500, z = -93.974 }, rot = { x = 0.000, y = 19.948, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000026, name = "GADGET_STATE_CHANGE_26", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_26", action = "action_EVENT_GADGET_STATE_CHANGE_26", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 27, 28, 29, 30, 32 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_26" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_26(context, evt)
ScriptLib.PrintLog("enter firebox condition")
if defs.gadget_id_1 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
ScriptLib.PrintLog("fire box not match")
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_26(context, evt)
-- 创生gadget 31
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 31 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
@@ -0,0 +1,118 @@
-- 基础信息
local base_info = {
group_id = 220000009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70900028, pos = { x = -13.354, y = 0.000, z = -80.637 }, rot = { x = 0.000, y = 0.270, z = 0.000 }, level = 1 },
{ config_id = 9002, gadget_id = 70900027, pos = { x = -13.372, y = 0.500, z = -60.035 }, rot = { x = 0.000, y = 0.270, z = 0.000 }, level = 1 },
{ config_id = 9003, gadget_id = 70950001, pos = { x = -8.205, y = 14.400, z = -86.001 }, rot = { x = 0.000, y = 57.670, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 33, shape = RegionShape.SPHERE, radius = 10, pos = { x = -13.432, y = 0.350, z = -80.756 } },
{ config_id = 34, shape = RegionShape.SPHERE, radius = 5, pos = { x = -12.377, y = 0.500, z = -45.736 } }
}
-- 触发器
triggers = {
{ config_id = 1000033, name = "ENTER_REGION_33", event = EventType.EVENT_ENTER_REGION, source = "4", condition = "", action = "action_EVENT_ENTER_REGION_33", forbid_guest = false },
{ config_id = 1000034, name = "ENTER_REGION_34", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_34", action = "action_EVENT_ENTER_REGION_34", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001, 9002, 9003 },
regions = { 33, 34 },
triggers = { "ENTER_REGION_33", "ENTER_REGION_34" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_ENTER_REGION_33(context, evt)
-- 将configid为 9001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 9002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_34(context, evt)
if evt.param1 ~= 34 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_34(context, evt)
-- 重新生成指定group,默认为独立随机
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_randall")
return -1
end
return 0
end
@@ -0,0 +1,188 @@
-- 基础信息
local base_info = {
group_id = 220000010
}
-- Trigger变量
local defs = {
gadget_id_1 = 50,
gadget_id_2 = 49,
gadget_id_3 = 1,
gadget_id_4 = 4
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 43, gadget_id = 70900025, pos = { x = 42.332, y = 1.660, z = -29.665 }, rot = { x = 0.000, y = 335.536, z = 0.000 }, level = 1 },
{ config_id = 44, gadget_id = 70900025, pos = { x = 36.384, y = 2.361, z = -29.913 }, rot = { x = 0.000, y = 146.802, z = 0.000 }, level = 1 },
{ config_id = 45, gadget_id = 70900025, pos = { x = 30.823, y = 1.747, z = -29.320 }, rot = { x = 0.000, y = 217.129, z = 0.000 }, level = 1 },
{ config_id = 46, gadget_id = 70900027, pos = { x = 31.032, y = 5.349, z = -29.411 }, rot = { x = 0.000, y = 343.819, z = 0.000 }, level = 1 },
{ config_id = 48, gadget_id = 70220005, pos = { x = 42.575, y = 5.209, z = -29.694 }, rot = { x = 0.000, y = 299.352, z = 0.000 }, level = 1 },
{ config_id = 49, gadget_id = 70900036, pos = { x = 20.656, y = 0.500, z = -39.443 }, rot = { x = 0.000, y = 296.422, z = 0.000 }, level = 1 },
{ config_id = 50, gadget_id = 70360002, pos = { x = 29.563, y = 0.500, z = -41.466 }, rot = { x = 0.000, y = 266.728, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000035, name = "CLIENT_EXECUTE_35", event = EventType.EVENT_CLIENT_EXECUTE, source = "Chest_Bramble_Remove", condition = "", action = "action_EVENT_CLIENT_EXECUTE_35", trigger_count = 0 },
{ config_id = 1000036, name = "CLIENT_EXECUTE_36", event = EventType.EVENT_CLIENT_EXECUTE, source = "Chest_Frozen_Remove", condition = "", action = "action_EVENT_CLIENT_EXECUTE_36", trigger_count = 0 },
{ config_id = 1000038, name = "GADGET_CREATE_38", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_38", action = "action_EVENT_GADGET_CREATE_38", trigger_count = 0 },
{ config_id = 1000039, name = "SELECT_OPTION_39", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_39", action = "action_EVENT_SELECT_OPTION_39", trigger_count = 0, forbid_guest = false },
{ 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", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "Sculpture_State", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 43, 44, 45, 46, 48, 49, 50 },
regions = { },
triggers = { "CLIENT_EXECUTE_35", "CLIENT_EXECUTE_36", "GADGET_CREATE_38", "SELECT_OPTION_39", "GADGET_STATE_CHANGE_47" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_35(context, evt)
--由entityId获取configId
local This_configID = ScriptLib.GetConfigIdByEntityId(context, evt.param1 )
--转换对应宝箱状态
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 0, This_configID, GadgetState.Default ) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_36(context, evt)
--由entityId获取configId
This_configID = ScriptLib.GetConfigIdByEntityId(context, evt.param1 )
--转换对应宝箱状态
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 0, This_configID, GadgetState.Default ) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_38(context, evt)
if 50 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_38(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {1,4}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_39(context, evt)
if evt.param1 == defs.gadget_id_1 then
return true
end
return false
end
-- 触发操作
function action_EVENT_SELECT_OPTION_39(context, evt)
local state = ScriptLib.GetGroupVariableValue(context, "Sculpture_State")
-- 根据不同的选项做不同的操作
if defs.gadget_id_3 == evt.param2 then
if state == 0 then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_2, GadgetState.GearStart)
elseif state == 201 then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_2, GadgetState.GearStop)
elseif state == 202 then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_2, GadgetState.Default)
end
elseif defs.gadget_id_4 == evt.param2 then
if state == 0 then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_2, GadgetState.GearStop)
elseif state == 201 then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_2, GadgetState.Default)
elseif state == 202 then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_2, GadgetState.GearStart)
end
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_47(context, evt)
if evt.param2 ~= defs.gadget_id_2 then
return false
else return true
end
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_47(context, evt)
if evt.param1 == GadgetState.Default then
ScriptLib.SetGroupVariableValue(context, "Sculpture_State", 0)
elseif evt.param1 == GadgetState.GearStart then
ScriptLib.SetGroupVariableValue(context, "Sculpture_State", 201)
elseif evt.param1 == GadgetState.GearStop then
ScriptLib.SetGroupVariableValue(context, "Sculpture_State", 202)
end
return 0
end
@@ -0,0 +1,83 @@
-- 基础信息
local base_info = {
group_id = 220000018
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 59, gadget_id = 70380002, pos = { x = 63.374, y = 0.500, z = -44.197 }, rot = { x = 0.000, y = 280.668, z = 0.000 }, level = 1, route_id = 2 },
{ config_id = 60, gadget_id = 70380002, pos = { x = 74.942, y = 0.500, z = -46.514 }, rot = { x = 0.000, y = 283.577, z = 0.000 }, level = 1, route_id = 4 },
{ config_id = 61, gadget_id = 70380002, pos = { x = 67.649, y = 0.500, z = -34.422 }, rot = { x = 0.000, y = 316.142, z = 0.000 }, level = 1, route_id = 3 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 59, 60, 61 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,203 @@
-- 基础信息
local base_info = {
group_id = 220000019
}
-- Trigger变量
local defs = {
gadget_id_1 = 118,
gadget_id_2 = 119,
gadget_id_3 = 120,
gadget_id_4 = 121,
gadget_id_5 = 122
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 118, gadget_id = 70900207, pos = { x = 188.120, y = 0.573, z = 46.994 }, rot = { x = 0.000, y = 240.985, z = 0.000 }, level = 1 },
{ config_id = 119, gadget_id = 70900207, pos = { x = 192.278, y = 0.610, z = 44.452 }, rot = { x = 0.000, y = 328.790, z = 0.000 }, level = 1 },
{ config_id = 120, gadget_id = 70900207, pos = { x = 196.118, y = 0.598, z = 42.574 }, rot = { x = 0.000, y = 301.372, z = 0.000 }, level = 1 },
{ config_id = 121, gadget_id = 70900207, pos = { x = 199.894, y = 0.580, z = 40.925 }, rot = { x = 0.000, y = 204.239, z = 0.000 }, level = 1 },
{ config_id = 122, gadget_id = 70900207, pos = { x = 201.772, y = 0.551, z = 44.581 }, rot = { x = 0.000, y = 327.318, z = 0.000 }, level = 1 },
{ config_id = 123, gadget_id = 70380003, pos = { x = 188.256, y = -1.516, z = 46.985 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20000012, start_route = false },
{ config_id = 124, gadget_id = 70380003, pos = { x = 192.095, y = -1.521, z = 44.214 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20000013, start_route = false },
{ config_id = 125, gadget_id = 70380003, pos = { x = 195.916, y = -1.494, z = 42.392 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20000014, start_route = false },
{ config_id = 126, gadget_id = 70380003, pos = { x = 199.876, y = -1.502, z = 40.865 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20000015, start_route = false },
{ config_id = 127, gadget_id = 70380003, pos = { x = 202.128, y = -1.421, z = 44.236 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20000016, start_route = false },
{ config_id = 132, gadget_id = 70510009, pos = { x = 108.756, y = 0.500, z = 64.307 }, rot = { x = 0.000, y = 272.230, z = 0.000 }, level = 1 },
{ config_id = 133, gadget_id = 70510009, pos = { x = 106.860, y = 0.500, z = 65.912 }, rot = { x = 0.000, y = 48.179, z = 0.000 }, level = 1 },
{ config_id = 134, gadget_id = 70510009, pos = { x = 104.632, y = 0.500, z = 67.467 }, rot = { x = 0.000, y = 94.809, z = 0.000 }, level = 1 },
{ config_id = 135, gadget_id = 70510009, pos = { x = 105.345, y = 0.500, z = 65.575 }, rot = { x = 0.000, y = 66.433, z = 0.000 }, level = 1 },
{ config_id = 136, gadget_id = 70510009, pos = { x = 103.009, y = 0.500, z = 68.924 }, rot = { x = 0.000, y = 55.099, z = 0.000 }, level = 1 },
{ config_id = 137, gadget_id = 70510009, pos = { x = 100.697, y = 0.500, z = 70.310 }, rot = { x = 0.000, y = 53.943, z = 0.000 }, level = 1 },
{ config_id = 138, gadget_id = 70510009, pos = { x = 103.100, y = 0.500, z = 67.160 }, rot = { x = 0.000, y = 270.424, z = 0.000 }, level = 1 },
{ config_id = 139, gadget_id = 70510009, pos = { x = 106.191, y = 0.500, z = 68.207 }, rot = { x = 0.000, y = 259.872, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000070, name = "CLIENT_EXECUTE_70", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricPile", condition = "condition_EVENT_CLIENT_EXECUTE_70", action = "action_EVENT_CLIENT_EXECUTE_70" },
{ config_id = 1000071, name = "CLIENT_EXECUTE_71", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricPile", condition = "condition_EVENT_CLIENT_EXECUTE_71", action = "action_EVENT_CLIENT_EXECUTE_71" },
{ config_id = 1000072, name = "CLIENT_EXECUTE_72", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricPile", condition = "condition_EVENT_CLIENT_EXECUTE_72", action = "action_EVENT_CLIENT_EXECUTE_72" },
{ config_id = 1000073, name = "CLIENT_EXECUTE_73", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricPile", condition = "condition_EVENT_CLIENT_EXECUTE_73", action = "action_EVENT_CLIENT_EXECUTE_73" },
{ config_id = 1000074, name = "CLIENT_EXECUTE_74", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricPile", condition = "condition_EVENT_CLIENT_EXECUTE_74", action = "action_EVENT_CLIENT_EXECUTE_74" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 132, 133, 134, 135, 136, 137, 138 },
regions = { },
triggers = { "CLIENT_EXECUTE_70", "CLIENT_EXECUTE_71", "CLIENT_EXECUTE_72", "CLIENT_EXECUTE_73", "CLIENT_EXECUTE_74" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_70(context, evt)
if defs.gadget_id_1 ~= ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return false
end
return true
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_70(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 123) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_71(context, evt)
if defs.gadget_id_2 ~= ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return false
end
return true
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_71(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 124) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_72(context, evt)
if defs.gadget_id_3 ~= ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return false
end
return true
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_72(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 125) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_73(context, evt)
if defs.gadget_id_4 ~= ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return false
end
return true
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_73(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 126) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_74(context, evt)
if defs.gadget_id_5 ~= ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return false
end
return true
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_74(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 127) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 220000020
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 23, monster_id = 21010301, pos = { x = 143.837, y = 0.500, z = 87.367 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 24, monster_id = 21010301, pos = { x = 146.997, y = 0.500, z = 78.331 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 25, monster_id = 21010301, pos = { x = 139.835, y = 0.500, z = 80.460 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 63, gadget_id = 70211011, pos = { x = 147.319, y = 0.500, z = 100.862 }, rot = { x = 0.000, y = 313.626, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 23, 24, 25 },
gadgets = { 63 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 220000021
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 26, monster_id = 21011001, pos = { x = 133.471, y = 6.519, z = 145.067 }, rot = { x = 0.000, y = 283.043, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 27, monster_id = 21011001, pos = { x = 133.449, y = 6.519, z = 129.569 }, rot = { x = 0.000, y = 325.959, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 28, monster_id = 21011001, pos = { x = 144.547, y = 6.519, z = 144.852 }, rot = { x = 0.000, y = 157.739, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 64, gadget_id = 70211011, pos = { x = 144.335, y = 6.519, z = 129.472 }, rot = { x = 0.000, y = 203.779, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 26, 27, 28 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 220000022
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 29, monster_id = 21010201, pos = { x = 137.383, y = 0.500, z = 180.744 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 30, monster_id = 21010201, pos = { x = 137.434, y = 0.500, z = 186.342 }, rot = { x = 0.000, y = 204.375, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 31, monster_id = 21010301, pos = { x = 133.594, y = 0.500, z = 183.176 }, rot = { x = 0.000, y = 81.204, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 29, 30, 31 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,78 @@
-- 基础信息
local base_info = {
group_id = 220000023
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 32, monster_id = 21020101, pos = { x = 139.404, y = 0.500, z = 239.738 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 33, monster_id = 21010201, pos = { x = 131.168, y = 0.500, z = 237.864 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 34, monster_id = 21010201, pos = { x = 132.033, y = 0.500, z = 243.272 }, rot = { x = 0.000, y = 205.681, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 35, monster_id = 21010201, pos = { x = 124.253, y = 0.500, z = 240.950 }, rot = { x = 0.000, y = 83.124, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 36, monster_id = 21011001, pos = { x = 111.158, y = 7.001, z = 248.069 }, rot = { x = 0.000, y = 291.644, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 37, monster_id = 21011001, pos = { x = 137.294, y = 7.001, z = 256.511 }, rot = { x = 0.000, y = 230.475, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 38, monster_id = 21011001, pos = { x = 137.317, y = 7.001, z = 224.374 }, rot = { x = 0.000, y = 338.179, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 32, 33, 34, 35, 36, 37, 38 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 220000024
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 39, monster_id = 21010601, pos = { x = 68.850, y = 6.016, z = 63.322 }, rot = { x = 0.000, y = 121.068, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 40, monster_id = 21010301, pos = { x = 77.822, y = 0.500, z = 44.013 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 41, monster_id = 21010301, pos = { x = 79.941, y = 0.500, z = 62.707 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 65, gadget_id = 70211011, pos = { x = 71.650, y = 6.521, z = 58.503 }, rot = { x = 0.000, y = 276.807, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 39, 40, 41 },
gadgets = { 65 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 220000025
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 42, monster_id = 21010201, pos = { x = 72.735, y = 0.500, z = 92.045 }, rot = { x = 0.000, y = 76.844, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 43, monster_id = 21010201, pos = { x = 76.154, y = 0.500, z = 88.616 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 44, monster_id = 21010301, pos = { x = 76.254, y = 0.500, z = 95.886 }, rot = { x = 0.000, y = 166.185, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 42, 43, 44 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,85 @@
-- 基础信息
local base_info = {
group_id = 220000026
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 66, gadget_id = 70500001, pos = { x = 70.450, y = 30.519, z = 116.557 }, rot = { x = 0.000, y = 25.548, z = 0.000 }, level = 1, point_type = 2019, isOneoff = true },
{ config_id = 67, gadget_id = 70211011, pos = { x = 66.081, y = 9.423, z = 121.093 }, rot = { x = 0.000, y = 172.247, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", showcutscene = true, isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000048, name = "GATHER_48", event = EventType.EVENT_GATHER, source = "66", condition = "", action = "action_EVENT_GATHER_48", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 66 },
regions = { },
triggers = { "GATHER_48" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GATHER_48(context, evt)
-- 创生gadget 67
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 67 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 220000027
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 45, monster_id = 21010301, pos = { x = 55.629, y = 0.500, z = 171.254 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 46, monster_id = 21010301, pos = { x = 62.995, y = 0.500, z = 169.981 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 47, monster_id = 20011201, pos = { x = 61.054, y = 0.500, z = 151.553 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 48, monster_id = 20011201, pos = { x = 55.821, y = 0.500, z = 156.717 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 45, 46, 47, 48 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,77 @@
-- 基础信息
local base_info = {
group_id = 220000028
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 49, monster_id = 21010901, pos = { x = 72.816, y = 7.001, z = 236.030 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 50, monster_id = 21010901, pos = { x = 56.735, y = 7.001, z = 207.595 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 51, monster_id = 21010901, pos = { x = 59.045, y = 7.001, z = 261.744 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 52, monster_id = 21010901, pos = { x = 33.506, y = 7.001, z = 236.765 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 53, monster_id = 22010201, pos = { x = 66.279, y = 2.000, z = 248.969 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 68, gadget_id = 70211011, pos = { x = 52.800, y = 5.017, z = 237.461 }, rot = { x = 0.000, y = 336.729, z = 0.000 }, level = 1, drop_tag = "战斗中级蒙德", isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 49, 50, 51, 52, 53 },
gadgets = { 68 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 220000029
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 69, gadget_id = 70510003, pos = { x = 135.136, y = 3.412, z = -114.147 }, rot = { x = 0.000, y = 178.201, z = 0.000 }, level = 1 },
{ config_id = 71, gadget_id = 70510001, pos = { x = 152.893, y = 13.228, z = -125.687 }, rot = { x = 0.000, y = 84.175, z = 0.000 }, level = 1 },
{ config_id = 72, gadget_id = 70510004, pos = { x = 114.037, y = 0.500, z = -110.477 }, rot = { x = 0.000, y = 101.644, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 69, 71, 72 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,147 @@
-- 基础信息
local base_info = {
group_id = 220000030
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 54, monster_id = 21010201, pos = { x = -31.014, y = 1.348, z = 79.423 }, rot = { x = 0.000, y = 76.844, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 55, monster_id = 21010201, pos = { x = -25.225, y = 1.348, z = 72.329 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 56, monster_id = 21010301, pos = { x = -22.276, y = 1.348, z = 81.942 }, rot = { x = 0.000, y = 166.185, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 57, monster_id = 21010401, pos = { x = -7.979, y = 7.001, z = 77.062 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 58, monster_id = 21010401, pos = { x = -20.494, y = 7.001, z = 102.925 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 59, monster_id = 21010401, pos = { x = -19.199, y = 7.001, z = 54.064 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 73, gadget_id = 70220005, pos = { x = -38.667, y = 7.183, z = 207.031 }, rot = { x = 0.000, y = 115.984, z = 0.000 }, level = 1 },
{ config_id = 74, gadget_id = 70220005, pos = { x = -41.962, y = 7.183, z = 213.520 }, rot = { x = 0.000, y = 337.026, z = 0.000 }, level = 1 },
{ config_id = 75, gadget_id = 70220005, pos = { x = -33.672, y = 7.183, z = 212.945 }, rot = { x = 0.000, y = 132.577, z = 0.000 }, level = 1 },
{ config_id = 83, gadget_id = 70220005, pos = { x = -39.099, y = 7.151, z = 209.997 }, rot = { x = 0.000, y = 50.963, z = 0.000 }, level = 1 },
{ config_id = 84, gadget_id = 70220005, pos = { x = -35.744, y = 7.151, z = 211.856 }, rot = { x = 0.000, y = 353.600, z = 0.000 }, level = 1 },
{ config_id = 85, gadget_id = 70220005, pos = { x = -35.184, y = 7.151, z = 209.828 }, rot = { x = 0.000, y = 237.513, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 49, shape = RegionShape.SPHERE, radius = 10.2, pos = { x = 19.314, y = 0.500, z = 51.483 } }
}
-- 触发器
triggers = {
{ config_id = 1000049, name = "ENTER_REGION_49", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_49", action = "action_EVENT_ENTER_REGION_49", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 73, 74, 75, 83, 84, 85 },
regions = { 49 },
triggers = { "ENTER_REGION_49" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 54, 55, 56, 57, 58, 59 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_49(context, evt)
if evt.param1 ~= 49 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_49(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 54, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 55, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 56, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 57, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 58, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 59, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,143 @@
-- 基础信息
local base_info = {
group_id = 220000031
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 60, monster_id = 21010701, pos = { x = -40.786, y = 7.151, z = 209.442 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 61, monster_id = 21010201, pos = { x = -36.956, y = 7.151, z = 211.579 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 62, monster_id = 21010501, pos = { x = -38.871, y = 7.151, z = 213.066 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 63, monster_id = 21010501, pos = { x = -22.285, y = 0.500, z = 207.961 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 64, monster_id = 20011301, pos = { x = -18.862, y = 0.500, z = 208.816 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 65, monster_id = 21010501, pos = { x = -24.389, y = 0.500, z = 213.219 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 81, gadget_id = 70220003, pos = { x = -19.291, y = 0.500, z = 181.846 }, rot = { x = 0.000, y = 69.584, z = 0.000 }, level = 1 },
{ config_id = 82, gadget_id = 70220003, pos = { x = -15.358, y = 0.500, z = 182.634 }, rot = { x = 0.000, y = 317.782, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 50, shape = RegionShape.SPHERE, radius = 14.6, pos = { x = 15.214, y = 0.500, z = 191.790 } }
}
-- 触发器
triggers = {
{ config_id = 1000050, name = "ENTER_REGION_50", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_50", action = "action_EVENT_ENTER_REGION_50", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 81, 82 },
regions = { 50 },
triggers = { "ENTER_REGION_50" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 60, 61, 62, 63, 64, 65 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_50(context, evt)
if evt.param1 ~= 50 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_50(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 60, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 61, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 62, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 63, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 64, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 65, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,155 @@
-- 基础信息
local base_info = {
group_id = 220000034
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 87, gadget_id = 70710002, pos = { x = 81.402, y = 0.500, z = -12.125 }, rot = { x = 0.000, y = 292.160, z = 0.000 }, level = 1, route_id = 20000007 },
{ config_id = 90, gadget_id = 70211021, pos = { x = 74.286, y = 0.534, z = 32.857 }, rot = { x = 0.000, y = 181.619, z = 0.000 }, level = 1, drop_tag = "战斗高级蒙德", showcutscene = true, isOneoff = true }
}
-- 区域
regions = {
{ config_id = 53, shape = RegionShape.SPHERE, radius = 10.2, pos = { x = 89.079, y = 0.500, z = -11.004 } },
{ config_id = 54, shape = RegionShape.SPHERE, radius = 5, pos = { x = 96.611, y = 0.500, z = 14.008 } }
}
-- 触发器
triggers = {
{ 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 = 1000055, name = "PLATFORM_REACH_POINT_55", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_55", action = "action_EVENT_PLATFORM_REACH_POINT_55" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 87 },
regions = { 53, 54 },
triggers = { "ENTER_REGION_53", "ENTER_REGION_54", "PLATFORM_REACH_POINT_55" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
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)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 87, 20000008) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
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)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 87, 20000009) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_55(context, evt)
-- 判断是gadgetid 为 87的移动平台,是否到达了20000009 的路线中的 1 点
if 87 ~= evt.param1 then
return false
end
if 20000009 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_55(context, evt)
-- 创生gadget 90
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 90 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : dungeon_settle")
return -1
end
return 0
end
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 220000035
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 88, gadget_id = 70900043, pos = { x = 79.195, y = 0.644, z = 32.854 }, rot = { x = 0.000, y = 1.393, z = 0.000 }, level = 1 },
{ config_id = 89, gadget_id = 70900042, pos = { x = 76.093, y = 0.648, z = 32.586 }, rot = { x = 0.000, y = 182.743, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 88, 89 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,138 @@
-- 基础信息
local base_info = {
group_id = 220000036
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 91, gadget_id = 70800001, pos = { x = 143.245, y = 1.133, z = -2.377 }, rot = { x = 0.000, y = 214.952, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000056, name = "GADGET_CREATE_56", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_56", action = "action_EVENT_GADGET_CREATE_56", trigger_count = 0 },
{ config_id = 1000057, name = "SELECT_OPTION_57", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_57", action = "action_EVENT_SELECT_OPTION_57", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 91 },
regions = { },
triggers = { "GADGET_CREATE_56", "SELECT_OPTION_57" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_56(context, evt)
if 91 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_56(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_57(context, evt)
-- 判断是gadgetid 91 option_id 24
if 91 ~= evt.param1 then
return false
end
if 24 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_57(context, evt)
-- 激活gadget_id为91的封印战斗,战斗区域半径为10,圈内进度每秒增长1,圈外进度每秒衰减2,进度达到60时判定为战斗成功(填0则取默认值100),进度衰减到0后5秒判定为战斗失败
if 24 == evt.param2 then
local ret = ScriptLib.StartSealBattle(context, 91, {radius = 10, in_add = 1, out_sub = 2, fail_time = 5, max_progress = 60})
--ScriptLib.PrintLog("StartSealBattle ret: " ..ret)
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000037, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 删除指定group 220000036 ;指定config91;物件身上指定option24
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220000036, 91, 24) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 91 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 91, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,278 @@
-- 基础信息
local base_info = {
group_id = 220000037
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 77, monster_id = 20011201, pos = { x = 141.995, y = 1.133, z = 4.288 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 15 },
{ config_id = 78, monster_id = 20011201, pos = { x = 147.357, y = 1.133, z = -7.904 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 15 },
{ config_id = 79, monster_id = 21030201, pos = { x = 136.997, y = 1.133, z = -6.001 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 15 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000058, name = "ANY_MONSTER_DIE_58", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_58", action = "action_EVENT_ANY_MONSTER_DIE_58", trigger_count = 0 },
{ config_id = 1000059, name = "ANY_MONSTER_DIE_59", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_59", action = "action_EVENT_ANY_MONSTER_DIE_59", trigger_count = 0 },
{ config_id = 1000060, name = "ANY_MONSTER_DIE_60", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_60", action = "action_EVENT_ANY_MONSTER_DIE_60", trigger_count = 0 },
{ config_id = 1000063, name = "ANY_MONSTER_LIVE_63", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_63", action = "action_EVENT_ANY_MONSTER_LIVE_63" },
{ config_id = 1000064, name = "CHALLENGE_SUCCESS_64", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "37", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_64", trigger_count = 0 },
{ config_id = 1000065, name = "CHALLENGE_FAIL_65", event = EventType.EVENT_CHALLENGE_FAIL, source = "37", condition = "", action = "action_EVENT_CHALLENGE_FAIL_65", trigger_count = 0 },
{ config_id = 1000066, name = "ANY_MONSTER_LIVE_66", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_66", action = "action_EVENT_ANY_MONSTER_LIVE_66", trigger_count = 0 },
{ config_id = 1000067, name = "ANY_MONSTER_LIVE_67", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_67", action = "action_EVENT_ANY_MONSTER_LIVE_67", trigger_count = 0 },
{ config_id = 1000068, name = "ANY_MONSTER_LIVE_68", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_68", action = "action_EVENT_ANY_MONSTER_LIVE_68", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 77, 78, 79 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_58", "ANY_MONSTER_DIE_59", "ANY_MONSTER_DIE_60", "ANY_MONSTER_LIVE_63", "CHALLENGE_SUCCESS_64", "CHALLENGE_FAIL_65", "ANY_MONSTER_LIVE_66", "ANY_MONSTER_LIVE_67", "ANY_MONSTER_LIVE_68" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_58(context, evt)
if 77 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_58(context, evt)
-- 延迟5秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 77, delay_time = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_59(context, evt)
if 78 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_59(context, evt)
-- 延迟5秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 78, delay_time = 5 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_60(context, evt)
if 79 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_60(context, evt)
-- 延迟10秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 79, delay_time = 10 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_63(context, evt)
if 77 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_63(context, evt)
-- 创建编号为37(该挑战的识别id),挑战内容为152的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 37, 152, 60, 220000037, 5, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_64(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220000036, 91, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组220000036中, configid为91的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220000036, 91, 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 = 220000037, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_65(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220000036, 91, {24}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 改变指定group组220000036中, configid为91的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220000036, 91, 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 = 220000037, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_66(context, evt)
if 79 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_66(context, evt)
-- 通知groupid为220000037中,configid为:79的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 79, 220000037) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_67(context, evt)
if 77 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_67(context, evt)
-- 通知groupid为220000037中,configid为:77的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 77, 220000037) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_68(context, evt)
if 78 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_68(context, evt)
-- 通知groupid为220000037中,configid为:78的怪物入战或者脱战,set为1是入战,为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 78, 220000037) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_monster_battle_by_group")
return -1
end
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220000038
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 92, gadget_id = 70220001, pos = { x = 96.954, y = 0.500, z = -58.567 }, rot = { x = 0.000, y = 258.759, 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 = { 92 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 220000039
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 93, gadget_id = 70380003, pos = { x = 92.380, y = -1.335, z = -114.312 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20000010, persistent = true },
{ config_id = 94, gadget_id = 70380001, pos = { x = 92.669, y = -0.751, z = -126.677 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20000011, start_route = false, persistent = true },
{ config_id = 95, gadget_id = 70211021, pos = { x = 92.473, y = 0.209, z = -126.407 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗高级蒙德", isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 93, 94 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,90 @@
-- 基础信息
local base_info = {
group_id = 220000040
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 96, gadget_id = 70211021, pos = { x = 94.376, y = -3.353, z = -153.460 }, rot = { x = 0.000, y = 359.578, z = 0.000 }, level = 1, drop_tag = "战斗高级蒙德", isOneoff = true },
{ config_id = 97, gadget_id = 70900046, pos = { x = 90.952, y = -10.500, z = -149.627 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 101, gadget_id = 70900046, pos = { x = 90.845, y = -10.500, z = -148.190 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 102, gadget_id = 70900046, pos = { x = 91.014, y = -10.500, z = -146.458 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 103, gadget_id = 70900046, pos = { x = 90.235, y = -10.500, z = -145.054 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 104, gadget_id = 70900046, pos = { x = 92.724, y = -10.500, z = -145.008 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 105, gadget_id = 70900046, pos = { x = 94.831, y = -10.500, z = -146.886 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 106, gadget_id = 70900046, pos = { x = 89.303, y = -10.500, z = -147.935 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 107, gadget_id = 70900046, pos = { x = 93.290, y = -10.500, z = -148.336 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 108, gadget_id = 70900046, pos = { x = 95.813, y = -10.500, z = -150.587 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 109, gadget_id = 70900046, pos = { x = 96.634, y = -10.500, z = -148.674 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 110, gadget_id = 70900046, pos = { x = 97.082, y = -10.500, z = -145.872 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 111, gadget_id = 70900046, pos = { x = 95.754, y = -10.500, z = -144.671 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 112, gadget_id = 70900046, pos = { x = 93.894, y = -10.500, z = -144.248 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 113, gadget_id = 70900046, pos = { x = 93.209, y = -10.500, z = -147.062 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 114, gadget_id = 70900046, pos = { x = 93.461, y = -10.500, z = -150.576 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 115, gadget_id = 70900046, pos = { x = 97.705, y = -10.500, z = -147.755 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 116, gadget_id = 70900046, pos = { x = 91.705, y = -10.500, z = -143.834 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 },
{ config_id = 117, gadget_id = 70900046, pos = { x = 95.150, y = -10.500, z = -143.332 }, rot = { x = 0.000, y = 83.610, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 96, 97, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,127 @@
-- 基础信息
local base_info = {
group_id = 220000041
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 80, monster_id = 21010101, pos = { x = 170.217, y = 0.641, z = 55.260 }, rot = { x = 0.000, y = 171.667, z = 0.000 }, level = 1 },
{ config_id = 81, monster_id = 21010101, pos = { x = 165.065, y = 0.641, z = 47.342 }, rot = { x = 0.000, y = 83.349, z = 0.000 }, level = 1 },
{ config_id = 82, monster_id = 21010101, pos = { x = 168.503, y = 0.641, z = 40.644 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 83, monster_id = 21010101, pos = { x = 173.238, y = 0.641, z = 44.244 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 84, monster_id = 21010101, pos = { x = 173.005, y = 0.641, z = 51.435 }, rot = { x = 0.000, y = 225.641, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 128, gadget_id = 70900207, pos = { x = 166.232, y = 0.713, z = 53.049 }, rot = { x = 0.000, y = 37.925, z = 0.000 }, level = 1 },
{ config_id = 129, gadget_id = 70900207, pos = { x = 170.234, y = 0.470, z = 53.083 }, rot = { x = 0.000, y = 8.730, z = 0.000 }, level = 1 },
{ config_id = 130, gadget_id = 70900207, pos = { x = 170.440, y = 0.439, z = 49.129 }, rot = { x = 0.000, y = 129.902, z = 0.000 }, level = 1 },
{ config_id = 131, gadget_id = 70900207, pos = { x = 166.350, y = 0.609, z = 49.180 }, rot = { x = 0.000, y = 293.309, z = 0.000 }, level = 1 },
{ config_id = 140, gadget_id = 70510008, pos = { x = 167.918, y = 0.948, z = 51.039 }, rot = { x = 0.000, y = 112.604, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000075, name = "ANY_MONSTER_DIE_75", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_75", action = "action_EVENT_ANY_MONSTER_DIE_75", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 80, 81, 82, 83, 84 },
gadgets = { 128, 129, 130, 140 },
regions = { },
triggers = { "ANY_MONSTER_DIE_75" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_75(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220000041) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_75(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 80, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 81, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 82, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 83, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 84, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
@@ -0,0 +1,93 @@
-- 基础信息
local base_info = {
group_id = 220000043
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 144, gadget_id = 70900221, pos = { x = 105.231, y = 0.500, z = 35.102 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 145, gadget_id = 70900223, pos = { x = 111.219, y = 0.500, z = 35.258 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 146, gadget_id = 71000004, pos = { x = 114.014, y = 0.500, z = 32.412 }, rot = { x = 0.000, y = 301.539, z = 0.000 }, level = 1 },
{ config_id = 147, gadget_id = 70220007, pos = { x = 108.329, y = 0.500, z = 34.652 }, rot = { x = 0.000, y = 92.063, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000077, name = "CLIENT_EXECUTE_77", event = EventType.EVENT_CLIENT_EXECUTE, source = "LaserSwitch_Hit", condition = "", action = "action_EVENT_CLIENT_EXECUTE_77" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 144, 145, 147 },
regions = { },
triggers = { "CLIENT_EXECUTE_77" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_77(context, evt)
-- 创建id为146的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 146 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 将configid为 144 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 144, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,117 @@
-- 基础信息
local base_info = {
group_id = 220000044
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 85, monster_id = 24010101, pos = { x = 543.167, y = -0.857, z = 363.154 }, rot = { x = 0.000, y = 224.985, z = 0.000 }, level = 20, disableWander = true, pose_id = 100 },
{ config_id = 86, monster_id = 24010101, pos = { x = 543.425, y = -0.857, z = 358.206 }, rot = { x = 0.000, y = 321.483, z = 0.000 }, level = 20, disableWander = true, pose_id = 100 },
{ config_id = 88, monster_id = 21010101, pos = { x = 716.664, y = 5.780, z = 379.393 }, rot = { x = 0.000, y = 149.615, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 89, monster_id = 21010101, pos = { x = 719.553, y = 5.788, z = 379.924 }, rot = { x = 0.000, y = 238.760, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 90, monster_id = 21010101, pos = { x = 731.704, y = 5.506, z = 360.834 }, rot = { x = 0.000, y = 24.866, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 91, monster_id = 21010101, pos = { x = 733.790, y = 5.506, z = 359.695 }, rot = { x = 0.000, y = 355.678, z = 0.000 }, level = 1, disableWander = true },
{ config_id = 92, monster_id = 24010101, pos = { x = 780.950, y = 5.463, z = 360.681 }, rot = { x = 0.000, y = 224.985, z = 0.000 }, level = 12, disableWander = true, pose_id = 100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 150, gadget_id = 70900213, pos = { x = 264.086, y = 5.573, z = 282.293 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearAction1 },
{ config_id = 152, gadget_id = 70900213, pos = { x = 299.624, y = 5.573, z = 279.234 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 153, gadget_id = 70900213, pos = { x = 299.626, y = 5.573, z = 278.234 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 162, gadget_id = 70900221, pos = { x = 361.099, y = 5.996, z = 285.451 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 173, gadget_id = 70320002, pos = { x = 483.350, y = 5.543, z = 368.762 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 174, gadget_id = 70320002, pos = { x = 485.157, y = 5.543, z = 368.777 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 175, gadget_id = 70320002, pos = { x = 487.090, y = 5.543, z = 368.932 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 176, gadget_id = 70320002, pos = { x = 483.863, y = 5.543, z = 354.390 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 177, gadget_id = 70320002, pos = { x = 485.670, y = 5.543, z = 354.405 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 178, gadget_id = 70320002, pos = { x = 487.599, y = 5.543, z = 354.561 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 179, gadget_id = 70220003, pos = { x = 508.170, y = 5.543, z = 364.910 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 180, gadget_id = 70220003, pos = { x = 508.144, y = 5.543, z = 360.070 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 181, gadget_id = 70220003, pos = { x = 508.092, y = 5.543, z = 355.473 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 187, gadget_id = 70900216, pos = { x = 700.906, y = 5.735, z = 360.402 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 188, gadget_id = 70900216, pos = { x = 718.046, y = 5.737, z = 377.805 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 189, gadget_id = 70900216, pos = { x = 734.572, y = 5.449, z = 361.824 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 190, gadget_id = 70900207, pos = { x = 786.625, y = 5.798, z = 375.078 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 192, gadget_id = 70211001, pos = { x = 416.376, y = 5.573, z = 263.826 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 193, gadget_id = 70211001, pos = { x = 476.147, y = 5.573, z = 309.384 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 198, gadget_id = 70900207, pos = { x = 786.883, y = 5.804, z = 380.024 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 199, gadget_id = 70900207, pos = { x = 792.751, y = 5.804, z = 380.080 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 200, gadget_id = 70900207, pos = { x = 799.377, y = 5.804, z = 379.707 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 201, gadget_id = 70900207, pos = { x = 805.102, y = 5.804, z = 380.075 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 202, gadget_id = 70900207, pos = { x = 810.997, y = 5.804, z = 380.005 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 203, gadget_id = 70900207, pos = { x = 815.728, y = 5.804, z = 379.933 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 204, gadget_id = 70900207, pos = { x = 821.630, y = 5.804, z = 379.900 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 205, gadget_id = 70900207, pos = { x = 826.700, y = 5.804, z = 369.377 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 206, gadget_id = 70900207, pos = { x = 826.674, y = 5.804, z = 374.805 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 207, gadget_id = 70900207, pos = { x = 826.737, y = 5.804, z = 379.895 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 213, gadget_id = 70900221, pos = { x = 369.471, y = 6.103, z = 272.946 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 215, gadget_id = 70900213, pos = { x = 299.669, y = 6.552, z = 279.222 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 216, gadget_id = 70900213, pos = { x = 299.671, y = 6.552, z = 278.222 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 222, gadget_id = 70900213, pos = { x = 264.547, y = 5.573, z = 273.396 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, state = GadgetState.GearAction1 },
{ config_id = 235, gadget_id = 70900216, pos = { x = 771.129, y = 5.334, z = 363.497 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 238, gadget_id = 70220003, pos = { x = 506.117, y = 5.543, z = 353.918 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 239, gadget_id = 70220003, pos = { x = 505.732, y = 5.543, z = 366.796 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 240, gadget_id = 70220003, pos = { x = 502.930, y = 5.543, z = 366.712 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 244, gadget_id = 70220005, pos = { x = 736.400, y = 5.483, z = 364.647 }, rot = { x = 0.000, y = 197.060, z = 0.000 }, level = 1 },
{ config_id = 247, gadget_id = 70220011, pos = { x = 255.241, y = 5.573, z = 278.159 }, rot = { x = 0.000, y = 89.580, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 85, 86, 88, 89, 90, 91, 92 },
gadgets = { 150, 152, 153, 162, 173, 174, 175, 176, 177, 178, 179, 180, 181, 187, 188, 189, 190, 192, 193, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 213, 215, 216, 222, 235, 238, 239, 240, 244 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 220000045
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 93, monster_id = 21010601, pos = { x = 255.099, y = 5.573, z = 283.065 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 169, gadget_id = 70900221, pos = { x = 415.524, y = 5.557, z = 282.568 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 170, gadget_id = 70900223, pos = { x = 422.921, y = 5.573, z = 282.778 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 182, gadget_id = 70350004, pos = { x = 415.653, y = 5.694, z = 270.657 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 183, gadget_id = 70350004, pos = { x = 431.728, y = 5.573, z = 277.601 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 211, gadget_id = 70220007, pos = { x = 418.988, y = 5.573, z = 281.807 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000078, name = "CLIENT_EXECUTE_78", event = EventType.EVENT_CLIENT_EXECUTE, source = "LaserSwitch_Hit", condition = "", action = "action_EVENT_CLIENT_EXECUTE_78" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 93 },
gadgets = { 169, 170, 182, 183, 211 },
regions = { },
triggers = { "CLIENT_EXECUTE_78" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_78(context, evt)
-- 将configid为 182 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 182, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 183 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 183, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,93 @@
-- 基础信息
local base_info = {
group_id = 220000046
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 171, gadget_id = 70900223, pos = { x = 457.624, y = 5.573, z = 316.272 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 172, gadget_id = 70900221, pos = { x = 457.619, y = 5.573, z = 311.131 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 184, gadget_id = 70350004, pos = { x = 468.478, y = 5.694, z = 308.958 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 185, gadget_id = 70350004, pos = { x = 462.140, y = 5.727, z = 324.690 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000079, name = "CLIENT_EXECUTE_79", event = EventType.EVENT_CLIENT_EXECUTE, source = "LaserSwitch_Un_Hit", condition = "", action = "action_EVENT_CLIENT_EXECUTE_79" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 171, 172, 184, 185 },
regions = { },
triggers = { "CLIENT_EXECUTE_79" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_79(context, evt)
-- 将configid为 185 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 185, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 184 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 184, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,100 @@
-- 基础信息
local base_info = {
group_id = 220000047
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 191, gadget_id = 70900208, pos = { x = 786.909, y = 5.798, z = 379.967 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 194, gadget_id = 70900208, pos = { x = 792.978, y = 5.804, z = 380.248 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 195, gadget_id = 70900208, pos = { x = 799.340, y = 5.804, z = 380.020 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 196, gadget_id = 70900208, pos = { x = 805.257, y = 5.804, z = 380.007 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 197, gadget_id = 70900208, pos = { x = 810.885, y = 5.804, z = 379.909 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 208, gadget_id = 70900206, pos = { x = 826.915, y = 5.901, z = 362.964 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 209, gadget_id = 70900207, pos = { x = 826.827, y = 7.645, z = 362.866 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 210, gadget_id = 70380003, pos = { x = 802.765, y = 3.878, z = 363.464 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20000018, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000080, name = "CLIENT_EXECUTE_80", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricPile", condition = "condition_EVENT_CLIENT_EXECUTE_80", action = "action_EVENT_CLIENT_EXECUTE_80", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 191, 194, 195, 196, 197, 208, 209, 210 },
regions = { },
triggers = { "CLIENT_EXECUTE_80" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_80(context, evt)
if 209 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_80(context, evt)
-- 将configid为 208 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 208, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,76 @@
-- 基础信息
local base_info = {
group_id = 220000048
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 248, gadget_id = 70320002, pos = { x = 312.602, y = 5.573, z = 283.704 }, rot = { x = 0.000, y = 270.246, z = 0.000 }, level = 1 },
{ config_id = 249, gadget_id = 70320002, pos = { x = 301.925, y = 5.573, z = 283.929 }, rot = { x = 0.000, y = 89.297, z = 0.000 }, level = 1 },
{ config_id = 250, gadget_id = 70320002, pos = { x = 314.859, y = 5.573, z = 283.620 }, rot = { x = 0.000, y = 99.661, z = 0.000 }, level = 1 },
{ config_id = 251, gadget_id = 70320002, pos = { x = 324.496, y = 5.573, z = 283.709 }, rot = { x = 0.000, y = 267.421, z = 0.000 }, level = 1 },
{ config_id = 252, gadget_id = 70900206, pos = { x = 314.631, y = 5.573, z = 287.679 }, rot = { x = 0.000, y = 18.278, z = 0.000 }, level = 1, state = GadgetState.GearAction1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 248, 249, 250, 251 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,117 @@
-- 基础信息
local base_info = {
group_id = 220000049
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 224, gadget_id = 70900206, pos = { x = 644.882, y = 5.793, z = 367.358 }, rot = { x = 0.000, y = 133.201, z = 0.000 }, level = 1, state = GadgetState.GearAction1 },
{ config_id = 225, gadget_id = 70900206, pos = { x = 654.186, y = 5.793, z = 345.811 }, rot = { x = 0.000, y = 133.201, z = 0.000 }, level = 1, state = GadgetState.GearAction2 },
{ config_id = 226, gadget_id = 70900206, pos = { x = 661.828, y = 5.793, z = 368.628 }, rot = { x = 0.000, y = 133.201, z = 0.000 }, level = 1, state = GadgetState.GearAction1 },
{ config_id = 227, gadget_id = 71000004, pos = { x = 634.990, y = 5.793, z = 358.116 }, rot = { x = 0.000, y = 267.326, z = 0.000 }, level = 1 },
{ config_id = 228, gadget_id = 71000004, pos = { x = 644.539, y = 5.793, z = 365.646 }, rot = { x = 0.000, y = 267.326, z = 0.000 }, level = 1 },
{ config_id = 229, gadget_id = 71000004, pos = { x = 652.641, y = 5.793, z = 347.130 }, rot = { x = 0.000, y = 267.326, z = 0.000 }, level = 1 },
{ config_id = 230, gadget_id = 71000004, pos = { x = 660.668, y = 5.793, z = 367.776 }, rot = { x = 0.000, y = 267.326, z = 0.000 }, level = 1 },
{ config_id = 237, gadget_id = 71000004, pos = { x = 652.662, y = 5.793, z = 357.083 }, rot = { x = 0.000, y = 267.326, z = 0.000 }, level = 1 },
{ config_id = 246, gadget_id = 71000004, pos = { x = 636.207, y = 5.793, z = 362.972 }, rot = { x = 0.000, y = 267.326, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 81, shape = RegionShape.SPHERE, radius = 5, pos = { x = 671.011, y = 5.914, z = 361.760 } }
}
-- 触发器
triggers = {
{ config_id = 1000081, name = "ENTER_REGION_81", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_81", action = "action_EVENT_ENTER_REGION_81", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 224, 225, 226, 227, 228, 229, 230, 237, 246 },
regions = { 81 },
triggers = { "ENTER_REGION_81" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_81(context, evt)
if evt.param1 ~= 81 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_81(context, evt)
-- 将configid为 224 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 224, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 225 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 225, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 226 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 226, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,98 @@
-- 基础信息
local base_info = {
group_id = 220000050
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 241, gadget_id = 70350004, pos = { x = 746.851, y = 5.748, z = 361.037 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 243, gadget_id = 70900216, pos = { x = 777.425, y = 5.246, z = 370.169 }, rot = { x = 0.000, y = 299.208, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 82, shape = RegionShape.SPHERE, radius = 5, pos = { x = 743.332, y = 6.007, z = 360.439 } }
}
-- 触发器
triggers = {
{ config_id = 1000082, name = "ENTER_REGION_82", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_82", action = "action_EVENT_ENTER_REGION_82", forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 241 },
regions = { 82 },
triggers = { "ENTER_REGION_82" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_82(context, evt)
if evt.param1 ~= 82 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_82(context, evt)
-- 将configid为 241 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 241, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,98 @@
-- 基础信息
local base_info = {
group_id = 220000051
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 253, gadget_id = 70900207, pos = { x = 100.346, y = 0.500, z = 275.668 }, rot = { x = 0.000, y = 141.322, z = 0.000 }, level = 1 },
{ config_id = 254, gadget_id = 70900208, pos = { x = 99.062, y = 0.500, z = 273.528 }, rot = { x = 0.000, y = 81.885, z = 0.000 }, level = 1 },
{ config_id = 255, gadget_id = 70900208, pos = { x = 97.158, y = 0.500, z = 271.658 }, rot = { x = 0.000, y = 81.885, z = 0.000 }, level = 1 },
{ config_id = 256, gadget_id = 70900208, pos = { x = 95.012, y = 0.500, z = 269.915 }, rot = { x = 0.000, y = 45.480, z = 0.000 }, level = 1 },
{ config_id = 257, gadget_id = 70900208, pos = { x = 93.999, y = 0.500, z = 266.833 }, rot = { x = 0.000, y = 110.915, z = 0.000 }, level = 1 },
{ config_id = 258, gadget_id = 70900208, pos = { x = 93.523, y = 0.500, z = 263.246 }, rot = { x = 0.000, y = 278.295, z = 0.000 }, level = 1 },
{ config_id = 259, gadget_id = 70900208, pos = { x = 95.400, y = 0.500, z = 261.466 }, rot = { x = 0.000, y = 51.189, z = 0.000 }, level = 1 },
{ config_id = 260, gadget_id = 70900208, pos = { x = 77.557, y = 0.500, z = 285.791 }, rot = { x = 0.000, y = 81.885, z = 0.000 }, level = 1 },
{ config_id = 261, gadget_id = 70900208, pos = { x = 75.654, y = 0.500, z = 283.920 }, rot = { x = 0.000, y = 81.885, z = 0.000 }, level = 1 },
{ config_id = 262, gadget_id = 70900208, pos = { x = 73.508, y = 0.500, z = 282.177 }, rot = { x = 0.000, y = 45.480, z = 0.000 }, level = 1 },
{ config_id = 263, gadget_id = 70900208, pos = { x = 72.495, y = 0.500, z = 279.096 }, rot = { x = 0.000, y = 110.915, z = 0.000 }, level = 1 },
{ config_id = 264, gadget_id = 70900208, pos = { x = 72.019, y = 0.500, z = 275.508 }, rot = { x = 0.000, y = 278.295, z = 0.000 }, level = 1 },
{ config_id = 265, gadget_id = 70900208, pos = { x = 73.896, y = 0.500, z = 273.728 }, rot = { x = 0.000, y = 51.189, z = 0.000 }, level = 1 },
{ config_id = 266, gadget_id = 70900224, pos = { x = 74.858, y = 0.500, z = 270.898 }, rot = { x = 0.000, y = 269.642, z = 0.000 }, level = 1 },
{ config_id = 267, gadget_id = 70350004, pos = { x = 69.524, y = 0.767, z = 270.440 }, rot = { x = 0.000, y = 359.988, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000083, name = "CLIENT_EXECUTE_83", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricSwitch_Hit", condition = "", action = "action_EVENT_CLIENT_EXECUTE_83" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267 },
regions = { },
triggers = { "CLIENT_EXECUTE_83" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_83(context, evt)
-- 将configid为 267 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 267, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,135 @@
-- 基础信息
local base_info = {
group_id = 220000052
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 268, gadget_id = 70900236, pos = { x = -56.142, y = 16.337, z = 286.473 }, rot = { x = 0.000, y = 86.932, z = 0.000 }, level = 1 },
{ config_id = 327, gadget_id = 70900015, pos = { x = 44.666, y = -0.343, z = 280.894 }, rot = { x = 0.000, y = 359.740, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000084, name = "GADGET_STATE_CHANGE_84", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_84", action = "action_EVENT_GADGET_STATE_CHANGE_84", trigger_count = 0 },
{ config_id = 1000085, name = "CLIENT_EXECUTE_85", event = EventType.EVENT_CLIENT_EXECUTE, source = "MimosaTrigger", condition = "", action = "", trigger_count = 0 },
{ config_id = 1000087, name = "GADGET_STATE_CHANGE_87", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_87", action = "action_EVENT_GADGET_STATE_CHANGE_87", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "count", value = 0, no_refresh = false },
{ config_id = 2, name = "ison", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 268, 327 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_84", "CLIENT_EXECUTE_85", "GADGET_STATE_CHANGE_87" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_84(context, evt)
if 268 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_84(context, evt)
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000058, suite = 2 }) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_87(context, evt)
if 268 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
-- 判断变量"ison"为1
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_87(context, evt)
-- 杀死Group内所有gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220000058, kill_policy = GroupKillPolicy.GROUP_KILL_GADGET }) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 0) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", 0) then
return -1
end
return 0
end
@@ -0,0 +1,257 @@
-- 基础信息
local base_info = {
group_id = 220000054
}
-- Trigger变量
local defs = {
gadget_id_1 = 282,
gadget_id_2 = 283,
gadget_id_3 = 284,
gadget_id_4 = 285,
gadget_id_5 = 286,
gadget_id_6 = 287,
gadget_id_7 = 288,
gadget_id_8 = 289,
gadget_id_9 = 291,
gadget_id_10 = 292,
gadget_id_11 = 293,
gadget_id_12 = 290
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 281, gadget_id = 70900236, pos = { x = 6.223, y = 1.296, z = 284.763 }, rot = { x = 0.000, y = 86.932, z = 0.000 }, level = 1 },
{ config_id = 282, gadget_id = 70900236, pos = { x = 4.556, y = 1.443, z = 284.776 }, rot = { x = 0.000, y = 82.808, z = 0.000 }, level = 1 },
{ config_id = 283, gadget_id = 70900236, pos = { x = 2.788, y = 1.698, z = 284.836 }, rot = { x = 0.000, y = 37.867, z = 0.000 }, level = 1 },
{ config_id = 284, gadget_id = 70900236, pos = { x = 1.541, y = 1.856, z = 283.805 }, rot = { x = 0.000, y = 77.422, z = 0.000 }, level = 1 },
{ config_id = 285, gadget_id = 70900236, pos = { x = 0.682, y = 2.010, z = 282.462 }, rot = { x = 0.000, y = 229.784, z = 0.000 }, level = 1 },
{ config_id = 286, gadget_id = 70900236, pos = { x = -0.788, y = 2.387, z = 281.089 }, rot = { x = 0.000, y = 48.293, z = 0.000 }, level = 1 },
{ config_id = 287, gadget_id = 70900236, pos = { x = -2.762, y = 2.838, z = 280.118 }, rot = { x = 0.000, y = 180.279, z = 0.000 }, level = 1 },
{ config_id = 288, gadget_id = 70900236, pos = { x = -4.370, y = 3.090, z = 281.326 }, rot = { x = 0.000, y = 83.813, z = 0.000 }, level = 1 },
{ config_id = 289, gadget_id = 70900236, pos = { x = -5.324, y = 3.168, z = 282.414 }, rot = { x = 0.000, y = 300.623, z = 0.000 }, level = 1 },
{ config_id = 290, gadget_id = 70211031, pos = { x = 1.568, y = 1.795, z = 289.323 }, rot = { x = 0.000, y = 314.709, z = 0.000 }, level = 1, drop_tag = "战斗超级蒙德", showcutscene = true, isOneoff = true },
{ config_id = 291, gadget_id = 70900236, pos = { x = -3.850, y = 2.924, z = 284.918 }, rot = { x = 0.000, y = 300.623, z = 0.000 }, level = 1 },
{ config_id = 292, gadget_id = 70900236, pos = { x = -2.225, y = 2.588, z = 286.410 }, rot = { x = 0.000, y = 300.623, z = 0.000 }, level = 1 },
{ config_id = 293, gadget_id = 70900236, pos = { x = -0.306, y = 2.214, z = 285.580 }, rot = { x = 0.000, y = 300.623, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000088, name = "GADGET_STATE_CHANGE_88", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_88", action = "action_EVENT_GADGET_STATE_CHANGE_88", trigger_count = 0 },
{ config_id = 1000089, name = "CLIENT_EXECUTE_89", event = EventType.EVENT_CLIENT_EXECUTE, source = "MimosaTrigger", condition = "", action = "", trigger_count = 0 },
{ config_id = 1000090, name = "GADGET_STATE_CHANGE_90", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_90", trigger_count = 0 },
{ config_id = 1000091, name = "GADGET_STATE_CHANGE_91", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_91", action = "action_EVENT_GADGET_STATE_CHANGE_91", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "count", value = 0, no_refresh = false },
{ config_id = 2, name = "ison", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 281 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_88", "CLIENT_EXECUTE_89", "GADGET_STATE_CHANGE_90", "GADGET_STATE_CHANGE_91" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_88(context, evt)
if 281 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_88(context, evt)
-- 创建id为269的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_1 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_2 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_3 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_4 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_5 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_6 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_7 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_8 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_9 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_10 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_11 }) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_90(context, evt)
local c_num_1 = ScriptLib.GetGroupVariableValue(context, "count")
local c_num = c_num_1 + 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", c_num) then
return -1
end
if c_num == 12 then
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_12 }) then
return -1
end
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_91(context, evt)
if 281 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
-- 判断变量"ison"为1
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_91(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_1 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_2 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_3 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_4 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_5 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_6 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_7 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_8 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_9 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_10 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_11 }) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 0) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", 0) then
return -1
end
return 0
end
@@ -0,0 +1,259 @@
-- 基础信息
local base_info = {
group_id = 220000055
}
-- Trigger变量
local defs = {
gadget_id_1 = 295,
gadget_id_2 = 296,
gadget_id_3 = 297,
gadget_id_4 = 298,
gadget_id_5 = 299,
gadget_id_6 = 300,
gadget_id_7 = 301,
gadget_id_8 = 302,
gadget_id_9 = 304,
gadget_id_10 = 305,
gadget_id_11 = 306,
gadget_id_12 = 303
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 294, gadget_id = 70900236, pos = { x = -10.194, y = 3.587, z = 326.389 }, rot = { x = 0.000, y = 86.932, z = 0.000 }, level = 1 },
{ config_id = 295, gadget_id = 70900236, pos = { x = -11.746, y = 3.829, z = 326.408 }, rot = { x = 0.000, y = 82.808, z = 0.000 }, level = 1 },
{ config_id = 296, gadget_id = 70900236, pos = { x = -13.437, y = 4.053, z = 325.869 }, rot = { x = 0.000, y = 37.867, z = 0.000 }, level = 1 },
{ config_id = 297, gadget_id = 70900236, pos = { x = -14.762, y = 4.194, z = 325.437 }, rot = { x = 0.000, y = 77.422, z = 0.000 }, level = 1 },
{ config_id = 298, gadget_id = 70900236, pos = { x = -16.315, y = 4.392, z = 324.862 }, rot = { x = 0.000, y = 229.784, z = 0.000 }, level = 1 },
{ config_id = 299, gadget_id = 70900236, pos = { x = -20.906, y = 4.994, z = 324.694 }, rot = { x = 0.000, y = 48.293, z = 0.000 }, level = 1 },
{ config_id = 300, gadget_id = 70900236, pos = { x = -22.185, y = 5.151, z = 324.669 }, rot = { x = 0.000, y = 180.279, z = 0.000 }, level = 1 },
{ config_id = 301, gadget_id = 70900236, pos = { x = -23.321, y = 5.290, z = 324.644 }, rot = { x = 0.000, y = 83.813, z = 0.000 }, level = 1 },
{ config_id = 302, gadget_id = 70900236, pos = { x = -29.739, y = 5.959, z = 324.018 }, rot = { x = 0.000, y = 300.623, z = 0.000 }, level = 1 },
{ config_id = 303, gadget_id = 70211031, pos = { x = -27.199, y = 5.596, z = 322.987 }, rot = { x = 0.000, y = 358.195, z = 0.000 }, level = 1, drop_tag = "战斗超级蒙德", showcutscene = true, isOneoff = true },
{ config_id = 304, gadget_id = 70900236, pos = { x = -25.555, y = 5.523, z = 324.517 }, rot = { x = 0.000, y = 300.623, z = 0.000 }, level = 1 },
{ config_id = 305, gadget_id = 70900236, pos = { x = -36.646, y = 5.568, z = 319.283 }, rot = { x = 0.000, y = 300.623, z = 0.000 }, level = 1 },
{ config_id = 306, gadget_id = 70900236, pos = { x = -34.732, y = 5.338, z = 320.718 }, rot = { x = 0.000, y = 300.623, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000092, name = "GADGET_STATE_CHANGE_92", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_92", action = "action_EVENT_GADGET_STATE_CHANGE_92", trigger_count = 0 },
{ config_id = 1000093, name = "CLIENT_EXECUTE_93", event = EventType.EVENT_CLIENT_EXECUTE, source = "MimosaTrigger", condition = "", action = "", trigger_count = 0 },
{ config_id = 1000094, name = "GADGET_STATE_CHANGE_94", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_94", trigger_count = 0 },
{ config_id = 1000095, name = "GADGET_STATE_CHANGE_95", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_95", action = "action_EVENT_GADGET_STATE_CHANGE_95", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "count", value = 0, no_refresh = false },
{ config_id = 2, name = "ison", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 294 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_92", "CLIENT_EXECUTE_93", "GADGET_STATE_CHANGE_94", "GADGET_STATE_CHANGE_95" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_92(context, evt)
if 294 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_92(context, evt)
-- 创建id为269的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_1 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_2 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_3 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_4 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_5 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_6 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_7 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_8 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_9 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_10 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_11 }) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_94(context, evt)
local c_num_1 = ScriptLib.GetGroupVariableValue(context, "count")
local c_num = c_num_1 + 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", c_num) then
ScriptLib.PrintLog("c_num="..c_num)
return -1
end
if c_num == 12 then
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_12 }) then
ScriptLib.PrintLog("create")
return -1
end
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_95(context, evt)
if 294 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
-- 判断变量"ison"为1
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_95(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_1 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_2 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_3 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_4 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_5 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_6 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_7 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_8 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_9 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_10 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_11 }) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 0) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", 0) then
return -1
end
return 0
end
@@ -0,0 +1,232 @@
-- 基础信息
local base_info = {
group_id = 220000056
}
-- Trigger变量
local defs = {
gadget_id_1 = 308,
gadget_id_2 = 309,
gadget_id_3 = 310,
gadget_id_4 = 311,
gadget_id_5 = 312,
gadget_id_6 = 313,
gadget_id_7 = 314,
gadget_id_8 = 315,
gadget_id_9 = 316
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 307, gadget_id = 70900236, pos = { x = -36.170, y = 15.418, z = 300.593 }, rot = { x = 0.000, y = 86.932, z = 0.000 }, level = 1 },
{ config_id = 308, gadget_id = 70900236, pos = { x = -37.849, y = 15.524, z = 300.637 }, rot = { x = 0.000, y = 82.808, z = 0.000 }, level = 1 },
{ config_id = 309, gadget_id = 70900236, pos = { x = -39.540, y = 15.440, z = 301.681 }, rot = { x = 0.000, y = 37.867, z = 0.000 }, level = 1 },
{ config_id = 310, gadget_id = 70900236, pos = { x = -40.080, y = 15.333, z = 303.199 }, rot = { x = 0.000, y = 77.422, z = 0.000 }, level = 1 },
{ config_id = 311, gadget_id = 70900236, pos = { x = -39.847, y = 15.195, z = 304.871 }, rot = { x = 0.000, y = 229.784, z = 0.000 }, level = 1 },
{ config_id = 312, gadget_id = 70900236, pos = { x = -40.554, y = 14.217, z = 311.530 }, rot = { x = 0.000, y = 90.845, z = 0.000 }, level = 1 },
{ config_id = 313, gadget_id = 70900236, pos = { x = -40.657, y = 14.018, z = 315.562 }, rot = { x = 0.000, y = 180.279, z = 0.000 }, level = 1 },
{ config_id = 314, gadget_id = 70900236, pos = { x = -40.955, y = 13.745, z = 319.891 }, rot = { x = 0.000, y = 83.813, z = 0.000 }, level = 1 },
{ config_id = 315, gadget_id = 70900236, pos = { x = -41.394, y = 13.500, z = 324.472 }, rot = { x = 0.000, y = 300.623, z = 0.000 }, level = 1 },
{ config_id = 316, gadget_id = 70211031, pos = { x = -41.033, y = 15.748, z = 299.127 }, rot = { x = 0.000, y = 26.680, z = 0.000 }, level = 1, drop_tag = "战斗超级蒙德", showcutscene = true, isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000096, name = "GADGET_STATE_CHANGE_96", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_96", action = "action_EVENT_GADGET_STATE_CHANGE_96", trigger_count = 0 },
{ config_id = 1000097, name = "CLIENT_EXECUTE_97", event = EventType.EVENT_CLIENT_EXECUTE, source = "MimosaTrigger", condition = "", action = "", trigger_count = 0 },
{ config_id = 1000098, name = "GADGET_STATE_CHANGE_98", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_98", trigger_count = 0 },
{ config_id = 1000099, name = "GADGET_STATE_CHANGE_99", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_99", action = "action_EVENT_GADGET_STATE_CHANGE_99", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "count", value = 0, no_refresh = false },
{ config_id = 2, name = "ison", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 307 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_96", "CLIENT_EXECUTE_97", "GADGET_STATE_CHANGE_98", "GADGET_STATE_CHANGE_99" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_96(context, evt)
if 307 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_96(context, evt)
-- 创建id为269的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_1 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_2 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_3 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_4 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_5 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_6 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_7 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_8 }) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_98(context, evt)
local c_num_1 = ScriptLib.GetGroupVariableValue(context, "count")
local c_num = c_num_1 + 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", c_num) then
ScriptLib.PrintLog("c_num="..c_num)
return -1
end
if c_num == 9 then
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_9 }) then
ScriptLib.PrintLog("create")
return -1
end
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_99(context, evt)
if 307 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
-- 判断变量"ison"为1
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_99(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_1 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_2 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_3 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_4 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_5 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_6 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_7 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_8 }) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 0) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", 0) then
return -1
end
return 0
end
@@ -0,0 +1,232 @@
-- 基础信息
local base_info = {
group_id = 220000057
}
-- Trigger变量
local defs = {
gadget_id_1 = 318,
gadget_id_2 = 319,
gadget_id_3 = 320,
gadget_id_4 = 321,
gadget_id_5 = 322,
gadget_id_6 = 323,
gadget_id_7 = 324,
gadget_id_8 = 325,
gadget_id_9 = 326
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 317, gadget_id = 70900236, pos = { x = -30.598, y = 10.365, z = 304.329 }, rot = { x = 0.000, y = 86.932, z = 0.000 }, level = 1 },
{ config_id = 318, gadget_id = 70900236, pos = { x = -29.965, y = 10.512, z = 301.963 }, rot = { x = 0.000, y = 82.808, z = 0.000 }, level = 1 },
{ config_id = 319, gadget_id = 70900236, pos = { x = -28.922, y = 10.727, z = 299.326 }, rot = { x = 0.000, y = 37.867, z = 0.000 }, level = 1 },
{ config_id = 320, gadget_id = 70900236, pos = { x = -28.353, y = 11.054, z = 296.915 }, rot = { x = 0.000, y = 77.422, z = 0.000 }, level = 1 },
{ config_id = 321, gadget_id = 70900236, pos = { x = -28.685, y = 12.861, z = 294.146 }, rot = { x = 317.546, y = 229.784, z = 0.000 }, level = 1 },
{ config_id = 322, gadget_id = 70900236, pos = { x = -27.099, y = 10.500, z = 288.204 }, rot = { x = 0.000, y = 48.293, z = 0.000 }, level = 1 },
{ config_id = 323, gadget_id = 70900236, pos = { x = -27.464, y = 10.523, z = 292.298 }, rot = { x = 0.000, y = 180.279, z = 0.000 }, level = 1 },
{ config_id = 324, gadget_id = 70900236, pos = { x = -27.286, y = 10.730, z = 290.826 }, rot = { x = 0.000, y = 83.813, z = 0.000 }, level = 1 },
{ config_id = 325, gadget_id = 70900236, pos = { x = -27.343, y = 10.614, z = 289.472 }, rot = { x = 0.000, y = 300.623, z = 0.000 }, level = 1 },
{ config_id = 326, gadget_id = 70211031, pos = { x = -20.119, y = 10.053, z = 288.711 }, rot = { x = 0.000, y = 314.709, z = 0.000 }, level = 1, drop_tag = "战斗超级蒙德", showcutscene = true, isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000100, name = "GADGET_STATE_CHANGE_100", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_100", action = "action_EVENT_GADGET_STATE_CHANGE_100", trigger_count = 0 },
{ config_id = 1000101, name = "CLIENT_EXECUTE_101", event = EventType.EVENT_CLIENT_EXECUTE, source = "MimosaTrigger", condition = "", action = "", trigger_count = 0 },
{ config_id = 1000102, name = "GADGET_STATE_CHANGE_102", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_102", trigger_count = 0 },
{ config_id = 1000103, name = "GADGET_STATE_CHANGE_103", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_103", action = "action_EVENT_GADGET_STATE_CHANGE_103", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "count", value = 0, no_refresh = false },
{ config_id = 2, name = "ison", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 317 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_100", "CLIENT_EXECUTE_101", "GADGET_STATE_CHANGE_102", "GADGET_STATE_CHANGE_103" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_100(context, evt)
if 317 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_100(context, evt)
-- 创建id为269的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_1 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_2 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_3 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_4 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_5 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_6 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_7 }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_8 }) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 1) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_102(context, evt)
local c_num_1 = ScriptLib.GetGroupVariableValue(context, "count")
local c_num = c_num_1 + 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", c_num) then
ScriptLib.PrintLog("c_num="..c_num)
return -1
end
if c_num == 9 then
if 0 ~= ScriptLib.CreateGadget(context, { config_id = defs.gadget_id_9 }) then
ScriptLib.PrintLog("create")
return -1
end
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_103(context, evt)
if 317 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
-- 判断变量"ison"为1
if ScriptLib.GetGroupVariableValue(context, "ison") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_103(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_1 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_2 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_3 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_4 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_5 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_6 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_7 }) then
return -1
end
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_id_8 }) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "ison", 0) then
return -1
end
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", 0) then
return -1
end
return 0
end
@@ -0,0 +1,119 @@
-- 基础信息
local base_info = {
group_id = 220000058
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 269, gadget_id = 70900236, pos = { x = -68.988, y = 13.891, z = 290.325 }, rot = { x = 0.000, y = 82.808, z = 0.000 }, level = 1 },
{ config_id = 270, gadget_id = 70900236, pos = { x = -74.767, y = 11.887, z = 290.729 }, rot = { x = 0.000, y = 37.867, z = 0.000 }, level = 1 },
{ config_id = 271, gadget_id = 70900236, pos = { x = -78.546, y = 9.740, z = 290.328 }, rot = { x = 0.000, y = 77.422, z = 0.000 }, level = 1 },
{ config_id = 272, gadget_id = 70900236, pos = { x = -87.187, y = 2.182, z = 285.778 }, rot = { x = 0.000, y = 229.784, z = 0.000 }, level = 1 },
{ config_id = 273, gadget_id = 70900236, pos = { x = -86.561, y = 2.217, z = 281.665 }, rot = { x = 0.000, y = 48.293, z = 0.000 }, level = 1 },
{ config_id = 274, gadget_id = 70900236, pos = { x = -86.634, y = 12.175, z = 281.484 }, rot = { x = 0.000, y = 180.279, z = 0.000 }, level = 1 },
{ config_id = 275, gadget_id = 70900236, pos = { x = -86.666, y = 15.442, z = 281.606 }, rot = { x = 0.000, y = 83.813, z = 0.000 }, level = 1 },
{ config_id = 276, gadget_id = 70900236, pos = { x = -86.714, y = 13.280, z = 281.456 }, rot = { x = 0.000, y = 300.623, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000086, name = "GADGET_STATE_CHANGE_86", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_86", trigger_count = 0 },
{ config_id = 1000105, name = "ANY_GADGET_DIE_105", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "", action = "action_EVENT_ANY_GADGET_DIE_105", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "count", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 269, 270, 271, 272, 273, 274, 275, 276 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_86", "ANY_GADGET_DIE_105" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_86(context, evt)
local c_num_1 = ScriptLib.GetGroupVariableValue(context, "count")
local c_num = c_num_1 + 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", c_num) then
ScriptLib.PrintLog("c_num="..c_num)
return -1
end
if c_num == 8 then
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000059, suite = 2 }) then
return -1
end
end
return 0
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_105(context, evt)
-- 将本组内变量名为 "count" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "count", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
@@ -0,0 +1,81 @@
-- 基础信息
local base_info = {
group_id = 220000059
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 277, gadget_id = 70211031, pos = { x = -87.385, y = 3.581, z = 275.644 }, rot = { x = 0.000, y = 314.709, z = 0.000 }, level = 1, drop_tag = "战斗超级蒙德", showcutscene = true, isOneoff = true }
}
-- 区域
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 = suite_2,
monsters = { },
gadgets = { 277 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,144 @@
-- 基础信息
local base_info = {
group_id = 220000060
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 328, gadget_id = 70900238, pos = { x = 5.896, y = 1.300, z = 380.584 }, rot = { x = 0.000, y = 180.277, z = 0.000 }, level = 1 },
{ config_id = 329, gadget_id = 70900238, pos = { x = -18.075, y = 1.346, z = 375.630 }, rot = { x = 0.000, y = 180.277, z = 0.000 }, level = 1 },
{ config_id = 330, gadget_id = 70900238, pos = { x = -18.292, y = 1.346, z = 381.510 }, rot = { x = 0.000, y = 180.277, z = 0.000 }, level = 1 },
{ config_id = 331, gadget_id = 70900238, pos = { x = -22.242, y = 1.346, z = 390.204 }, rot = { x = 0.000, y = 180.277, z = 0.000 }, level = 1 },
{ config_id = 332, gadget_id = 70900238, pos = { x = -25.258, y = 1.346, z = 398.831 }, rot = { x = 0.000, y = 180.277, z = 0.000 }, level = 1 },
{ config_id = 333, gadget_id = 70900238, pos = { x = -23.179, y = 1.346, z = 407.576 }, rot = { x = 0.000, y = 180.277, z = 0.000 }, level = 1 },
{ config_id = 334, gadget_id = 70900238, pos = { x = -26.346, y = 1.346, z = 422.344 }, rot = { x = 0.000, y = 180.277, z = 0.000 }, level = 1 },
{ config_id = 335, gadget_id = 70900238, pos = { x = -23.653, y = 1.346, z = 428.492 }, rot = { x = 0.000, y = 180.277, z = 0.000 }, level = 1 },
{ config_id = 336, gadget_id = 70900238, pos = { x = -20.502, y = 1.346, z = 435.335 }, rot = { x = 0.000, y = 180.277, z = 0.000 }, level = 1 },
{ config_id = 337, gadget_id = 70900238, pos = { x = -29.999, y = 1.346, z = 358.440 }, rot = { x = 0.000, y = 180.277, z = 0.000 }, level = 1 },
{ config_id = 338, gadget_id = 70900238, pos = { x = -48.984, y = 1.346, z = 358.604 }, rot = { x = 0.000, y = 180.277, z = 0.000 }, level = 1 },
{ config_id = 339, gadget_id = 70900238, pos = { x = -8.392, y = 1.388, z = 368.874 }, rot = { x = 0.000, y = 180.277, z = 0.000 }, level = 1 },
{ config_id = 340, gadget_id = 70220014, pos = { x = -39.223, y = 0.500, z = 372.543 }, rot = { x = 0.000, y = 23.462, z = 0.000 }, level = 1 },
{ config_id = 341, gadget_id = 70220014, pos = { x = -39.245, y = 0.500, z = 381.104 }, rot = { x = 0.000, y = 359.450, z = 0.000 }, level = 1 },
{ config_id = 342, gadget_id = 70220014, pos = { x = -39.422, y = 0.500, z = 388.015 }, rot = { x = 0.000, y = 295.097, z = 0.000 }, level = 1 },
{ config_id = 343, gadget_id = 70220014, pos = { x = -39.926, y = 0.500, z = 395.842 }, rot = { x = 0.000, y = 20.606, z = 0.000 }, level = 1 },
{ config_id = 344, gadget_id = 70220014, pos = { x = -40.237, y = 0.500, z = 404.714 }, rot = { x = 0.000, y = 262.739, z = 0.000 }, level = 1 },
{ config_id = 345, gadget_id = 70220014, pos = { x = -49.165, y = 0.500, z = 429.432 }, rot = { x = 0.000, y = 347.616, z = 0.000 }, level = 1 },
{ config_id = 346, gadget_id = 70220014, pos = { x = -29.825, y = 0.500, z = 372.028 }, rot = { x = 0.000, y = 260.767, z = 0.000 }, level = 1 },
{ config_id = 347, gadget_id = 70220014, pos = { x = -29.958, y = 0.500, z = 379.910 }, rot = { x = 0.000, y = 273.280, z = 0.000 }, level = 1 },
{ config_id = 348, gadget_id = 70220014, pos = { x = -29.679, y = 0.500, z = 387.421 }, rot = { x = 0.000, y = 352.504, z = 0.000 }, level = 1 },
{ config_id = 349, gadget_id = 70220014, pos = { x = -30.018, y = 0.500, z = 395.510 }, rot = { x = 0.000, y = 248.933, z = 0.000 }, level = 1 },
{ config_id = 350, gadget_id = 70220014, pos = { x = -29.944, y = 0.500, z = 403.402 }, rot = { x = 0.000, y = 150.606, z = 0.000 }, level = 1 },
{ config_id = 351, gadget_id = 70220014, pos = { x = -30.542, y = 15.788, z = 382.970 }, rot = { x = 0.000, y = 202.192, z = 0.000 }, level = 1 },
{ config_id = 352, gadget_id = 70220014, pos = { x = 5.961, y = 0.500, z = 415.118 }, rot = { x = 0.000, y = 202.192, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000106, name = "ANY_GADGET_DIE_106", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_106", action = "action_EVENT_ANY_GADGET_DIE_106", trigger_count = 0 },
{ config_id = 1000107, name = "ANY_GADGET_DIE_107", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_107", action = "action_EVENT_ANY_GADGET_DIE_107", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 328, 329, 330, 331, 332, 333, 334, 335, 336, 337, 338, 339, 340, 341, 342, 343, 344, 345, 346, 347, 348, 349, 350, 352 },
regions = { },
triggers = { "ANY_GADGET_DIE_106", "ANY_GADGET_DIE_107" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_106(context, evt)
if 328 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_106(context, evt)
-- 创建id为328的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 328 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_107(context, evt)
if 352 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_107(context, evt)
-- 创建id为352的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 352 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 调用提示id为 1001003 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1001003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,462 @@
-- 基础信息
local base_info = {
group_id = 220000064
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 358, gadget_id = 70310001, pos = { x = -53.233, y = 1.249, z = 515.741 }, rot = { x = 0.000, y = 120.143, z = 0.000 }, level = 1 },
{ config_id = 359, gadget_id = 70310001, pos = { x = -46.124, y = 1.249, z = 515.634 }, rot = { x = 0.000, y = 159.334, z = 0.000 }, level = 1 },
{ config_id = 360, gadget_id = 70310001, pos = { x = -46.194, y = 1.249, z = 523.770 }, rot = { x = 0.000, y = 142.675, z = 0.000 }, level = 1 },
{ config_id = 361, gadget_id = 70310001, pos = { x = -53.239, y = 1.249, z = 523.729 }, rot = { x = 0.000, y = 78.566, z = 0.000 }, level = 1 },
{ config_id = 362, gadget_id = 70900007, pos = { x = -38.014, y = 5.982, z = 515.772 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 363, gadget_id = 70900007, pos = { x = -49.978, y = 0.869, z = 519.827 }, rot = { x = 0.000, y = 89.628, z = 0.000 }, level = 1, state = GadgetState.GearStop },
{ config_id = 364, gadget_id = 70360002, pos = { x = -37.839, y = 5.974, z = 523.241 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 365, gadget_id = 70220013, pos = { x = -37.834, y = 5.974, z = 518.066 }, rot = { x = 0.000, y = 236.652, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 119, shape = RegionShape.SPHERE, radius = 5, pos = { x = -53.835, y = 0.500, z = 531.742 } }
}
-- 触发器
triggers = {
{ config_id = 1000109, name = "TIMER_EVENT_109", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_109" },
{ config_id = 1000110, name = "GADGET_STATE_CHANGE_110", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_110", action = "action_EVENT_GADGET_STATE_CHANGE_110", trigger_count = 0 },
{ config_id = 1000111, name = "GADGET_CREATE_111", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_111", action = "action_EVENT_GADGET_CREATE_111" },
{ config_id = 1000112, name = "SELECT_OPTION_112", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_112", action = "action_EVENT_SELECT_OPTION_112", trigger_count = 0, forbid_guest = false },
{ config_id = 1000113, name = "GADGET_STATE_CHANGE_113", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_113", action = "action_EVENT_GADGET_STATE_CHANGE_113", trigger_count = 0 },
{ config_id = 1000114, name = "GADGET_STATE_CHANGE_114", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_114", action = "action_EVENT_GADGET_STATE_CHANGE_114", trigger_count = 0 },
{ config_id = 1000115, name = "GADGET_STATE_CHANGE_115", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_115", action = "action_EVENT_GADGET_STATE_CHANGE_115", trigger_count = 0 },
{ config_id = 1000116, name = "TIMER_EVENT_116", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_116" },
{ config_id = 1000117, name = "TIMER_EVENT_117", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "", action = "action_EVENT_TIMER_EVENT_117" },
{ config_id = 1000118, name = "TIMER_EVENT_118", event = EventType.EVENT_TIMER_EVENT, source = "time4", condition = "", action = "action_EVENT_TIMER_EVENT_118" },
{ config_id = 1000119, name = "ENTER_REGION_119", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "", forbid_guest = false },
{ config_id = 1000120, name = "TIMER_EVENT_120", event = EventType.EVENT_TIMER_EVENT, source = "time5", condition = "", action = "action_EVENT_TIMER_EVENT_120" },
{ config_id = 1000121, name = "GADGET_STATE_CHANGE_121", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_121", action = "action_EVENT_GADGET_STATE_CHANGE_121" },
{ config_id = 1000122, name = "GADGET_STATE_CHANGE_122", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_122", action = "action_EVENT_GADGET_STATE_CHANGE_122" },
{ config_id = 1000123, name = "GADGET_STATE_CHANGE_123", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_123", action = "action_EVENT_GADGET_STATE_CHANGE_123" },
{ config_id = 1000124, name = "GADGET_STATE_CHANGE_124", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_124", action = "action_EVENT_GADGET_STATE_CHANGE_124" },
{ config_id = 1000125, name = "GADGET_STATE_CHANGE_125", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_125", action = "action_EVENT_GADGET_STATE_CHANGE_125" },
{ config_id = 1000126, name = "VARIABLE_CHANGE_126", event = EventType.EVENT_VARIABLE_CHANGE, source = "num_1", condition = "condition_EVENT_VARIABLE_CHANGE_126", action = "action_EVENT_VARIABLE_CHANGE_126" }
}
-- 变量
variables = {
{ config_id = 1, name = "num_1", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 358, 359, 360, 361, 362, 363, 364, 365 },
regions = { 119 },
triggers = { "TIMER_EVENT_109", "GADGET_STATE_CHANGE_110", "GADGET_CREATE_111", "SELECT_OPTION_112", "GADGET_STATE_CHANGE_113", "GADGET_STATE_CHANGE_114", "GADGET_STATE_CHANGE_115", "TIMER_EVENT_116", "TIMER_EVENT_117", "TIMER_EVENT_118", "ENTER_REGION_119", "TIMER_EVENT_120", "GADGET_STATE_CHANGE_121" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 358, 359, 360, 361, 362, 363, 364 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_122", "GADGET_STATE_CHANGE_123", "GADGET_STATE_CHANGE_124", "GADGET_STATE_CHANGE_125", "VARIABLE_CHANGE_126" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_TIMER_EVENT_109(context, evt)
-- 将configid为 358 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 358, 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_110(context, evt)
if 362 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_110(context, evt)
-- 延迟2秒后,向groupId为:220000064的对象,请求一次调用,并将string参数:"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220000064, "time1", 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_111(context, evt)
if 364 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_111(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_112(context, evt)
if 364 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_112(context, evt)
-- 将configid为 364 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 364, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 362 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 362, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 触发镜头注目,注目位置为坐标(-50,1,520),持续时间为10秒,并且为强制注目形式,不广播其他玩家
local pos = {x=-50, y=1, z=520}
local pos_follow = {x=0, y=0, z=0}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, is_allow_input = false, duration = 10, 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为 1046 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1046) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_113(context, evt)
if 362 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_113(context, evt)
-- 延迟4秒后,向groupId为:220000064的对象,请求一次调用,并将string参数:"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220000064, "time2", 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_114(context, evt)
if 362 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_114(context, evt)
-- 延迟6秒后,向groupId为:220000064的对象,请求一次调用,并将string参数:"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220000064, "time3", 6) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_115(context, evt)
if 362 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_115(context, evt)
-- 延迟8秒后,向groupId为:220000064的对象,请求一次调用,并将string参数:"time4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220000064, "time4", 8) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_116(context, evt)
-- 将configid为 359 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 359, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_117(context, evt)
-- 将configid为 360 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 360, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_118(context, evt)
-- 将configid为 361 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 361, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_120(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000064, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_121(context, evt)
if 362 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_121(context, evt)
-- 延迟10秒后,向groupId为:220000064的对象,请求一次调用,并将string参数:"time5" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220000064, "time5", 10) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_122(context, evt)
if 358 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_122(context, evt)
if ScriptLib.GetGroupVariableValue(context, "num_1") ~= 0 then
if 0 ~= ScriptLib.ShowReminder(context, 1047) then
return -1
end
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000064, suite = 1 }) then
return -1
end
end
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num_1", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_123(context, evt)
if 359 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_123(context, evt)
if ScriptLib.GetGroupVariableValue(context, "num_1") ~= 1 then
if 0 ~= ScriptLib.ShowReminder(context, 1047) then
return -1
end
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000064, suite = 1 }) then
return -1
end
end
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num_1", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_124(context, evt)
if 360 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_124(context, evt)
if ScriptLib.GetGroupVariableValue(context, "num_1") ~= 2 then
if 0 ~= ScriptLib.ShowReminder(context, 1047) then
return -1
end
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000064, suite = 1 }) then
return -1
end
end
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num_1", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_125(context, evt)
if 361 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_125(context, evt)
if ScriptLib.GetGroupVariableValue(context, "num_1") ~= 3 then
if 0 ~= ScriptLib.ShowReminder(context, 1047) then
return -1
end
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000064, suite = 1 }) then
return -1
end
end
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num_1", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_126(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"num_1"为1
if ScriptLib.GetGroupVariableValue(context, "num_1") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_126(context, evt)
-- 解锁目标363
if 0 ~= ScriptLib.ChangeGroupGadget(context, { config_id = 363, state = GadgetState.Default }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : unlock_gadget")
return -1
end
-- 调用提示id为 1048 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1048) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,179 @@
-- 基础信息
local base_info = {
group_id = 220000066
}
-- Trigger变量
local defs = {
gadget_id_1 = 372,
gadget_id_2 = 376,
gadget_id_3 = 371,
gadget_id_5 = 1,
questLuaNotify_success = 22000006612801,
questLuaNotify_faild = 22000006612802,
gadget_id_4 = 377
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
{ config_id = 1, npc_id = 20005, pos = { x = 101.422, y = 0.540, z = 322.092 }, rot = { x = 0.000, y = 201.531, z = 0.000 } }
}
-- 装置
gadgets = {
{ config_id = 371, gadget_id = 70900250, pos = { x = 99.939, y = 0.540, z = 318.102 }, rot = { x = 0.000, y = 23.884, z = 0.000 }, level = 1 },
{ config_id = 372, gadget_id = 70211001, pos = { x = 103.095, y = 0.540, z = 322.881 }, rot = { x = 0.000, y = 192.083, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 377, gadget_id = 70900202, pos = { x = 100.041, y = 0.540, z = 318.251 }, rot = { x = 0.000, y = 96.869, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 132, shape = RegionShape.SPHERE, radius = 1.5, pos = { x = 100.083, y = 0.671, z = 317.966 } }
}
-- 触发器
triggers = {
{ config_id = 1000128, name = "CLIENT_EXECUTE_128", event = EventType.EVENT_CLIENT_EXECUTE, source = "RopeRule", condition = "", action = "action_EVENT_CLIENT_EXECUTE_128", trigger_count = 0 },
{ config_id = 1000131, name = "QUEST_START_131", event = EventType.EVENT_QUEST_START, source = "2000202", condition = "", action = "action_EVENT_QUEST_START_131", trigger_count = 0 },
{ config_id = 1000132, name = "ENTER_REGION_132", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_132", action = "action_EVENT_ENTER_REGION_132", trigger_count = 0, forbid_guest = false },
{ config_id = 1000154, name = "QUEST_START_154", event = EventType.EVENT_QUEST_START, source = "2000203", condition = "", action = "action_EVENT_QUEST_START_154" }
}
-- 变量
variables = {
{ config_id = 1, name = "SwitchOn", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 371 },
regions = { 132 },
triggers = { "CLIENT_EXECUTE_128", "QUEST_START_131", "ENTER_REGION_132", "QUEST_START_154" },
npcs = { 1 },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_128(context, evt)
-- 创建id为372的gadget
if evt.param1 == defs.gadget_id_5 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_3, GadgetState.Default) then
--ScriptLib.PrintLog("Faild to change 371 state default when evt.param1 == defs.gadget_id_5")
return -1
end
--通知任务系统完成条件类型“LUA通知”,复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "22000006612801")then
return -1
end
return 0
end
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_id_3, GadgetState.Default)
ScriptLib.AddQuestProgress(context, "22000006612802")
return -1
end
-- 触发操作
function action_EVENT_QUEST_START_131(context, evt)
-- 创建id为377的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 377 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 将本组内变量名为 "SwitchOn" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "SwitchOn", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_132(context, evt)
if evt.param1 ~= 132 then return false end
-- 判断变量"SwitchOn"为1
if ScriptLib.GetGroupVariableValue(context, "SwitchOn") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_132(context, evt)
-- 改变指定group组220000066中, configid为371的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220000066, 371, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 将本组内变量名为 "SwitchOn" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "SwitchOn", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 377 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_154(context, evt)
-- 创建id为372的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 372 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
@@ -0,0 +1,192 @@
-- 基础信息
local base_info = {
group_id = 220000068
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 434, gadget_id = 70900007, pos = { x = 132.077, y = 0.540, z = 386.064 }, rot = { x = 0.000, y = 0.791, z = 0.000 }, level = 1, persistent = true },
{ config_id = 435, gadget_id = 70220020, pos = { x = 131.884, y = 0.540, z = 379.694 }, rot = { x = 0.000, y = 3.093, z = 0.000 }, level = 1 },
{ config_id = 436, gadget_id = 70220020, pos = { x = 127.932, y = 0.540, z = 380.059 }, rot = { x = 0.000, y = 3.093, z = 0.000 }, level = 1 },
{ config_id = 437, gadget_id = 70220020, pos = { x = 134.875, y = 0.540, z = 393.310 }, rot = { x = 0.000, y = 3.093, z = 0.000 }, level = 1 },
{ config_id = 438, gadget_id = 70220020, pos = { x = 131.039, y = 0.540, z = 393.668 }, rot = { x = 0.000, y = 3.093, z = 0.000 }, level = 1 },
{ config_id = 439, gadget_id = 70220020, pos = { x = 129.003, y = 0.540, z = 391.052 }, rot = { x = 0.000, y = 93.187, z = 0.000 }, level = 1 },
{ config_id = 440, gadget_id = 70220020, pos = { x = 126.943, y = 0.540, z = 383.031 }, rot = { x = 0.000, y = 336.624, z = 0.000 }, level = 1 },
{ config_id = 441, gadget_id = 70220020, pos = { x = 126.363, y = 0.540, z = 387.329 }, rot = { x = 0.000, y = 271.242, z = 0.000 }, level = 1 },
{ config_id = 442, gadget_id = 70220020, pos = { x = 126.363, y = 0.540, z = 391.605 }, rot = { x = 0.000, y = 271.242, z = 0.000 }, level = 1 },
{ config_id = 443, gadget_id = 70220020, pos = { x = 134.901, y = 0.540, z = 381.481 }, rot = { x = 0.000, y = 287.203, z = 0.000 }, level = 1 },
{ config_id = 444, gadget_id = 70220020, pos = { x = 137.834, y = 0.540, z = 383.463 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 445, gadget_id = 70220020, pos = { x = 136.774, y = 0.395, z = 388.823 }, rot = { x = 3.027, y = 67.278, z = 8.709 }, level = 1 },
{ config_id = 446, gadget_id = 70220020, pos = { x = 138.332, y = 0.540, z = 393.903 }, rot = { x = 0.000, y = 131.426, z = 0.000 }, level = 1 },
{ config_id = 447, gadget_id = 70220020, pos = { x = 122.131, y = 0.540, z = 391.930 }, rot = { x = 0.000, y = 94.946, z = 0.000 }, level = 1 },
{ config_id = 448, gadget_id = 70220020, pos = { x = 120.854, y = 0.540, z = 387.846 }, rot = { x = 0.000, y = 38.025, z = 0.000 }, level = 1 },
{ config_id = 449, gadget_id = 70220020, pos = { x = 122.628, y = 0.540, z = 383.324 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 450, gadget_id = 70220020, pos = { x = 121.996, y = 0.540, z = 378.940 }, rot = { x = 0.000, y = 104.090, z = 0.000 }, level = 1 },
{ config_id = 451, gadget_id = 70220020, pos = { x = 123.001, y = 0.540, z = 396.460 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 452, gadget_id = 70220020, pos = { x = 125.500, y = 0.540, z = 398.147 }, rot = { x = 0.000, y = 175.172, z = 0.000 }, level = 1 },
{ config_id = 453, gadget_id = 70220020, pos = { x = 129.491, y = 0.540, z = 399.356 }, rot = { x = 0.000, y = 144.747, z = 0.000 }, level = 1 },
{ config_id = 454, gadget_id = 70220020, pos = { x = 133.581, y = 0.540, z = 398.171 }, rot = { x = 0.000, y = 207.219, z = 0.000 }, level = 1 },
{ config_id = 455, gadget_id = 70220020, pos = { x = 136.887, y = 0.540, z = 397.482 }, rot = { x = 0.000, y = 175.172, z = 0.000 }, level = 1 },
{ config_id = 456, gadget_id = 70220020, pos = { x = 140.171, y = 0.540, z = 398.626 }, rot = { x = 0.000, y = 155.013, z = 0.000 }, level = 1 },
{ config_id = 457, gadget_id = 70220020, pos = { x = 141.786, y = 0.540, z = 394.533 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 458, gadget_id = 70220020, pos = { x = 141.636, y = 0.540, z = 390.695 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 459, gadget_id = 70220020, pos = { x = 144.158, y = 0.540, z = 385.571 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 460, gadget_id = 70220020, pos = { x = 141.251, y = 0.540, z = 381.322 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 461, gadget_id = 70220020, pos = { x = 136.960, y = 0.540, z = 377.580 }, rot = { x = 0.000, y = 146.841, z = 0.000 }, level = 1 },
{ config_id = 462, gadget_id = 70220020, pos = { x = 140.317, y = 0.540, z = 375.702 }, rot = { x = 0.000, y = 314.996, z = 0.000 }, level = 1 },
{ config_id = 463, gadget_id = 70220020, pos = { x = 133.344, y = 0.540, z = 374.920 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 464, gadget_id = 70220020, pos = { x = 128.802, y = 0.540, z = 375.213 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 465, gadget_id = 70220020, pos = { x = 126.377, y = 0.540, z = 377.164 }, rot = { x = 0.000, y = 32.616, z = 0.000 }, level = 1 },
{ config_id = 466, gadget_id = 70220020, pos = { x = 124.736, y = 0.540, z = 386.512 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 467, gadget_id = 70220020, pos = { x = 139.748, y = 0.540, z = 386.053 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 468, gadget_id = 70220020, pos = { x = 131.646, y = 0.540, z = 377.332 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 469, gadget_id = 70220020, pos = { x = 131.877, y = 0.540, z = 396.074 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 470, gadget_id = 70900255, pos = { x = 131.967, y = 0.540, z = 386.195 }, rot = { x = 0.000, y = 62.954, z = 0.000 }, level = 1 },
{ config_id = 471, gadget_id = 70211001, pos = { x = 132.284, y = 0.540, z = 389.566 }, rot = { x = 0.000, y = 265.642, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", showcutscene = true, isOneoff = true },
{ config_id = 472, gadget_id = 70900016, pos = { x = 143.493, y = 0.244, z = 382.064 }, rot = { x = 0.000, y = 248.913, z = 0.000 }, level = 1 },
{ config_id = 473, gadget_id = 70900016, pos = { x = 123.930, y = 0.540, z = 375.449 }, rot = { x = 0.000, y = 248.913, z = 0.000 }, level = 1 },
{ config_id = 474, gadget_id = 70900016, pos = { x = 137.092, y = 0.540, z = 374.544 }, rot = { x = 0.000, y = 248.913, z = 0.000 }, level = 1 },
{ config_id = 475, gadget_id = 70900016, pos = { x = 133.268, y = 0.540, z = 401.503 }, rot = { x = 0.000, y = 248.913, z = 0.000 }, level = 1 },
{ config_id = 476, gadget_id = 70900016, pos = { x = 119.802, y = 0.540, z = 390.961 }, rot = { x = 0.000, y = 248.913, z = 0.000 }, level = 1 },
{ config_id = 477, gadget_id = 70220020, pos = { x = 142.226, y = 0.540, z = 397.787 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 478, gadget_id = 70220020, pos = { x = 143.765, y = 0.540, z = 389.406 }, rot = { x = 0.000, y = 50.636, z = 0.000 }, level = 1 },
{ config_id = 479, gadget_id = 70220020, pos = { x = 142.896, y = 0.540, z = 378.435 }, rot = { x = 0.000, y = 114.743, z = 0.000 }, level = 1 },
{ config_id = 480, gadget_id = 70220001, pos = { x = 129.988, y = 0.540, z = 377.332 }, rot = { x = 0.000, y = 287.973, z = 0.000 }, level = 1 },
{ config_id = 481, gadget_id = 70220001, pos = { x = 121.902, y = 0.540, z = 388.906 }, rot = { x = 0.000, y = 107.070, z = 0.000 }, level = 1 },
{ config_id = 482, gadget_id = 70220001, pos = { x = 133.560, y = 0.540, z = 395.817 }, rot = { x = 0.000, y = 19.921, z = 0.000 }, level = 1 },
{ config_id = 483, gadget_id = 70220001, pos = { x = 139.471, y = 0.540, z = 376.990 }, rot = { x = 0.000, y = 259.955, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000135, name = "GADGET_STATE_CHANGE_135", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_135", action = "action_EVENT_GADGET_STATE_CHANGE_135" },
{ config_id = 1000136, name = "GADGET_STATE_CHANGE_136", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "", trigger_count = 0, tag = "666" },
{ config_id = 1000137, name = "CHALLENGE_SUCCESS_137", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "888", condition = "condition_EVENT_CHALLENGE_SUCCESS_137", action = "action_EVENT_CHALLENGE_SUCCESS_137" },
{ config_id = 1000138, name = "CHALLENGE_FAIL_138", event = EventType.EVENT_CHALLENGE_FAIL, source = "888", condition = "", action = "action_EVENT_CHALLENGE_FAIL_138", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 434, 472, 473, 474, 475, 476 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_135" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 434, 435, 436, 437, 438, 439, 440, 441, 442, 443, 444, 445, 446, 447, 448, 449, 450, 451, 452, 453, 454, 455, 456, 457, 458, 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_136", "CHALLENGE_SUCCESS_137", "CHALLENGE_FAIL_138" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_135(context, evt)
if 434 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_135(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000068, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 创建编号为888(该挑战的识别id),挑战内容为165的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 888, 165, 45, 7, 666, 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CHALLENGE_SUCCESS_137(context, evt)
-- 判断指定group组剩余gadget数量是否是45
if ScriptLib.CheckRemainGadgetCountByGroupId(context, {group_id = 220000068}) ~= 45 then
return false
end
return true
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_137(context, evt)
-- 创建id为471的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 471 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_138(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000068, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
@@ -0,0 +1,236 @@
-- 基础信息
local base_info = {
group_id = 220000069
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 484, gadget_id = 70900039, pos = { x = -49.796, y = 0.722, z = 640.335 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 485, gadget_id = 70690006, pos = { x = -49.796, y = 0.500, z = 640.335 }, rot = { x = 0.000, y = 202.087, z = 0.000 }, level = 1 },
{ config_id = 486, gadget_id = 70690001, pos = { x = -49.796, y = 5.000, z = 640.335 }, rot = { x = 90.000, y = 248.382, z = 0.000 }, level = 1 },
{ config_id = 487, gadget_id = 70690001, pos = { x = -49.796, y = 20.000, z = 640.335 }, rot = { x = 90.000, y = 270.335, z = 0.000 }, level = 1 },
{ config_id = 488, gadget_id = 70690001, pos = { x = -49.796, y = 35.000, z = 640.335 }, rot = { x = 90.000, y = 252.856, z = 0.000 }, level = 1 },
{ config_id = 489, gadget_id = 70690001, pos = { x = -49.796, y = 50.000, z = 640.335 }, rot = { x = 90.000, y = 103.025, z = 0.000 }, level = 1 },
{ config_id = 490, gadget_id = 70690001, pos = { x = -49.796, y = 65.000, z = 640.335 }, rot = { x = 90.000, y = 57.900, z = 0.000 }, level = 1 },
{ config_id = 491, gadget_id = 70500000, pos = { x = -49.796, y = 80.000, z = 675.335 }, rot = { x = 0.000, y = 156.421, z = 0.000 }, level = 1, point_type = 4001001 },
{ config_id = 492, gadget_id = 70500000, pos = { x = -49.796, y = 65.000, z = 675.335 }, rot = { x = 0.000, y = 229.552, z = 0.000 }, level = 1, point_type = 4001001 },
{ config_id = 493, gadget_id = 70500000, pos = { x = -85.796, y = 50.000, z = 640.335 }, rot = { x = 0.000, y = 195.191, z = 0.000 }, level = 1, point_type = 4001001 },
{ config_id = 494, gadget_id = 70500000, pos = { x = -49.796, y = 80.000, z = 605.335 }, rot = { x = 0.000, y = 263.742, z = 0.000 }, level = 1, point_type = 4001001 },
{ config_id = 495, gadget_id = 70500000, pos = { x = -49.796, y = 20.000, z = 605.335 }, rot = { x = 0.000, y = 206.330, z = 0.000 }, level = 1, point_type = 4001001 },
{ config_id = 496, gadget_id = 70500000, pos = { x = -15.796, y = 20.000, z = 640.335 }, rot = { x = 0.000, y = 289.499, z = 0.000 }, level = 1, point_type = 4001001 },
{ config_id = 497, gadget_id = 70500000, pos = { x = -15.796, y = 80.000, z = 640.335 }, rot = { x = 0.000, y = 144.752, z = 0.000 }, level = 1, point_type = 4001001 },
{ config_id = 498, gadget_id = 70690006, pos = { x = -49.796, y = 80.000, z = 645.335 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 499, gadget_id = 70690006, pos = { x = -44.796, y = 80.000, z = 640.335 }, rot = { x = 90.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 500, gadget_id = 70690006, pos = { x = -49.796, y = 80.000, z = 635.335 }, rot = { x = 90.000, y = 180.000, z = 0.000 }, level = 1 },
{ config_id = 501, gadget_id = 70690006, pos = { x = -54.796, y = 80.000, z = 640.335 }, rot = { x = 90.000, y = 270.000, z = 0.000 }, level = 1 },
{ config_id = 502, gadget_id = 70690006, pos = { x = -49.796, y = 29.160, z = 605.335 }, rot = { x = 0.000, y = 202.087, z = 0.000 }, level = 1 },
{ config_id = 503, gadget_id = 70690006, pos = { x = -49.796, y = 50.000, z = 605.335 }, rot = { x = 0.000, y = 202.087, z = 0.000 }, level = 1 },
{ config_id = 504, gadget_id = 70690006, pos = { x = -49.796, y = 20.000, z = 605.335 }, rot = { x = 90.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 505, gadget_id = 70690001, pos = { x = -49.796, y = 35.000, z = 605.335 }, rot = { x = 90.000, y = 252.856, z = 0.000 }, level = 1 },
{ config_id = 506, gadget_id = 70690001, pos = { x = -49.796, y = 50.000, z = 605.335 }, rot = { x = 90.000, y = 252.856, z = 0.000 }, level = 1 },
{ config_id = 507, gadget_id = 70690001, pos = { x = -49.796, y = 65.000, z = 605.335 }, rot = { x = 90.000, y = 252.856, z = 0.000 }, level = 1 },
{ config_id = 508, gadget_id = 70900201, pos = { x = -49.796, y = 80.000, z = 675.335 }, rot = { x = 0.000, y = 343.290, z = 0.000 }, level = 1 },
{ config_id = 509, gadget_id = 70900201, pos = { x = -49.796, y = 65.000, z = 675.335 }, rot = { x = 0.000, y = 75.791, z = 0.000 }, level = 1 },
{ config_id = 510, gadget_id = 70900201, pos = { x = -85.796, y = 50.000, z = 640.335 }, rot = { x = 0.000, y = 273.710, z = 0.000 }, level = 1 },
{ config_id = 511, gadget_id = 70900201, pos = { x = -49.796, y = 80.000, z = 605.335 }, rot = { x = 0.000, y = 8.766, z = 0.000 }, level = 1 },
{ config_id = 512, gadget_id = 70900201, pos = { x = -49.796, y = 20.000, z = 605.335 }, rot = { x = 0.000, y = 51.509, z = 0.000 }, level = 1 },
{ config_id = 513, gadget_id = 70900201, pos = { x = -15.796, y = 20.000, z = 640.335 }, rot = { x = 0.000, y = 34.475, z = 0.000 }, level = 1 },
{ config_id = 514, gadget_id = 70900201, pos = { x = -15.796, y = 80.000, z = 640.335 }, rot = { x = 0.000, y = 343.290, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000139, name = "GADGET_STATE_CHANGE_139", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_139", action = "action_EVENT_GADGET_STATE_CHANGE_139" },
{ config_id = 1000140, name = "GATHER_140", event = EventType.EVENT_GATHER, source = "491", condition = "", action = "action_EVENT_GATHER_140", forbid_guest = false },
{ config_id = 1000141, name = "GATHER_141", event = EventType.EVENT_GATHER, source = "492", condition = "", action = "action_EVENT_GATHER_141", forbid_guest = false },
{ config_id = 1000142, name = "GATHER_142", event = EventType.EVENT_GATHER, source = "493", condition = "", action = "action_EVENT_GATHER_142", forbid_guest = false },
{ config_id = 1000143, name = "GATHER_143", event = EventType.EVENT_GATHER, source = "494", condition = "", action = "action_EVENT_GATHER_143", forbid_guest = false },
{ config_id = 1000144, name = "GATHER_144", event = EventType.EVENT_GATHER, source = "495", condition = "", action = "action_EVENT_GATHER_144", forbid_guest = false },
{ config_id = 1000145, name = "GATHER_145", event = EventType.EVENT_GATHER, source = "496", condition = "", action = "action_EVENT_GATHER_145", forbid_guest = false },
{ config_id = 1000146, name = "GATHER_146", event = EventType.EVENT_GATHER, source = "497", condition = "", action = "action_EVENT_GATHER_146", forbid_guest = false },
{ config_id = 1000149, name = "VARIABLE_CHANGE_149", event = EventType.EVENT_VARIABLE_CHANGE, source = "num", condition = "", action = "action_EVENT_VARIABLE_CHANGE_149", trigger_count = 7, tag = "69" }
}
-- 变量
variables = {
{ config_id = 1, name = "num", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 484, 485, 486, 487, 488, 489, 490, 491, 492, 493, 494, 495, 496, 497, 498, 499, 500, 501, 502, 503, 504, 505, 506, 507, 508, 509, 510, 511, 512, 513, 514 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_139", "GATHER_140", "GATHER_141", "GATHER_142", "GATHER_143", "GATHER_144", "GATHER_145", "GATHER_146", "VARIABLE_CHANGE_149" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_139(context, evt)
if 484 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_139(context, evt)
-- 创建编号为0(该挑战的识别id),挑战内容为167的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 0, 167, 60, 3, 69, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GATHER_140(context, evt)
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 508 }) then
return -1
end
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num", 1) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GATHER_141(context, evt)
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 509 }) then
return -1
end
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num", 1) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GATHER_142(context, evt)
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 510 }) then
return -1
end
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num", 1) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GATHER_143(context, evt)
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 511 }) then
return -1
end
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num", 1) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GATHER_144(context, evt)
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 512 }) then
return -1
end
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num", 1) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GATHER_145(context, evt)
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 513 }) then
return -1
end
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num", 1) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GATHER_146(context, evt)
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 514 }) then
return -1
end
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "num", 1) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_149(context, evt)
if evt.param1 == evt.param2 then return -1 end
-- 将configid为 484 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 484, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 220000071
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 518, gadget_id = 70320002, pos = { x = 172.436, y = 0.751, z = 327.196 }, rot = { x = 0.000, y = 266.116, z = 0.000 }, level = 1 },
{ config_id = 519, gadget_id = 70320002, pos = { x = 172.232, y = 0.546, z = 316.722 }, rot = { x = 0.000, y = 272.052, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 518, 519 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,79 @@
-- 基础信息
local base_info = {
group_id = 220000072
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 99, monster_id = 21020201, pos = { x = 84.849, y = 0.540, z = 516.861 }, rot = { x = 0.000, y = 182.190, z = 0.000 }, level = 10, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 520, gadget_id = 70380001, pos = { x = 60.873, y = 19.013, z = 629.762 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20000019 },
{ config_id = 521, gadget_id = 70380003, pos = { x = 92.622, y = 14.500, z = 599.942 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 522, gadget_id = 70380003, pos = { x = 84.967, y = 14.500, z = 599.942 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 523, gadget_id = 70380003, pos = { x = 100.192, y = 14.500, z = 599.942 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 524, gadget_id = 70380001, pos = { x = 76.737, y = 14.500, z = 599.939 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 525, gadget_id = 70380003, pos = { x = 85.247, y = 14.500, z = 615.782 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 526, gadget_id = 70380001, pos = { x = 76.680, y = 24.500, z = 615.746 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 99 },
gadgets = { 520, 521, 522, 523, 524, 525, 526 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,129 @@
-- 基础信息
local base_info = {
group_id = 220000074
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 538, gadget_id = 70900007, pos = { x = 97.253, y = 0.540, z = 388.666 }, rot = { x = 0.000, y = 180.639, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000150, name = "GADGET_STATE_CHANGE_150", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_150", action = "action_EVENT_GADGET_STATE_CHANGE_150", trigger_count = 0 },
{ config_id = 1000151, name = "CHALLENGE_FAIL_151", event = EventType.EVENT_CHALLENGE_FAIL, source = "7788", condition = "", action = "action_EVENT_CHALLENGE_FAIL_151", trigger_count = 0 },
{ config_id = 1000152, name = "CHALLENGE_SUCCESS_152", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "7788", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_152", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 538 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_150", "CHALLENGE_FAIL_151", "CHALLENGE_SUCCESS_152" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_150(context, evt)
if 538 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_150(context, evt)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000075, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 创建编号为7788(该挑战的识别id),挑战内容为171的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 7788, 171, 60, 0, 0, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_151(context, evt)
-- 将configid为 538 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 538, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000075, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_152(context, evt)
-- 调用提示id为 20020205 的提示UI,会显示在屏幕中央偏下位置,id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 20020205) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
@@ -0,0 +1,87 @@
-- 基础信息
local base_info = {
group_id = 220000075
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 539, gadget_id = 40210006, pos = { x = 96.003, y = 0.540, z = 401.161 }, rot = { x = 0.000, y = 225.000, z = 0.000 }, level = 1 },
{ config_id = 540, gadget_id = 40210006, pos = { x = 86.852, y = 0.540, z = 378.627 }, rot = { x = 0.000, y = 70.745, z = 0.000 }, level = 1 },
{ config_id = 541, gadget_id = 40210006, pos = { x = 110.619, y = 0.540, z = 382.515 }, rot = { x = 0.000, y = 337.915, z = 0.000 }, level = 1 },
{ config_id = 542, gadget_id = 70320001, pos = { x = 102.849, y = 0.540, z = 388.570 }, rot = { x = 0.000, y = 238.652, z = 0.000 }, level = 1 },
{ config_id = 543, gadget_id = 70320001, pos = { x = 91.300, y = 0.540, z = 388.520 }, rot = { x = 0.000, y = 182.610, z = 0.000 }, level = 1 },
{ config_id = 544, gadget_id = 70320001, pos = { x = 97.508, y = 0.540, z = 395.356 }, rot = { x = 0.000, y = 306.115, z = 0.000 }, level = 1 },
{ config_id = 545, gadget_id = 70320001, pos = { x = 97.250, y = 0.540, z = 381.783 }, rot = { x = 0.000, y = 191.163, 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 = suite_2,
monsters = { },
gadgets = { 539, 540, 541, 542, 543, 544, 545 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,191 @@
-- 基础信息
local base_info = {
group_id = 220000076
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 103, monster_id = 28020401, pos = { x = 80.122, y = 0.540, z = 427.477 }, rot = { x = 0.000, y = 200.181, z = 0.000 }, level = 1, pose_id = 1 },
{ config_id = 104, monster_id = 20010101, pos = { x = 73.526, y = 0.540, z = 429.890 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 10, pose_id = 201 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 546, gadget_id = 70900272, pos = { x = 77.304, y = 0.540, z = 423.612 }, rot = { x = 0.000, y = 358.483, z = 0.000 }, level = 1 },
{ config_id = 547, gadget_id = 70211001, pos = { x = 77.391, y = 1.330, z = 423.411 }, rot = { x = 0.000, y = 231.876, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", showcutscene = true, isOneoff = true },
{ config_id = 548, gadget_id = 70360001, pos = { x = 77.368, y = 1.294, z = 423.339 }, rot = { x = 0.000, y = 206.545, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000153, name = "GADGET_STATE_CHANGE_153", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_153", action = "action_EVENT_GADGET_STATE_CHANGE_153", trigger_count = 0 },
{ config_id = 1000155, name = "CHALLENGE_FAIL_155", event = EventType.EVENT_CHALLENGE_FAIL, source = "888", condition = "", action = "action_EVENT_CHALLENGE_FAIL_155", trigger_count = 0 },
{ config_id = 1000156, name = "CHALLENGE_SUCCESS_156", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "888", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_156" },
{ config_id = 1000157, name = "GADGET_CREATE_157", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_157", action = "action_EVENT_GADGET_CREATE_157", trigger_count = 0 },
{ config_id = 1000158, name = "SELECT_OPTION_158", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "", action = "action_EVENT_SELECT_OPTION_158", trigger_count = 0, forbid_guest = false }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 546, 548 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_153", "CHALLENGE_FAIL_155", "CHALLENGE_SUCCESS_156", "GADGET_CREATE_157", "SELECT_OPTION_158" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_153(context, evt)
if 546 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_153(context, evt)
-- 创建编号为888(该挑战的识别id),挑战内容为125的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 888, 125, 30, 220000076, 1, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 103, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 104, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_155(context, evt)
-- 将configid为 546 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 546, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为548的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 548 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000076, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_156(context, evt)
-- 将configid为 546 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 546, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为547的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 547 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_157(context, evt)
if 548 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_157(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_SELECT_OPTION_158(context, evt)
-- 永久关闭CongfigId的Gadget,需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 548 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 546 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 546, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,160 @@
-- 基础信息
local base_info = {
group_id = 220000078
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 554, gadget_id = 70900274, pos = { x = 108.896, y = -12.000, z = 538.255 }, rot = { x = 0.000, y = 181.170, z = 0.000 }, level = 1 },
{ config_id = 555, gadget_id = 70710002, pos = { x = 101.319, y = -11.609, z = 549.507 }, rot = { x = 0.000, y = 191.914, z = 0.000 }, level = 1, route_id = 20000021 },
{ config_id = 556, gadget_id = 70211001, pos = { x = 108.983, y = -12.000, z = 538.216 }, rot = { x = 0.000, y = 224.114, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 558, gadget_id = 70300037, pos = { x = 108.683, y = -12.000, z = 539.142 }, rot = { x = 0.000, y = 326.132, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000159, name = "PLATFORM_REACH_POINT_159", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "555", condition = "condition_EVENT_PLATFORM_REACH_POINT_159", action = "action_EVENT_PLATFORM_REACH_POINT_159" },
{ config_id = 1000160, name = "AVATAR_NEAR_PLATFORM_160", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_160", action = "action_EVENT_AVATAR_NEAR_PLATFORM_160", forbid_guest = false },
{ config_id = 1000171, name = "PLATFORM_REACH_POINT_171", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_171", action = "action_EVENT_PLATFORM_REACH_POINT_171", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 554, 555, 558 },
regions = { },
triggers = { "PLATFORM_REACH_POINT_159", "AVATAR_NEAR_PLATFORM_160", "PLATFORM_REACH_POINT_171" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_159(context, evt)
-- 判断是gadgetid 为 555的移动平台,是否到达了20000021 的路线中的 2 点
if 555 ~= evt.param1 then
return false
end
if 20000021 ~= evt.param2 then
return false
end
if 2 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_159(context, evt)
-- 创建id为556的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 556 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 将configid为 554 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 554, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_160(context, evt)
-- 判断是gadgetid 为 555的移动平台,是否到达了20000021 的路线中的 0 点
if 555 ~= evt.param1 then
return false
end
if 20000021 ~= evt.param2 then
return false
end
if 0 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_160(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 555) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_171(context, evt)
if evt.param1 ~= 555 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_171(context, evt)
ScriptLib.PrintLog("## point_id = "..evt.param3)
return 0
end
@@ -0,0 +1,71 @@
-- 基础信息
local base_info = {
group_id = 220000079
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,86 @@
-- 基础信息
local base_info = {
group_id = 220000080
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 559, gadget_id = 70900277, pos = { x = 108.856, y = 0.540, z = 428.827 }, rot = { x = 0.000, y = 93.124, z = 0.000 }, level = 1 },
{ config_id = 560, gadget_id = 70900277, pos = { x = 113.244, y = 0.540, z = 429.476 }, rot = { x = 0.000, y = 100.770, z = 0.000 }, level = 1 },
{ config_id = 561, gadget_id = 70900277, pos = { x = 118.217, y = 0.540, z = 429.924 }, rot = { x = 0.000, y = 130.133, z = 0.000 }, level = 1 },
{ config_id = 562, gadget_id = 70900278, pos = { x = 123.589, y = 1.779, z = 430.237 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 563, gadget_id = 70900278, pos = { x = 128.170, y = 1.665, z = 430.791 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 564, gadget_id = 70900278, pos = { x = 133.065, y = 1.672, z = 431.377 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 565, gadget_id = 70900279, pos = { x = 137.972, y = 0.540, z = 431.021 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 566, gadget_id = 70900279, pos = { x = 142.044, y = 0.540, z = 431.299 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 567, gadget_id = 70900279, pos = { x = 146.487, y = 0.540, z = 431.439 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 568, gadget_id = 70900280, pos = { x = 146.418, y = 0.540, z = 424.720 }, rot = { x = 0.000, y = 126.046, z = 0.000 }, level = 1 },
{ config_id = 569, gadget_id = 70900280, pos = { x = 145.859, y = 0.540, z = 418.651 }, rot = { x = 0.000, y = 58.016, z = 0.000 }, level = 1 },
{ config_id = 570, gadget_id = 70900280, pos = { x = 144.650, y = 0.540, z = 412.927 }, rot = { x = 0.000, y = 210.171, z = 0.000 }, level = 1 },
{ config_id = 571, gadget_id = 70900283, pos = { x = 137.082, y = 0.540, z = 414.455 }, rot = { x = 0.000, y = 236.739, z = 0.000 }, level = 1 },
{ config_id = 572, gadget_id = 70900283, pos = { x = 131.289, y = 0.540, z = 415.535 }, rot = { x = 0.000, y = 191.662, z = 0.000 }, level = 1 },
{ config_id = 573, gadget_id = 70900283, pos = { x = 125.174, y = 0.540, z = 415.629 }, rot = { x = 0.000, y = 62.077, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = true
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 559, 560, 561, 562, 563, 564, 565, 566, 567, 568, 569, 570, 571, 572, 573 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,93 @@
-- 基础信息
local base_info = {
group_id = 220000081
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 574, gadget_id = 70310001, pos = { x = 29.329, y = -10.300, z = 564.258 }, rot = { x = 0.000, y = 352.240, z = 0.000 }, level = 1 },
{ config_id = 575, gadget_id = 70310001, pos = { x = 41.281, y = -10.300, z = 561.752 }, rot = { x = 0.000, y = 13.071, z = 0.000 }, level = 1 },
{ config_id = 576, gadget_id = 70310001, pos = { x = 30.651, y = -10.300, z = 582.171 }, rot = { x = 0.000, y = 15.881, z = 0.000 }, level = 1 },
{ config_id = 577, gadget_id = 70310001, pos = { x = 43.418, y = -10.300, z = 573.853 }, rot = { x = 0.000, y = 79.042, z = 0.000 }, level = 1 },
{ config_id = 578, gadget_id = 70310001, pos = { x = 48.748, y = -10.300, z = 598.447 }, rot = { x = 0.000, y = 262.300, z = 0.000 }, level = 1 },
{ config_id = 579, gadget_id = 70310001, pos = { x = 55.177, y = -10.300, z = 577.998 }, rot = { x = 0.000, y = 11.185, z = 0.000 }, level = 1 },
{ config_id = 580, gadget_id = 70310001, pos = { x = 63.718, y = -10.300, z = 596.927 }, rot = { x = 0.000, y = 153.619, z = 0.000 }, level = 1 },
{ config_id = 581, gadget_id = 70310001, pos = { x = 96.894, y = -10.300, z = 609.342 }, rot = { x = 0.000, y = 349.361, z = 0.000 }, level = 1 },
{ config_id = 582, gadget_id = 70310001, pos = { x = 107.046, y = -10.300, z = 592.748 }, rot = { x = 0.000, y = 274.083, z = 0.000 }, level = 1 },
{ config_id = 583, gadget_id = 70310001, pos = { x = 97.200, y = -10.300, z = 573.967 }, rot = { x = 0.000, y = 298.500, z = 0.000 }, level = 1 },
{ config_id = 584, gadget_id = 70310001, pos = { x = 82.989, y = -10.300, z = 566.144 }, rot = { x = 0.000, y = 197.279, z = 0.000 }, level = 1 },
{ config_id = 585, gadget_id = 70310001, pos = { x = 84.926, y = -10.300, z = 610.283 }, rot = { x = 0.000, y = 178.293, z = 0.000 }, level = 1 },
{ config_id = 586, gadget_id = 70310001, pos = { x = 75.543, y = -10.300, z = 603.829 }, rot = { x = 0.000, y = 204.638, z = 0.000 }, level = 1 },
{ config_id = 587, gadget_id = 70310001, pos = { x = 68.367, y = -10.300, z = 571.692 }, rot = { x = 0.000, y = 164.128, z = 0.000 }, level = 1 },
{ config_id = 588, gadget_id = 70310001, pos = { x = 33.743, y = -10.300, z = 598.657 }, rot = { x = 0.000, y = 260.051, z = 0.000 }, level = 1 },
{ config_id = 589, gadget_id = 70211001, pos = { x = 79.962, y = 9.293, z = 601.014 }, rot = { x = 0.000, y = 144.230, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 590, gadget_id = 70211001, pos = { x = 79.943, y = 9.293, z = 593.701 }, rot = { x = 0.000, y = 128.336, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 591, gadget_id = 70211001, pos = { x = 93.653, y = 5.293, z = 594.084 }, rot = { x = 0.000, y = 50.948, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 592, gadget_id = 70211001, pos = { x = 92.277, y = -10.300, z = 593.055 }, rot = { x = 0.000, y = 59.858, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 593, gadget_id = 70211001, pos = { x = 68.047, y = -10.300, z = 578.645 }, rot = { x = 0.000, y = 6.981, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 594, gadget_id = 70211001, pos = { x = 38.192, y = -10.300, z = 577.722 }, rot = { x = 0.000, y = 326.439, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true },
{ config_id = 595, gadget_id = 70710003, pos = { x = 83.163, y = -7.733, z = 590.030 }, rot = { x = 0.000, y = 355.818, 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 = { 574, 575, 576, 577, 578, 579, 580, 581, 582, 583, 584, 585, 586, 587, 588, 589, 590, 591, 592, 593, 594, 595 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,94 @@
-- 基础信息
local base_info = {
group_id = 220000082
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 596, gadget_id = 70900302, pos = { x = 126.684, y = -12.000, z = 594.305 }, rot = { x = 0.000, y = 91.082, z = 0.000 }, level = 1 },
{ config_id = 597, gadget_id = 70310001, pos = { x = 118.759, y = -12.000, z = 604.868 }, rot = { x = 0.000, y = 54.328, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000161, name = "GADGET_STATE_CHANGE_161", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_161", action = "action_EVENT_GADGET_STATE_CHANGE_161" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 596, 597 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_161" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_161(context, evt)
if 596 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_161(context, evt)
-- 将configid为 597 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 597, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,172 @@
-- 基础信息
local base_info = {
group_id = 220000083
}
-- Trigger变量
local defs = {
group_id = 220000083,
riddle_hint = 598,
riddle_1 = 600,
riddle_2 = 601,
riddle_3 = 602,
riddle_4 = 603
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 598, gadget_id = 70220029, pos = { x = 95.469, y = -12.000, z = 650.457 }, rot = { x = 0.000, y = 190.000, z = 0.000 }, level = 1 },
{ config_id = 599, gadget_id = 70220030, pos = { x = 95.469, y = -11.820, z = 650.457 }, rot = { x = 0.000, y = 182.700, z = 0.000 }, level = 1 },
{ config_id = 600, gadget_id = 70220031, pos = { x = 93.869, y = -12.000, z = 639.357 }, rot = { x = 0.000, y = 276.100, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 601, gadget_id = 70220031, pos = { x = 81.769, y = -12.000, z = 653.657 }, rot = { x = 0.000, y = 317.500, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 602, gadget_id = 70220031, pos = { x = 97.769, y = -12.000, z = 660.457 }, rot = { x = 0.000, y = 257.600, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 603, gadget_id = 70220031, pos = { x = 108.569, y = -12.000, z = 648.057 }, rot = { x = 0.000, y = 14.100, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 604, gadget_id = 70211001, pos = { x = 96.069, y = -11.820, z = 650.557 }, rot = { x = 0.000, y = 270.400, z = 0.000 }, level = 1, drop_tag = "战斗低级蒙德", isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000162, name = "GADGET_STATE_CHANGE_162", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_162", action = "action_EVENT_GADGET_STATE_CHANGE_162", trigger_count = 0 },
{ config_id = 1000163, name = "GADGET_STATE_CHANGE_163", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_163", action = "action_EVENT_GADGET_STATE_CHANGE_163" },
{ config_id = 1000164, name = "VARIABLE_CHANGE_164", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_164", action = "action_EVENT_VARIABLE_CHANGE_164", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "Stage_Flag", value = 4, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 598, 599, 600, 601, 602, 603, 604 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_162", "GADGET_STATE_CHANGE_163", "VARIABLE_CHANGE_164" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 599 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { 598, 600, 601, 602, 603, 604 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_162", "VARIABLE_CHANGE_164" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_162(context, evt)
if evt.param2 ~= defs.riddle_1 and evt.param2 ~= defs.riddle_2 and evt.param2 ~= defs.riddle_3 and evt.param2 ~= defs.riddle_4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_162(context, evt)
if evt.param1 == GadgetState.GearStart then
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
elseif evt.param1 == GadgetState.Default then
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_163(context, evt)
if evt.param1 ~= GadgetState.GearStart or evt.param2 ~= defs.riddle_hint then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_163(context, evt)
if 0 ~= ScriptLib.RemoveExtraGroupSuite(context, defs.group_id, 2) then
return -1
end
if 0 ~= ScriptLib.GoToGroupSuite(context, defs.group_id, 3) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_164(context, evt)
if evt.param1 == evt.param2 then return false end
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_164(context, evt)
if value < 0 or value > 4 then
return -1
end
if value == 4 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.riddle_hint, GadgetState.Default)
elseif value == 3 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.riddle_hint, GadgetState.Action01)
elseif value == 2 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.riddle_hint, GadgetState.Action02)
elseif value == 1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.riddle_hint, GadgetState.Action03)
elseif value == 0 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.riddle_hint, GadgetState.GearStart)
end
return 0
end
@@ -0,0 +1,158 @@
-- 基础信息
local base_info = {
group_id = 220000084
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 605, gadget_id = 70220032, pos = { x = 134.052, y = -12.000, z = 637.639 }, rot = { x = 0.000, y = 94.112, z = 0.000 }, level = 1 },
{ config_id = 606, gadget_id = 70380003, pos = { x = 123.906, y = -13.253, z = 647.849 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 20000022, start_route = false },
{ config_id = 607, gadget_id = 70310001, pos = { x = 127.383, y = -12.000, z = 637.233 }, rot = { x = 0.000, y = 59.319, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000165, name = "GADGET_STATE_CHANGE_165", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_165", action = "action_EVENT_GADGET_STATE_CHANGE_165", trigger_count = 0 },
{ config_id = 1000166, name = "GADGET_STATE_CHANGE_166", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_166", action = "action_EVENT_GADGET_STATE_CHANGE_166", trigger_count = 0 },
{ config_id = 1000167, name = "GADGET_STATE_CHANGE_167", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_167", action = "action_EVENT_GADGET_STATE_CHANGE_167", trigger_count = 0 },
{ config_id = 1000168, name = "GADGET_STATE_CHANGE_168", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_168", action = "action_EVENT_GADGET_STATE_CHANGE_168", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 605, 606, 607 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_165", "GADGET_STATE_CHANGE_166", "GADGET_STATE_CHANGE_167", "GADGET_STATE_CHANGE_168" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_165(context, evt)
if 605 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_165(context, evt)
-- 将configid为 607 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 607, 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_166(context, evt)
if 605 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_166(context, evt)
-- 将configid为 607 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 607, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_167(context, evt)
if 605 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_167(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 606) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_168(context, evt)
if 605 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_168(context, evt)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 606) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
return 0
end
@@ -0,0 +1,115 @@
-- 基础信息
local base_info = {
group_id = 220000085
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 608, gadget_id = 70900033, pos = { x = 133.688, y = -12.041, z = 656.268 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 609, gadget_id = 70310001, pos = { x = 124.245, y = -12.000, z = 656.860 }, rot = { x = 0.000, y = 317.355, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000169, name = "GADGET_STATE_CHANGE_169", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_169", action = "action_EVENT_GADGET_STATE_CHANGE_169", trigger_count = 0 },
{ config_id = 1000170, name = "GADGET_STATE_CHANGE_170", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_170", action = "action_EVENT_GADGET_STATE_CHANGE_170", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 608, 609 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_169", "GADGET_STATE_CHANGE_170" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_169(context, evt)
if 608 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_169(context, evt)
-- 将configid为 609 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 609, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_170(context, evt)
if 608 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_170(context, evt)
-- 将configid为 609 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 609, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 220000086
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 610, gadget_id = 70710005, pos = { x = -86.642, y = 0.500, z = 281.183 }, 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 = { 610 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,140 @@
-- 基础信息
local base_info = {
group_id = 220000087
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 105, monster_id = 21010101, pos = { x = 29.650, y = -12.000, z = 667.205 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 611, gadget_id = 70900007, pos = { x = 32.603, y = -12.000, z = 664.872 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 612, gadget_id = 70211111, pos = { x = 32.428, y = -12.000, z = 669.194 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", isOneoff = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1000172, name = "GADGET_STATE_CHANGE_172", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_172", action = "action_EVENT_GADGET_STATE_CHANGE_172" },
{ config_id = 1000173, name = "CHALLENGE_SUCCESS_173", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "41", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_173" },
{ config_id = 1000174, name = "CHALLENGE_FAIL_174", event = EventType.EVENT_CHALLENGE_FAIL, source = "41", condition = "", action = "action_EVENT_CHALLENGE_FAIL_174" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 611 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_172", "CHALLENGE_SUCCESS_173", "CHALLENGE_FAIL_174" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 105 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_172(context, evt)
if 611 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_172(context, evt)
-- 创建编号为41(该挑战的识别id),挑战内容为180的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 41, 180, 60, 220000087, 1, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220000087, 2)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_173(context, evt)
-- 创建id为612的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 612 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_174(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 220000087, 2)
-- 重新生成指定group,指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000087, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将configid为 611 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 611, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
@@ -0,0 +1,78 @@
-- 基础信息
local base_info = {
group_id = 220000088
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 88001, monster_id = 22010301, pos = { x = 78.848, y = 0.800, z = -181.057 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 88002, monster_id = 21010201, pos = { x = 86.091, y = 0.800, z = -178.850 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 88003, monster_id = 21010201, pos = { x = 81.384, y = 0.800, z = -183.348 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 88004, monster_id = 21010201, pos = { x = 73.424, y = 0.800, z = -178.206 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 88005, monster_id = 21010201, pos = { x = 81.062, y = 0.800, z = -177.217 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 88006, monster_id = 21010201, pos = { x = 86.136, y = 0.800, z = -182.460 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 88007, gadget_id = 70300099, pos = { x = 82.342, y = 0.800, z = -180.364 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 88001, 88002, 88003, 88004, 88005, 88006 },
gadgets = { 88007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,78 @@
-- 基础信息
local base_info = {
group_id = 220000089
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 89001, monster_id = 21020101, pos = { x = 19.438, y = 0.800, z = -150.187 }, rot = { x = 0.000, y = 53.929, z = 0.000 }, level = 1, pose_id = 401 },
{ config_id = 89002, monster_id = 21010201, pos = { x = 27.957, y = 0.800, z = -147.197 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 89003, monster_id = 21010201, pos = { x = 23.250, y = 0.800, z = -151.695 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 89004, monster_id = 21010201, pos = { x = 15.291, y = 0.800, z = -146.552 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 89005, monster_id = 21010201, pos = { x = 22.928, y = 0.800, z = -145.563 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 89006, monster_id = 21010201, pos = { x = 28.003, y = 0.800, z = -150.807 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 89007, gadget_id = 70300099, pos = { x = 24.209, y = 0.800, z = -148.710 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 89001, 89002, 89003, 89004, 89005, 89006 },
gadgets = { 89007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,78 @@
-- 基础信息
local base_info = {
group_id = 220000090
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 90001, monster_id = 21020201, pos = { x = -53.410, y = 0.800, z = -138.136 }, rot = { x = 0.000, y = 53.929, z = 0.000 }, level = 1, pose_id = 401 },
{ config_id = 90002, monster_id = 21010201, pos = { x = -44.891, y = 0.800, z = -135.145 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 90003, monster_id = 21010201, pos = { x = -49.597, y = 0.800, z = -139.643 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 90004, monster_id = 21010201, pos = { x = -57.557, y = 0.800, z = -134.501 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 90005, monster_id = 21010201, pos = { x = -49.919, y = 0.800, z = -133.512 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 90006, monster_id = 21010201, pos = { x = -44.845, y = 0.800, z = -138.756 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 90007, gadget_id = 70300099, pos = { x = -48.639, y = 0.800, z = -136.659 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 90001, 90002, 90003, 90004, 90005, 90006 },
gadgets = { 90007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,78 @@
-- 基础信息
local base_info = {
group_id = 220000091
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 91001, monster_id = 25050201, pos = { x = -121.347, y = 0.800, z = -136.940 }, rot = { x = 0.000, y = 53.929, z = 0.000 }, level = 1 },
{ config_id = 91002, monster_id = 25050101, pos = { x = -112.828, y = 0.800, z = -133.949 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1007, 1008, 1019 } },
{ config_id = 91003, monster_id = 25050101, pos = { x = -117.534, y = 0.800, z = -138.447 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1007, 1008, 1019 } },
{ config_id = 91004, monster_id = 25050101, pos = { x = -125.494, y = 0.800, z = -133.304 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1007, 1008, 1019 } },
{ config_id = 91005, monster_id = 25050101, pos = { x = -117.856, y = 0.800, z = -132.316 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1007, 1008, 1019 } },
{ config_id = 91006, monster_id = 25050101, pos = { x = -112.782, y = 0.800, z = -137.559 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, disableWander = true, affix = { 1007, 1008, 1019 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 91007, gadget_id = 70300099, pos = { x = -116.576, y = 0.800, z = -135.463 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 91001, 91002, 91003, 91004, 91005, 91006 },
gadgets = { 91007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,78 @@
-- 基础信息
local base_info = {
group_id = 220000092
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 92001, monster_id = 20011101, pos = { x = -198.088, y = 0.800, z = -138.033 }, rot = { x = 0.000, y = 53.929, z = 0.000 }, level = 1 },
{ config_id = 92002, monster_id = 20011001, pos = { x = -189.569, y = 0.800, z = -135.042 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 92003, monster_id = 20011001, pos = { x = -194.275, y = 0.800, z = -139.540 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 92004, monster_id = 20011001, pos = { x = -202.235, y = 0.800, z = -134.398 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 92005, monster_id = 20011001, pos = { x = -194.597, y = 0.800, z = -133.409 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } },
{ config_id = 92006, monster_id = 20011001, pos = { x = -189.523, y = 0.800, z = -138.652 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1007, 1008, 1019 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 92007, gadget_id = 70300099, pos = { x = -193.317, y = 0.800, z = -136.556 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 92001, 92002, 92003, 92004, 92005, 92006 },
gadgets = { 92007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 220000093
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 93001, monster_id = 21010201, pos = { x = 103.148, y = 0.540, z = 301.558 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1028 } },
{ config_id = 93002, monster_id = 21010201, pos = { x = 103.341, y = 0.540, z = 296.132 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, affix = { 1029 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 93001, 93002 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
@@ -0,0 +1,243 @@
-- 基础信息
local base_info = {
group_id = 220000094
}
-- DEFS_MISCS
function Avatar_Eula_Plot_Fail(context)
ScriptLib.SetGroupVariableValue(context, "youla", 1)
ScriptLib.PrintContextLog(context, "youla fail")
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 94005, monster_id = 20010801, pos = { x = 104.163, y = 0.540, z = 477.494 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 94006, monster_id = 20010801, pos = { x = 106.413, y = 0.540, z = 474.135 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 94009, monster_id = 20010901, pos = { x = 95.887, y = 0.540, z = 477.116 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 94010, monster_id = 20011001, pos = { x = 94.447, y = 0.540, z = 477.259 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 94011, monster_id = 20011001, pos = { x = 95.963, y = 0.540, z = 478.739 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 94013, monster_id = 20010901, pos = { x = 99.883, y = 0.540, z = 482.462 }, rot = { x = 0.000, y = 186.835, z = 0.000 }, level = 1 },
{ config_id = 94014, monster_id = 20011101, pos = { x = 101.933, y = 0.540, z = 482.312 }, rot = { x = 0.000, y = 201.423, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 94001, gadget_id = 70350081, pos = { x = 100.086, y = 0.540, z = 474.410 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 94002, gadget_id = 70360001, pos = { x = 100.172, y = 2.209, z = 474.397 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1094003, name = "GADGET_CREATE_94003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_94003", action = "action_EVENT_GADGET_CREATE_94003" },
{ config_id = 1094004, name = "SELECT_OPTION_94004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_94004", action = "action_EVENT_SELECT_OPTION_94004" },
{ config_id = 1094007, name = "ANY_MONSTER_DIE_94007", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_94007", action = "action_EVENT_ANY_MONSTER_DIE_94007" },
{ config_id = 1094008, name = "VARIABLE_CHANGE_94008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_94008", action = "action_EVENT_VARIABLE_CHANGE_94008", tag = "666" },
{ config_id = 1094012, name = "ANY_MONSTER_DIE_94012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_94012", action = "action_EVENT_ANY_MONSTER_DIE_94012" }
}
-- 变量
variables = {
{ config_id = 1, name = "youla", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 94001, 94002 },
regions = { },
triggers = { "GADGET_CREATE_94003", "SELECT_OPTION_94004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 94005, 94006 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_94007", "VARIABLE_CHANGE_94008" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 94009, 94010, 94011 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_94012" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 94013, 94014 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_94003(context, evt)
if 94002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_94003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220000094, 94002, {2902}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将本组内变量名为 "youla" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "youla", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_94004(context, evt)
-- 判断是gadgetid 94002 option_id 2902
if 94002 ~= evt.param1 then
return false
end
if 2902 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_94004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220000094, 2)
-- 删除指定group 220000094 ;指定config94002;物件身上指定option2902
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220000094, 94002, 2902) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 开启编号为888,挑战内容为2的区域挑战
ScriptLib.CreateFatherChallenge(context, 10121, 2008, 180, {success = 1, fail =1})
ScriptLib.AttachChildChallenge(context, 10121, 10, 2,{180, 220000094, 7},{}, {success=1,fail=1})
ScriptLib.AttachChildChallenge(context, 10121, 11, 223,{180, 3, 666, 1},{}, {success=0, fail=1})
ScriptLib.StartFatherChallenge(context, 10121)
-- 将本组内变量名为 "youla" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "youla", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_94007(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_94007(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220000094, 3)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_94008(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"youla"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "youla", 220000094) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_94008(context, evt)
-- 终止识别id为11的挑战,并判定失败
ScriptLib.StopChallenge(context, 11, 0)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_94012(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_94012(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220000094, 4)
return 0
end
@@ -0,0 +1,247 @@
-- 基础信息
local base_info = {
group_id = 220000095
}
-- DEFS_MISCS
function Avatar_Eula_Plot_Fail(context)
ScriptLib.SetGroupVariableValue(context, "youla", 1)
ScriptLib.PrintContextLog(context, "youla fail")
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 95001, monster_id = 20010801, pos = { x = 130.575, y = 0.540, z = 479.159 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 95002, monster_id = 20010801, pos = { x = 132.826, y = 0.540, z = 475.800 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 95003, monster_id = 20010901, pos = { x = 122.300, y = 0.540, z = 478.781 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 95004, monster_id = 20011001, pos = { x = 120.860, y = 0.540, z = 478.924 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 95005, monster_id = 20011001, pos = { x = 122.376, y = 0.540, z = 480.404 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 95006, monster_id = 20010901, pos = { x = 126.296, y = 0.540, z = 484.127 }, rot = { x = 0.000, y = 186.835, z = 0.000 }, level = 1 },
{ config_id = 95007, monster_id = 20011101, pos = { x = 128.346, y = 0.540, z = 483.977 }, rot = { x = 0.000, y = 201.423, z = 0.000 }, level = 1 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 95008, gadget_id = 70350081, pos = { x = 126.499, y = 0.540, z = 476.075 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 95009, gadget_id = 70360001, pos = { x = 126.584, y = 2.209, z = 476.062 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1095010, name = "GADGET_CREATE_95010", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_95010", action = "action_EVENT_GADGET_CREATE_95010" },
{ config_id = 1095011, name = "SELECT_OPTION_95011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_95011", action = "action_EVENT_SELECT_OPTION_95011" },
{ config_id = 1095012, name = "ANY_MONSTER_DIE_95012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_95012", action = "action_EVENT_ANY_MONSTER_DIE_95012" },
{ config_id = 1095013, name = "VARIABLE_CHANGE_95013", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_95013", action = "action_EVENT_VARIABLE_CHANGE_95013", tag = "666" },
{ config_id = 1095014, name = "ANY_MONSTER_DIE_95014", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_95014", action = "action_EVENT_ANY_MONSTER_DIE_95014" }
}
-- 变量
variables = {
{ config_id = 1, name = "youla", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 95008, 95009 },
regions = { },
triggers = { "GADGET_CREATE_95010", "SELECT_OPTION_95011" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 95001, 95002 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_95012", "VARIABLE_CHANGE_95013" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { 95003, 95004, 95005 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_95014" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { 95006, 95007 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_95010(context, evt)
if 95009 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_95010(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220000095, 95009, {2902}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将本组内变量名为 "youla" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "youla", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_95011(context, evt)
-- 判断是gadgetid 95009 option_id 2902
if 95009 ~= evt.param1 then
return false
end
if 2902 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_95011(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 220000095, 2)
-- 删除指定group 220000095 ;指定config94002;物件身上指定option2902
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220000095, 95009, 2902) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 开启编号为888,挑战内容为2的区域挑战
ScriptLib.CreateFatherChallenge(context, 10121, 2008, 180, {success = 1, fail =1})
ScriptLib.AttachChildChallenge(context, 10121, 10, 2,{180, 220000095, 7},{}, {success=1,fail=1})
ScriptLib.AttachChildChallenge(context, 10121, 11, 224,{180, 3, 666, 1},{}, {success=0, fail=1})
ScriptLib.AttachChildChallenge(context, 10121, 12, 225,{180, 3, 666, 1},{}, {success=0, fail=1})
ScriptLib.StartFatherChallenge(context, 10121)
-- 将本组内变量名为 "youla" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "youla", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_95012(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_95012(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 220000095, 3)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_95013(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"youla"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "youla", 220000095) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_95013(context, evt)
-- 终止识别id为11的挑战,并判定失败
ScriptLib.StopChallenge(context, 11, 0)
-- 终止识别id为12的挑战,并判定失败
ScriptLib.StopChallenge(context, 12, 0)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_95014(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_95014(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 220000095, 4)
return 0
end
@@ -0,0 +1,102 @@
{
"areas": {},
"doors": {},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"alias": "",
"areaId": 0,
"checkCount": 0,
"checkDist": 500.0,
"floatParam": 0.0,
"gadgetId": 70010006,
"groupLimit": false,
"isModelHidden": false,
"meta": null,
"pointType": "Other",
"pos": {
"x": 90.97411,
"y": -4.435606,
"z": -111.2329
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"shape": {
"$type": "ConfigShapeRect",
"centerType": "Center",
"height": 8.32,
"heightType": "Center",
"length": 1.51,
"useHeight": true,
"width": 32.56
},
"stringParam": "",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"triggerFlag": "DeadRegion",
"triggerInterval": 0.1,
"type": "NORMAL",
"unlocked": true,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"withGO": true
}
},
"forces": {
"1": {
"$type": "ConfigAirflowField",
"alias": "",
"areaId": 0,
"autoFly": false,
"colliderBlackList": [],
"colliderWhiteList": [],
"enterEffect": "Eff_Windfield_Enter",
"forceHor": false,
"gadgetId": 40200001,
"groupLimit": false,
"isModelHidden": false,
"pointType": "Other",
"pos": {
"x": 99.41113,
"y": 0.5,
"z": -41.82896
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"scale": 1.0,
"stayEffect": "Eff_Windfield_Stay",
"tranPos": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"tranRot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"type": "NORMAL",
"unlocked": true,
"velocity": 5.0
}
},
"points": {},
"transRadius": 0.0
}