添加配置表

This commit is contained in:
flswld
2022-11-30 00:00:20 +08:00
parent f70a890338
commit d7f3f3b866
33382 changed files with 8476601 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
-- 地图配置
scene_config = {
begin_pos = { x = -2048.0, z = -3072.0 },
size = { x = 5120.0, z = 5120.0 },
born_pos = { x = 2563.000, y = 366.000, z = -1331.000 },
born_rot = { x = 0.000, y = 0.000, z = 0.000 },
die_y = 0,
vision_anchor = { x = -2048.0, z = -3072.0 }
}
-- 所有的区块
blocks = { 1101, 1102, 1103 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = 2048.0, z = -2048.0 }, max = { x = 3072.0, z = -1024.0 } },
{ min = { x = 1024.0, z = -2048.0 }, max = { x = 2048.0, z = -1024.0 } },
{ min = { x = 2048.0, z = -3072.0 }, max = { x = 3072.0, z = -2048.0 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { "routes" }

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,719 @@
{
"sceneId": 1,
"routes": [
{
"localId": 110200001,
"name": "Route_JumpTest1",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 1287.568,
"y": 330.0928,
"z": -1928.478
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
},
{
"pos": {
"x": 1287.568,
"y": 330.0928,
"z": -1925.49792
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true
}
]
},
{
"localId": 110200002,
"name": "Route_110200002",
"type": "OneWay",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 1356.323,
"y": 331.2886,
"z": -2032.21045
},
"waitTime": 0.0,
"speedLevel": 2,
"arriveRange": 2.0
},
{
"pos": {
"x": 1348.511,
"y": 330.811646,
"z": -2032.22339
},
"waitTime": 0.0,
"speedLevel": 2,
"arriveRange": 2.0
},
{
"pos": {
"x": 1345.46387,
"y": 330.766174,
"z": -2024.45435
},
"waitTime": 0.0,
"speedLevel": 2,
"arriveRange": 2.0
},
{
"pos": {
"x": 1350.66284,
"y": 331.3205,
"z": -2019.88928
},
"waitTime": 0.0,
"speedLevel": 2,
"arriveRange": 2.0
},
{
"pos": {
"x": 1357.46313,
"y": 331.148315,
"z": -2020.50647
},
"waitTime": 0.0,
"speedLevel": 2,
"arriveRange": 2.0
},
{
"pos": {
"x": 1360.274,
"y": 330.854462,
"z": -2026.52246
},
"waitTime": 0.0,
"speedLevel": 2,
"arriveRange": 2.0
},
{
"pos": {
"x": 1357.3739,
"y": 331.2368,
"z": -2031.364
},
"waitTime": 0.0,
"speedLevel": 2,
"arriveRange": 2.0
}
]
},
{
"localId": 110200003,
"name": "Platform_110200003",
"type": "OneWay",
"rotType": "ROT_ROUND",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 1257.69629,
"y": 313.474152,
"z": -1995.52124
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 341.655426,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 341.655426,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1256.70911,
"y": 313.474152,
"z": -1992.54407
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 341.655426,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 341.655426,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1256.39441,
"y": 313.474152,
"z": -1991.59485
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 301.304932,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 301.304932,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1253.3,
"y": 313.474152,
"z": -1989.71313
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 301.304932,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 301.304932,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1252.44556,
"y": 313.474152,
"z": -1989.19348
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 237.36235,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 237.36235,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1248.40015,
"y": 313.474152,
"z": -1991.78442
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 237.36235,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 237.36235,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1247.558,
"y": 313.474152,
"z": -1992.32373
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 322.128632,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 322.128632,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1244.22339,
"y": 313.474152,
"z": -1988.03589
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 322.128632,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 322.128632,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1243.60962,
"y": 313.474152,
"z": -1987.24658
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotRoundReachDir": {
"x": 354.246063,
"y": 352.855377,
"z": -2.68155329E-08
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 354.246063,
"y": 352.855377,
"z": -2.68155329E-08
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1243.16907,
"y": 313.831055,
"z": -1983.73218
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"rotRoundReachDir": {
"x": 354.246063,
"y": 352.855377,
"z": -2.68155329E-08
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 354.246063,
"y": 352.855377,
"z": -2.68155329E-08
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1243.04529,
"y": 313.9313,
"z": -1982.74487
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true,
"rotRoundReachDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"rotRoundWaitRounds": 0,
"reachStop": true
}
]
},
{
"localId": 110200004,
"name": "Platform_110200004",
"type": "Loop",
"rotType": "ROT_ROUND",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 1257.38123,
"y": 313.474152,
"z": -1995.67749
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 208.032227,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 208.032227,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1257.0824,
"y": 313.474152,
"z": -1996.23877
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 127.292244,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 127.292244,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1256.61243,
"y": 313.474152,
"z": -1997.12146
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 127.292244,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 127.292244,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1257.39319,
"y": 313.474152,
"z": -1997.71606
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 34.5097466,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 34.5097466,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1258.18872,
"y": 313.474152,
"z": -1998.3219
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 34.5097466,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 34.5097466,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1258.662,
"y": 313.474152,
"z": -1997.63354
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 334.63855,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 334.63855,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1259.22852,
"y": 313.474152,
"z": -1996.80957
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 334.63855,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 334.63855,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1259.07544,
"y": 313.474152,
"z": -1996.48669
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 265.735779,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 265.735779,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1258.64709,
"y": 313.474152,
"z": -1995.583
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 265.735779,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 265.735779,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1258.37842,
"y": 313.474152,
"z": -1995.60315
},
"waitTime": 0.0,
"targetVelocity": 1.0,
"rotRoundReachDir": {
"x": 0.0,
"y": 208.032227,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 208.032227,
"z": 0.0
},
"rotRoundWaitRounds": 0
}
]
},
{
"localId": 110200005,
"name": "Platform_110200005",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 1368.84534,
"y": 324.6969,
"z": -1983.05029
},
"waitTime": 2.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 1368.74414,
"y": 331.629,
"z": -1981.64612
},
"waitTime": 2.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 110200006,
"name": "Platform_110200006",
"type": "Loop",
"rotType": "ROT_NONE",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 1275.11621,
"y": 311.378,
"z": -1784.11536
},
"waitTime": 1.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 1259.92383,
"y": 311.780426,
"z": -1790.0
},
"waitTime": 1.0,
"targetVelocity": 2.0
},
{
"pos": {
"x": 1259.26355,
"y": 308.1071,
"z": -1775.14392
},
"waitTime": 1.0,
"targetVelocity": 2.0
}
]
},
{
"localId": 110200007,
"name": "Platform_110200007",
"type": "Reciprocate",
"rotType": "ROT_ROUND",
"rotAngleType": "ROT_ANGLE_Y",
"arriveRange": 2.0,
"points": [
{
"pos": {
"x": 1984.19153,
"y": 196.6549,
"z": -1303.639
},
"waitTime": 0.0,
"targetVelocity": 2.0,
"hasReachEvent": true,
"rotRoundReachDir": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 90.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1974.90991,
"y": 196.016129,
"z": -1298.37769
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true,
"rotRoundReachDir": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
},
{
"pos": {
"x": 1981.2782,
"y": 196.602539,
"z": -1285.93909
},
"waitTime": 0.0,
"targetVelocity": 3.0,
"hasReachEvent": true,
"rotRoundReachDir": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"rotRoundReachRounds": 0,
"rotRoundLeaveDir": {
"x": 0.0,
"y": 180.0,
"z": 0.0
},
"rotRoundWaitRounds": 0
}
]
}
]
}

View File

@@ -0,0 +1,285 @@
-- 所有的group
groups = {
{ id = 111101002, refresh_id = 1000, pos = { x = 2561.785, y = 212.148, z = -1290.859 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101003, refresh_id = 1, pos = { x = 2567.097, y = 214.235, z = -1325.518 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101006, pos = { x = 2980.317, y = 268.872, z = -1322.054 }, unload_when_disconnect = true, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101007, refresh_id = 1000, pos = { x = 2353.758, y = 251.150, z = -1302.403 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101008, refresh_id = 1, pos = { x = 2379.914, y = 291.613, z = -1605.595 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101009, refresh_id = 1, pos = { x = 2994.502, y = 268.270, z = -1324.059 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101010, refresh_id = 1, pos = { x = 2598.457, y = 214.286, z = -1327.004 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101011, pos = { x = 2998.490, y = 268.398, z = -1326.210 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101012, refresh_id = 1001, pos = { x = 2706.935, y = 284.442, z = -1417.537 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101013, refresh_id = 1, pos = { x = 2595.805, y = 212.447, z = -1413.767 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101014, pos = { x = 2654.816, y = 247.178, z = -1291.351 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101015, refresh_id = 1001, pos = { x = 2475.227, y = 218.834, z = -1354.585 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101016, refresh_id = 1, pos = { x = 2663.932, y = 233.737, z = -1092.403 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101017, refresh_id = 1, pos = { x = 2482.975, y = 218.734, z = -1334.814 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101018, pos = { x = 2671.922, y = 247.754, z = -1267.207 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101019, refresh_id = 1, pos = { x = 2547.023, y = 218.752, z = -1418.736 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101021, pos = { x = 2509.970, y = 213.428, z = -1325.103 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101028, refresh_id = 1, pos = { x = 2987.475, y = 265.589, z = -1339.957 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101030, refresh_id = 1, pos = { x = 2658.896, y = 269.054, z = -1563.710 }, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 4 } },
{ id = 111101031, pos = { x = 2664.336, y = 247.788, z = -1259.953 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101032, refresh_id = 1, pos = { x = 2455.510, y = 220.370, z = -1392.934 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101033, refresh_id = 1, pos = { x = 2682.147, y = 194.600, z = -1799.430 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101034, refresh_id = 99999, pos = { x = 2707.040, y = 193.415, z = -1813.662 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101035, refresh_id = 1, pos = { x = 2981.171, y = 263.392, z = -1352.924 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101036, refresh_id = 1, pos = { x = 2986.788, y = 263.243, z = -1363.538 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101037, refresh_id = 1002, pos = { x = 2293.596, y = 246.293, z = -1392.924 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101038, refresh_id = 1, pos = { x = 2326.518, y = 254.179, z = -1414.850 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101039, refresh_id = 99999, pos = { x = 2342.680, y = 253.848, z = -1419.465 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101040, pos = { x = 2307.477, y = 249.176, z = -1471.942 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101041, pos = { x = 2291.243, y = 247.935, z = -1467.799 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101042, refresh_id = 1001, pos = { x = 2276.773, y = 246.204, z = -1412.812 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101043, refresh_id = 999999, pos = { x = 2301.001, y = 252.687, z = -1435.421 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101044, pos = { x = 2357.592, y = 261.880, z = -1444.713 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101045, refresh_id = 1000, pos = { x = 2305.696, y = 251.326, z = -1426.717 }, unload_when_disconnect = true, is_replaceable = { value = true, version = 1, new_bin_only = true } },
{ id = 111101046, refresh_id = 999999, pos = { x = 2403.064, y = 250.327, z = -1413.727 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101047, refresh_id = 1, pos = { x = 2363.679, y = 254.553, z = -1429.763 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101048, refresh_id = 1, pos = { x = 2402.173, y = 249.007, z = -1404.459 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101049, refresh_id = 1, pos = { x = 2409.099, y = 250.765, z = -1412.150 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101050, refresh_id = 1, pos = { x = 2441.832, y = 293.987, z = -1610.778 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101051, refresh_id = 1, pos = { x = 2668.064, y = 194.789, z = -1687.290 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101052, refresh_id = 1, pos = { x = 2671.522, y = 264.516, z = -1399.486 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101053, pos = { x = 2523.296, y = 206.050, z = -1210.629 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101054, refresh_id = 1001, pos = { x = 2219.048, y = 234.230, z = -1287.429 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101055, pos = { x = 2589.882, y = 219.271, z = -1264.378 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101056, pos = { x = 2614.295, y = 220.146, z = -1299.372 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101057, pos = { x = 2553.579, y = 358.039, z = -1745.883 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101058, refresh_id = 99999, pos = { x = 2351.498, y = 283.701, z = -1738.976 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101059, pos = { x = 2805.322, y = 263.291, z = -1698.053 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101061, pos = { x = 2478.106, y = 325.268, z = -1676.014 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101062, refresh_id = 1001, pos = { x = 2454.602, y = 199.398, z = -1177.244 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101063, refresh_id = 1001, pos = { x = 2406.364, y = 203.038, z = -1155.525 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101064, refresh_id = 1001, pos = { x = 2366.664, y = 206.301, z = -1143.557 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101065, refresh_id = 1001, pos = { x = 2380.231, y = 205.130, z = -1140.150 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101066, refresh_id = 1, pos = { x = 2708.563, y = 194.855, z = -1669.415 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101067, refresh_id = 1, pos = { x = 2718.661, y = 195.525, z = -1673.023 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101068, refresh_id = 1001, pos = { x = 2279.947, y = 205.341, z = -1118.187 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101069, refresh_id = 1001, pos = { x = 2511.056, y = 202.801, z = -1108.761 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101070, refresh_id = 1001, pos = { x = 2452.571, y = 209.458, z = -1123.971 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101071, pos = { x = 2638.582, y = 380.893, z = -1728.175 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101072, refresh_id = 1001, pos = { x = 2503.949, y = 201.585, z = -1226.104 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101073, refresh_id = 1001, pos = { x = 2674.382, y = 270.306, z = -1556.556 }, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 4 } },
{ id = 111101074, refresh_id = 999999, pos = { x = 2480.926, y = 224.207, z = -1381.401 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101075, refresh_id = 1001, pos = { x = 2641.133, y = 253.107, z = -1681.643 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101076, pos = { x = 2785.062, y = 195.949, z = -1771.259 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101077, pos = { x = 2873.228, y = 259.349, z = -1806.974 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101078, refresh_id = 1000, pos = { x = 2545.698, y = 211.480, z = -1322.458 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101079, pos = { x = 2596.715, y = 211.428, z = -1381.875 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101080, refresh_id = 1001, pos = { x = 2497.957, y = 224.208, z = -1390.442 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101081, refresh_id = 1001, pos = { x = 2463.488, y = 219.615, z = -1365.548 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101082, pos = { x = 2477.702, y = 198.120, z = -1212.086 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101083, pos = { x = 2547.483, y = 209.748, z = -1235.845 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101084, refresh_id = 1, pos = { x = 2466.051, y = 222.514, z = -1324.395 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101085, refresh_id = 1, pos = { x = 2457.708, y = 221.213, z = -1331.120 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101086, refresh_id = 999999, pos = { x = 2704.144, y = 273.893, z = -1523.012 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101087, pos = { x = 2491.272, y = 219.297, z = -1370.709 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101088, pos = { x = 2677.279, y = 194.305, z = -1745.781 }, is_replaceable = { value = true, version = 0, new_bin_only = true }, business = { type = 4 } },
{ id = 111101089, refresh_id = 1, pos = { x = 2391.856, y = 281.246, z = -1564.746 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101090, refresh_id = 1, pos = { x = 2752.016, y = 197.005, z = -1696.653 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101091, refresh_id = 1, pos = { x = 2586.690, y = 214.956, z = -1403.960 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101092, refresh_id = 1001, pos = { x = 2664.241, y = 265.606, z = -1343.747 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101093, refresh_id = 1, pos = { x = 2493.379, y = 213.567, z = -1289.512 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101094, pos = { x = 2203.133, y = 213.806, z = -1482.519 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101095, pos = { x = 2199.351, y = 235.126, z = -1308.946 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101096, refresh_id = 1, pos = { x = 2779.223, y = 195.885, z = -1747.209 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101097, pos = { x = 2204.708, y = 228.588, z = -1215.709 }, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 4 } },
{ id = 111101098, refresh_id = 1, pos = { x = 2292.102, y = 217.930, z = -1150.572 }, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 4 } },
{ id = 111101099, refresh_id = 1, pos = { x = 2347.807, y = 283.898, z = -1733.332 }, is_replaceable = { value = false, version = 0, new_bin_only = false }, business = { type = 4 }, vision_type = 0 },
{ id = 111101100, refresh_id = 1, pos = { x = 2269.124, y = 227.128, z = -1197.907 }, is_replaceable = { value = false, version = 0, new_bin_only = false }, business = { type = 4 } },
{ id = 111101101, refresh_id = 1, pos = { x = 2517.771, y = 204.049, z = -1177.810 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101102, refresh_id = 1002, pos = { x = 2430.678, y = 206.784, z = -1274.043 }, is_replaceable = { value = true, version = 0, new_bin_only = true }, business = { type = 4 } },
{ id = 111101103, refresh_id = 1, pos = { x = 2606.231, y = 212.454, z = -1380.388 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101104, refresh_id = 1002, pos = { x = 2146.566, y = 238.159, z = -1530.525 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101105, refresh_id = 1, pos = { x = 2499.216, y = 202.400, z = -1075.963 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101106, pos = { x = 2635.084, y = 228.719, z = -1329.574 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101107, refresh_id = 1, pos = { x = 2997.531, y = 266.620, z = -1337.590 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101108, refresh_id = 800002, pos = { x = 2550.888, y = 204.687, z = -780.585 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101109, pos = { x = 2642.753, y = 230.489, z = -1356.947 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101110, pos = { x = 2950.788, y = 268.853, z = -1305.324 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101111, pos = { x = 2575.361, y = 213.140, z = -1379.116 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101112, refresh_id = 1, pos = { x = 2644.565, y = 248.645, z = -1294.608 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101113, pos = { x = 2510.333, y = 263.870, z = -1568.956 }, weathers = { 0 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101114, pos = { x = 2631.198, y = 250.570, z = -1251.626 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101115, refresh_id = 1, pos = { x = 2626.002, y = 218.603, z = -1373.918 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101116, pos = { x = 2641.920, y = 247.996, z = -1249.442 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101117, pos = { x = 2635.245, y = 249.925, z = -1238.774 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101118, pos = { x = 2617.089, y = 252.559, z = -1243.012 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101119, refresh_id = 99999, pos = { x = 2659.891, y = 248.545, z = -1230.550 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101120, refresh_id = 1, pos = { x = 2231.710, y = 235.305, z = -1309.119 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101121, refresh_id = 1, pos = { x = 2489.606, y = 221.074, z = -1319.167 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101122, pos = { x = 2561.241, y = 228.768, z = -1150.638 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101123, refresh_id = 1, pos = { x = 2743.558, y = 194.600, z = -1876.894 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101124, refresh_id = 1, pos = { x = 2555.900, y = 211.735, z = -1341.179 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101125, refresh_id = 99999, pos = { x = 2668.656, y = 193.415, z = -1808.048 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101126, pos = { x = 2641.592, y = 200.800, z = -1900.245 }, is_replaceable = { value = true, version = 0, new_bin_only = true }, business = { type = 4 } },
{ id = 111101127, pos = { x = 2552.632, y = 195.457, z = -1915.695 }, is_replaceable = { value = true, version = 0, new_bin_only = true }, business = { type = 4 } },
{ id = 111101128, pos = { x = 2292.343, y = 195.391, z = -1899.354 }, is_replaceable = { value = true, version = 0, new_bin_only = true }, business = { type = 4 } },
{ id = 111101129, refresh_id = 1001, pos = { x = 2682.352, y = 280.279, z = -1458.762 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101130, refresh_id = 1001, pos = { x = 2698.143, y = 280.462, z = -1473.979 }, dynamic_load = true, is_replaceable = { value = true, version = 0, new_bin_only = true }, business = { type = 2 } },
{ id = 111101131, pos = { x = 2187.739, y = 195.121, z = -1935.791 }, is_replaceable = { value = true, version = 0, new_bin_only = true }, business = { type = 4 } },
{ id = 111101132, refresh_id = 1, pos = { x = 2581.555, y = 254.104, z = -1642.636 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101133, refresh_id = 1, pos = { x = 2479.567, y = 268.879, z = -1482.423 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101134, pos = { x = 2130.595, y = 195.195, z = -1827.091 }, is_replaceable = { value = true, version = 0, new_bin_only = true }, business = { type = 4 } },
{ id = 111101135, refresh_id = 1, pos = { x = 2760.709, y = 259.629, z = -1365.419 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101136, refresh_id = 1, pos = { x = 2739.276, y = 195.699, z = -1693.734 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101137, refresh_id = 1, pos = { x = 2748.116, y = 197.387, z = -1684.255 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101138, pos = { x = 2703.325, y = 194.600, z = -1798.236 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101139, refresh_id = 1, pos = { x = 2583.630, y = 210.972, z = -1351.800 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101140, pos = { x = 2594.436, y = 223.719, z = -1356.899 }, weathers = { 0 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101141, refresh_id = 1, pos = { x = 2589.457, y = 211.626, z = -1305.345 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101142, pos = { x = 2368.237, y = 236.011, z = -1180.609 }, weathers = { 0 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101143, refresh_id = 1, pos = { x = 2550.547, y = 212.969, z = -1261.548 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101144, refresh_id = 1, pos = { x = 2930.560, y = 279.099, z = -1469.149 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101145, pos = { x = 2926.670, y = 272.629, z = -1246.873 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101146, refresh_id = 1, pos = { x = 2533.517, y = 356.032, z = -1777.125 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101147, refresh_id = 1, pos = { x = 2732.111, y = 194.600, z = -1702.847 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101148, refresh_id = 99999, pos = { x = 2620.015, y = 227.222, z = -1112.935 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101149, refresh_id = 1, pos = { x = 2693.938, y = 263.771, z = -1622.878 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101150, pos = { x = 2605.464, y = 237.835, z = -1194.352 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101151, pos = { x = 2638.648, y = 252.334, z = -1664.613 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101152, refresh_id = 1, pos = { x = 2892.325, y = 269.005, z = -1279.094 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101153, pos = { x = 2906.412, y = 269.238, z = -1302.778 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101154, pos = { x = 2907.678, y = 269.230, z = -1289.865 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101155, refresh_id = 1, pos = { x = 2335.504, y = 283.898, z = -1704.701 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101156, refresh_id = 1, pos = { x = 2564.986, y = 213.582, z = -1329.928 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101157, pos = { x = 2952.287, y = 269.042, z = -1310.954 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101158, refresh_id = 1, pos = { x = 2877.108, y = 269.233, z = -1269.148 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101159, refresh_id = 1, pos = { x = 2882.581, y = 269.976, z = -1298.664 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101160, pos = { x = 2922.066, y = 279.728, z = -1310.886 }, load_strategy = 1, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101161, refresh_id = 1, pos = { x = 2978.910, y = 270.068, z = -1279.085 }, load_strategy = 1, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101162, refresh_id = 1002, pos = { x = 2392.197, y = 305.091, z = -1662.899 }, dynamic_load = true, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 3 } },
{ id = 111101163, pos = { x = 2732.578, y = 270.986, z = -1168.503 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101164, refresh_id = 99999, pos = { x = 2711.141, y = 245.113, z = -1142.952 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101165, refresh_id = 1, pos = { x = 2922.043, y = 258.730, z = -1396.390 }, load_strategy = 1, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101166, refresh_id = 1, pos = { x = 2971.583, y = 261.045, z = -1349.947 }, load_strategy = 1, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101167, refresh_id = 1002, pos = { x = 3004.664, y = 334.941, z = -1087.014 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101168, refresh_id = 1001, pos = { x = 2619.967, y = 227.104, z = -1115.055 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101169, refresh_id = 1001, pos = { x = 2624.227, y = 227.204, z = -1116.010 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101170, refresh_id = 1, pos = { x = 2912.573, y = 271.672, z = -1253.016 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101171, refresh_id = 1, pos = { x = 2861.177, y = 270.716, z = -1252.103 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101172, refresh_id = 1001, pos = { x = 2450.086, y = 219.636, z = -1315.995 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101173, refresh_id = 1, pos = { x = 2509.564, y = 214.445, z = -1296.971 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101174, refresh_id = 1001, pos = { x = 2522.451, y = 215.008, z = -1289.214 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101175, refresh_id = 1, pos = { x = 2460.723, y = 289.145, z = -1536.975 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101176, refresh_id = 1, pos = { x = 2470.562, y = 292.081, z = -1537.140 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101178, pos = { x = 2988.332, y = 336.412, z = -1082.450 }, dynamic_load = true, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 4 } },
{ id = 111101179, refresh_id = 1, pos = { x = 2549.740, y = 220.963, z = -1470.021 }, dynamic_load = true, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 3 } },
{ id = 111101180, pos = { x = 2669.308, y = 265.717, z = -1363.175 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101181, refresh_id = 1, pos = { x = 2562.835, y = 202.400, z = -1049.645 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101183, refresh_id = 1, pos = { x = 2454.225, y = 296.360, z = -1569.744 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101184, refresh_id = 99999, pos = { x = 2623.005, y = 230.773, z = -1145.202 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101185, refresh_id = 1, pos = { x = 2949.189, y = 286.006, z = -1453.421 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101186, refresh_id = 1, pos = { x = 2563.256, y = 224.941, z = -1129.845 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101187, refresh_id = 1001, pos = { x = 2726.293, y = 252.881, z = -1270.872 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101188, refresh_id = 1, pos = { x = 2749.368, y = 258.611, z = -1293.322 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101189, refresh_id = 1002, pos = { x = 2768.592, y = 259.694, z = -1295.234 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101190, refresh_id = 1, pos = { x = 2744.093, y = 250.074, z = -1257.566 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101191, refresh_id = 1002, pos = { x = 2898.200, y = 269.879, z = -1307.522 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101192, refresh_id = 1, pos = { x = 2532.589, y = 214.243, z = -1113.991 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101193, refresh_id = 800002, pos = { x = 2510.880, y = 202.713, z = -1109.008 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101194, refresh_id = 1, pos = { x = 2590.449, y = 227.372, z = -1103.749 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101195, refresh_id = 1, pos = { x = 2264.360, y = 239.931, z = -1348.613 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101196, refresh_id = 800002, pos = { x = 2087.014, y = 202.757, z = -693.051 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101197, refresh_id = 800002, pos = { x = 2078.519, y = 202.679, z = -728.169 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101198, refresh_id = 800002, pos = { x = 2055.020, y = 202.400, z = -756.936 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101199, refresh_id = 800002, pos = { x = 2047.467, y = 206.012, z = -780.559 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101200, refresh_id = 800002, pos = { x = 2040.636, y = 206.061, z = -805.475 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101201, refresh_id = 800002, pos = { x = 2038.682, y = 206.061, z = -826.035 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101202, refresh_id = 800002, pos = { x = 2039.394, y = 206.061, z = -844.748 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101203, refresh_id = 800002, pos = { x = 2034.004, y = 206.061, z = -875.700 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101204, refresh_id = 800002, pos = { x = 2032.916, y = 206.061, z = -898.521 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101205, refresh_id = 800002, pos = { x = 2047.842, y = 206.061, z = -940.727 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101206, refresh_id = 800002, pos = { x = 2099.409, y = 206.061, z = -965.566 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101207, refresh_id = 800002, pos = { x = 2136.510, y = 206.061, z = -983.637 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101208, refresh_id = 800002, pos = { x = 2161.069, y = 206.061, z = -1019.945 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101209, refresh_id = 800002, pos = { x = 2216.304, y = 203.861, z = -1077.434 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101210, refresh_id = 800002, pos = { x = 2271.429, y = 204.664, z = -1075.741 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101211, refresh_id = 800002, pos = { x = 2297.971, y = 204.664, z = -1074.227 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101212, refresh_id = 800002, pos = { x = 2482.361, y = 207.589, z = -1113.654 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101213, pos = { x = 2907.037, y = 269.887, z = -1301.397 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101214, refresh_id = 800002, pos = { x = 2396.754, y = 202.400, z = -971.100 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101215, refresh_id = 800002, pos = { x = 2368.567, y = 202.400, z = -959.656 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101216, refresh_id = 800002, pos = { x = 2393.199, y = 202.400, z = -949.155 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101217, refresh_id = 1001, pos = { x = 2278.776, y = 275.555, z = -1768.804 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101218, pos = { x = 2140.875, y = 205.525, z = -1048.244 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101219, refresh_id = 1, pos = { x = 2334.037, y = 258.579, z = -1460.353 }, load_strategy = 1, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101220, refresh_id = 1, pos = { x = 2339.020, y = 257.986, z = -1470.412 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101221, refresh_id = 99999, pos = { x = 2887.838, y = 279.664, z = -1459.990 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101222, refresh_id = 1001, pos = { x = 2092.988, y = 209.369, z = -1282.281 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101223, refresh_id = 1, pos = { x = 2925.841, y = 269.873, z = -1292.788 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101224, refresh_id = 1, pos = { x = 2246.741, y = 208.360, z = -1124.777 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101225, refresh_id = 1, pos = { x = 2220.306, y = 204.195, z = -1089.949 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101226, refresh_id = 1001, pos = { x = 2180.299, y = 260.351, z = -1739.374 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101227, refresh_id = 1001, pos = { x = 2249.501, y = 263.309, z = -1680.824 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101228, refresh_id = 1, pos = { x = 2470.014, y = 329.636, z = -1744.398 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101229, refresh_id = 1, pos = { x = 2507.860, y = 342.025, z = -1745.837 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101230, refresh_id = 1, pos = { x = 2524.994, y = 345.024, z = -1718.463 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101231, refresh_id = 1, pos = { x = 2506.631, y = 341.680, z = -1662.296 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101232, refresh_id = 1001, pos = { x = 2413.674, y = 257.585, z = -1336.644 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101233, refresh_id = 1, pos = { x = 2695.386, y = 199.428, z = -1783.943 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101234, refresh_id = 1, pos = { x = 2311.231, y = 275.454, z = -1641.549 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101235, refresh_id = 1001, pos = { x = 2237.839, y = 244.120, z = -1578.526 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101236, pos = { x = 2906.368, y = 278.601, z = -1298.165 }, load_strategy = 1, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101237, refresh_id = 1, pos = { x = 2767.086, y = 272.719, z = -1503.436 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101238, refresh_id = 1002, pos = { x = 2377.573, y = 283.898, z = -1730.516 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101239, refresh_id = 1, pos = { x = 2804.710, y = 270.610, z = -1474.381 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101240, refresh_id = 1, pos = { x = 2739.048, y = 278.386, z = -1495.313 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101241, refresh_id = 1, pos = { x = 2768.170, y = 273.631, z = -1474.607 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101242, refresh_id = 1, pos = { x = 2502.661, y = 207.669, z = -1262.652 }, dynamic_load = true, is_replaceable = { value = false, version = 0, new_bin_only = true }, business = { type = 4 } },
{ id = 111101243, refresh_id = 999999, pos = { x = 2504.879, y = 336.530, z = -1707.075 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101244, refresh_id = 1002, pos = { x = 2386.903, y = 254.885, z = -1268.608 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101245, pos = { x = 2228.044, y = 244.120, z = -1585.571 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101246, refresh_id = 1002, pos = { x = 2352.384, y = 249.665, z = -1373.427 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101247, pos = { x = 2575.298, y = 216.407, z = -1221.009 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111101248, refresh_id = 1002, pos = { x = 2504.424, y = 209.394, z = -1270.734 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101249, refresh_id = 1, pos = { x = 2626.566, y = 256.325, z = -1707.111 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101250, pos = { x = 2519.193, y = 267.207, z = -1434.020 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101251, refresh_id = 1, pos = { x = 2508.732, y = 267.176, z = -1437.794 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101252, refresh_id = 1, pos = { x = 2518.474, y = 270.692, z = -1445.074 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101253, refresh_id = 1, pos = { x = 2199.839, y = 227.922, z = -1250.637 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101254, pos = { x = 2747.567, y = 269.539, z = -1466.063 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101255, refresh_id = 1, pos = { x = 2595.423, y = 317.532, z = -781.761 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101256, refresh_id = 1001, pos = { x = 2477.383, y = 324.638, z = -1672.160 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101257, refresh_id = 1001, pos = { x = 2769.192, y = 241.842, z = -1102.155 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101258, refresh_id = 800002, pos = { x = 2390.409, y = 207.325, z = -896.061 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101259, refresh_id = 800002, pos = { x = 2406.293, y = 204.687, z = -865.969 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101260, refresh_id = 1, pos = { x = 2493.964, y = 332.292, z = -1702.435 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101261, refresh_id = 1, pos = { x = 2563.247, y = 212.923, z = -1333.355 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101262, refresh_id = 1, pos = { x = 2563.480, y = 213.856, z = -1327.933 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101263, pos = { x = 2237.265, y = 244.120, z = -1578.453 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101264, pos = { x = 2190.268, y = 249.298, z = -1657.840 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101265, refresh_id = 1001, pos = { x = 2189.833, y = 249.344, z = -1658.495 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101266, pos = { x = 2195.757, y = 258.938, z = -1706.147 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101267, refresh_id = 1002, pos = { x = 2187.772, y = 249.700, z = -1663.919 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101268, refresh_id = 1001, pos = { x = 2237.066, y = 244.120, z = -1576.807 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101269, refresh_id = 1001, pos = { x = 2188.762, y = 253.633, z = -1676.243 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101270, refresh_id = 1002, pos = { x = 2182.846, y = 259.962, z = -1740.243 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101271, refresh_id = 1002, pos = { x = 2230.136, y = 263.626, z = -1714.271 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101272, refresh_id = 1002, pos = { x = 2247.422, y = 263.135, z = -1683.071 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101273, refresh_id = 1, pos = { x = 2277.146, y = 271.230, z = -1658.144 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101274, refresh_id = 1, pos = { x = 2289.879, y = 270.109, z = -1657.515 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101275, pos = { x = 2337.333, y = 283.898, z = -1711.289 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101276, pos = { x = 2309.478, y = 285.617, z = -1736.838 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101277, refresh_id = 1001, pos = { x = 2242.920, y = 244.120, z = -1579.594 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101278, refresh_id = 1001, pos = { x = 2201.161, y = 249.582, z = -1644.439 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101279, refresh_id = 1001, pos = { x = 2168.358, y = 259.674, z = -1749.439 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101280, pos = { x = 2252.814, y = 263.657, z = -1676.946 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101281, pos = { x = 2311.894, y = 275.432, z = -1642.034 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101282, pos = { x = 2377.407, y = 283.898, z = -1727.080 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101283, refresh_id = 1, pos = { x = 2534.032, y = 212.063, z = -1359.100 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101284, refresh_id = 1001, pos = { x = 2865.768, y = 275.902, z = -1564.885 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101285, refresh_id = 1, pos = { x = 2546.912, y = 211.494, z = -1298.326 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101286, refresh_id = 1, pos = { x = 2555.660, y = 212.087, z = -1296.248 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101287, refresh_id = 1002, pos = { x = 2182.961, y = 260.898, z = -1752.298 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101288, refresh_id = 1002, pos = { x = 2261.616, y = 264.371, z = -1669.771 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101289, refresh_id = 1001, pos = { x = 2263.664, y = 264.522, z = -1668.219 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101290, refresh_id = 1, pos = { x = 2322.017, y = 275.436, z = -1651.930 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101291, pos = { x = 2355.989, y = 283.898, z = -1733.120 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101292, refresh_id = 800002, pos = { x = 2515.647, y = 204.687, z = -789.522 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101293, refresh_id = 800002, pos = { x = 2531.158, y = 204.687, z = -760.128 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101294, refresh_id = 800002, pos = { x = 2498.573, y = 204.650, z = -570.392 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101295, refresh_id = 800002, pos = { x = 2473.781, y = 204.650, z = -574.038 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111101296, refresh_id = 800002, pos = { x = 2468.523, y = 204.650, z = -557.591 }, is_replaceable = { value = false, version = 0, new_bin_only = true } }
}

View File

@@ -0,0 +1,91 @@
-- 所有的group
groups = {
{ id = 111102001, refresh_id = 999999, pos = { x = 1508.456, y = 270.928, z = -1507.782 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102002, refresh_id = 1, pos = { x = 1551.319, y = 269.609, z = -1491.193 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102003, refresh_id = 1, pos = { x = 1325.420, y = 330.025, z = -1941.377 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102004, refresh_id = 1, pos = { x = 1275.905, y = 330.031, z = -1952.195 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111102005, refresh_id = 1, pos = { x = 1294.498, y = 330.098, z = -1965.489 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102006, refresh_id = 1, pos = { x = 1474.041, y = 270.586, z = -1523.555 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102007, refresh_id = 1, pos = { x = 1825.049, y = 194.600, z = -1584.011 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102008, refresh_id = 1, pos = { x = 1626.451, y = 244.702, z = -1624.465 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102009, refresh_id = 1, pos = { x = 1319.922, y = 330.013, z = -1957.726 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102010, refresh_id = 1, pos = { x = 1296.263, y = 330.012, z = -1926.000 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102011, pos = { x = 1564.591, y = 252.079, z = -1640.687 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102012, refresh_id = 1002, pos = { x = 1526.594, y = 271.591, z = -1520.555 }, force_clean_sub_entity = true, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102013, refresh_id = 1002, pos = { x = 1348.630, y = 330.932, z = -2029.647 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102014, pos = { x = 1269.448, y = 315.028, z = -2002.837 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102015, pos = { x = 1243.020, y = 313.474, z = -1982.709 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102016, refresh_id = 1, pos = { x = 1354.666, y = 331.783, z = -1999.568 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102017, refresh_id = 1001, pos = { x = 1433.496, y = 260.822, z = -1697.573 }, is_replaceable = { value = false, version = 0, new_bin_only = true }, vision_type = 11020002 },
{ id = 111102018, refresh_id = 1, pos = { x = 1376.791, y = 331.451, z = -2008.493 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102019, refresh_id = 1, pos = { x = 1500.363, y = 270.923, z = -1492.332 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102020, refresh_id = 1, pos = { x = 1524.830, y = 271.268, z = -1546.467 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102021, refresh_id = 1, pos = { x = 1313.119, y = 332.801, z = -2003.884 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102022, pos = { x = 1356.967, y = 331.211, z = -2057.156 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102023, refresh_id = 1, pos = { x = 1969.700, y = 197.304, z = -1317.998 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102024, refresh_id = 1000, pos = { x = 1250.115, y = 314.768, z = -2006.109 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102025, pos = { x = 1260.251, y = 314.895, z = -1993.201 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102026, pos = { x = 1902.190, y = 196.512, z = -1301.269 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102027, pos = { x = 1907.180, y = 199.096, z = -1297.651 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102028, pos = { x = 1956.564, y = 206.884, z = -1324.521 }, load_strategy = 1, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102029, refresh_id = 1, pos = { x = 1941.923, y = 194.240, z = -1329.486 }, load_strategy = 1, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102030, pos = { x = 1953.094, y = 198.236, z = -1349.805 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102031, refresh_id = 1, pos = { x = 1256.187, y = 312.313, z = -1309.115 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111102032, refresh_id = 1, pos = { x = 1374.800, y = 316.531, z = -1926.074 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102033, refresh_id = 999999, pos = { x = 1298.295, y = 270.647, z = -1587.114 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102034, refresh_id = 1, pos = { x = 1520.590, y = 280.652, z = -1753.507 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102035, refresh_id = 1, pos = { x = 1552.371, y = 252.214, z = -1655.538 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102036, refresh_id = 1, pos = { x = 1747.470, y = 194.600, z = -1572.172 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102037, refresh_id = 1, pos = { x = 1374.992, y = 320.870, z = -1334.577 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102038, refresh_id = 1, pos = { x = 1941.813, y = 194.600, z = -1678.950 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102039, refresh_id = 1001, pos = { x = 1247.714, y = 311.825, z = -1292.861 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102040, pos = { x = 1937.068, y = 196.522, z = -1212.700 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102042, refresh_id = 1, pos = { x = 1470.913, y = 270.809, z = -1776.342 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102043, refresh_id = 1002, pos = { x = 1915.565, y = 194.600, z = -1657.157 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102044, refresh_id = 1001, pos = { x = 1256.401, y = 330.027, z = -1888.699 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102045, refresh_id = 1002, pos = { x = 1263.510, y = 321.640, z = -1852.608 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102046, refresh_id = 1002, pos = { x = 1419.374, y = 269.182, z = -1764.172 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102047, refresh_id = 1, pos = { x = 1284.084, y = 330.133, z = -1985.417 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102048, refresh_id = 1, pos = { x = 1216.648, y = 312.397, z = -1295.334 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102049, refresh_id = 1, pos = { x = 1172.631, y = 296.546, z = -1589.491 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111102050, refresh_id = 1002, pos = { x = 1218.763, y = 254.878, z = -1515.120 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102051, refresh_id = 1, pos = { x = 1377.633, y = 324.436, z = -1991.458 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102052, refresh_id = 1, pos = { x = 1187.218, y = 294.641, z = -1450.980 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111102053, refresh_id = 1002, pos = { x = 1959.498, y = 194.600, z = -1753.686 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102054, refresh_id = 1002, pos = { x = 1704.400, y = 194.600, z = -1608.225 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102055, refresh_id = 1001, pos = { x = 1407.647, y = 303.590, z = -1286.705 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102056, refresh_id = 1002, pos = { x = 1605.275, y = 286.236, z = -1116.207 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102057, refresh_id = 1, pos = { x = 1211.419, y = 309.288, z = -1769.430 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111102058, refresh_id = 1001, pos = { x = 1267.787, y = 306.222, z = -1787.470 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102059, refresh_id = 1, pos = { x = 1997.679, y = 198.407, z = -1311.949 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111102060, refresh_id = 1001, pos = { x = 1297.203, y = 301.414, z = -1738.531 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102061, refresh_id = 1, pos = { x = 1604.333, y = 286.236, z = -1117.749 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102062, refresh_id = 1002, pos = { x = 1543.303, y = 257.734, z = -1700.605 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102063, refresh_id = 1, pos = { x = 1728.966, y = 213.720, z = -1370.700 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102064, refresh_id = 1, pos = { x = 1735.101, y = 214.164, z = -1380.777 }, is_replaceable = { value = false, version = 0, new_bin_only = true }, vision_type = 11020001, is_load_by_vision_type = true },
{ id = 111102066, refresh_id = 1, pos = { x = 1309.309, y = 304.858, z = -1795.474 }, is_replaceable = { value = false, version = 0, new_bin_only = true }, vision_type = 0 },
{ id = 111102069, refresh_id = 1000, pos = { x = 1426.406, y = 241.791, z = -1422.986 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102070, refresh_id = 1, pos = { x = 1216.266, y = 313.637, z = -1808.755 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102073, refresh_id = 1001, pos = { x = 1568.289, y = 269.393, z = -1487.653 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102074, refresh_id = 1, pos = { x = 1234.502, y = 324.213, z = -1918.259 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102078, refresh_id = 1, pos = { x = 2048.010, y = 219.678, z = -1685.007 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102079, pos = { x = 1422.000, y = 258.000, z = -1692.000 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102084, refresh_id = 1, pos = { x = 1159.540, y = 305.144, z = -1410.604 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111102085, refresh_id = 1001, pos = { x = 1560.185, y = 333.925, z = -2045.421 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102086, refresh_id = 1, pos = { x = 1260.152, y = 311.960, z = -1289.871 }, is_replaceable = { value = true, version = 0, new_bin_only = true } },
{ id = 111102088, refresh_id = 1002, pos = { x = 1807.915, y = 194.906, z = -1414.053 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102092, pos = { x = 1395.762, y = 276.598, z = -1440.193 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102093, refresh_id = 1, pos = { x = 1319.643, y = 274.142, z = -1726.876 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102095, pos = { x = 1983.142, y = 220.937, z = -1574.012 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102096, pos = { x = 1984.330, y = 215.578, z = -1571.636 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102097, pos = { x = 1979.272, y = 221.143, z = -1568.681 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102098, pos = { x = 1974.693, y = 221.436, z = -1569.548 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102099, pos = { x = 1975.944, y = 221.413, z = -1571.043 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102102, pos = { x = 1983.844, y = 220.903, z = -1568.377 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102103, refresh_id = 1, pos = { x = 1983.012, y = 221.055, z = -1558.376 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102104, pos = { x = 1988.293, y = 221.971, z = -1568.193 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102105, pos = { x = 1986.661, y = 221.862, z = -1568.671 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102792, refresh_id = 1002, pos = { x = 1561.548, y = 257.833, z = -1692.325 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102793, refresh_id = 1002, pos = { x = 1513.163, y = 262.489, z = -1712.336 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111102794, refresh_id = 1002, pos = { x = 1539.570, y = 256.071, z = -1686.642 }, is_replaceable = { value = false, version = 0, new_bin_only = true } }
}

View File

@@ -0,0 +1,5 @@
-- 所有的group
groups = {
{ id = 111103001, pos = { x = 2620.418, y = 194.600, z = -2590.043 }, is_replaceable = { value = false, version = 0, new_bin_only = true } },
{ id = 111103002, pos = { x = 2469.741, y = 194.600, z = -2727.545 }, is_replaceable = { value = false, version = 0, new_bin_only = true } }
}

View File

@@ -0,0 +1,180 @@
[
{
"bottom": 250.0,
"isUseHeightBorder": true,
"points": [
{
"x": 1315.27625,
"y": -1575.1593
},
{
"x": 1329.65979,
"y": -1587.60352
},
{
"x": 1333.51123,
"y": -1602.83337
},
{
"x": 1347.53735,
"y": -1622.614
},
{
"x": 1348.92029,
"y": -1637.34766
},
{
"x": 1343.00415,
"y": -1639.66931
},
{
"x": 1332.78491,
"y": -1641.21985
},
{
"x": 1315.86438,
"y": -1640.56262
},
{
"x": 1299.05383,
"y": -1630.1106
},
{
"x": 1272.99768,
"y": -1636.49463
},
{
"x": 1260.84668,
"y": -1628.9314
},
{
"x": 1240.728,
"y": -1639.39478
},
{
"x": 1215.98279,
"y": -1628.9491
},
{
"x": 1198.70691,
"y": -1598.46631
},
{
"x": 1199.5166,
"y": -1581.714
},
{
"x": 1213.51135,
"y": -1572.18079
},
{
"x": 1233.21265,
"y": -1564.20435
},
{
"x": 1252.47144,
"y": -1569.16077
},
{
"x": 1275.13037,
"y": -1562.9917
},
{
"x": 1300.98853,
"y": -1562.02258
}
],
"polygonId": 1001,
"polygonType": "DeathZone",
"top": 300.0
},
{
"bottom": 250.0,
"isUseHeightBorder": true,
"points": [
{
"x": 1260.33374,
"y": -1486.39429
},
{
"x": 1274.71729,
"y": -1498.8385
},
{
"x": 1278.56873,
"y": -1514.06836
},
{
"x": 1292.59485,
"y": -1533.849
},
{
"x": 1293.97778,
"y": -1548.58264
},
{
"x": 1288.06165,
"y": -1550.9043
},
{
"x": 1277.84241,
"y": -1552.45483
},
{
"x": 1260.92188,
"y": -1551.79761
},
{
"x": 1244.11133,
"y": -1541.34558
},
{
"x": 1218.05518,
"y": -1547.72961
},
{
"x": 1205.90417,
"y": -1540.16638
},
{
"x": 1185.78552,
"y": -1550.62976
},
{
"x": 1161.04028,
"y": -1540.18408
},
{
"x": 1143.7644,
"y": -1509.70129
},
{
"x": 1144.5741,
"y": -1492.949
},
{
"x": 1158.56885,
"y": -1483.41577
},
{
"x": 1178.27014,
"y": -1475.43933
},
{
"x": 1197.52893,
"y": -1480.39575
},
{
"x": 1220.18787,
"y": -1474.22668
},
{
"x": 1246.046,
"y": -1473.25757
}
],
"polygonId": 1002,
"polygonType": "DeathZone",
"top": 300.0
}
]

View File

@@ -0,0 +1,4 @@
dummy_points = {
["Racing_111101016_StartPos"] = { pos = { x = 2514.341, y = 204.231, z = -1190.679 }, rot = { x = 0.000, y = 0.000, z = 0.000 } },
["WQ72160_Player"] = { pos = { x = 2564.929, y = 228.948, z = -1152.088 }, rot = { x = 0.000, y = 124.277, z = 0.000 } }
}

View File

@@ -0,0 +1,80 @@
-- 基础信息
local base_info = {
group_id = 111101002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 2001, monster_id = 28020310, pos = { x = 2556.476, y = 213.266, z = -1280.403 }, rot = { x = 0.000, y = 111.363, z = 0.000 }, level = 1, drop_tag = "走兽", disableWander = true, pose_id = 1001 },
{ config_id = 2002, monster_id = 28020311, pos = { x = 2567.364, y = 211.694, z = -1294.567 }, rot = { x = 0.000, y = 359.833, z = 0.000 }, level = 1, drop_tag = "走兽", disableWander = true, pose_id = 1001 },
{ config_id = 2003, monster_id = 28030502, pos = { x = 2563.479, y = 211.480, z = -1298.544 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", disableWander = true },
{ config_id = 2004, monster_id = 28020312, pos = { x = 2553.927, y = 211.611, z = -1297.755 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "走兽", disableWander = true },
{ config_id = 2006, monster_id = 28030501, pos = { x = 2558.710, y = 211.480, z = -1304.298 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "鸟类", disableWander = true },
{ config_id = 2007, monster_id = 28020310, pos = { x = 2560.595, y = 213.542, z = -1279.152 }, rot = { x = 0.000, y = 166.423, z = 0.000 }, level = 1, drop_tag = "走兽", disableWander = true, pose_id = 1001 },
{ config_id = 2008, monster_id = 28020310, pos = { x = 2568.062, y = 212.886, z = -1284.748 }, rot = { x = 0.000, y = 166.423, z = 0.000 }, level = 1, drop_tag = "走兽", disableWander = true, pose_id = 1001 },
{ config_id = 2009, monster_id = 28020310, pos = { x = 2572.530, y = 213.313, z = -1280.998 }, rot = { x = 0.000, y = 111.363, z = 0.000 }, level = 1, drop_tag = "走兽", disableWander = true, pose_id = 1001 },
{ config_id = 2010, monster_id = 28020310, pos = { x = 2555.966, y = 213.120, z = -1290.630 }, rot = { x = 0.000, y = 111.363, z = 0.000 }, level = 1, drop_tag = "走兽", disableWander = true, pose_id = 1001 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 2001, 2002, 2003, 2004, 2006, 2007, 2008, 2009, 2010 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,80 @@
-- 基础信息
local base_info = {
group_id = 111101003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3001, gadget_id = 70800236, pos = { x = 2582.186, y = 213.748, z = -1289.399 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3002, gadget_id = 70800232, pos = { x = 2564.951, y = 214.452, z = -1324.515 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3003, gadget_id = 70800235, pos = { x = 2552.434, y = 212.521, z = -1294.544 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3004, gadget_id = 70800236, pos = { x = 2565.142, y = 212.394, z = -1289.458 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3005, gadget_id = 70800236, pos = { x = 2577.515, y = 213.187, z = -1279.810 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3007, gadget_id = 70800238, pos = { x = 2562.089, y = 213.326, z = -1282.877 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3008, gadget_id = 70800235, pos = { x = 2574.947, y = 212.748, z = -1285.292 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 3009, gadget_id = 70800235, pos = { x = 2559.656, y = 212.759, z = -1287.373 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 3006, shape = RegionShape.SPHERE, radius = 100, pos = { x = 2573.943, y = 212.767, z = -1284.215 }, ability_group_list = { "ActivityAbility_V3_1_Avatar_Hunting" } }
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 3001, 3002, 3003, 3004, 3005, 3007, 3008, 3009 },
regions = { 3006 },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 111101006
}
-- Trigger变量
local defs = {
interactOptionID = 24,
gadget_fireTorch = 6002,
gadget_fireBase1 = 6001,
gadget_fire1 = 6003,
gadget_fireBase2 = 6005,
gadget_fire2 = 6007,
gadget_fireBase3 = 0,
gadget_fire3 = 0,
gadget_fireBase4 = 0,
gadget_fire4 = 0
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 6001, gadget_id = 70330279, pos = { x = 2984.001, y = 267.937, z = -1319.135 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
{ config_id = 6002, gadget_id = 70330278, pos = { x = 2976.506, y = 266.311, z = -1327.099 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_NORMAL },
-- 1号火种
{ config_id = 6003, gadget_id = 70330257, pos = { x = 2984.742, y = 268.365, z = -1315.177 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 110100127 },
{ config_id = 6004, gadget_id = 70330256, pos = { x = 2972.360, y = 266.615, z = -1334.636 }, rot = { x = 0.000, y = 76.634, z = 0.000 }, level = 1 },
{ config_id = 6005, gadget_id = 70330279, pos = { x = 2990.066, y = 267.372, z = -1329.140 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 2号火种
{ config_id = 6007, gadget_id = 70330257, pos = { x = 2991.232, y = 267.372, z = -1328.438 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 110100129 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 6001, 6002, 6004, 6005 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "BlackBoxPlay/DesertEnergySpark"

View File

@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 111101007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 7001, monster_id = 28020315, pos = { x = 2343.412, y = 249.819, z = -1307.216 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "走兽", disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 7001 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,78 @@
-- 基础信息
local base_info = {
group_id = 111101008
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 8001, gadget_id = 70330243, pos = { x = 2381.025, y = 294.848, z = -1612.835 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8002, gadget_id = 70330239, pos = { x = 2376.622, y = 294.612, z = -1613.496 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8003, gadget_id = 70330237, pos = { x = 2371.262, y = 294.136, z = -1614.157 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8004, gadget_id = 70330236, pos = { x = 2365.235, y = 294.212, z = -1615.333 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8005, gadget_id = 70330235, pos = { x = 2357.217, y = 293.207, z = -1618.115 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8006, gadget_id = 70330234, pos = { x = 2358.801, y = 290.157, z = -1608.205 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 8007, gadget_id = 70310205, pos = { x = 2369.682, y = 292.099, z = -1605.781 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, vision_level = VisionLevelType.VISION_LEVEL_NORMAL }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 8001, 8002, 8003, 8004, 8005, 8006, 8007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,79 @@
-- 基础信息
local base_info = {
group_id = 111101009
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9001, gadget_id = 70330292, pos = { x = 2993.282, y = 268.435, z = -1321.241 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9002, gadget_id = 70330299, pos = { x = 2994.526, y = 268.361, z = -1323.047 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 9003, gadget_id = 70330293, pos = { x = 2993.509, y = 268.089, z = -1325.301 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
{ config_id = 1, name = "waterQuest_Event", value = 0, no_refresh = false },
{ config_id = 2, name = "ActivateQuest1_Event", value = 0, no_refresh = false },
{ config_id = 3, name = "ActivateQuest2_Event", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 9001, 9002, 9003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V3_1/DesertRoseFlower_Quest"

View File

@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 111101010
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 10001, gadget_id = 50013506, pos = { x = 2599.158, y = 215.121, z = -1327.197 }, rot = { x = 79.781, 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 = { 10001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,106 @@
-- 基础信息
local base_info = {
group_id = 111101011
}
-- Trigger变量
local defs = {
pointarray_ID = 110100048,
pointArrayNum = 4
}
-- DEFS_MISCS
--添加的按钮id
defs.optionID=24
--发射器id
defs.shooterGadgetID=11001
--发射激光的点
defs.shootPoints={1,2}
--停留点List
defs.stopPoints = {1,2,4}
--停留点对应底座
defs.shooterBaseList={
[1]=11003,
[2]=11004,
[4]=11005,
}
--短暂停留的点
defs.shortStayPointList={2}
--短暂停留的时间
defs.stayTime={3}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11001, gadget_id = 70330280, pos = { x = 3001.269, y = 270.000, z = -1328.127 }, rot = { x = 0.000, y = 41.698, z = 0.000 }, level = 1, start_route = false, persistent = true, is_use_point_array = true },
{ config_id = 11002, gadget_id = 70330281, pos = { x = 3000.000, y = 270.000, z = -1322.052 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 11003, gadget_id = 70330300, pos = { x = 2999.589, y = 268.422, z = -1326.969 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 11004, gadget_id = 70330300, pos = { x = 2996.576, y = 268.079, z = -1327.866 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 11005, gadget_id = 70330300, pos = { x = 3001.552, y = 268.356, z = -1331.691 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 11006, gadget_id = 70330282, pos = { x = 2999.556, y = 268.654, z = -1324.066 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, server_global_value_config = { ["SGV_ChiWangLevelRequire"]= 2} }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
{ config_id = 1, name = "curMoveIndex", value = 1, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 11001, 11002, 11003, 11004, 11005, 11006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
require "V3_1/ChiWangShooter"

View File

@@ -0,0 +1,209 @@
-- 基础信息
local base_info = {
group_id = 111101012
}
-- Trigger变量
local defs = {
duration = 30,
kill_sum = 5,
group_id = 111101012
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 12001, monster_id = 21010101, pos = { x = 2701.651, y = 283.792, z = -1415.921 }, rot = { x = 358.591, y = 359.913, z = 7.039 }, level = 1, drop_id = 1000100 },
{ config_id = 12002, monster_id = 21010101, pos = { x = 2705.744, y = 284.114, z = -1424.291 }, rot = { x = 358.591, y = 359.913, z = 7.039 }, level = 1, drop_id = 1000100 },
{ config_id = 12003, monster_id = 21011001, pos = { x = 2699.589, y = 283.376, z = -1421.705 }, rot = { x = 358.591, y = 359.913, z = 7.039 }, level = 1, drop_id = 1000100 },
{ config_id = 12004, monster_id = 21010101, pos = { x = 2711.601, y = 285.115, z = -1413.547 }, rot = { x = 6.184, y = 228.019, z = 356.350 }, level = 1, drop_id = 1000100 },
{ config_id = 12005, monster_id = 21010101, pos = { x = 2710.171, y = 284.700, z = -1421.944 }, rot = { x = 6.184, y = 228.019, z = 356.350 }, level = 1, drop_id = 1000100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12006, gadget_id = 70900008, pos = { x = 2707.103, y = 284.467, z = -1417.332 }, rot = { x = 358.591, y = 359.913, z = 7.039 }, level = 1, persistent = true },
{ config_id = 12007, gadget_id = 70300118, pos = { x = 2707.096, y = 284.442, z = -1417.340 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 12008, gadget_id = 70330011, pos = { x = 2708.329, y = 284.687, z = -1417.179 }, rot = { x = 358.591, y = 359.913, z = 7.039 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1012009, name = "GADGET_STATE_CHANGE_12009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_12009", action = "action_EVENT_GADGET_STATE_CHANGE_12009", trigger_count = 0 },
{ config_id = 1012010, name = "CHALLENGE_SUCCESS_12010", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "180", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_12010", trigger_count = 0 },
{ config_id = 1012011, name = "CHALLENGE_FAIL_12011", event = EventType.EVENT_CHALLENGE_FAIL, source = "180", condition = "", action = "action_EVENT_CHALLENGE_FAIL_12011", trigger_count = 0 },
{ config_id = 1012012, name = "GADGET_STATE_CHANGE_12012", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_12012", action = "action_EVENT_GADGET_STATE_CHANGE_12012", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "hasFinished", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 12006, 12007, 12008 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_12009", "CHALLENGE_SUCCESS_12010", "CHALLENGE_FAIL_12011", "GADGET_STATE_CHANGE_12012" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 12001, 12002, 12003, 12004, 12005 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_12009(context, evt)
if 12006 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
-- 判断变量"hasFinished"为0
if ScriptLib.GetGroupVariableValue(context, "hasFinished") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_12009(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101012, 2)
-- 13号挑战,duration内击杀kill_sum的怪物
if 0 ~= ScriptLib.ActiveChallenge(context, 180, 13, defs.duration, defs.group_id, defs.kill_sum, 0) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_12010(context, evt)
-- 将configid为 12008 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 12007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 针对当前group内变量名为 "hasFinished" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "hasFinished", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_12011(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101012, 2)
-- 将configid为 12006 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12006, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 12008 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12008, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为12007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 12007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_12012(context, evt)
if 12006 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
-- 判断变量"hasFinished"为0
if ScriptLib.GetGroupVariableValue(context, "hasFinished") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_12012(context, evt)
-- 将configid为 12008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 12007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 111101013
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 13001, gadget_id = 70350205, pos = { x = 2600.303, y = 212.857, z = -1413.133 }, rot = { x = 0.000, y = 204.296, 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 = { },
gadgets = { 13001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,256 @@
-- 基础信息
local base_info = {
group_id = 111101014
}
-- Trigger变量
local defs = {
duration = 30,
group_id = 111101014
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 14001, gadget_id = 70211111, pos = { x = 2654.818, y = 248.883, z = -1300.145 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 26, drop_tag = "解谜中级蒙德", isOneoff = true, persistent = true },
{ config_id = 14002, gadget_id = 70350083, pos = { x = 2654.895, y = 247.178, z = -1291.294 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 14003, gadget_id = 70360001, pos = { x = 2654.895, y = 248.143, z = -1291.300 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 14004, gadget_id = 70310013, pos = { x = 2654.808, y = 249.194, z = -1295.989 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1014005, name = "CHALLENGE_SUCCESS_14005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "666", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_14005" },
{ config_id = 1014006, name = "CHALLENGE_FAIL_14006", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_14006", trigger_count = 0 },
{ config_id = 1014007, name = "GADGET_STATE_CHANGE_14007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_14007", action = "action_EVENT_GADGET_STATE_CHANGE_14007", trigger_count = 0 },
{ config_id = 1014008, name = "GADGET_STATE_CHANGE_14008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_14008", action = "", tag = "202" },
{ config_id = 1014009, name = "GADGET_CREATE_14009", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_14009", action = "action_EVENT_GADGET_CREATE_14009", trigger_count = 0 },
{ config_id = 1014010, name = "SELECT_OPTION_14010", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_14010", action = "action_EVENT_SELECT_OPTION_14010", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
io_type = 1,
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suite_disk = {
[1] = {
gadgets = {
{ config_id = 14002, state = 0 },
{ config_id = 14003, state = 0 }
},
monsters = {
},
regions = { },
triggers = { "CHALLENGE_SUCCESS_14005", "CHALLENGE_FAIL_14006", "GADGET_STATE_CHANGE_14007", "GADGET_STATE_CHANGE_14008", "GADGET_CREATE_14009", "SELECT_OPTION_14010" },
npcs = { },
variables = {
}
},
[2] = {
gadgets = {
{ config_id = 14001, state = 0 },
{ config_id = 14004, state = 0 }
},
monsters = {
},
regions = { },
triggers = { },
npcs = { },
variables = {
}
},
[3] = {
gadgets = {
{ config_id = 14002, state = 202 }
},
monsters = {
},
regions = { },
triggers = { },
npcs = { },
variables = {
}
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_14005(context, evt)
-- 将configid为 144002 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 14002, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 杀死指定group内的gadget和monster,移除其它东西
ScriptLib.RemoveExtraFlowSuite(context, 111101014, 2, FlowSuiteOperatePolicy.DEFAULT)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3002, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- group调整group进度,只对非randSuite有效
ScriptLib.SetFlowSuite(context,111101014,3)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_14006(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraFlowSuite(context, 111101014, 2, FlowSuiteOperatePolicy.DEFAULT )
-- 将configid为 144002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 14002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为144003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 14003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3002, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_14007(context, evt)
if 14002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_14007(context, evt)
-- 202号挑战,duration内开启宝箱
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 202, defs.duration, 7, 202, 1) then
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraFlowSuite(context, defs.group_id, 2, FlowSuiteOperatePolicy.DEFAULT)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3002, 1, 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_14008(context, evt)
if 14001 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_14009(context, evt)
if 14003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_14009(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101014, 14003, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_14010(context, evt)
-- 判断是gadgetid 14003 option_id 177
if 14003 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_14010(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 14003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 14002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 14002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,410 @@
-- 基础信息
local base_info = {
group_id = 111101015
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 15001, monster_id = 21010201, pos = { x = 2462.207, y = 221.336, z = -1337.834 }, rot = { x = 8.183, y = 142.919, z = 0.502 }, level = 1, drop_id = 1000100 },
{ config_id = 15002, monster_id = 21010201, pos = { x = 2459.141, y = 220.677, z = -1340.161 }, rot = { x = 8.183, y = 142.919, z = 0.502 }, level = 1, drop_id = 1000100 },
{ config_id = 15003, monster_id = 21010201, pos = { x = 2458.133, y = 220.459, z = -1340.925 }, rot = { x = 8.183, y = 142.919, z = 0.502 }, level = 1, drop_id = 1000100 },
{ config_id = 15004, monster_id = 21010201, pos = { x = 2457.636, y = 219.884, z = -1346.057 }, rot = { x = 8.183, y = 142.919, z = 0.502 }, level = 1, drop_id = 1000100 },
{ config_id = 15005, monster_id = 21010201, pos = { x = 2457.636, y = 219.884, z = -1346.057 }, rot = { x = 8.183, y = 142.919, z = 0.502 }, level = 1, drop_id = 1000100 },
{ config_id = 15006, monster_id = 21010201, pos = { x = 2457.636, y = 219.884, z = -1346.057 }, rot = { x = 8.183, y = 142.919, z = 0.502 }, level = 1, drop_id = 1000100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 15007, gadget_id = 70300118, pos = { x = 2467.972, y = 220.144, z = -1353.968 }, rot = { x = 2.082, y = 100.326, z = 358.561 }, level = 1 },
{ config_id = 15008, gadget_id = 70350023, pos = { x = 2467.972, y = 218.922, z = -1353.968 }, rot = { x = 2.082, y = 100.326, z = 358.561 }, level = 1 },
{ config_id = 15019, gadget_id = 70350035, pos = { x = 2467.972, y = 218.922, z = -1353.968 }, rot = { x = 2.082, y = 100.326, z = 358.561 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1015009, name = "ANY_MONSTER_DIE_15009", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_15009", action = "action_EVENT_ANY_MONSTER_DIE_15009", trigger_count = 0 },
{ config_id = 1015010, name = "ANY_MONSTER_DIE_15010", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_15010", action = "action_EVENT_ANY_MONSTER_DIE_15010", trigger_count = 0 },
{ config_id = 1015011, name = "GADGET_CREATE_15011", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_15011", action = "action_EVENT_GADGET_CREATE_15011", trigger_count = 0 },
{ config_id = 1015012, name = "ANY_MONSTER_DIE_15012", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "", action = "action_EVENT_ANY_MONSTER_DIE_15012", trigger_count = 0 },
{ config_id = 1015013, name = "ANY_MONSTER_DIE_15013", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_15013", action = "action_EVENT_ANY_MONSTER_DIE_15013", trigger_count = 0 },
{ config_id = 1015014, name = "SELECT_OPTION_15014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_15014", action = "action_EVENT_SELECT_OPTION_15014", trigger_count = 0 },
{ config_id = 1015015, name = "CHALLENGE_SUCCESS_15015", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "666", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_15015", trigger_count = 0 },
{ config_id = 1015016, name = "CHALLENGE_FAIL_15016", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_15016", trigger_count = 0 },
{ config_id = 1015017, name = "ANY_MONSTER_LIVE_15017", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_15017", action = "action_EVENT_ANY_MONSTER_LIVE_15017", trigger_count = 0 },
{ config_id = 1015018, name = "VARIABLE_CHANGE_15018", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_15018", action = "action_EVENT_VARIABLE_CHANGE_15018", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "deadMonster", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 15007, 15008 },
regions = { },
triggers = { "GADGET_CREATE_15011", "ANY_MONSTER_DIE_15012", "SELECT_OPTION_15014", "CHALLENGE_SUCCESS_15015", "CHALLENGE_FAIL_15016", "VARIABLE_CHANGE_15018" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 15001 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_15009", "ANY_MONSTER_LIVE_15017" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 15002, 15003 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_15010" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { 15004, 15005, 15006 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_15013" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_15009(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_15009(context, evt)
-- play_type含义1·代表开始播放 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=2475, y=218, z=-1354}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_soundplay")
return -1
end
-- 调用提示id为 400002 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101015, 2)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 111101015, 3)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_15010(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_15010(context, evt)
-- play_type含义1·代表开始播放 2·代表停止播放
-- 在指定位置播放或停止音效资源
local pos = {x=2475, y=218, z=-1354}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "LevelHornSound001", play_type= 1, is_broadcast = false }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_soundplay")
return -1
end
-- 调用提示id为 400003 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101015, 3)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 111101015, 4)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_15011(context, evt)
if 15008 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_15011(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101015, 15008, {2902}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_15012(context, evt)
-- 针对当前group内变量名为 "deadMonster" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "deadMonster", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_15013(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_15013(context, evt)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101015, 4)
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_15014(context, evt)
-- 判断是gadgetid 15008 option_id 2902
if 15008 ~= evt.param1 then
return false
end
if 2902 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_15014(context, evt)
-- 将configid为 15008 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 15008, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 15007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101015, 2)
-- 删除指定group 111101015 指定config15008物件身上指定option2902
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 111101015, 15008, 2902) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_15015(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101015, 2)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101015, 3)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101015, 4)
-- 将configid为 15008 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 15008, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 15019 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 15007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_15016(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 15019 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 15008 的物件更改为状态 GadgetState.GearAction2
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 15008, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将本组内变量名为 "deadMonster" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "deadMonster", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 创建id为15007的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 15007 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101015, 2)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101015, 3)
-- 删除suite4的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101015, 4)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101015, 15008, {2902}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_15017(context, evt)
if 15001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_15017(context, evt)
-- 创建id为15019的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 15019 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 创建编号为666该挑战的识别id),挑战内容为12的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 12, 30, 111101015, 15019, 90) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 调用提示id为 400001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 400001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_15018(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"deadMonster"为6
if ScriptLib.GetGroupVariableValue(context, "deadMonster") ~= 6 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_15018(context, evt)
-- 终止识别id为666的挑战并判定成功
ScriptLib.StopChallenge(context, 666, 1)
return 0
end

View File

@@ -0,0 +1,116 @@
-- 基础信息
local base_info = {
group_id = 111101016
}
-- Trigger变量
local defs = {
group_ID = 111101016,
gadget_fundation01 = 16001,
gadget_hand01 = 16003,
gadget_fundation02 = 16002,
gadget_hand02 = 16004,
gadget_fundation03 = 0,
gadget_hand03 = 0,
gadget_fundation04 = 0,
gadget_hand04 = 0,
gadget_fundation05 = 0,
gadget_hand05 = 0,
minDiscrapancy = 15
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 16001, gadget_id = 70950084, pos = { x = 2665.409, y = 233.746, z = -1094.059 }, rot = { x = 0.000, y = 290.000, z = 0.000 }, level = 1 },
{ config_id = 16002, gadget_id = 70950084, pos = { x = 2653.757, y = 232.813, z = -1098.403 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16003, gadget_id = 70950085, pos = { x = 2665.409, y = 234.447, z = -1094.059 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 16004, gadget_id = 70950085, pos = { x = 2653.757, y = 233.541, z = -1098.403 }, rot = { x = 0.000, y = 90.000, z = 0.000 }, level = 1 },
{ config_id = 16006, gadget_id = 70211111, pos = { x = 2663.691, y = 234.604, z = -1101.027 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 26, drop_tag = "解谜中级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1016005, name = "VARIABLE_CHANGE_16005", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_16005", action = "" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 16001, 16002, 16003, 16004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 16006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_16005(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"successed"为1
if ScriptLib.GetGroupVariableValue(context, "successed") ~= 1 then
return false
end
return true
end
require "BlackBoxPlay/MagneticGear"

View File

@@ -0,0 +1,142 @@
-- 基础信息
local base_info = {
group_id = 111101017
}
-- Trigger变量
local defs = {
maxRouteCount = 3
}
-- DEFS_MISCS
routeInfo = {route_1 = {1},route_2 = {2},route_3 = {3}}
function MovePlatform(context)
ScriptLib.PrintLog("Hit platform to move")
local index = ScriptLib.GetGroupVariableValue(context,"route")
ScriptLib.PrintLog("Hit platform to move : get index = ".. index)
local route = "route_" ..index
ScriptLib.PrintLog("Hit platform to move : get key = ".. route)
ScriptLib.SetPlatformPointArray(context, 17002, 110100010, routeInfo[route], { route_type = 0 })
ScriptLib.PrintLog("Hit platform to move : start platform")
index = index + 1
if index > defs.maxRouteCount then
index = 1
end
ScriptLib.SetGroupVariableValue(context,"route",index)
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 17002, gadget_id = 70950081, pos = { x = 2478.369, y = 218.804, z = -1340.456 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 水泡逻辑
{ config_id = 1017003, name = "AVATAR_NEAR_PLATFORM_17003", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_17003", action = "action_EVENT_AVATAR_NEAR_PLATFORM_17003", trigger_count = 0 },
-- 初始化
{ config_id = 1017008, name = "GROUP_LOAD_17008", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_17008", trigger_count = 0 },
{ config_id = 1017009, name = "PLATFORM_REACH_POINT_17009", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "17002", condition = "", action = "action_EVENT_PLATFORM_REACH_POINT_17009", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "route", value = 1, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 17002 },
regions = { },
triggers = { "AVATAR_NEAR_PLATFORM_17003", "GROUP_LOAD_17008", "PLATFORM_REACH_POINT_17009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_17003(context, evt)
if 17002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_17003(context, evt)
ScriptLib.SetGadgetStateByConfigId(context, 17002, GadgetState.GearStart)
MovePlatform(context)
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_17008(context, evt)
MovePlatform(context)
return 0
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_17009(context, evt)
ScriptLib.StopPlatform(context, 17002)
ScriptLib.SetGadgetStateByConfigId(context, 17002, GadgetState.Default)
local route = ScriptLib.GetGroupVariableValue(context,"route")
if route == defs.maxRouteCount then
end
return 0
end

View File

@@ -0,0 +1,171 @@
-- 基础信息
local base_info = {
group_id = 111101018
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 18001, monster_id = 20011001, pos = { x = 2671.809, y = 247.525, z = -1265.268 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 18002, monster_id = 20011001, pos = { x = 2673.309, y = 247.868, z = -1267.068 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 18003, monster_id = 20011001, pos = { x = 2670.209, y = 247.838, z = -1268.469 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18004, gadget_id = 70211102, pos = { x = 2671.829, y = 247.765, z = -1267.391 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 26, drop_tag = "解谜低级蒙德", state = GadgetState.ChestTrap, isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 18005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2671.932, y = 248.042, z = -1267.249 } }
}
-- 触发器
triggers = {
{ config_id = 1018005, name = "ENTER_REGION_18005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_18005", action = "action_EVENT_ENTER_REGION_18005" },
{ config_id = 1018006, name = "ANY_MONSTER_DIE_18006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_18006", action = "action_EVENT_ANY_MONSTER_DIE_18006" },
{ config_id = 1018007, name = "GADGET_STATE_CHANGE_18007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_18007", action = "action_EVENT_GADGET_STATE_CHANGE_18007", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
io_type = 1,
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suite_disk = {
[1] = {
gadgets = {
{ config_id = 18004, state = 103 }
},
monsters = {
},
regions = { 18005 },
triggers = { "ENTER_REGION_18005", "ANY_MONSTER_DIE_18006", "GADGET_STATE_CHANGE_18007" },
npcs = { },
variables = {
}
},
[2] = {
gadgets = {
{ config_id = 18004, state = 101 }
},
monsters = {
{ config_id = 18001 },
{ config_id = 18002 },
{ config_id = 18003 }
},
regions = { },
triggers = { "ANY_MONSTER_DIE_18006" },
npcs = { },
variables = {
}
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_18005(context, evt)
if evt.param1 ~= 18005 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_18005(context, evt)
-- 添加某个flowSuite里的要素如果当前与目标suite属性不一样会纠正为目标属性同时触发相应Trigger
ScriptLib.AddExtraFlowSuite(context, 111101018, 2, FlowSuiteOperatePolicy.COMPLETE)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1002, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_18006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_18006(context, evt)
-- 将configid为 18004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 18004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1002, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_18007(context, evt)
if 18004 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_18007(context, evt)
-- 调用提示id为 1110028 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1110028) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,188 @@
-- 基础信息
local base_info = {
group_id = 111101019
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 19001, gadget_id = 70900039, pos = { x = 2542.263, y = 219.065, z = -1421.310 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 19002, gadget_id = 70900236, pos = { x = 2540.764, y = 218.928, z = -1418.327 }, rot = { x = 2.683, y = 0.042, z = 1.790 }, level = 1 },
{ config_id = 19003, gadget_id = 70900236, pos = { x = 2538.938, y = 218.960, z = -1420.181 }, rot = { x = 2.683, y = 0.042, z = 1.790 }, level = 1 },
{ config_id = 19004, gadget_id = 70900236, pos = { x = 2539.482, y = 219.079, z = -1423.283 }, rot = { x = 2.683, y = 0.042, z = 1.790 }, level = 1 },
{ config_id = 19005, gadget_id = 70900236, pos = { x = 2541.024, y = 219.117, z = -1424.464 }, rot = { x = 2.683, y = 0.042, z = 1.790 }, level = 1 },
{ config_id = 19006, gadget_id = 70900236, pos = { x = 2542.675, y = 219.101, z = -1424.805 }, rot = { x = 2.683, y = 0.042, z = 1.790 }, level = 1 },
{ config_id = 19007, gadget_id = 70900236, pos = { x = 2544.212, y = 219.055, z = -1423.961 }, rot = { x = 2.683, y = 0.042, z = 1.790 }, level = 1 },
{ config_id = 19008, gadget_id = 70900236, pos = { x = 2544.926, y = 219.044, z = -1422.025 }, rot = { x = 2.683, y = 0.042, z = 1.790 }, level = 1 },
{ config_id = 19009, gadget_id = 70900236, pos = { x = 2544.490, y = 219.024, z = -1419.981 }, rot = { x = 2.683, y = 0.042, z = 1.790 }, level = 1 },
{ config_id = 19010, gadget_id = 70900236, pos = { x = 2542.868, y = 218.988, z = -1418.390 }, rot = { x = 2.683, y = 0.042, z = 1.790 }, level = 1 },
{ config_id = 19011, gadget_id = 70900236, pos = { x = 2539.637, y = 218.920, z = -1418.919 }, rot = { x = 2.683, y = 0.042, z = 1.790 }, level = 1 },
{ config_id = 19012, gadget_id = 70900236, pos = { x = 2538.803, y = 219.001, z = -1421.558 }, rot = { x = 2.683, y = 0.042, z = 1.790 }, level = 1 },
{ config_id = 19013, gadget_id = 70900236, pos = { x = 2539.957, y = 222.112, z = -1425.237 }, rot = { x = 2.683, y = 0.042, z = 1.790 }, level = 1 },
{ config_id = 19017, gadget_id = 70900039, pos = { x = 2542.257, y = 219.044, z = -1421.294 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1019014, name = "GADGET_STATE_CHANGE_19014", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_19014", action = "action_EVENT_GADGET_STATE_CHANGE_19014", trigger_count = 0 },
{ config_id = 1019015, name = "ANY_GADGET_DIE_19015", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_19015", action = "action_EVENT_ANY_GADGET_DIE_19015" },
{ config_id = 1019016, name = "TIMER_EVENT_19016", event = EventType.EVENT_TIMER_EVENT, source = "COIN", condition = "condition_EVENT_TIMER_EVENT_19016", action = "action_EVENT_TIMER_EVENT_19016", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 19001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_19014", "ANY_GADGET_DIE_19015", "TIMER_EVENT_19016" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 19002, 19003, 19004, 19005, 19006, 19007, 19008, 19009, 19010, 19011, 19012, 19013 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { 19017 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_19014(context, evt)
if 19001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_19014(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101019, 2)
-- 延迟9秒后,向groupId为111101019的对象,请求一次调用,并将string参数"COIN" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 111101019, "COIN", 9) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 针对当前group内变量名为 "start" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "start", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_19015(context, evt)
-- 判断变量"start"为1
if ScriptLib.GetGroupVariableValue(context, "start") ~= 1 then
return false
end
-- 判断指定group组剩余gadget数量是否是1
if ScriptLib.CheckRemainGadgetCountByGroupId(context, {group_id = 111101019}) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_19015(context, evt)
-- 调用提示id为 20010102 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 20010102) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_19016(context, evt)
-- 判断变量"start"为1
if ScriptLib.GetGroupVariableValue(context, "start") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_19016(context, evt)
-- 变量"start"赋值为0
ScriptLib.SetGroupVariableValue(context, "start", 0)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101019, 2)
-- 将configid为 19001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 19001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,103 @@
-- 基础信息
local base_info = {
group_id = 111101021
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 21001, gadget_id = 70211112, pos = { x = 2509.937, y = 213.427, z = -1325.133 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 21002, gadget_id = 70380002, pos = { x = 2511.785, y = 215.710, z = -1328.139 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, route_id = 110100009, persistent = true },
{ config_id = 21003, gadget_id = 70380002, pos = { x = 2509.698, y = 215.693, z = -1328.298 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, route_id = 110100010, persistent = true },
{ config_id = 21004, gadget_id = 70380002, pos = { x = 2507.452, y = 215.593, z = -1328.299 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, route_id = 110100011, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1021005, name = "ANY_GADGET_DIE_21005", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_21005", action = "action_EVENT_ANY_GADGET_DIE_21005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 21001, 21002, 21003, 21004 },
regions = { },
triggers = { "ANY_GADGET_DIE_21005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_21005(context, evt)
-- 判断指定group组剩余gadget数量是否是1
if ScriptLib.CheckRemainGadgetCountByGroupId(context, {group_id = 111101021}) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_21005(context, evt)
-- 将configid为 21001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 21001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1011, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end

View File

@@ -0,0 +1,98 @@
-- 基础信息
local base_info = {
group_id = 111101028
}
-- Trigger变量
local defs = {
option_id = 24,
pointarray_ID = 110100049
}
-- DEFS_MISCS
--方尖碑configID
defs.gadget_1
= 28001
defs.gadget_2
= 28002
defs.gadget_3
= 28003
--方尖碑初始旋转角
defs.rotation_1
= 120
defs.rotation_2
= 0
defs.rotation_3
= 240
--方尖碑旋转影响的configID表
defs.gadget_connect1={}
defs.gadget_connect2={28001,28003}
defs.gadget_connect3={}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 28001, gadget_id = 70330302, pos = { x = 2988.137, y = 266.107, z = -1336.769 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 28002, gadget_id = 70330302, pos = { x = 2988.141, y = 265.650, z = -1339.875 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 28003, gadget_id = 70330302, pos = { x = 2988.206, y = 265.218, z = -1342.824 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, is_use_point_array = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 28001, 28002, 28003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================

View File

@@ -0,0 +1,110 @@
-- 基础信息
local base_info = {
group_id = 111101030
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 30001, gadget_id = 70220039, pos = { x = 2659.053, y = 269.025, z = -1564.406 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 30004, gadget_id = 70220008, pos = { x = 2657.737, y = 268.991, z = -1563.790 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 30002, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2659.023, y = 269.164, z = -1564.306 } }
}
-- 触发器
triggers = {
{ config_id = 1030002, name = "ENTER_REGION_30002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_30002", action = "action_EVENT_ENTER_REGION_30002" },
{ config_id = 1030003, name = "CHALLENGE_FAIL_30003", event = EventType.EVENT_CHALLENGE_FAIL, source = "710", condition = "", action = "action_EVENT_CHALLENGE_FAIL_30003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 30001, 30004 },
regions = { 30002 },
triggers = { "ENTER_REGION_30002", "CHALLENGE_FAIL_30003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_30002(context, evt)
if evt.param1 ~= 30002 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_30002(context, evt)
-- 创建编号为710该挑战的识别id),挑战内容为232的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 710, 232, 111101073, 1, 0, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_30003(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 111101030, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end

View File

@@ -0,0 +1,273 @@
-- 基础信息
local base_info = {
group_id = 111101031
}
-- Trigger变量
local defs = {
duration = 30,
group_id = 111101031,
gadget_sum = 2
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 31001, gadget_id = 70220005, pos = { x = 2664.337, y = 249.493, z = -1268.747 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 31002, gadget_id = 70350084, pos = { x = 2664.415, y = 247.788, z = -1259.896 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 31003, gadget_id = 70211111, pos = { x = 2661.560, y = 247.563, z = -1260.265 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 26, drop_tag = "解谜中级蒙德", isOneoff = true, persistent = true },
{ config_id = 31004, gadget_id = 70220005, pos = { x = 2661.474, y = 249.493, z = -1268.747 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 31005, gadget_id = 70360001, pos = { x = 2664.424, y = 248.752, z = -1259.884 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1031006, name = "CHALLENGE_SUCCESS_31006", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "56", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_31006" },
{ config_id = 1031007, name = "CHALLENGE_FAIL_31007", event = EventType.EVENT_CHALLENGE_FAIL, source = "56", condition = "", action = "action_EVENT_CHALLENGE_FAIL_31007", trigger_count = 0 },
{ config_id = 1031008, name = "GADGET_STATE_CHANGE_31008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_31008", action = "action_EVENT_GADGET_STATE_CHANGE_31008", trigger_count = 0 },
{ config_id = 1031009, name = "ANY_GADGET_DIE_31009", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "", action = "", trigger_count = 0, tag = "201" },
{ config_id = 1031010, name = "GADGET_CREATE_31010", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_31010", action = "action_EVENT_GADGET_CREATE_31010", trigger_count = 0 },
{ config_id = 1031011, name = "SELECT_OPTION_31011", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_31011", action = "action_EVENT_SELECT_OPTION_31011", trigger_count = 0 },
{ config_id = 1031012, name = "ANY_GADGET_DIE_31012", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_31012", action = "action_EVENT_ANY_GADGET_DIE_31012", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "gadget_start", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
io_type = 1,
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suite_disk = {
[1] = {
gadgets = {
{ config_id = 31002, state = 0 },
{ config_id = 31005, state = 0 }
},
monsters = {
},
regions = { },
triggers = { "CHALLENGE_SUCCESS_31006", "CHALLENGE_FAIL_31007", "GADGET_STATE_CHANGE_31008", "ANY_GADGET_DIE_31009", "GADGET_CREATE_31010", "SELECT_OPTION_31011", "ANY_GADGET_DIE_31012" },
npcs = { },
variables = {
{ config_id = 1, name = "gadget_start", value = 0, no_refresh = true }
}
},
[2] = {
gadgets = {
{ config_id = 31001, state = 0 },
{ config_id = 31004, state = 0 }
},
monsters = {
},
regions = { },
triggers = { },
npcs = { },
variables = {
{ config_id = 1, name = "gadget_start", value = 0, no_refresh = true }
}
},
[3] = {
gadgets = {
{ config_id = 31002, state = 202 },
{ config_id = 31003, state = 0 }
},
monsters = {
},
regions = { },
triggers = { },
npcs = { },
variables = {
{ config_id = 1, name = "gadget_start", value = 0, no_refresh = true }
}
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_31006(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 31005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将指定flowGroup的进度和要素属性都改为目标suite缺的创建多的移除
ScriptLib.GoToFlowSuite(context, 111101031, 3)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3003, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_31007(context, evt)
-- 将configid为 31002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 杀死flowGroup的某个flowSuite会触发物件和怪物死亡
ScriptLib.KillExtraFlowSuite(context, 111101031, 2, FlowSuiteOperatePolicy.DEFAULT)
-- 创建id为31005的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 31005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3003, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_31008(context, evt)
if 31002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_31008(context, evt)
-- 201号挑战,duration内破坏炸药桶
if 0 ~= ScriptLib.ActiveChallenge(context, 56, 201, defs.duration, 2, 201, defs.gadget_sum) then
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraFlowSuite(context, defs.group_id, 2, FlowSuiteOperatePolicy.DEFAULT)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3003, 1, 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_31010(context, evt)
if 31005 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_31010(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101031, 31005, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_31011(context, evt)
-- 判断是gadgetid 31005 option_id 177
if 31005 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_31011(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 31005 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 31002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 31002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_31012(context, evt)
if 31001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_31012(context, evt)
-- 调用提示id为 1105002 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1105002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,153 @@
-- 基础信息
local base_info = {
group_id = 111101032
}
-- Trigger变量
local defs = {
routeID = 110100011
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 32001, gadget_id = 70950083, pos = { x = 2456.274, y = 247.093, z = -1398.350 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 32006, gadget_id = 70310012, pos = { x = 2449.780, y = 250.311, z = -1392.031 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 32007, gadget_id = 70310012, pos = { x = 2443.768, y = 251.852, z = -1380.734 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
-- 瀑布开启
{ config_id = 32002, shape = RegionShape.SPHERE, radius = 3, pos = { x = 2449.700, y = 250.706, z = -1392.683 } },
-- 瀑布关闭
{ config_id = 32003, shape = RegionShape.SPHERE, radius = 3, pos = { x = 2443.786, y = 252.284, z = -1380.440 } }
}
-- 触发器
triggers = {
-- 瀑布开启
{ config_id = 1032002, name = "ENTER_REGION_32002", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_32002", action = "action_EVENT_ENTER_REGION_32002", trigger_count = 0 },
-- 瀑布关闭
{ config_id = 1032003, name = "ENTER_REGION_32003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_32003", action = "action_EVENT_ENTER_REGION_32003", trigger_count = 0 },
{ config_id = 1032004, name = "PLATFORM_REACH_POINT_32004", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "32001", condition = "", action = "action_EVENT_PLATFORM_REACH_POINT_32004", trigger_count = 0 },
{ config_id = 1032005, name = "GROUP_LOAD_32005", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_32005", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "isStartMoving", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 32001, 32006, 32007 },
regions = { 32002, 32003 },
triggers = { "ENTER_REGION_32002", "ENTER_REGION_32003", "PLATFORM_REACH_POINT_32004", "GROUP_LOAD_32005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_32002(context, evt)
if evt.param1 ~= 32002 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_32002(context, evt)
-- 将configid为 32001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 32001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
ScriptLib.SetPlatformPointArray(context, 32001, defs.routeID, {2}, { route_type = 0 })
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_32003(context, evt)
if evt.param1 ~= 32003 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_32003(context, evt)
-- 将configid为 32001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 32001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
ScriptLib.SetPlatformPointArray(context, 32001, defs.routeID, {1}, { route_type = 0 })
return 0
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_32004(context, evt)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 32001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_32005(context, evt)
ScriptLib.SetPlatformPointArray(context, 32001, defs.routeID, {1}, { route_type = 0 })
return 0
end

View File

@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 111101033
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 33001, gadget_id = 70950087, pos = { x = 2683.075, y = 194.600, z = -1798.817 }, rot = { x = 0.000, y = 172.456, z = 0.000 }, level = 1 },
{ config_id = 33002, gadget_id = 70950087, pos = { x = 2679.400, y = 194.600, z = -1798.840 }, rot = { x = 0.000, y = 119.476, 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 = { 33001, 33002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,177 @@
-- 基础信息
local base_info = {
group_id = 111101034
}
-- Trigger变量
local defs = {
maxPathNode = 6,
pointarray_route = 110100026,
gadget_bubble = 34002,
group_id = 111101034,
gadget_reward = 34001
}
-- DEFS_MISCS
function MovePlatform(context)
ScriptLib.PrintLog("platform to move")
local pathnodeindex = ScriptLib.GetGroupVariableValue(context, "currentPathNode") + 1
if pathnodeindex > defs.maxPathNode then
pathnodeindex = defs.maxPathNode
end
ScriptLib.SetPlatformPointArray(context, defs.gadget_bubble, defs.pointarray_route, {pathnodeindex}, { route_type = 0 })
ScriptLib.PrintLog("platform to move : start platform")
return 0
end
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 34001, gadget_id = 70210101, pos = { x = 2752.856, y = 194.600, z = -1902.653 }, rot = { x = 0.000, y = 235.625, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1, isOneoff = true, persistent = true },
{ config_id = 34002, gadget_id = 70950081, pos = { x = 2700.452, y = 194.600, z = -1809.702 }, rot = { x = 0.000, y = 235.625, z = 0.000 }, level = 1, route_id = 110100055, start_route = false, is_use_point_array = true }
}
-- 区域
regions = {
-- 首次接近气泡
{ config_id = 34007, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2700.452, y = 194.600, z = -1809.702 } }
}
-- 触发器
triggers = {
-- 判定气泡到达终点
{ config_id = 1034003, name = "PLATFORM_REACH_POINT_34003", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_34003", action = "action_EVENT_PLATFORM_REACH_POINT_34003", trigger_count = 0 },
-- 后续每次接近气泡
{ config_id = 1034006, name = "AVATAR_NEAR_PLATFORM_34006", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_34006", action = "action_EVENT_AVATAR_NEAR_PLATFORM_34006", trigger_count = 0 },
-- 首次接近气泡
{ config_id = 1034007, name = "ENTER_REGION_34007", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_34007", action = "action_EVENT_ENTER_REGION_34007", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "currentPathNode", value = 0, no_refresh = false },
{ config_id = 2, name = "isReachGoal", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 34002 },
regions = { 34007 },
triggers = { "PLATFORM_REACH_POINT_34003", "AVATAR_NEAR_PLATFORM_34006", "ENTER_REGION_34007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 34001 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_34003(context, evt)
if defs.gadget_bubble ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_34003(context, evt)
ScriptLib.SetGroupVariableValue(context, "currentPathNode", evt.param3)
ScriptLib.StopPlatform(context, defs.gadget_bubble)
if evt.param3 == defs.maxPathNode then
--ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_bubble})
--ScriptLib.CreateGadget(context, { config_id = defs.gadget_reward })
--ScriptLib.GoToGroupSuite(context,defs.group_id,2)
ScriptLib.SetGroupVariableValue(context, "isReachGoal", 1)
end
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_bubble, GadgetState.Default)
return 0
end
-- 触发条件
function condition_EVENT_AVATAR_NEAR_PLATFORM_34006(context, evt)
if defs.gadget_bubble ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_AVATAR_NEAR_PLATFORM_34006(context, evt)
if ScriptLib.GetGroupVariableValue(context,"isReachGoal") == 1 then
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_bubble, GadgetState.GearStart)
ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_bubble})
ScriptLib.CreateGadget(context, { config_id = defs.gadget_reward })
ScriptLib.GoToGroupSuite(context,defs.group_id,2)
else
ScriptLib.SetGadgetStateByConfigId(context, defs.gadget_bubble, GadgetState.GearStart)
MovePlatform(context)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_34007(context, evt)
if evt.param1 ~= 34007 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_34007(context, evt)
return 0
end

View File

@@ -0,0 +1,105 @@
-- 基础信息
local base_info = {
group_id = 111101035
}
-- Trigger变量
local defs = {
pointarray_ID = 110100049
}
-- DEFS_MISCS
--旋转的时间间隔
defs.RotateTime = 5
--方尖碑configID
defs.gadget_1
= 35001
defs.gadget_2
= 35002
defs.gadget_3
= 35003
--方尖碑初始旋转角
defs.rotation_1
= 120
defs.rotation_2
= 0
defs.rotation_3
= 240
--重力压板对应的控制的方尖碑
defs.boardControlList={
[35004]={35001,35002},
[35005]={35002},
[35006]={35002,35003},
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 35001, gadget_id = 70330302, pos = { x = 2981.833, y = 263.910, z = -1349.736 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 35002, gadget_id = 70330302, pos = { x = 2981.837, y = 263.453, z = -1352.842 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 35003, gadget_id = 70330302, pos = { x = 2981.902, y = 263.021, z = -1355.791 }, rot = { x = 0.000, y = 270.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 35004, gadget_id = 70330304, pos = { x = 2978.914, y = 263.594, z = -1349.786 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35005, gadget_id = 70330304, pos = { x = 2978.836, y = 263.184, z = -1352.805 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 35006, gadget_id = 70330304, pos = { x = 2978.700, y = 262.798, z = -1355.677 }, 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 = { 35001, 35002, 35003, 35004, 35005, 35006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================

View File

@@ -0,0 +1,134 @@
-- 基础信息
local base_info = {
group_id = 111101036
}
-- Trigger变量
local defs = {
elevatorOptionID = 24,
gadget_elevatorID = 36001,
finalMovePoints = {1,2,3,4,5}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 36001, gadget_id = 70330316, pos = { x = 2985.933, y = 263.500, z = -1365.095 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1036003, name = "VARIABLE_CHANGE_36003", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_36003", action = "action_EVENT_VARIABLE_CHANGE_36003", trigger_count = 0 },
{ config_id = 1036004, name = "VARIABLE_CHANGE_36004", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_36004", action = "action_EVENT_VARIABLE_CHANGE_36004", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "pointarray_ID", value = 110100050, no_refresh = false },
{ config_id = 2, name = "CurMovePoint", value = 1, no_refresh = false },
{ config_id = 3, name = "MovePoint1", value = 1, no_refresh = false },
{ config_id = 4, name = "MovePoint2", value = 2, no_refresh = false },
{ config_id = 5, name = "IsBlockMoveMode", value = 0, no_refresh = false },
{ config_id = 6, name = "IsFinalMove", value = 0, no_refresh = false },
{ config_id = 7, name = "moveState", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 36001 },
regions = { },
triggers = { "VARIABLE_CHANGE_36003", "VARIABLE_CHANGE_36004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_36003(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
if evt.source_name ~= "moveState"then return false end
-- 判断变量"moveState"为1
if ScriptLib.GetGroupVariableValueByGroup(context, "moveState", 111101036) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_36003(context, evt)
SetElevator(context,110100058,1)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_36004(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == evt.param2 then return false end
if evt.source_name ~= "moveState"then return false end
-- 判断变量"moveState"为2
if ScriptLib.GetGroupVariableValueByGroup(context, "moveState", 111101036) ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_36004(context, evt)
SetElevator_finalMove(context,110100059,1)
return 0
end
require "V3_1/DeshretElevator"

View File

@@ -0,0 +1,164 @@
-- 基础信息
local base_info = {
group_id = 111101037
}
-- Trigger变量
local defs = {
duration = 30,
kill_sum = 2,
group_id = 111101037
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 37001, monster_id = 21020101, pos = { x = 2296.940, y = 246.060, z = -1386.964 }, rot = { x = 0.000, y = 205.960, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒" },
{ config_id = 37007, monster_id = 21020101, pos = { x = 2290.704, y = 245.076, z = -1386.965 }, rot = { x = 0.000, y = 143.450, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 37002, gadget_id = 70900008, pos = { x = 2293.754, y = 246.303, z = -1392.736 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 37003, gadget_id = 70211111, pos = { x = 2293.455, y = 245.586, z = -1388.336 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1037004, name = "GADGET_STATE_CHANGE_37004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_37004", action = "action_EVENT_GADGET_STATE_CHANGE_37004" },
{ config_id = 1037005, name = "CHALLENGE_SUCCESS_37005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "180", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_37005" },
{ config_id = 1037006, name = "CHALLENGE_FAIL_37006", event = EventType.EVENT_CHALLENGE_FAIL, source = "180", condition = "", action = "action_EVENT_CHALLENGE_FAIL_37006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 37002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_37004", "CHALLENGE_SUCCESS_37005", "CHALLENGE_FAIL_37006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 37001, 37007 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_37004(context, evt)
if 37002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_37004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101037, 2)
-- 180号挑战,duration内击杀kill_sum的怪物
if 0 ~= ScriptLib.ActiveChallenge(context, 180, 180, defs.duration, defs.group_id, defs.kill_sum, 0) then
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 1, 1) then
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_37005(context, evt)
-- 创建id为37003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 37003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_37006(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101037, 2)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 111101037, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将configid为 37002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 37002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end

View File

@@ -0,0 +1,313 @@
-- 基础信息
local base_info = {
group_id = 111101038
}
-- Trigger变量
local defs = {
challenge_1_duration = 50,
challenge_2_duration = 40,
challenge_3_duration = 30,
group_id = 111101038,
father_quest = 21016,
region = 62013,
gadget_chest_1 = 38002,
gadget_chest_2 = 38003,
gadget_chest_3 = 38004,
challenge_id_no_record = 184,
challenge_id_have_record = 168,
source_2 = "2101602",
source_4 = "2101604",
source_6 = "2101606",
source_8 = "2101608"
}
-- DEFS_MISCS
defs.quest_1_id = defs.father_quest.."02"
defs.quest_2_id = defs.father_quest.."04"
defs.quest_3_id = defs.father_quest.."06"
defs.quest_4_id = defs.father_quest.."08"
defs.quest_1_success = defs.group_id.."0101"
defs.quest_1_fail = defs.group_id.."0102"
defs.quest_2_success = defs.group_id.."0201"
defs.quest_2_fail = defs.group_id.."0202"
defs.quest_3_success = defs.group_id.."0301"
defs.quest_3_fail = defs.group_id.."0302"
defs.quest_4_success = defs.group_id.."0401"
defs.quest_4_fail = defs.group_id.."0402"
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
{ config_id = 38009, npc_id = 20036, pos = { x = 2382.719, y = 256.432, z = -1346.967 }, rot = { x = 0.000, y = 184.800, z = 0.000 } }
}
-- 装置
gadgets = {
{ config_id = 38001, gadget_id = 70690001, pos = { x = 2383.946, y = 255.238, z = -1331.777 }, rot = { x = 0.000, y = 183.100, z = 0.000 }, level = 1 },
{ config_id = 38002, gadget_id = 70211101, pos = { x = 2381.120, y = 256.164, z = -1344.767 }, rot = { x = 0.000, y = 352.300, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", showcutscene = true, isOneoff = true, persistent = true },
{ config_id = 38003, gadget_id = 70211111, pos = { x = 2382.920, y = 256.610, z = -1344.567 }, rot = { x = 0.000, y = 352.300, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", showcutscene = true, isOneoff = true, persistent = true },
{ config_id = 38004, gadget_id = 70211121, pos = { x = 2385.020, y = 256.649, z = -1344.267 }, rot = { x = 0.000, y = 352.300, z = 0.000 }, level = 1, drop_tag = "解谜高级蒙德", showcutscene = true, isOneoff = true, persistent = true },
{ config_id = 38005, gadget_id = 70690006, pos = { x = 2384.364, y = 246.381, z = -1327.077 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 38006, gadget_id = 70220011, pos = { x = 2383.320, y = 246.611, z = -1325.133 }, rot = { x = 0.000, y = 139.600, z = 0.000 }, level = 1 },
{ config_id = 38007, gadget_id = 70360025, pos = { x = 2383.748, y = 248.014, z = -1306.254 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 38008, gadget_id = 70900201, pos = { x = 2383.748, y = 248.014, z = -1306.254 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 38015, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2383.748, y = 248.014, z = -1306.254 } }
}
-- 触发器
triggers = {
{ config_id = 1038010, name = "QUEST_START_38010", event = EventType.EVENT_QUEST_START, source = defs.source_2, condition = "", action = "action_EVENT_QUEST_START_38010", trigger_count = 0 },
{ config_id = 1038011, name = "QUEST_START_38011", event = EventType.EVENT_QUEST_START, source = defs.source_4, condition = "", action = "action_EVENT_QUEST_START_38011", trigger_count = 0 },
{ config_id = 1038012, name = "QUEST_START_38012", event = EventType.EVENT_QUEST_START, source = defs.source_6, condition = "", action = "action_EVENT_QUEST_START_38012", trigger_count = 0 },
{ config_id = 1038013, name = "CHALLENGE_SUCCESS_38013", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "10", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_38013", trigger_count = 0 },
{ config_id = 1038014, name = "CHALLENGE_FAIL_38014", event = EventType.EVENT_CHALLENGE_FAIL, source = "10", condition = "", action = "action_EVENT_CHALLENGE_FAIL_38014", trigger_count = 0 },
{ config_id = 1038015, name = "ENTER_REGION_38015", event = EventType.EVENT_ENTER_REGION, source = "1", condition = "condition_EVENT_ENTER_REGION_38015", action = "", trigger_count = 0, tag = "555" },
{ config_id = 1038016, name = "QUEST_START_38016", event = EventType.EVENT_QUEST_START, source = defs.source_8, condition = "", action = "action_EVENT_QUEST_START_38016", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "Challenge_Flag", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { },
regions = { },
triggers = { "QUEST_START_38010", "QUEST_START_38011", "QUEST_START_38012", "QUEST_START_38016" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 38001, 38007, 38008 },
regions = { 38015 },
triggers = { "CHALLENGE_SUCCESS_38013", "CHALLENGE_FAIL_38014", "ENTER_REGION_38015" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { 38005, 38007, 38008 },
regions = { 38015 },
triggers = { "CHALLENGE_SUCCESS_38013", "CHALLENGE_FAIL_38014", "ENTER_REGION_38015" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = suite_4,
monsters = { },
gadgets = { 38006, 38007, 38008 },
regions = { 38015 },
triggers = { "CHALLENGE_SUCCESS_38013", "CHALLENGE_FAIL_38014", "ENTER_REGION_38015" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_QUEST_START_38010(context, evt)
-- 添加2号资源包
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 2)
-- 开启限时到达挑战
ScriptLib.ActiveChallenge(context, 10, defs.challenge_id_no_record, defs.challenge_1_duration, 4, 555, 1)
-- 添加玩法埋点
ScriptLib.MarkPlayerAction(context, 3000, 1, 1)
ScriptLib.MarkPlayerAction(context, 3000, 2, 2)
-- 设定挑战标志符为1
ScriptLib.SetGroupVariableValue(context, "Challenge_Flag", 1)
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_38011(context, evt)
-- 添加3号资源包
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 3)
-- 开启限时到达挑战
ScriptLib.ActiveChallenge(context, 10, defs.challenge_id_no_record, defs.challenge_2_duration, 4, 555, 1)
-- 添加玩法埋点
ScriptLib.MarkPlayerAction(context, 3000, 2, 3)
-- 设定挑战标志符为2
ScriptLib.SetGroupVariableValue(context, "Challenge_Flag", 2)
return 0
end
-- 触发操作
function action_EVENT_QUEST_START_38012(context, evt)
-- 添加4号资源包
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 4)
-- 开启限时到达挑战
ScriptLib.ActiveChallenge(context, 10, defs.challenge_id_have_record, defs.challenge_3_duration, 4, 555, 1)
-- 添加玩法埋点
ScriptLib.MarkPlayerAction(context, 3000, 2, 4)
-- 设定挑战标志符为3
ScriptLib.SetGroupVariableValue(context, "Challenge_Flag", 3)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_38013(context, evt)
-- 根据触发的挑战类型决定奖励物品
local reward = ScriptLib.GetGroupVariableValue(context, "Challenge_Flag")
if reward == 1 then
ScriptLib.CreateGadget(context, {config_id = defs.gadget_chest_1} )
-- 向任务返回结果
ScriptLib.AddQuestProgress(context,defs.quest_1_success)
-- 添加玩法埋点
ScriptLib.MarkPlayerAction(context, 3000, 3, 2)
-- 挑战结束卸载资源包
ScriptLib.RemoveExtraGroupSuite(context, defs.group_id, 2)
elseif reward == 2 then
ScriptLib.CreateGadget(context, {config_id = defs.gadget_chest_2} )
-- 向任务返回结果
ScriptLib.AddQuestProgress(context, defs.quest_2_success)
-- 添加玩法埋点
ScriptLib.MarkPlayerAction(context, 3000, 3, 3)
-- 挑战结束卸载资源包
ScriptLib.RemoveExtraGroupSuite(context, defs.group_id, 3)
elseif reward == 3 then
ScriptLib.CreateGadget(context, {config_id = defs.gadget_chest_3} )
-- 向任务返回结果
ScriptLib.AddQuestProgress(context, defs.quest_3_success)
-- 添加玩法埋点
ScriptLib.MarkPlayerAction(context, 3000, 3, 4)
-- 挑战结束卸载资源包
ScriptLib.RemoveExtraGroupSuite(context, defs.group_id, 4)
elseif reward == 4 then
-- 向任务返回结果
ScriptLib.AddQuestProgress(context, defs.quest_4_success)
-- 添加玩法埋点
ScriptLib.MarkPlayerAction(context, 3000, 3, 5)
-- 挑战结束卸载资源包
ScriptLib.RemoveExtraGroupSuite(context, defs.group_id, 4)
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_38014(context, evt)
local reward = ScriptLib.GetGroupVariableValue(context, "Challenge_Flag")
if reward == 1 then
-- 向任务返回结果
ScriptLib.AddQuestProgress(context, defs.quest_1_fail)
-- 添加玩法埋点
ScriptLib.MarkPlayerAction(context, 3000, 4, 2)
ScriptLib.RemoveExtraGroupSuite(context, defs.group_id, 2)
elseif reward == 2 then
-- 向任务返回结果
ScriptLib.AddQuestProgress(context, defs.quest_2_fail)
-- 添加玩法埋点
ScriptLib.MarkPlayerAction(context, 3000, 4, 3)
ScriptLib.RemoveExtraGroupSuite(context, defs.group_id, 3)
elseif reward == 3 then
-- 向任务返回结果
ScriptLib.AddQuestProgress(context, defs.quest_3_fail)
-- 添加玩法埋点
ScriptLib.MarkPlayerAction(context, 3000, 4, 4)
ScriptLib.RemoveExtraGroupSuite(context, defs.group_id, 4)
elseif reward == 4 then
-- 向任务返回结果
ScriptLib.AddQuestProgress(context, defs.quest_4_fail)
-- 添加玩法埋点
ScriptLib.MarkPlayerAction(context, 3000, 4, 5)
ScriptLib.RemoveExtraGroupSuite(context, defs.group_id, 4)
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_38015(context, evt)
if evt.param1 ~= defs.region then
return false
end
return true
end
-- 触发操作
function action_EVENT_QUEST_START_38016(context, evt)
-- 添加4号资源包
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 4)
-- 开启限时到达挑战
ScriptLib.ActiveChallenge(context, 10, defs.challenge_id_have_record, defs.challenge_3_duration, 4, 555, 1)
-- 添加玩法埋点
ScriptLib.MarkPlayerAction(context, 3000, 2, 5)
-- 设定挑战标志符为3
ScriptLib.SetGroupVariableValue(context, "Challenge_Flag", 4)
return 0
end

View File

@@ -0,0 +1,305 @@
-- 基础信息
local base_info = {
group_id = 111101039
}
-- Trigger变量
local defs = {
group_id = 111101039,
gadget_target_1S = 39002,
gadget_target_1E = 39005,
gadget_target_2S = 39003,
gadget_target_2E = 39006,
gadget_target_3S = 39004,
gadget_target_3E = 39007
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 39001, gadget_id = 70360008, pos = { x = 2342.588, y = 253.848, z = -1419.759 }, rot = { x = 0.000, y = 268.800, z = 0.000 }, level = 1 },
{ config_id = 39002, gadget_id = 70360011, pos = { x = 2344.649, y = 259.544, z = -1408.639 }, rot = { x = 0.000, y = 302.600, z = 0.000 }, level = 1, mark_flag = 2 },
{ config_id = 39003, gadget_id = 70360011, pos = { x = 2340.900, y = 259.700, z = -1424.300 }, rot = { x = 0.000, y = 240.700, z = 0.000 }, level = 1, mark_flag = 4 },
{ config_id = 39004, gadget_id = 70360011, pos = { x = 2346.200, y = 259.600, z = -1421.100 }, rot = { x = 0.000, y = 136.900, z = 0.000 }, level = 1, mark_flag = 8 },
{ config_id = 39005, gadget_id = 70360014, pos = { x = 2344.649, y = 259.544, z = -1408.639 }, rot = { x = 0.000, y = 187.800, z = 0.000 }, level = 1, route_id = 110100014 },
{ config_id = 39006, gadget_id = 70360014, pos = { x = 2340.913, y = 259.668, z = -1424.285 }, rot = { x = 0.000, y = 287.700, z = 0.000 }, level = 1, route_id = 110100015 },
{ config_id = 39007, gadget_id = 70360014, pos = { x = 2346.184, y = 259.627, z = -1421.084 }, rot = { x = 0.000, y = 299.100, z = 0.000 }, level = 1, route_id = 110100016 },
{ config_id = 39008, gadget_id = 70211111, pos = { x = 2342.554, y = 253.848, z = -1421.193 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 6, drop_tag = "解谜中级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1039009, name = "GADGET_STATE_CHANGE_39009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_39009", trigger_count = 0 },
{ config_id = 1039010, name = "GADGET_STATE_CHANGE_39010", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_39010", action = "action_EVENT_GADGET_STATE_CHANGE_39010" },
{ config_id = 1039011, name = "VARIABLE_CHANGE_39011", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_39011", action = "action_EVENT_VARIABLE_CHANGE_39011" },
{ config_id = 1039012, name = "GADGET_STATE_CHANGE_39012", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_39012", action = "action_EVENT_GADGET_STATE_CHANGE_39012", trigger_count = 0 },
{ config_id = 1039013, name = "GADGET_CREATE_39013", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_39013", action = "action_EVENT_GADGET_CREATE_39013", trigger_count = 0 },
{ config_id = 1039014, name = "SELECT_OPTION_39014", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_39014", action = "action_EVENT_SELECT_OPTION_39014", trigger_count = 0 },
{ config_id = 1039015, name = "GROUP_REFRESH_39015", event = EventType.EVENT_GROUP_REFRESH, source = "", condition = "", action = "action_EVENT_GROUP_REFRESH_39015" },
{ config_id = 1039016, name = "ANY_GADGET_DIE_39016", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "", action = "action_EVENT_ANY_GADGET_DIE_39016", trigger_count = 0 },
{ config_id = 1039017, name = "GADGET_CREATE_39017", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_39017", action = "action_EVENT_GADGET_CREATE_39017", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "count", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 39001, 39002, 39003, 39004 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_39009", "GADGET_STATE_CHANGE_39010", "VARIABLE_CHANGE_39011", "GADGET_STATE_CHANGE_39012", "GADGET_CREATE_39013", "SELECT_OPTION_39014", "GROUP_REFRESH_39015", "ANY_GADGET_DIE_39016" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 39001, 39008 },
regions = { },
triggers = { "GADGET_CREATE_39017" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_39009(context, evt)
if evt.param1 == GadgetState.GearStart and evt.param3 == GadgetState.Default then
if evt.param2 == defs.gadget_target_1S then
ScriptLib.CreateGadget(context, { config_id = defs.gadget_target_1E })
elseif evt.param2 == defs.gadget_target_2S then
ScriptLib.CreateGadget(context, { config_id = defs.gadget_target_2E })
elseif evt.param2 == defs.gadget_target_3S then
ScriptLib.CreateGadget(context, { config_id = defs.gadget_target_3E })
end
return 0
else return -1
end
return false
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_39010(context, evt)
if 39001 ~= evt.param2 or GadgetState.Action01 ~= evt.param1 then
return false
end
if 0 == ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_target_1S) then
return true
end
if 0 == ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_target_2S) then
return true
end
if 0 == ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_target_3S) then
return true
end
return false
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_39010(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 111101039, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_39011(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"count"为3
if ScriptLib.GetGroupVariableValue(context, "count") ~= 3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_39011(context, evt)
-- 将configid为 39001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 39001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 111101039, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2008, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_39012(context, evt)
if 39001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_39012(context, evt)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2008, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 删除指定group 111101039 指定config39001物件身上指定option171
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 111101039, 39001, 171) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_39013(context, evt)
if 39001 ~= evt.param1 or GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_39013(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101039, 39001, {171}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_39014(context, evt)
if 39001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_39014(context, evt)
-- 将configid为 39001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 39001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_REFRESH_39015(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101039, 39001, {171}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_39016(context, evt)
if evt.param1 == defs.gadget_target_1E or evt.param1 == defs.gadget_target_2E or evt.param1 == defs.gadget_target_3E then
ScriptLib.ChangeGroupVariableValue(context, "count", 1)
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_39017(context, evt)
if 39001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_39017(context, evt)
-- 将configid为 39001 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 39001, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,163 @@
-- 基础信息
local base_info = {
group_id = 111101040
}
-- Trigger变量
local defs = {
group_id = 111101040,
gadget_riddle_hint = 40001,
gadget_riddle_1 = 40002,
gadget_riddle_2 = 40003,
gadget_riddle_3 = 40004,
gadget_riddle_4 = 40005,
gadget_chest = 40006
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 40001, gadget_id = 70310012, pos = { x = 2307.237, y = 249.176, z = -1472.227 }, rot = { x = 0.000, y = 190.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 40002, gadget_id = 70310011, pos = { x = 2311.167, y = 249.907, z = -1468.868 }, rot = { x = 0.000, y = 276.100, z = 0.000 }, level = 1, persistent = true },
{ config_id = 40003, gadget_id = 70310011, pos = { x = 2303.119, y = 248.894, z = -1474.628 }, rot = { x = 0.000, y = 317.500, z = 0.000 }, level = 1, persistent = true },
{ config_id = 40004, gadget_id = 70310011, pos = { x = 2305.696, y = 249.387, z = -1466.218 }, rot = { x = 0.000, y = 257.600, z = 0.000 }, level = 1, persistent = true },
{ config_id = 40005, gadget_id = 70310011, pos = { x = 2311.435, y = 249.949, z = -1473.698 }, rot = { x = 0.000, y = 14.100, z = 0.000 }, level = 1, persistent = true },
{ config_id = 40006, gadget_id = 70211112, pos = { x = 2307.268, y = 249.625, z = -1472.226 }, rot = { x = 0.000, y = 270.400, z = 0.000 }, level = 6, drop_tag = "解谜中级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1040007, name = "GADGET_STATE_CHANGE_40007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_40007", action = "action_EVENT_GADGET_STATE_CHANGE_40007", trigger_count = 0 },
{ config_id = 1040008, name = "VARIABLE_CHANGE_40008", event = EventType.EVENT_VARIABLE_CHANGE, source = "State_Flag", condition = "condition_EVENT_VARIABLE_CHANGE_40008", action = "action_EVENT_VARIABLE_CHANGE_40008", trigger_count = 0 },
{ config_id = 1040009, name = "GROUP_LOAD_40009", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_40009" }
}
-- 变量
variables = {
{ config_id = 1, name = "State_Flag", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 40001, 40002, 40003, 40004, 40005, 40006 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_40007", "VARIABLE_CHANGE_40008", "GROUP_LOAD_40009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_40007(context, evt)
if evt.param2 ~= defs.gadget_riddle_1 and evt.param2 ~= defs.gadget_riddle_2 and evt.param2 ~= defs.gadget_riddle_3 and evt.param2 ~= defs.gadget_riddle_4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_40007(context, evt)
if evt.param1 == GadgetState.GearStart then
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", 1)
if 0 == ScriptLib.GetCurTriggerCount(context) then
ScriptLib.MarkPlayerAction(context, 1003, 1, 1)
end
elseif evt.param1 == GadgetState.Default then
ScriptLib.ChangeGroupVariableValue(context, "State_Flag", -1)
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_40008(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 < 0 or evt.param1 > 4 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_40008(context, evt)
if evt.param1 == 0 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Default)
elseif evt.param1 == 1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Action01)
ScriptLib.MarkPlayerAction(context, 1003, 2, 2)
elseif evt.param1 == 2 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Action02)
ScriptLib.MarkPlayerAction(context, 1003, 2, 3)
elseif evt.param1 == 3 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.Action03)
ScriptLib.MarkPlayerAction(context, 1003, 2, 4)
elseif evt.param1 == 4 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_hint, GadgetState.GearStart)
ScriptLib.MarkPlayerAction(context, 1003, 3, 5)
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.gadget_chest, GadgetState.Default)
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_40009(context, evt)
local sum = 0
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_1) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_2) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_3) == GadgetState.GearStart then
sum = sum + 1
end
if ScriptLib.GetGadgetStateByConfigId(context, defs.group_id, defs.gadget_riddle_4) == GadgetState.GearStart then
sum = sum + 1
end
ScriptLib.SetGroupVariableValue(context, "State_Flag", sum)
return 0
end

View File

@@ -0,0 +1,156 @@
-- 基础信息
local base_info = {
group_id = 111101041
}
-- Trigger变量
local defs = {
max_gear = 3,
timer = 10,
group_id = 111101041,
gadget_1 = 41001,
gadget_2 = 41002,
gadget_3 = 41003,
gadget_chest = 41004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 41001, gadget_id = 70900007, pos = { x = 2291.919, y = 248.080, z = -1469.484 }, rot = { x = 0.000, y = 330.800, z = 0.000 }, level = 1, persistent = true },
{ config_id = 41002, gadget_id = 70900009, pos = { x = 2281.906, y = 247.773, z = -1454.880 }, rot = { x = 0.000, y = 329.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 41003, gadget_id = 70900009, pos = { x = 2288.016, y = 247.388, z = -1453.103 }, rot = { x = 0.000, y = 59.100, z = 0.000 }, level = 1, persistent = true },
{ config_id = 41004, gadget_id = 70211111, pos = { x = 2291.057, y = 247.904, z = -1467.666 }, rot = { x = 0.000, y = 330.500, z = 0.000 }, level = 6, drop_tag = "解谜中级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1041006, name = "GADGET_STATE_CHANGE_41006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_41006", action = "action_EVENT_GADGET_STATE_CHANGE_41006", trigger_count = 0 },
{ config_id = 1041007, name = "TIMER_EVENT_41007", event = EventType.EVENT_TIMER_EVENT, source = "", condition = "condition_EVENT_TIMER_EVENT_41007", action = "action_EVENT_TIMER_EVENT_41007", trigger_count = 0 },
{ config_id = 1041008, name = "VARIABLE_CHANGE_41008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_41008", action = "action_EVENT_VARIABLE_CHANGE_41008", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "active_count", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 41001, 41002, 41003 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_41006", "TIMER_EVENT_41007", "VARIABLE_CHANGE_41008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_41006(context, evt)
if defs.gadget_1 ~= evt.param2 and defs.gadget_2 ~= evt.param2 and defs.gadget_3 ~= evt.param2 and defs.gadget_4 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_41006(context, evt)
if 0 == ScriptLib.GetGroupVariableValue(context, "active_count") then
ScriptLib.MarkPlayerAction(context, 1001, 1, 1)
end
if evt.param1 == GadgetState.Default then
ScriptLib.ChangeGroupVariableValue(context, "active_count", -1)
elseif evt.param1 == GadgetState.GearStart then
ScriptLib.ChangeGroupVariableValue(context, "active_count", 1)
ScriptLib.CreateGroupTimerEvent(context, defs.group_id, tostring(evt.param2), defs.timer)
else
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_41007(context, evt)
if evt.source_name ~= tostring(defs.gadget_1) and evt.source_name ~= tostring(defs.gadget_2) and evt.source_name ~= tostring(defs.gadget_3) and evt.source_name ~= tostring(defs.gadget_4) then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_41007(context, evt)
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, tonumber(evt.source_name), GadgetState.Default) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_41008(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == -1 then
ScriptLib.MarkPlayerAction(context, 1001, 4, 1)
end
if evt.param1 ~= defs.max_gear then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_41008(context, evt)
ScriptLib.CancelGroupTimerEvent(context, defs.group_id, tostring(defs.gadget_1))
ScriptLib.CancelGroupTimerEvent(context, defs.group_id, tostring(defs.gadget_2))
ScriptLib.CancelGroupTimerEvent(context, defs.group_id, tostring(defs.gadget_3))
ScriptLib.CancelGroupTimerEvent(context, defs.group_id, tostring(defs.gadget_4))
if ScriptLib.CreateGadget(context, { config_id = defs.gadget_chest }) ~= 0 then
return -1
end
ScriptLib.MarkPlayerAction(context, 1001, 3, 1)
return 0
end

View File

@@ -0,0 +1,112 @@
-- 基础信息
local base_info = {
group_id = 111101042
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 42001, monster_id = 21010201, pos = { x = 2278.105, y = 246.600, z = -1416.197 }, rot = { x = 0.000, y = 272.100, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true },
{ config_id = 42012, monster_id = 21010401, pos = { x = 2276.693, y = 246.301, z = -1417.906 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "远程丘丘人", disableWander = true },
{ config_id = 42013, monster_id = 21010201, pos = { x = 2275.357, y = 246.041, z = -1416.621 }, rot = { x = 0.000, y = 93.060, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true },
{ config_id = 42014, monster_id = 21010301, pos = { x = 2281.496, y = 247.360, z = -1416.709 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 42002, gadget_id = 70211012, pos = { x = 2276.014, y = 246.049, z = -1420.748 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 6, drop_tag = "战斗中级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 42004, gadget_id = 70220013, pos = { x = 2277.929, y = 246.417, z = -1420.744 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 42005, gadget_id = 70220013, pos = { x = 2279.715, y = 246.926, z = -1419.415 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 42006, gadget_id = 70220005, pos = { x = 2278.173, y = 246.568, z = -1419.014 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 42007, gadget_id = 70220014, pos = { x = 2274.530, y = 245.771, z = -1421.569 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 42008, gadget_id = 70220014, pos = { x = 2274.162, y = 245.681, z = -1420.496 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 42009, gadget_id = 70220014, pos = { x = 2272.895, y = 245.314, z = -1421.217 }, rot = { x = 0.890, y = 356.640, z = 320.140 }, level = 1 },
{ config_id = 42010, gadget_id = 70310004, pos = { x = 2276.784, y = 246.337, z = -1416.408 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 42011, gadget_id = 70220017, pos = { x = 2273.740, y = 245.628, z = -1417.880 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1042003, name = "ANY_MONSTER_DIE_42003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_42003", action = "action_EVENT_ANY_MONSTER_DIE_42003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 42001, 42012, 42013, 42014 },
gadgets = { 42002, 42004, 42005, 42006, 42007, 42008, 42009, 42010, 42011 },
regions = { },
triggers = { "ANY_MONSTER_DIE_42003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_42003(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_42003(context, evt)
-- 将configid为 42002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 42002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 4000, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end

View File

@@ -0,0 +1,170 @@
-- 基础信息
local base_info = {
group_id = 111101043
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 43001, monster_id = 20010401, pos = { x = 2302.727, y = 253.159, z = -1436.895 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 43002, monster_id = 20010301, pos = { x = 2298.455, y = 252.302, z = -1436.995 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 },
{ config_id = 43003, monster_id = 20010301, pos = { x = 2300.845, y = 252.395, z = -1433.541 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 43004, gadget_id = 70211102, pos = { x = 2300.908, y = 252.688, z = -1435.605 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 6, drop_tag = "解谜低级蒙德", isOneoff = true, persistent = true },
{ config_id = 43008, gadget_id = 70290009, pos = { x = 2300.755, y = 252.802, z = -1437.300 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43009, gadget_id = 70500000, pos = { x = 2300.755, y = 252.802, z = -1437.300 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3005, owner = 43008 },
{ config_id = 43010, gadget_id = 70290009, pos = { x = 2303.259, y = 252.966, z = -1434.320 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43011, gadget_id = 70500000, pos = { x = 2303.259, y = 252.966, z = -1434.320 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3005, owner = 43010 },
{ config_id = 43012, gadget_id = 70290009, pos = { x = 2298.255, y = 251.966, z = -1434.214 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 43013, gadget_id = 70500000, pos = { x = 2298.255, y = 251.966, z = -1434.214 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3005, owner = 43012 }
}
-- 区域
regions = {
{ config_id = 43005, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2301.012, y = 253.269, z = -1435.463 } }
}
-- 触发器
triggers = {
{ config_id = 1043005, name = "ENTER_REGION_43005", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_43005", action = "action_EVENT_ENTER_REGION_43005" },
{ config_id = 1043006, name = "ANY_MONSTER_DIE_43006", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_43006", action = "action_EVENT_ANY_MONSTER_DIE_43006" },
{ config_id = 1043007, name = "GADGET_CREATE_43007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_43007", action = "action_EVENT_GADGET_CREATE_43007", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 43004, 43008, 43009, 43010, 43011, 43012, 43013 },
regions = { 43005 },
triggers = { "ENTER_REGION_43005", "GADGET_CREATE_43007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 43001, 43002, 43003 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_43006" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_43005(context, evt)
if evt.param1 ~= 43005 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_43005(context, evt)
-- 将configid为 43004 的物件更改为状态 GadgetState.ChestLocked
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 43004, GadgetState.ChestLocked) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101043, 2)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1002, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_43006(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_43006(context, evt)
-- 将configid为 43004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 43004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1002, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_43007(context, evt)
if 43004 ~= evt.param1 or GadgetState.ChestLocked ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_43007(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101043, 2)
return 0
end

View File

@@ -0,0 +1,138 @@
-- 基础信息
local base_info = {
group_id = 111101044
}
-- Trigger变量
local defs = {
gadget_id = 44004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 44001, gadget_id = 70900051, pos = { x = 2366.951, y = 258.481, z = -1436.664 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 44002, gadget_id = 70900039, pos = { x = 2367.218, y = 264.477, z = -1440.719 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 44003, gadget_id = 70900051, pos = { x = 2355.394, y = 255.588, z = -1437.744 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 44004, gadget_id = 70211111, pos = { x = 2360.344, y = 262.375, z = -1443.877 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 6, drop_tag = "解谜中级蒙德", showcutscene = true, isOneoff = true, persistent = true },
{ config_id = 44008, gadget_id = 70900039, pos = { x = 2357.012, y = 261.791, z = -1443.033 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1044005, name = "GADGET_STATE_CHANGE_44005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_44005", action = "action_EVENT_GADGET_STATE_CHANGE_44005", trigger_count = 0 },
{ config_id = 1044006, name = "GADGET_STATE_CHANGE_44006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_44006" },
{ config_id = 1044007, name = "GADGET_CREATE_44007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_44007", action = "action_EVENT_GADGET_CREATE_44007" }
}
-- 变量
variables = {
{ config_id = 1, name = "start", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 44001, 44002, 44003, 44008 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_44005", "GADGET_STATE_CHANGE_44006", "GADGET_CREATE_44007" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_44005(context, evt)
if ScriptLib.GetGroupVariableValue(context, "start") == #suites[1].gadgets then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_44005(context, evt)
if evt.param1 == GadgetState.GearStart then
ScriptLib.ChangeGroupVariableValue(context,"start",1)
elseif evt.param1 == GadgetState.Default then
ScriptLib.ChangeGroupVariableValue(context,"start",-1)
end
if ScriptLib.GetGroupVariableValue(context, "start") == #suites[1].gadgets then
ScriptLib.CreateGadget(context, { config_id = defs.gadget_id })
end
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_44006(context, evt)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1008, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_44007(context, evt)
if defs.gadget_id ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_44007(context, evt)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1008, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end

View File

@@ -0,0 +1,284 @@
-- 基础信息
local base_info = {
group_id = 111101045
}
-- Trigger变量
local defs = {
group_id = 111101045,
gadget_target_1 = 45003,
monster_mole_1 = 45001,
gadget_home_1 = 45004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 45001, monster_id = 28050201, pos = { x = 2305.350, y = 251.486, z = -1426.829 }, rot = { x = 0.000, y = 29.457, z = 0.000 }, level = 1, drop_tag = "魔法生物" },
{ config_id = 45002, monster_id = 28050201, pos = { x = 2318.390, y = 253.733, z = -1428.814 }, rot = { x = 0.000, y = 29.457, z = 0.000 }, level = 1, drop_tag = "魔法生物", pose_id = 3 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 45003, gadget_id = 70360027, pos = { x = 2318.493, y = 253.657, z = -1428.971 }, rot = { x = 0.000, y = 104.100, z = 0.000 }, level = 1, mark_flag = 3 },
{ config_id = 45004, gadget_id = 70360015, pos = { x = 2305.645, y = 251.317, z = -1426.714 }, rot = { x = 0.000, y = 15.100, z = 0.000 }, level = 1, mark_flag = 2 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1045005, name = "ANY_MONSTER_DIE_45005", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_45005", action = "action_EVENT_ANY_MONSTER_DIE_45005" },
{ config_id = 1045006, name = "SELECT_OPTION_45006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_45006", action = "action_EVENT_SELECT_OPTION_45006", trigger_count = 0 },
{ config_id = 1045007, name = "GADGET_STATE_CHANGE_45007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_45007", action = "action_EVENT_GADGET_STATE_CHANGE_45007", trigger_count = 0 },
{ config_id = 1045008, name = "GADGET_STATE_CHANGE_45008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_45008", action = "action_EVENT_GADGET_STATE_CHANGE_45008", trigger_count = 0 },
{ config_id = 1045009, name = "GROUP_LOAD_45009", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_45009", action = "action_EVENT_GROUP_LOAD_45009", trigger_count = 0 },
{ config_id = 1045010, name = "GROUP_LOAD_45010", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "condition_EVENT_GROUP_LOAD_45010", action = "action_EVENT_GROUP_LOAD_45010", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "HoleHasShowed", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { 45001 },
gadgets = { 45003, 45004 },
regions = { },
triggers = { "ANY_MONSTER_DIE_45005", "SELECT_OPTION_45006", "GADGET_STATE_CHANGE_45007", "GADGET_STATE_CHANGE_45008", "GROUP_LOAD_45009", "GROUP_LOAD_45010" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100,
ban_refresh = true
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { 45002 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_45005(context, evt)
--判断死亡怪物的configid是否为 45002
if evt.param1 ~= 45002 then
return false
end
--判断死亡怪物的死亡类型是否为00为普通死亡比如被击杀1为普通地被killself杀死2为消失比如小动物逃跑消失北风狼脱战消失
if evt.param2 ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_45005(context, evt)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2006, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 销毁group存档不影响当前场景但卸载后group就永别了
if 0 ~= ScriptLib.SetGroupDead(context, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_group_die")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_45006(context, evt)
-- 判断是gadgetid 45004 option_id 171
if 45004 ~= evt.param1 then
return false
end
if 171 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_45006(context, evt)
-- 改变指定group组111101045中 configid为45004的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 111101045, 45004, GadgetState.GearAction2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_GroupId_ConfigId")
return -1
end
-- 删除指定group 111101045 指定config45004物件身上指定option171
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 111101045, 45004, 171) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2006, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_45007(context, evt)
if 45004 ~= evt.param2 or GadgetState.GearAction1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_45007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101045, 45004, {171}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
-- 将本组内变量名为 "HoleHasShowed" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "HoleHasShowed", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_45008(context, evt)
if 45003 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_45008(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 111101045, 3)
-- 将configid为 45004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 45004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_45009(context, evt)
-- 判断变量"HoleHasShowed"为0
if ScriptLib.GetGroupVariableValue(context, "HoleHasShowed") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_45009(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 45001, delay_time = 0 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_monster")
return -1
end
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101045, 3)
return 0
end
-- 触发条件
function condition_EVENT_GROUP_LOAD_45010(context, evt)
-- 判断变量"HoleHasShowed"为1
if ScriptLib.GetGroupVariableValue(context, "HoleHasShowed") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GROUP_LOAD_45010(context, evt)
-- 将configid为 45004 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 45004, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101045, 3)
-- 将configid为 45003 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 45003, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,141 @@
-- 基础信息
local base_info = {
group_id = 111101046
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 46001, gadget_id = 70360001, pos = { x = 2402.142, y = 251.493, z = -1413.689 }, rot = { x = 0.000, y = 175.400, z = 0.000 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 46002, gadget_id = 70211111, pos = { x = 2402.145, y = 250.376, z = -1413.929 }, rot = { x = 0.000, y = 80.300, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", showcutscene = true, isOneoff = true, persistent = true },
{ config_id = 46005, gadget_id = 70290002, pos = { x = 2399.696, y = 250.777, z = -1414.392 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 46006, gadget_id = 70500000, pos = { x = 2398.625, y = 252.395, z = -1413.678 }, rot = { x = 0.000, y = 265.000, z = 0.000 }, level = 1, point_type = 3001, owner = 46005 },
{ config_id = 46007, gadget_id = 70500000, pos = { x = 2400.566, y = 253.405, z = -1415.403 }, rot = { x = 0.000, y = 314.000, z = 0.000 }, level = 1, point_type = 3001, owner = 46005 },
{ config_id = 46008, gadget_id = 70500000, pos = { x = 2399.739, y = 253.685, z = -1413.011 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3001, owner = 46005 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1046003, name = "GADGET_CREATE_46003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_46003", action = "action_EVENT_GADGET_CREATE_46003", trigger_count = 0 },
{ config_id = 1046004, name = "SELECT_OPTION_46004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_46004", action = "action_EVENT_SELECT_OPTION_46004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 2,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 46001 },
regions = { },
triggers = { "GADGET_CREATE_46003", "SELECT_OPTION_46004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 46002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_46003(context, evt)
-- 判断是gadgetid 46001
if 46001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_46003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {169}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_work_options")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_46004(context, evt)
if 46001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_46004(context, evt)
-- 删除指定group 111101046 指定config46001物件身上指定option169
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 111101046, 46001, 169) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2011, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 111101046, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end

View File

@@ -0,0 +1,100 @@
-- 基础信息
local base_info = {
group_id = 111101047
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 47001, gadget_id = 70211101, pos = { x = 2361.495, y = 256.690, z = -1436.803 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 6, drop_tag = "解谜低级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 47002, gadget_id = 70220021, pos = { x = 2361.338, y = 256.639, z = -1437.386 }, rot = { x = 0.000, y = 150.760, z = 0.000 }, level = 1, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1047003, name = "ANY_GADGET_DIE_47003", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_47003", action = "action_EVENT_ANY_GADGET_DIE_47003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 47001, 47002 },
regions = { },
triggers = { "ANY_GADGET_DIE_47003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_47003(context, evt)
if 47002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_47003(context, evt)
-- 将configid为 47001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 47001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2012, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end

View File

@@ -0,0 +1,184 @@
-- 基础信息
local base_info = {
group_id = 111101048
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 48001, gadget_id = 70220032, pos = { x = 2404.941, y = 249.201, z = -1401.289 }, rot = { x = 0.000, y = 196.100, z = 0.000 }, level = 18 },
{ config_id = 48002, gadget_id = 70211101, pos = { x = 2403.110, y = 249.088, z = -1401.666 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", showcutscene = true, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1048003, name = "GADGET_STATE_CHANGE_48003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_48003", action = "action_EVENT_GADGET_STATE_CHANGE_48003" },
{ config_id = 1048004, name = "GADGET_STATE_CHANGE_48004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_48004", action = "action_EVENT_GADGET_STATE_CHANGE_48004", trigger_count = 0 },
{ config_id = 1048005, name = "GADGET_STATE_CHANGE_48005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_48005", action = "action_EVENT_GADGET_STATE_CHANGE_48005", trigger_count = 0 },
{ config_id = 1048006, name = "GADGET_CREATE_48006", event = EventType.EVENT_GADGET_CREATE, source = "111", condition = "condition_EVENT_GADGET_CREATE_48006", action = "action_EVENT_GADGET_CREATE_48006", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 48001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_48003", "GADGET_STATE_CHANGE_48004", "GADGET_STATE_CHANGE_48005", "GADGET_CREATE_48006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 48002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_48003(context, evt)
if 48002 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_48003(context, evt)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1009, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 111101048, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_48004(context, evt)
if 48001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_48004(context, evt)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1009, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101048, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_48005(context, evt)
if 48001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_48005(context, evt)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1009, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101048, 2)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_48006(context, evt)
if 48001 ~= evt.param1 or GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_48006(context, evt)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101048, 2)
return 0
end

View File

@@ -0,0 +1,256 @@
-- 基础信息
local base_info = {
group_id = 111101049
}
-- Trigger变量
local defs = {
gadget_1 = 49001
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 49001, gadget_id = 70360006, pos = { x = 2411.905, y = 250.511, z = -1409.038 }, rot = { x = 0.000, y = 196.100, z = 0.000 }, level = 18 },
{ config_id = 49002, gadget_id = 70211101, pos = { x = 2413.928, y = 250.667, z = -1407.470 }, rot = { x = 0.000, y = 242.710, z = 0.000 }, level = 1, drop_tag = "解谜低级蒙德", showcutscene = true, isOneoff = true, persistent = true },
{ config_id = 49010, gadget_id = 70900007, pos = { x = 2414.299, y = 251.436, z = -1412.621 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 49011, gadget_id = 70900008, pos = { x = 2409.153, y = 249.647, z = -1405.776 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1049003, name = "GADGET_STATE_CHANGE_49003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_49003", action = "action_EVENT_GADGET_STATE_CHANGE_49003" },
{ config_id = 1049004, name = "GADGET_STATE_CHANGE_49004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_49004", action = "action_EVENT_GADGET_STATE_CHANGE_49004", trigger_count = 0 },
{ config_id = 1049005, name = "GADGET_STATE_CHANGE_49005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_49005", action = "action_EVENT_GADGET_STATE_CHANGE_49005", trigger_count = 0 },
{ config_id = 1049006, name = "GADGET_CREATE_49006", event = EventType.EVENT_GADGET_CREATE, source = "111", condition = "condition_EVENT_GADGET_CREATE_49006", action = "action_EVENT_GADGET_CREATE_49006", trigger_count = 0 },
{ config_id = 1049007, name = "GADGET_STATE_CHANGE_49007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "111", condition = "condition_EVENT_GADGET_STATE_CHANGE_49007", action = "action_EVENT_GADGET_STATE_CHANGE_49007", trigger_count = 0 },
{ config_id = 1049008, name = "GADGET_STATE_CHANGE_49008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "", action = "action_EVENT_GADGET_STATE_CHANGE_49008" },
{ config_id = 1049009, name = "GADGET_CREATE_49009", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_49009", action = "action_EVENT_GADGET_CREATE_49009" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 49010, 49011 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_49007", "GADGET_STATE_CHANGE_49008", "GADGET_CREATE_49009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 49001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_49003", "GADGET_STATE_CHANGE_49004", "GADGET_STATE_CHANGE_49005", "GADGET_CREATE_49006" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = suite_3,
monsters = { },
gadgets = { 49002 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_49003(context, evt)
if 49002 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_49003(context, evt)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1010, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 111101049, 4) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_49004(context, evt)
if 49001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_49004(context, evt)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1010, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 111101049, 3)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_49005(context, evt)
if 49001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_49005(context, evt)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1010, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101049, 3)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_49006(context, evt)
if 49001 ~= evt.param1 or GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_49006(context, evt)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101049, 3)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_49007(context, evt)
if ScriptLib.GetGroupVariableValue(context, "start") == #suites[1].gadgets then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_49007(context, evt)
if evt.param1 == GadgetState.GearStart then
ScriptLib.ChangeGroupVariableValue(context,"start",1)
elseif evt.param1 == GadgetState.Default then
ScriptLib.ChangeGroupVariableValue(context,"start",-1)
end
if ScriptLib.GetGroupVariableValue(context, "start") == #suites[1].gadgets then
ScriptLib.CreateGadget(context, { config_id = defs.gadget_id })
end
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_49008(context, evt)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1008, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_49009(context, evt)
if defs.gadget_id ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_49009(context, evt)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 1008, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end

View File

@@ -0,0 +1,117 @@
-- 基础信息
local base_info = {
group_id = 111101050
}
-- Trigger变量
local defs = {
group_ID = 111101050,
trigger_playRegion = 50005,
gadget_1 = 50002
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 50001, gadget_id = 70950068, pos = { x = 2453.300, y = 296.149, z = -1604.998 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 50002, gadget_id = 70950070, pos = { x = 2434.015, y = 294.699, z = -1617.134 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 50003, gadget_id = 70950069, pos = { x = 2447.763, y = 296.102, z = -1617.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 50004, gadget_id = 70950069, pos = { x = 2436.857, y = 293.492, z = -1604.871 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 50006, gadget_id = 70211111, pos = { x = 2441.238, y = 293.878, z = -1610.670 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 6, drop_tag = "解谜中级蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 50005, shape = RegionShape.SPHERE, radius = 30, pos = { x = 2445.138, y = 294.624, z = -1609.925 }, ability_group_list = { "Move_Electric_Stake_Play" } }
}
-- 触发器
triggers = {
{ config_id = 1050007, name = "VARIABLE_CHANGE_50007", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_50007", action = "" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 50001, 50002, 50003, 50004 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { 50005 },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 50006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_50007(context, evt)
if evt.param1 == evt.param2 then return false end
-- 判断变量"successed"为1
if ScriptLib.GetGroupVariableValue(context, "successed") ~= 1 then
return false
end
return true
end
require "BlackBoxPlay/ChargingPort"

View File

@@ -0,0 +1,263 @@
-- 基础信息
local base_info = {
group_id = 111101051
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 51001, gadget_id = 70950079, pos = { x = 2664.006, y = 196.647, z = -1675.463 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1, route_id = 110100063 },
{ config_id = 51002, gadget_id = 70950079, pos = { x = 2669.406, y = 196.421, z = -1679.879 }, rot = { x = 0.000, y = 135.000, z = 0.000 }, level = 1, route_id = 110100064 },
{ config_id = 51003, gadget_id = 70950079, pos = { x = 2662.628, y = 196.421, z = -1686.886 }, rot = { x = 0.000, y = 45.000, z = 0.000 }, level = 1, route_id = 110100065 },
-- 临时替代靶标
{ config_id = 51004, gadget_id = 70900039, pos = { x = 2667.523, y = 195.781, z = -1691.962 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 51005, gadget_id = 70360006, pos = { x = 2666.795, y = 195.338, z = -1667.945 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 51009, gadget_id = 70950079, pos = { x = 2670.132, y = 196.421, z = -1701.987 }, rot = { x = 0.000, y = 318.412, z = 0.000 }, level = 1, route_id = 110100066 },
{ config_id = 51010, gadget_id = 70211111, pos = { x = 2674.904, y = 195.232, z = -1678.318 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 踩踏重力压板,台座上升,创建靶标
{ config_id = 1051006, name = "GADGET_STATE_CHANGE_51006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_51006", action = "action_EVENT_GADGET_STATE_CHANGE_51006", trigger_count = 0 },
-- 踩踏重力压板,台座上升,销毁靶标
{ config_id = 1051007, name = "GADGET_STATE_CHANGE_51007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_51007", action = "action_EVENT_GADGET_STATE_CHANGE_51007", trigger_count = 0 },
-- 台座2到达最高点后开始自转
{ config_id = 1051008, name = "PLATFORM_REACH_POINT_51008", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_51008", action = "action_EVENT_PLATFORM_REACH_POINT_51008", trigger_count = 0 },
-- 击中靶标,创建宝箱
{ config_id = 1051011, name = "GADGET_STATE_CHANGE_51011", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_51011", action = "action_EVENT_GADGET_STATE_CHANGE_51011" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 51001, 51002, 51003, 51005, 51009 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_51006", "GADGET_STATE_CHANGE_51007", "PLATFORM_REACH_POINT_51008", "GADGET_STATE_CHANGE_51011" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_51006(context, evt)
if 51005 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_51006(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 51010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 51001, 110100056) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 51001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 51002, 110100057) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 51002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 51003, 110100058) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 51003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 创建id为51004的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 51004 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_51007(context, evt)
if 51005 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_51007(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 51001, 110100059) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 51001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 51002, 110100060) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 51002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 51003, 110100061) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 51003) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 111101051, EntityType.GADGET, 51004 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_51008(context, evt)
-- 判断是gadgetid 为 51002的移动平台是否到达了110100057 的路线中的 0 点
if 51002 ~= evt.param1 then
return false
end
if 110100057 ~= evt.param2 then
return false
end
if 0 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_51008(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 51002, 110100070) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_routeId")
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 51002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_51011(context, evt)
if 51004 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_51011(context, evt)
-- 创建id为51010的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 51010 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end

View File

@@ -0,0 +1,121 @@
-- 基础信息
local base_info = {
group_id = 111101052
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 52001, gadget_id = 70310013, pos = { x = 2681.813, y = 266.625, z = -1399.493 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 52002, gadget_id = 70900039, pos = { x = 2676.406, y = 263.823, z = -1401.959 }, rot = { x = 355.072, y = 0.249, z = 354.212 }, level = 1 },
{ config_id = 52003, gadget_id = 70210063, pos = { x = 2674.173, y = 264.398, z = -1395.271 }, rot = { x = 0.000, y = 183.387, z = 0.000 }, level = 26, drop_tag = "解谜低级蒙德", state = GadgetState.ChestFrozen, isOneoff = true, persistent = true },
{ config_id = 52006, gadget_id = 70210107, pos = { x = 2682.764, y = 265.041, z = -1412.065 }, rot = { x = 19.090, y = 307.758, z = 355.717 }, level = 26, drop_tag = "一次性搜刮点峭壁蒙德", isOneoff = true, persistent = true },
{ config_id = 52007, gadget_id = 70210107, pos = { x = 2671.208, y = 282.705, z = -1418.736 }, rot = { x = 3.871, y = 2.940, z = 13.238 }, level = 26, drop_tag = "一次性搜刮点峭壁蒙德", isOneoff = true, persistent = true },
{ config_id = 52008, gadget_id = 70210107, pos = { x = 2680.477, y = 271.004, z = -1412.931 }, rot = { x = 5.745, y = 278.083, z = 346.579 }, level = 26, drop_tag = "一次性搜刮点峭壁蒙德", isOneoff = true, persistent = true },
{ config_id = 52009, gadget_id = 70210107, pos = { x = 2681.928, y = 272.411, z = -1409.834 }, rot = { x = 19.090, y = 307.758, z = 355.717 }, level = 26, drop_tag = "一次性搜刮点峭壁蒙德", isOneoff = true, persistent = true },
{ config_id = 52010, gadget_id = 70210107, pos = { x = 2690.421, y = 278.503, z = -1402.990 }, rot = { x = 5.259, y = 325.858, z = 1.793 }, level = 26, drop_tag = "一次性搜刮点峭壁蒙德", isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1052004, name = "GADGET_STATE_CHANGE_52004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_52004", action = "action_EVENT_GADGET_STATE_CHANGE_52004", trigger_count = 0 },
{ config_id = 1052005, name = "ANY_GADGET_DIE_52005", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_52005", action = "action_EVENT_ANY_GADGET_DIE_52005", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 52002, 52003, 52006, 52007, 52008, 52009, 52010 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_52004", "ANY_GADGET_DIE_52005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_52004(context, evt)
if 52002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_52004(context, evt)
-- 创建id为52001的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 52001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_52005(context, evt)
if 52001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_52005(context, evt)
-- 将configid为 52002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 52002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,158 @@
-- 基础信息
local base_info = {
group_id = 111101053
}
-- Trigger变量
local defs = {
max_gear = 3,
timer = 5,
group_id = 111101053,
gadget_1 = 53001,
gadget_2 = 53002,
gadget_3 = 53003,
gadget_4 = 0,
gadget_chest = 53004
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 53001, gadget_id = 70900009, pos = { x = 2519.332, y = 206.050, z = -1213.760 }, rot = { x = 0.000, y = 330.800, z = 0.000 }, level = 1, persistent = true },
{ config_id = 53002, gadget_id = 70900009, pos = { x = 2529.632, y = 206.050, z = -1208.960 }, rot = { x = 0.000, y = 329.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 53003, gadget_id = 70900009, pos = { x = 2521.037, y = 206.050, z = -1204.919 }, rot = { x = 0.000, y = 59.100, z = 0.000 }, level = 1, persistent = true },
{ config_id = 53004, gadget_id = 70211111, pos = { x = 2526.788, y = 206.050, z = -1215.111 }, rot = { x = 0.000, y = 330.500, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", showcutscene = true, isOneoff = true, persistent = true },
{ config_id = 53005, gadget_id = 70900209, pos = { x = 2525.400, y = 206.289, z = -1217.565 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1053006, name = "GADGET_STATE_CHANGE_53006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_53006", action = "action_EVENT_GADGET_STATE_CHANGE_53006", trigger_count = 0 },
{ config_id = 1053007, name = "TIMER_EVENT_53007", event = EventType.EVENT_TIMER_EVENT, source = "", condition = "condition_EVENT_TIMER_EVENT_53007", action = "action_EVENT_TIMER_EVENT_53007", trigger_count = 0 },
{ config_id = 1053008, name = "VARIABLE_CHANGE_53008", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_53008", action = "action_EVENT_VARIABLE_CHANGE_53008", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "active_count", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 53001, 53002, 53003, 53005 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_53006", "TIMER_EVENT_53007", "VARIABLE_CHANGE_53008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_53006(context, evt)
if defs.gadget_1 ~= evt.param2 and defs.gadget_2 ~= evt.param2 and defs.gadget_3 ~= evt.param2 and defs.gadget_4 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_53006(context, evt)
if 0 == ScriptLib.GetGroupVariableValue(context, "active_count") then
ScriptLib.MarkPlayerAction(context, 1001, 1, 1)
end
if evt.param1 == GadgetState.Default then
ScriptLib.ChangeGroupVariableValue(context, "active_count", -1)
elseif evt.param1 == GadgetState.GearStart then
ScriptLib.ChangeGroupVariableValue(context, "active_count", 1)
ScriptLib.CreateGroupTimerEvent(context, defs.group_id, tostring(evt.param2), defs.timer)
else
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_TIMER_EVENT_53007(context, evt)
if evt.source_name ~= tostring(defs.gadget_1) and evt.source_name ~= tostring(defs.gadget_2) and evt.source_name ~= tostring(defs.gadget_3) and evt.source_name ~= tostring(defs.gadget_4) then
return false
end
return true
end
-- 触发操作
function action_EVENT_TIMER_EVENT_53007(context, evt)
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, tonumber(evt.source_name), GadgetState.Default) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_53008(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 == -1 then
ScriptLib.MarkPlayerAction(context, 1001, 4, 1)
end
if evt.param1 ~= defs.max_gear then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_53008(context, evt)
ScriptLib.CancelGroupTimerEvent(context, defs.group_id, tostring(defs.gadget_1))
ScriptLib.CancelGroupTimerEvent(context, defs.group_id, tostring(defs.gadget_2))
ScriptLib.CancelGroupTimerEvent(context, defs.group_id, tostring(defs.gadget_3))
ScriptLib.CancelGroupTimerEvent(context, defs.group_id, tostring(defs.gadget_4))
if ScriptLib.CreateGadget(context, { config_id = defs.gadget_chest }) ~= 0 then
return -1
end
ScriptLib.MarkPlayerAction(context, 1001, 3, 1)
return 0
end

View File

@@ -0,0 +1,98 @@
-- 基础信息
local base_info = {
group_id = 111101054
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 54002, monster_id = 20011001, pos = { x = 2219.618, y = 234.299, z = -1287.725 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆" },
{ config_id = 54003, monster_id = 20011001, pos = { x = 2218.395, y = 234.240, z = -1287.805 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆" },
{ config_id = 54004, monster_id = 20011001, pos = { x = 2219.073, y = 234.099, z = -1286.662 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "史莱姆" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 54001, shape = RegionShape.SPHERE, radius = 15, pos = { x = 2219.069, y = 234.225, z = -1287.432 } }
}
-- 触发器
triggers = {
{ config_id = 1054001, name = "ENTER_REGION_54001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_54001", action = "action_EVENT_ENTER_REGION_54001" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 54001 },
triggers = { "ENTER_REGION_54001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_54001(context, evt)
if evt.param1 ~= 54001 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_54001(context, evt)
-- 在0面前 5 到 10 范围里15 角度内,刷{54002,54003,54004}的怪物
local ret = ScriptLib.CreateMonsterFaceAvatar(context, { entity_id = 0, monsters = {54002,54003,54004}, ranges = { 5, 10 }, angle = 15 })
ScriptLib.PrintLog(tostring(ret))
return 0
end

View File

@@ -0,0 +1,174 @@
-- 基础信息
local base_info = {
group_id = 111101055
}
-- Trigger变量
local defs = {
duration = 30,
group_id = 111101055
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 55001, gadget_id = 70211111, pos = { x = 2589.884, y = 220.977, z = -1273.172 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", isOneoff = true, persistent = true },
{ config_id = 55002, gadget_id = 70900051, pos = { x = 2589.961, y = 219.271, z = -1264.321 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.Action01, isOneoff = true, persistent = true },
{ config_id = 55003, gadget_id = 70900201, pos = { x = 2589.885, y = 222.006, z = -1272.992 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 55006, gadget_id = 70310013, pos = { x = 2589.874, y = 221.288, z = -1269.016 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1055004, name = "CHALLENGE_SUCCESS_55004", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "666", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_55004" },
{ config_id = 1055005, name = "CHALLENGE_FAIL_55005", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_55005", trigger_count = 0 },
{ config_id = 1055007, name = "GADGET_STATE_CHANGE_55007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_55007", action = "action_EVENT_GADGET_STATE_CHANGE_55007", trigger_count = 0 },
{ config_id = 1055008, name = "GADGET_STATE_CHANGE_55008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_55008", action = "", tag = "202" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 55002 },
regions = { },
triggers = { "CHALLENGE_SUCCESS_55004", "CHALLENGE_FAIL_55005", "GADGET_STATE_CHANGE_55007", "GADGET_STATE_CHANGE_55008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 55001, 55003, 55006 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_55004(context, evt)
-- 将configid为 55002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 55002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3002, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_55005(context, evt)
-- 将configid为 55002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 55002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101055, 2)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 111101055, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3002, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_55007(context, evt)
if 55002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_55007(context, evt)
-- 202号挑战,duration内开启宝箱
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 202, defs.duration, 7, 202, 1) then
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 2)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3002, 1, 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_55008(context, evt)
if 55001 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end

View File

@@ -0,0 +1,180 @@
-- 基础信息
local base_info = {
group_id = 111101056
}
-- Trigger变量
local defs = {
duration = 30,
group_id = 111101056,
gadget_sum = 2
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 56001, gadget_id = 70220005, pos = { x = 2614.296, y = 221.852, z = -1308.166 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 56002, gadget_id = 70900051, pos = { x = 2614.374, y = 220.146, z = -1299.315 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.Action01, isOneoff = true, persistent = true },
{ config_id = 56003, gadget_id = 70211111, pos = { x = 2611.519, y = 219.922, z = -1299.684 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", isOneoff = true, persistent = true },
{ config_id = 56011, gadget_id = 70220005, pos = { x = 2611.433, y = 221.852, z = -1308.166 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1056005, name = "CHALLENGE_SUCCESS_56005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "56", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_56005" },
{ config_id = 1056006, name = "CHALLENGE_FAIL_56006", event = EventType.EVENT_CHALLENGE_FAIL, source = "56", condition = "", action = "action_EVENT_CHALLENGE_FAIL_56006", trigger_count = 0 },
{ config_id = 1056007, name = "GADGET_STATE_CHANGE_56007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_56007", action = "action_EVENT_GADGET_STATE_CHANGE_56007", trigger_count = 0 },
{ config_id = 1056009, name = "ANY_GADGET_DIE_56009", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "", action = "", trigger_count = 0, tag = "201" }
}
-- 变量
variables = {
{ config_id = 1, name = "gadget_sum", value = 2, no_refresh = true },
{ config_id = 2, name = "gadget_start", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 56002 },
regions = { },
triggers = { "CHALLENGE_SUCCESS_56005", "CHALLENGE_FAIL_56006", "GADGET_STATE_CHANGE_56007", "ANY_GADGET_DIE_56009" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 56001, 56011 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_56005(context, evt)
-- 将configid为 56002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 56002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为56003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 56003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3003, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_56006(context, evt)
-- 将configid为 56002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 56002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101056, 2)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 111101056, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3003, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 将本组内变量名为 "gadget_start" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "gadget_start", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_56007(context, evt)
if 56002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_56007(context, evt)
-- 202号挑战,duration内开启宝箱
if 0 ~= ScriptLib.ActiveChallenge(context, 56, 201, defs.duration, 2, 201, defs.gadget_sum) then
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 2)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3003, 1, 1) then
return -1
end
return 0
end

View File

@@ -0,0 +1,150 @@
-- 基础信息
local base_info = {
group_id = 111101057
}
-- Trigger变量
local defs = {
option_1 = 201,
option_2 = 202,
option_3 = 203,
gadget_1 = 57002,
water_1 = 57001
}
-- DEFS_MISCS
local play = {
options = {
[0] = defs.option_1, --ore
[1] = defs.option_2, --mithril
[2] = defs.option_3 --crystal
},
colors = {
[0] = 0, --origin
[1] = 201, --red
[2] = 203, --green
[3] = 204, --yellow
[4] = 901, --blue
[5] = 902, --purple
[6] = 903 --tealblue
}
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 57002, gadget_id = 70360002, pos = { x = 2554.158, y = 357.057, z = -1738.064 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 57001, shape = RegionShape.POLYGON, pos = { x = 2552.927, y = 356.346, z = -1736.421 }, height = 47.625, point_array = { { x = 2554.280, y = -1726.399 }, { x = 2562.313, y = -1731.105 }, { x = 2562.535, y = -1739.043 }, { x = 2557.802, y = -1746.305 }, { x = 2546.547, y = -1746.443 }, { x = 2543.319, y = -1734.129 } } },
{ config_id = 57003, shape = RegionShape.CYLINDER, radius = 10, pos = { x = 2554.158, y = 357.057, z = -1738.064 }, height = 10.000 },
{ config_id = 57004, shape = RegionShape.SPHERE, radius = 30, pos = { x = 2556.633, y = 353.983, z = -1739.103 } }
}
-- 触发器
triggers = {
{ config_id = 1057001, name = "ENTER_REGION_57001", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_57001", action = "action_EVENT_ENTER_REGION_57001", trigger_count = 0 },
{ config_id = 1057003, name = "ENTER_REGION_57003", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_57003", action = "action_EVENT_ENTER_REGION_57003", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "is_used", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 57002 },
regions = { 57003, 57004 },
triggers = { "ENTER_REGION_57003" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 57002 },
regions = { 57001, 57004 },
triggers = { "ENTER_REGION_57001" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_57001(context, evt)
if evt.param1 ~= 57001 then return false end
if 57001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_57001(context, evt)
local ret2 = ScriptLib.SetPlayerEyePointStream(context, 57001, 57004, true)
ScriptLib.PrintContextLog(context, "## ret2 = "..ret2)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_57003(context, evt)
if evt.param1 ~= 57003 then return false end
if 57003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_57003(context, evt)
local ret1 = ScriptLib.SetPlayerEyePointStream(context, 57003, 57004, true)
ScriptLib.PrintContextLog(context, "## ret1 = "..ret1)
return 0
end

View File

@@ -0,0 +1,184 @@
-- 基础信息
local base_info = {
group_id = 111101058
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 58008, monster_id = 20010801, pos = { x = 2355.156, y = 283.898, z = -1749.917 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 50, drop_tag = "史莱姆" },
{ config_id = 58009, monster_id = 20010801, pos = { x = 2347.777, y = 283.898, z = -1746.373 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 50, drop_tag = "史莱姆" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 58001, gadget_id = 70360002, pos = { x = 2353.324, y = 283.743, z = -1736.626 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 58006, gadget_id = 70220013, pos = { x = 2354.636, y = 283.898, z = -1725.431 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 58007, gadget_id = 70220013, pos = { x = 2346.874, y = 283.898, z = -1727.197 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 58010, shape = RegionShape.CYLINDER, radius = 10, pos = { x = 2352.343, y = 285.796, z = -1734.832 }, height = 6.000 },
{ config_id = 58011, shape = RegionShape.POLYGON, pos = { x = 2354.168, y = 287.500, z = -1738.440 }, height = 15.000, point_array = { { x = 2361.730, y = -1727.950 }, { x = 2365.169, y = -1743.243 }, { x = 2351.515, y = -1750.085 }, { x = 2343.166, y = -1740.615 }, { x = 2347.505, y = -1726.796 } } }
}
-- 触发器
triggers = {
{ config_id = 1058002, name = "GADGET_CREATE_58002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_58002", action = "action_EVENT_GADGET_CREATE_58002", trigger_count = 0 },
{ config_id = 1058003, name = "SELECT_OPTION_58003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_58003", action = "action_EVENT_SELECT_OPTION_58003", trigger_count = 0 },
{ config_id = 1058004, name = "CHALLENGE_FAIL_58004", event = EventType.EVENT_CHALLENGE_FAIL, source = "", condition = "", action = "action_EVENT_CHALLENGE_FAIL_58004", trigger_count = 0 },
{ config_id = 1058005, name = "CHALLENGE_SUCCESS_58005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_58005", trigger_count = 0 },
{ config_id = 1058010, name = "ENTER_REGION_58010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_58010", action = "action_EVENT_ENTER_REGION_58010", trigger_count = 0 },
{ config_id = 1058011, name = "LEAVE_REGION_58011", event = EventType.EVENT_LEAVE_REGION, source = "", condition = "condition_EVENT_LEAVE_REGION_58011", action = "action_EVENT_LEAVE_REGION_58011", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 58008, 58009 },
gadgets = { 58001, 58006, 58007 },
regions = { 58010, 58011 },
triggers = { "GADGET_CREATE_58002", "SELECT_OPTION_58003", "CHALLENGE_FAIL_58004", "CHALLENGE_SUCCESS_58005", "ENTER_REGION_58010", "LEAVE_REGION_58011" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_58002(context, evt)
if 58001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_58002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101058, 58001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_58003(context, evt)
-- 判断是gadgetid 58001 option_id 7
if 58001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_58003(context, evt)
ScriptLib.CreateFatherChallenge(context, 9001, 9001, 300, {success = 6, fail = 4})
ScriptLib.AttachChildChallenge(context, 9001, 9005, 9005, {300,1,9005,1},{},{success=6,fail=2})
ScriptLib.StartFatherChallenge(context, 9001)
ScriptLib.DelWorktopOptionByGroupId(context, 111101058, 58001, 7)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_58004(context, evt)
if evt.source_name == "9001" then
-- 恢复suite
ScriptLib.SetWorktopOptionsByGroupId(context, 111101058, 58001, {7})
return 0
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_58005(context, evt)
if evt.source_name == "9001" then
ScriptLib.SetWorktopOptionsByGroupId(context, 111101058, 58001, {7})
return 0
end
if evt.source_name == "9003" then
ScriptLib.AttachChildChallenge(context, 9001, 9004, 9004, {111101058,1,5},{},{success=3,fail=3})
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_58010(context, evt)
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_58010(context, evt)
ScriptLib.PrintContextLog(context, "## enter_test :"..evt.param1)
return 0
end
-- 触发条件
function condition_EVENT_LEAVE_REGION_58011(context, evt)
return true
end
-- 触发操作
function action_EVENT_LEAVE_REGION_58011(context, evt)
ScriptLib.PrintContextLog(context, "## leave_test :"..evt.param1)
return 0
end

View File

@@ -0,0 +1,191 @@
-- 基础信息
local base_info = {
group_id = 111101059
}
-- Trigger变量
local defs = {
active_step = 201,
inactive_step = 0,
gadget_array = {59001,59002,59003,59004,59005},
reset_gear_list = {}
}
-- DEFS_MISCS
local v = 0
local v_error = 0
local max_bit = #defs.gadget_array
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 59001, gadget_id = 70900056, pos = { x = 2791.482, y = 262.211, z = -1687.551 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 59002, gadget_id = 70900056, pos = { x = 2797.614, y = 262.366, z = -1688.897 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 59003, gadget_id = 70900056, pos = { x = 2803.183, y = 262.646, z = -1691.636 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 59004, gadget_id = 70900056, pos = { x = 2808.545, y = 263.093, z = -1696.578 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 59005, gadget_id = 70900056, pos = { x = 2810.821, y = 263.716, z = -1702.131 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1059006, name = "GADGET_STATE_CHANGE_59006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_59006", action = "action_EVENT_GADGET_STATE_CHANGE_59006", trigger_count = 0 },
{ config_id = 1059007, name = "VARIABLE_CHANGE_59007", event = EventType.EVENT_VARIABLE_CHANGE, source = "gear_reset", condition = "", action = "action_EVENT_VARIABLE_CHANGE_59007", trigger_count = 0 },
{ config_id = 1059008, name = "VARIABLE_CHANGE_59008", event = EventType.EVENT_VARIABLE_CHANGE, source = "trigger_output", condition = "condition_EVENT_VARIABLE_CHANGE_59008", action = "action_EVENT_VARIABLE_CHANGE_59008", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "sort", value = 0, no_refresh = false },
{ config_id = 2, name = "gear_reset", value = 0, no_refresh = false },
{ config_id = 3, name = "v_error", value = 0, no_refresh = false },
{ config_id = 4, name = "trigger_output", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 59001, 59002, 59003, 59004, 59005 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_59006", "VARIABLE_CHANGE_59007", "VARIABLE_CHANGE_59008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_59006(context, evt)
for i=1,#defs.gadget_array do
if defs.gadget_array[i] == evt.param2 then
return true
end
end
return false
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_59006(context, evt)
if max_bit > 9 or max_bit <= 1 then
return -1
end
if evt.param1 == defs.active_step then
--操作顺序入栈
for i = 1,max_bit do
if defs.gadget_array[i] == evt.param2 then
v = ScriptLib.GetGroupVariableValue(context, "sort")
v = 10*v + i
ScriptLib.SetGroupVariableValue(context, "sort", v)
break
end
if i == max_bit and defs.gadget_array[i] ~= evt.param2 then
ScriptLib.SetGroupVariableValue(context, "v_error", 1)
v = 10*v
end
end
end
--v的位数足够时进行出栈检测
if v > 10^(max_bit-1) then
v_error = ScriptLib.GetGroupVariableValue(context, "v_error")
--v_error有问题时直接清空栈并重置
if 0 == v_error then
for i=max_bit,1,-1 do
if v%10 ~= i then
v_error = 1
break
end
v = math.floor(v/10)
end
end
v = 0
if v_error ~= 1 then
v_error = -1
end
ScriptLib.SetGroupVariableValue(context, "sort", v)
ScriptLib.SetGroupVariableValue(context, "gear_reset", v_error)
ScriptLib.SetGroupVariableValue(context, "v_error", 0)
end
return 0
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_59007(context, evt)
if evt.param1 == evt.param2 then return -1 end
if evt.param1 == evt.param2 then
return -1
end
if evt.param1 == 1 then
if #defs.reset_gear_list == 0 then
defs.reset_gear_list = suites[1].gadgets
end
for i=1,#defs.reset_gear_list do
ScriptLib.SetGroupGadgetStateByConfigId(context, 0, defs.reset_gear_list[i], defs.inactive_step)
end
ScriptLib.SetGroupVariableValue(context, "gear_reset", 0)
else
--外接标记
ScriptLib.ChangeGroupVariableValue(context, "trigger_output", 1)
end
--还原标记
ScriptLib.SetGroupVariableValue(context, "gear_reset", 0)
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_59008(context, evt)
if evt.param1 == evt.param2 then return false end
if evt.param1 > 0 and evt.param1 ~= evt.param2 then
return true
end
return false
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_59008(context, evt)
ScriptLib.PrintLog("## trigger_output="..evt.param1)
ScriptLib.SetGroupDead(context, 0)
return 0
end

View File

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

View File

@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 111101062
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 62001, monster_id = 25010301, pos = { x = 2464.628, y = 205.639, z = -1171.603 }, rot = { x = 0.000, y = 216.095, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true },
{ config_id = 62002, monster_id = 25010501, pos = { x = 2450.931, y = 205.395, z = -1187.202 }, rot = { x = 0.096, y = 67.236, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true },
{ config_id = 62003, monster_id = 25070101, pos = { x = 2457.703, y = 199.279, z = -1179.842 }, rot = { x = 0.000, y = 99.149, z = 0.000 }, level = 40, drop_tag = "盗宝团" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 62001, 62002, 62003 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 111101063
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 63001, monster_id = 25070101, pos = { x = 2404.540, y = 203.227, z = -1156.981 }, rot = { x = 0.000, y = 123.855, z = 0.000 }, level = 40, drop_tag = "盗宝团" },
{ config_id = 63002, monster_id = 25070101, pos = { x = 2407.381, y = 203.090, z = -1153.132 }, rot = { x = 0.000, y = 154.706, z = 0.000 }, level = 40, drop_tag = "盗宝团" },
{ config_id = 63003, monster_id = 25030201, pos = { x = 2407.772, y = 203.007, z = -1157.144 }, rot = { x = 0.000, y = 126.929, z = 0.000 }, level = 40, drop_tag = "盗宝团" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 63001, 63002, 63003 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,74 @@
-- 基础信息
local base_info = {
group_id = 111101064
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 64001, monster_id = 25010601, pos = { x = 2314.948, y = 217.828, z = -1112.150 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true },
{ config_id = 64002, monster_id = 25010601, pos = { x = 2309.524, y = 217.828, z = -1112.150 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true },
{ config_id = 64003, monster_id = 25030301, pos = { x = 2312.348, y = 217.828, z = -1112.150 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 40, drop_tag = "盗宝团" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 64001, 64002, 64003 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 111101065
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 65001, monster_id = 25010301, pos = { x = 2375.588, y = 206.688, z = -1143.989 }, rot = { x = 0.000, y = 28.914, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true },
{ config_id = 65002, monster_id = 25010501, pos = { x = 2371.111, y = 205.524, z = -1139.057 }, rot = { x = 0.000, y = 86.726, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true },
{ config_id = 65003, monster_id = 25010601, pos = { x = 2373.840, y = 205.911, z = -1134.463 }, rot = { x = 0.000, y = 124.604, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true },
{ config_id = 65004, monster_id = 25030301, pos = { x = 2375.958, y = 205.334, z = -1138.978 }, rot = { x = 0.000, y = 78.270, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 65001, 65002, 65003, 65004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,126 @@
-- 基础信息
local base_info = {
group_id = 111101066
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 66001, gadget_id = 70350211, pos = { x = 2663.911, y = 195.026, z = -1661.105 }, rot = { x = 0.000, y = 190.976, z = 0.000 }, level = 1, route_id = 110100067 },
{ config_id = 66002, gadget_id = 70350212, pos = { x = 2665.523, y = 196.657, z = -1665.559 }, rot = { x = 0.000, y = 186.916, z = 0.000 }, level = 1, route_id = 110100068 },
{ config_id = 66003, gadget_id = 70350212, pos = { x = 2670.065, y = 196.657, z = -1666.708 }, rot = { x = 0.000, y = 180.000, z = 0.000 }, level = 1, route_id = 110100069 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 使接收器复原
{ config_id = 1066004, name = "GADGET_STATE_CHANGE_66004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_66004", action = "action_EVENT_GADGET_STATE_CHANGE_66004", trigger_count = 0 },
-- 使接收器复原
{ config_id = 1066005, name = "GADGET_STATE_CHANGE_66005", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_66005", action = "action_EVENT_GADGET_STATE_CHANGE_66005", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 66001, 66002, 66003 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_66004", "GADGET_STATE_CHANGE_66005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_66004(context, evt)
-- 检测config_id为66002的gadget是否从GadgetState.GearStart变为GadgetState.Default
if 66002 ~= evt.param2 or GadgetState.Default ~= evt.param1 or GadgetState.GearStart ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_66004(context, evt)
-- 将configid为 66001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 66001, 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_66005(context, evt)
-- 检测config_id为66001的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 66001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_66005(context, evt)
-- 将configid为 66002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 66002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 66003 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 66003, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 111101067
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 67001, gadget_id = 70950073, pos = { x = 2720.198, y = 197.028, z = -1674.438 }, rot = { x = 0.000, y = 315.439, z = 0.000 }, level = 1 },
{ config_id = 67002, gadget_id = 70950076, pos = { x = 2718.334, y = 197.373, z = -1672.550 }, rot = { x = 0.000, y = 314.910, 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 = { 67001, 67002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,106 @@
-- 基础信息
local base_info = {
group_id = 111101068
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 68001, monster_id = 25010301, pos = { x = 2275.804, y = 206.536, z = -1124.679 }, rot = { x = 0.000, y = 74.967, z = 0.000 }, level = 40, drop_tag = "盗宝团" },
{ config_id = 68002, monster_id = 25010601, pos = { x = 2291.948, y = 209.875, z = -1121.737 }, rot = { x = 0.000, y = 276.208, z = 0.000 }, level = 40, drop_tag = "盗宝团" },
{ config_id = 68003, monster_id = 25010401, pos = { x = 2280.928, y = 211.579, z = -1133.214 }, rot = { x = 0.000, y = 23.533, z = 0.000 }, level = 40, drop_tag = "盗宝团" },
{ config_id = 68005, monster_id = 25010501, pos = { x = 2285.190, y = 206.633, z = -1116.085 }, rot = { x = 0.000, y = 168.729, z = 0.000 }, level = 40, drop_tag = "盗宝团" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 68004, shape = RegionShape.SPHERE, radius = 10, pos = { x = 2282.280, y = 207.063, z = -1123.859 } }
}
-- 触发器
triggers = {
{ config_id = 1068004, name = "ENTER_REGION_68004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_68004", action = "action_EVENT_ENTER_REGION_68004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 68004 },
triggers = { "ENTER_REGION_68004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 68001, 68002, 68003, 68005 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_68004(context, evt)
if evt.param1 ~= 68004 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_68004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101068, 2)
return 0
end

View File

@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 111101069
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 69001, monster_id = 25010601, pos = { x = 2502.729, y = 201.909, z = -1124.295 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true },
{ config_id = 69002, monster_id = 25010601, pos = { x = 2515.397, y = 202.801, z = -1113.968 }, rot = { x = 0.000, y = 218.633, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true },
{ config_id = 69003, monster_id = 25010601, pos = { x = 2509.135, y = 201.913, z = -1111.836 }, rot = { x = 0.000, y = 180.619, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true },
{ config_id = 69004, monster_id = 25010501, pos = { x = 2494.429, y = 206.804, z = -1119.897 }, rot = { x = 0.000, y = 81.997, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 69001, 69002, 69003, 69004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,75 @@
-- 基础信息
local base_info = {
group_id = 111101070
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 70001, monster_id = 25010301, pos = { x = 2452.425, y = 209.752, z = -1116.343 }, rot = { x = 0.000, y = 185.343, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true },
{ config_id = 70002, monster_id = 25010301, pos = { x = 2459.213, y = 209.345, z = -1119.002 }, rot = { x = 0.000, y = 224.791, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true },
{ config_id = 70003, monster_id = 25070101, pos = { x = 2452.561, y = 209.377, z = -1124.628 }, rot = { x = 0.000, y = 207.921, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true },
{ config_id = 70004, monster_id = 25010501, pos = { x = 2445.294, y = 209.744, z = -1121.447 }, rot = { x = 0.000, y = 120.376, z = 0.000 }, level = 40, drop_tag = "盗宝团", disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 70001, 70002, 70003, 70004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,133 @@
-- 基础信息
local base_info = {
group_id = 111101071
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
-- 废弃数据
garbages = {
monsters = {
{ config_id = 71004, monster_id = 21010301, pos = { x = 2638.850, y = 381.125, z = -1730.274 }, rot = { x = 0.000, y = 14.880, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
{ config_id = 71005, monster_id = 21010301, pos = { x = 2637.591, y = 380.783, z = -1729.575 }, rot = { x = 0.000, y = 28.592, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
{ config_id = 71006, monster_id = 21010101, pos = { x = 2635.859, y = 380.431, z = -1729.764 }, rot = { x = 0.000, y = 72.068, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
{ config_id = 71007, monster_id = 21010101, pos = { x = 2635.296, y = 379.875, z = -1726.780 }, rot = { x = 0.000, y = 95.347, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
{ config_id = 71008, monster_id = 21010101, pos = { x = 2639.870, y = 381.306, z = -1731.572 }, rot = { x = 0.000, y = 356.304, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
{ config_id = 71009, monster_id = 21010101, pos = { x = 2641.899, y = 381.682, z = -1731.151 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" }
},
npcs = {
{ config_id = 71001, npc_id = 10045, pos = { x = 2639.752, y = 381.183, z = -1728.017 }, rot = { x = 0.000, y = 207.600, z = 0.000 } },
{ config_id = 71002, npc_id = 1001, pos = { x = 2639.433, y = 381.134, z = -1727.500 }, rot = { x = 0.000, y = 202.640, z = 0.000 } },
{ config_id = 71003, npc_id = 1008, pos = { x = 2638.723, y = 380.915, z = -1727.417 }, rot = { x = 0.000, y = 189.379, z = 0.000 } }
},
gadgets = {
{ config_id = 71012, gadget_id = 70360014, pos = { x = 2639.379, y = 381.154, z = -1728.790 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 110100020 },
{ config_id = 71015, gadget_id = 70220013, pos = { x = 2602.721, y = 368.309, z = -1712.043 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 71016, gadget_id = 70220013, pos = { x = 2601.479, y = 367.580, z = -1709.983 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 71020, gadget_id = 70220013, pos = { x = 2599.853, y = 367.057, z = -1709.891 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 71021, gadget_id = 70220013, pos = { x = 2603.281, y = 368.133, z = -1709.950 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 71022, gadget_id = 70211001, pos = { x = 2601.276, y = 368.390, z = -1715.153 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 6, drop_tag = "战斗低级蒙德", showcutscene = true, isOneoff = true, persistent = true }
},
regions = {
{ config_id = 71010, shape = RegionShape.SPHERE, radius = 7.8, pos = { x = 2636.096, y = 380.685, z = -1731.195 } }
},
triggers = {
{ config_id = 1071010, name = "ENTER_REGION_71010", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_71010", action = "action_EVENT_ENTER_REGION_71010" },
{ config_id = 1071011, name = "ANY_MONSTER_DIE_71011", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_71011", action = "action_EVENT_ANY_MONSTER_DIE_71011" },
{ config_id = 1071013, name = "ANY_GADGET_DIE_71013", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_71013", action = "action_EVENT_ANY_GADGET_DIE_71013" },
{ config_id = 1071023, name = "AVATAR_NEAR_PLATFORM_71023", event = EventType.EVENT_AVATAR_NEAR_PLATFORM, source = "", condition = "condition_EVENT_AVATAR_NEAR_PLATFORM_71023", action = "action_EVENT_AVATAR_NEAR_PLATFORM_71023" },
{ config_id = 1071024, name = "PLATFORM_REACH_POINT_71024", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_71024", action = "action_EVENT_PLATFORM_REACH_POINT_71024" }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,105 @@
-- 基础信息
local base_info = {
group_id = 111101072
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 72001, monster_id = 25010501, pos = { x = 2500.632, y = 206.475, z = -1233.111 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 40, drop_tag = "盗宝团" },
{ config_id = 72002, monster_id = 25010301, pos = { x = 2498.243, y = 205.852, z = -1232.949 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 40, drop_tag = "盗宝团" },
{ config_id = 72003, monster_id = 25030301, pos = { x = 2499.296, y = 200.959, z = -1225.069 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 40, drop_tag = "盗宝团" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 72004, shape = RegionShape.SPHERE, radius = 10, pos = { x = 2503.944, y = 201.585, z = -1226.108 } }
}
-- 触发器
triggers = {
{ config_id = 1072004, name = "ENTER_REGION_72004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_72004", action = "action_EVENT_ENTER_REGION_72004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { 72004 },
triggers = { "ENTER_REGION_72004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 72001, 72002, 72003 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_72004(context, evt)
if evt.param1 ~= 72004 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_72004(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101072, 2)
return 0
end

View File

@@ -0,0 +1,72 @@
-- 基础信息
local base_info = {
group_id = 111101073
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 73001, monster_id = 21010101, pos = { x = 2660.666, y = 269.187, z = -1562.905 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 73001 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,79 @@
-- 基础信息
local base_info = {
group_id = 111101074
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 74001, monster_id = 26010101, pos = { x = 2524.830, y = 217.802, z = -1398.818 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20, drop_tag = "骗骗花" },
{ config_id = 74002, monster_id = 26010201, pos = { x = 2523.420, y = 220.112, z = -1411.124 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 20, drop_tag = "骗骗花" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 74003, gadget_id = 70500000, pos = { x = 2465.170, y = 219.213, z = -1369.467 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2001 },
{ config_id = 74004, gadget_id = 70500000, pos = { x = 2476.990, y = 222.199, z = -1382.507 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2001 },
{ config_id = 74005, gadget_id = 70500000, pos = { x = 2473.818, y = 221.478, z = -1384.968 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2001 },
{ config_id = 74006, gadget_id = 70500000, pos = { x = 2461.308, y = 219.645, z = -1368.657 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2001 },
{ config_id = 74007, gadget_id = 70500000, pos = { x = 2495.850, y = 224.217, z = -1389.867 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2004 },
{ config_id = 74008, gadget_id = 70500000, pos = { x = 2497.205, y = 224.456, z = -1392.508 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2004 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 74001, 74002 },
gadgets = { 74003, 74004, 74005, 74006, 74007, 74008 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,95 @@
-- 基础信息
local base_info = {
group_id = 111101075
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 75001, monster_id = 21011501, pos = { x = 2643.440, y = 252.778, z = -1680.104 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1075002, name = "ANY_MONSTER_DIE_75002", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_75002", action = "action_EVENT_ANY_MONSTER_DIE_75002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 75001 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_75002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_75002(context, evt)
--判断死亡怪物的死亡类型是否为20为普通死亡比如被击杀1为普通地被killself杀死2为消失比如小动物逃跑消失北风狼脱战消失
if evt.param2 ~= 2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_75002(context, evt)
-- 调用提示id为 1109002 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1109002) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui")
return -1
end
return 0
end

View File

@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 111101076
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 76001, gadget_id = 70310010, pos = { x = 2785.062, y = 195.949, z = -1771.259 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 76002, gadget_id = 70310010, pos = { x = 2785.062, y = 195.949, z = -1771.259 }, 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 = { 76001, 76002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,149 @@
-- 基础信息
local base_info = {
group_id = 111101077
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 77001, gadget_id = 70500000, pos = { x = 2871.307, y = 259.778, z = -1805.316 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 1003, persistent = true },
{ config_id = 77002, gadget_id = 70500000, pos = { x = 2873.651, y = 259.006, z = -1808.899 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 1003, persistent = true },
{ config_id = 77003, gadget_id = 70360001, pos = { x = 2873.228, y = 259.349, z = -1806.974 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 77008, gadget_id = 70500000, pos = { x = 2874.812, y = 259.233, z = -1805.561 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 1005, persistent = true },
{ config_id = 77009, gadget_id = 70500000, pos = { x = 2869.796, y = 259.723, z = -1808.178 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 1005, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1077004, name = "GROUP_REFRESH_77004", event = EventType.EVENT_GROUP_REFRESH, source = "", condition = "", action = "action_EVENT_GROUP_REFRESH_77004" },
{ config_id = 1077005, name = "ANY_GADGET_DIE_77005", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "", action = "action_EVENT_ANY_GADGET_DIE_77005", trigger_count = 0 },
{ config_id = 1077006, name = "BLOSSOM_PROGRESS_FINISH_77006", event = EventType.EVENT_BLOSSOM_PROGRESS_FINISH, source = "", condition = "", action = "action_EVENT_BLOSSOM_PROGRESS_FINISH_77006" },
{ config_id = 1077007, name = "GROUP_LOAD_77007", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_77007" }
}
-- 变量
variables = {
{ config_id = 1, name = "GroupCompletion", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 77008, 77009 },
regions = { },
triggers = { "GROUP_LOAD_77007" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 开关suite,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_REFRESH_77004", "ANY_GADGET_DIE_77005", "BLOSSOM_PROGRESS_FINISH_77006" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 战斗suite,
monsters = { },
gadgets = { 77001, 77002, 77003 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GROUP_REFRESH_77004(context, evt)
-- 指定group的循环玩法进度加1
if 0 ~= ScriptLib.SetBlossomScheduleStateByGroupId(context, 111101077, 2) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_blossomscehedule_byGroupId")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 111101077, 3)
return 0
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_77005(context, evt)
-- 指定group的循环玩法进度加1
ScriptLib.AddBlossomScheduleProgressByGroupId(context, 111101077)
return 0
end
-- 触发操作
function action_EVENT_BLOSSOM_PROGRESS_FINISH_77006(context, evt)
-- 指定group的循环玩法进度加1
if 0 ~= ScriptLib.SetBlossomScheduleStateByGroupId(context, 111101077, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_blossomscehedule_byGroupId")
return -1
end
-- 将本组内变量名为 "GroupCompletion" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "GroupCompletion", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_77007(context, evt)
-- 刷新本group,指定suite与等级修正,自动通知对应循环玩法的进度
if 0 ~= ScriptLib.RefreshBlossomGroup(context, { group_id = 0, suite = 2, exclude_prev = true }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_blossom_group")
return -1
end
return 0
end

View File

@@ -0,0 +1,79 @@
-- 基础信息
local base_info = {
group_id = 111101078
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 78001, monster_id = 28030501, pos = { x = 2543.919, y = 211.480, z = -1323.193 }, rot = { x = 0.000, y = 26.786, z = 0.000 }, level = 1, drop_tag = "鸟类" },
{ config_id = 78002, monster_id = 28030501, pos = { x = 2541.127, y = 211.480, z = -1324.367 }, rot = { x = 0.000, y = 26.786, z = 0.000 }, level = 1, drop_tag = "鸟类" },
{ config_id = 78003, monster_id = 28030501, pos = { x = 2544.510, y = 211.480, z = -1327.333 }, rot = { x = 0.000, y = 26.786, z = 0.000 }, level = 1, drop_tag = "鸟类" },
{ config_id = 78004, monster_id = 28030501, pos = { x = 2541.026, y = 211.480, z = -1327.598 }, rot = { x = 0.000, y = 26.786, z = 0.000 }, level = 1, drop_tag = "鸟类" },
{ config_id = 78005, monster_id = 28030501, pos = { x = 2582.068, y = 211.480, z = -1330.114 }, rot = { x = 0.000, y = 26.786, z = 0.000 }, level = 1, drop_tag = "鸟类" },
{ config_id = 78006, monster_id = 28030501, pos = { x = 2581.260, y = 211.480, z = -1333.411 }, rot = { x = 0.000, y = 26.786, z = 0.000 }, level = 1, drop_tag = "鸟类" },
{ config_id = 78007, monster_id = 28030501, pos = { x = 2580.165, y = 211.480, z = -1334.845 }, rot = { x = 0.000, y = 26.786, z = 0.000 }, level = 1, drop_tag = "鸟类" },
{ config_id = 78008, monster_id = 28030501, pos = { x = 2579.467, y = 211.480, z = -1336.396 }, rot = { x = 0.000, y = 26.786, z = 0.000 }, level = 1, drop_tag = "鸟类" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 78001, 78002, 78003, 78004, 78005, 78006, 78007, 78008 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,85 @@
-- 基础信息
local base_info = {
group_id = 111101079
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 79001, gadget_id = 70900379, pos = { x = 2596.550, y = 211.433, z = -1381.856 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, talk_state = 6800004 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1079002, name = "GADGETTALK_DONE_79002", event = EventType.EVENT_GADGETTALK_DONE, source = "6800004", condition = "", action = "action_EVENT_GADGETTALK_DONE_79002" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 79001 },
regions = { },
triggers = { "GADGETTALK_DONE_79002" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_GADGETTALK_DONE_79002(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 79001 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,181 @@
-- 基础信息
local base_info = {
group_id = 111101080
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 80001, monster_id = 26010101, pos = { x = 2497.681, y = 224.208, z = -1390.461 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "骗骗花" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 80002, gadget_id = 70510013, pos = { x = 2497.681, y = 224.208, z = -1390.461 }, rot = { x = 0.000, y = 319.800, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1080003, name = "GADGET_STATE_CHANGE_80003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_80003", action = "action_EVENT_GADGET_STATE_CHANGE_80003", trigger_count = 0 },
{ config_id = 1080004, name = "ANY_MONSTER_DIE_80004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_80004", action = "action_EVENT_ANY_MONSTER_DIE_80004" },
{ config_id = 1080005, name = "GADGET_CREATE_80005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_80005", action = "action_EVENT_GADGET_CREATE_80005", trigger_count = 0 },
{ config_id = 1080006, name = "SELECT_OPTION_80006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_80006", action = "action_EVENT_SELECT_OPTION_80006", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 80002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_80003", "ANY_MONSTER_DIE_80004", "GADGET_CREATE_80005", "SELECT_OPTION_80006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 80001 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_80003(context, evt)
if 80002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_80003(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101080, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_80004(context, evt)
if 80001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_80004(context, evt)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2002, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_80005(context, evt)
if 80002 ~= evt.param1 or GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_80005(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101080, 80002, {173}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_80006(context, evt)
-- 判断是gadgetid 80002 option_id 173
if 80002 ~= evt.param1 then
return false
end
if 173 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_80006(context, evt)
-- 将configid为 80002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 80002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 111101080 指定config80002物件身上指定option173
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 111101080, 80002, 173) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2002, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end

View File

@@ -0,0 +1,181 @@
-- 基础信息
local base_info = {
group_id = 111101081
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 81001, monster_id = 26010201, pos = { x = 2463.896, y = 219.379, z = -1366.444 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "骗骗花" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 81002, gadget_id = 70510014, pos = { x = 2463.924, y = 219.391, z = -1366.430 }, rot = { x = 0.000, y = 319.800, z = 0.000 }, level = 1, isOneoff = true, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1081003, name = "GADGET_STATE_CHANGE_81003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_81003", action = "action_EVENT_GADGET_STATE_CHANGE_81003", trigger_count = 0 },
{ config_id = 1081004, name = "ANY_MONSTER_DIE_81004", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_81004", action = "action_EVENT_ANY_MONSTER_DIE_81004" },
{ config_id = 1081005, name = "GADGET_CREATE_81005", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_81005", action = "action_EVENT_GADGET_CREATE_81005", trigger_count = 0 },
{ config_id = 1081006, name = "SELECT_OPTION_81006", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_81006", action = "action_EVENT_SELECT_OPTION_81006", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 81002 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_81003", "ANY_MONSTER_DIE_81004", "GADGET_CREATE_81005", "SELECT_OPTION_81006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 81001 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_81003(context, evt)
if 81002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_81003(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101081, 2)
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_81004(context, evt)
if 81001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_81004(context, evt)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2002, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_81005(context, evt)
if 81002 ~= evt.param1 or GadgetState.Default ~= ScriptLib.GetGadgetStateByConfigId(context, 0, evt.param1) then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_81005(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101081, 81002, {174}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_81006(context, evt)
-- 判断是gadgetid 81002 option_id 174
if 81002 ~= evt.param1 then
return false
end
if 174 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_81006(context, evt)
-- 将configid为 81002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 81002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 111101081 指定config81002物件身上指定option174
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 111101081, 81002, 174) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 2002, 1, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end

View File

@@ -0,0 +1,232 @@
-- 基础信息
local base_info = {
group_id = 111101082
}
-- Trigger变量
local defs = {
duration = 30,
kill_sum = 1,
group_id = 111101082,
gadget_controller_id = 82003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 82001, monster_id = 23030101, pos = { x = 2477.860, y = 198.120, z = -1216.498 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 9002 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 82002, gadget_id = 70360047, pos = { x = 2477.781, y = 198.120, z = -1212.029 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗高级蒙德", state = GadgetState.Action01, isOneoff = true, persistent = true },
{ config_id = 82003, gadget_id = 70360001, pos = { x = 2477.798, y = 198.120, z = -1211.998 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1082004, name = "GADGET_STATE_CHANGE_82004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_82004", action = "action_EVENT_GADGET_STATE_CHANGE_82004" },
{ config_id = 1082005, name = "CHALLENGE_SUCCESS_82005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "180", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_82005" },
{ config_id = 1082006, name = "CHALLENGE_FAIL_82006", event = EventType.EVENT_CHALLENGE_FAIL, source = "180", condition = "", action = "action_EVENT_CHALLENGE_FAIL_82006", trigger_count = 0 },
{ config_id = 1082007, name = "GADGET_CREATE_82007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_82007", action = "action_EVENT_GADGET_CREATE_82007", trigger_count = 0 },
{ config_id = 1082008, name = "SELECT_OPTION_82008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_82008", action = "action_EVENT_SELECT_OPTION_82008", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 82002, 82003 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_82004", "CHALLENGE_SUCCESS_82005", "CHALLENGE_FAIL_82006", "GADGET_CREATE_82007", "SELECT_OPTION_82008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 82001 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_82004(context, evt)
if 82002 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_82004(context, evt)
-- 销毁group存档不影响当前场景但卸载后group就永别了
if 0 ~= ScriptLib.SetGroupDead(context, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_group_die")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_82005(context, evt)
-- 将configid为 82002 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 82002, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_82006(context, evt)
-- 将configid为 82002 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 82002, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为82003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 82003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101082, 2)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 111101082, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_82007(context, evt)
if 82003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_82007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101082, 82003, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_82008(context, evt)
-- 判断是gadgetid 82003 option_id 177
if 82003 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_82008(context, evt)
-- 180号挑战,duration内击杀kill_sum的怪物
if 0 ~= ScriptLib.ActiveChallenge(context, 180, 180, defs.duration, defs.group_id, defs.kill_sum, 0) then
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 2)
--永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_controller_id }) then
return -1
end
-- 将configid为 2002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 82002, GadgetState.GearStart) then
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 1, 1) then
return -1
end
return 0
end

View File

@@ -0,0 +1,232 @@
-- 基础信息
local base_info = {
group_id = 111101083
}
-- Trigger变量
local defs = {
duration = 30,
kill_sum = 1,
group_id = 111101083,
gadget_controller_id = 83003
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 83001, monster_id = 20010201, pos = { x = 2547.641, y = 210.504, z = -1240.257 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 9002 }, pose_id = 201 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 83002, gadget_id = 70360047, pos = { x = 2547.562, y = 209.748, z = -1235.788 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "战斗高级蒙德", state = GadgetState.Action01, isOneoff = true, persistent = true },
{ config_id = 83003, gadget_id = 70360001, pos = { x = 2547.580, y = 209.748, z = -1235.758 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1083004, name = "GADGET_STATE_CHANGE_83004", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_83004", action = "action_EVENT_GADGET_STATE_CHANGE_83004" },
{ config_id = 1083005, name = "CHALLENGE_SUCCESS_83005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "180", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_83005" },
{ config_id = 1083006, name = "CHALLENGE_FAIL_83006", event = EventType.EVENT_CHALLENGE_FAIL, source = "180", condition = "", action = "action_EVENT_CHALLENGE_FAIL_83006", trigger_count = 0 },
{ config_id = 1083007, name = "GADGET_CREATE_83007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_83007", action = "action_EVENT_GADGET_CREATE_83007", trigger_count = 0 },
{ config_id = 1083008, name = "SELECT_OPTION_83008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_83008", action = "action_EVENT_SELECT_OPTION_83008", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 83002, 83003 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_83004", "CHALLENGE_SUCCESS_83005", "CHALLENGE_FAIL_83006", "GADGET_CREATE_83007", "SELECT_OPTION_83008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { 83001 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_83004(context, evt)
if 83002 ~= evt.param2 or GadgetState.ChestOpened ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_83004(context, evt)
-- 销毁group存档不影响当前场景但卸载后group就永别了
if 0 ~= ScriptLib.SetGroupDead(context, 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_group_die")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_83005(context, evt)
-- 将configid为 83002 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 83002, GadgetState.GearAction1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_83006(context, evt)
-- 将configid为 83002 的物件更改为状态 GadgetState.Action01
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 83002, GadgetState.Action01) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为83003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 83003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101083, 2)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 111101083, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_83007(context, evt)
if 83003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_83007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101083, 83003, {177}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_83008(context, evt)
-- 判断是gadgetid 83003 option_id 177
if 83003 ~= evt.param1 then
return false
end
if 177 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_83008(context, evt)
-- 180号挑战,duration内击杀kill_sum的怪物
if 0 ~= ScriptLib.ActiveChallenge(context, 180, 180, defs.duration, defs.group_id, defs.kill_sum, 0) then
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 2)
--永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = defs.gadget_controller_id }) then
return -1
end
-- 将configid为 2002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 83002, GadgetState.GearStart) then
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3001, 1, 1) then
return -1
end
return 0
end

View File

@@ -0,0 +1,134 @@
-- 基础信息
local base_info = {
group_id = 111101084
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 84001, gadget_id = 70710131, pos = { x = 2468.322, y = 223.681, z = -1322.562 }, rot = { x = 0.000, y = 223.447, z = 0.000 }, level = 1, persistent = true },
{ config_id = 84002, gadget_id = 70360001, pos = { x = 2468.322, y = 223.681, z = -1322.562 }, rot = { x = 0.000, y = 223.447, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1084003, name = "GADGET_CREATE_84003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_84003", action = "action_EVENT_GADGET_CREATE_84003" },
{ config_id = 1084004, name = "SELECT_OPTION_84004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_84004", action = "action_EVENT_SELECT_OPTION_84004", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 84001, 84002 },
regions = { },
triggers = { "GADGET_CREATE_84003", "SELECT_OPTION_84004" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_84003(context, evt)
if 84001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_84003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101084, 84002, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_84004(context, evt)
-- 判断是gadgetid 84002 option_id 7
if 84002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_84004(context, evt)
-- 将configid为 84001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 84001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除指定group 111101084 指定config84002物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 111101084, 84002, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 84002 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,145 @@
-- 基础信息
local base_info = {
group_id = 111101085
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 85001, gadget_id = 70710132, pos = { x = 2457.851, y = 221.877, z = -1331.290 }, rot = { x = 0.000, y = 318.084, z = 0.000 }, level = 1, persistent = true },
{ config_id = 85002, gadget_id = 70360001, pos = { x = 2457.851, y = 221.877, z = -1331.290 }, rot = { x = 0.000, y = 318.084, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1085003, name = "GADGET_CREATE_85003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_85003", action = "action_EVENT_GADGET_CREATE_85003" },
{ config_id = 1085004, name = "SELECT_OPTION_85004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_85004", action = "action_EVENT_SELECT_OPTION_85004", trigger_count = 0 },
{ config_id = 1085005, name = "TIMER_EVENT_85005", event = EventType.EVENT_TIMER_EVENT, source = "waitForRecharge", condition = "", action = "action_EVENT_TIMER_EVENT_85005" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 85001, 85002 },
regions = { },
triggers = { "GADGET_CREATE_85003", "SELECT_OPTION_85004", "TIMER_EVENT_85005" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_85003(context, evt)
if 85001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_85003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101085, 85002, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_85004(context, evt)
-- 判断是gadgetid 85002 option_id 7
if 85002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_85004(context, evt)
-- 将configid为 85001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 85001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 延迟10秒后,向groupId为111101085的对象,请求一次调用,并将string参数"waitForRecharge" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 111101085, "waitForRecharge", 10) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 删除指定group 111101085 指定config85002物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 111101085, 85002, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_85005(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101085, 85002, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end

View File

@@ -0,0 +1,176 @@
-- 基础信息
local base_info = {
group_id = 111101086
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 86001, gadget_id = 70500000, pos = { x = 2705.088, y = 273.612, z = -1515.211 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 1001 },
{ config_id = 86002, gadget_id = 70500000, pos = { x = 2702.505, y = 273.677, z = -1516.686 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 1002 },
{ config_id = 86003, gadget_id = 70500000, pos = { x = 2699.965, y = 273.843, z = -1518.500 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 1003 },
{ config_id = 86004, gadget_id = 70500000, pos = { x = 2697.125, y = 274.210, z = -1519.714 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 1004 },
{ config_id = 86005, gadget_id = 70500000, pos = { x = 2695.041, y = 274.242, z = -1521.523 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 1005 },
{ config_id = 86006, gadget_id = 70500000, pos = { x = 2707.666, y = 273.519, z = -1517.305 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2001 },
{ config_id = 86007, gadget_id = 70500000, pos = { x = 2704.723, y = 273.607, z = -1519.665 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2002 },
{ config_id = 86008, gadget_id = 70500000, pos = { x = 2702.416, y = 273.660, z = -1521.259 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2003 },
{ config_id = 86009, gadget_id = 70500000, pos = { x = 2699.001, y = 273.948, z = -1522.940 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2019 },
{ config_id = 86010, gadget_id = 70500000, pos = { x = 2696.402, y = 274.316, z = -1524.231 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2004 },
{ config_id = 86011, gadget_id = 70500000, pos = { x = 2710.252, y = 273.544, z = -1519.446 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2005 },
{ config_id = 86012, gadget_id = 70500000, pos = { x = 2706.907, y = 273.802, z = -1521.711 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2006 },
{ config_id = 86013, gadget_id = 70500000, pos = { x = 2703.909, y = 273.913, z = -1523.358 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2007 },
{ config_id = 86014, gadget_id = 70500000, pos = { x = 2700.141, y = 274.042, z = -1524.765 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2008 },
{ config_id = 86015, gadget_id = 70500000, pos = { x = 2697.342, y = 274.484, z = -1526.357 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2009 },
{ config_id = 86016, gadget_id = 70500000, pos = { x = 2712.082, y = 273.623, z = -1521.482 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3011 },
{ config_id = 86017, gadget_id = 70500000, pos = { x = 2708.196, y = 273.936, z = -1523.336 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2012 },
{ config_id = 86018, gadget_id = 70500000, pos = { x = 2705.167, y = 274.119, z = -1525.234 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2013 },
{ config_id = 86019, gadget_id = 70500000, pos = { x = 2701.605, y = 274.356, z = -1527.657 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2014 },
{ config_id = 86020, gadget_id = 70500000, pos = { x = 2698.516, y = 274.798, z = -1529.013 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2025 },
{ config_id = 86021, gadget_id = 70500000, pos = { x = 2713.583, y = 273.815, z = -1522.915 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2026 },
{ config_id = 86022, gadget_id = 70500000, pos = { x = 2709.945, y = 274.073, z = -1525.303 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2027 },
{ config_id = 86023, gadget_id = 70500000, pos = { x = 2706.936, y = 274.276, z = -1527.661 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2028 },
{ config_id = 86024, gadget_id = 70500000, pos = { x = 2703.006, y = 274.470, z = -1530.326 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2029 },
{ config_id = 86025, gadget_id = 70500000, pos = { x = 2699.554, y = 274.752, z = -1531.699 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2030 },
{ config_id = 86026, gadget_id = 70290002, pos = { x = 2719.320, y = 274.834, z = -1529.757 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86027, gadget_id = 70500000, pos = { x = 2718.249, y = 276.452, z = -1529.043 }, rot = { x = 0.000, y = 265.000, z = 0.000 }, level = 1, point_type = 3001, owner = 86026 },
{ config_id = 86028, gadget_id = 70500000, pos = { x = 2720.190, y = 277.462, z = -1530.768 }, rot = { x = 0.000, y = 314.000, z = 0.000 }, level = 1, point_type = 3001, owner = 86026 },
{ config_id = 86029, gadget_id = 70500000, pos = { x = 2719.363, y = 277.742, z = -1528.376 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3001, owner = 86026 },
{ config_id = 86030, gadget_id = 70290001, pos = { x = 2716.041, y = 274.199, z = -1532.810 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86031, gadget_id = 70500000, pos = { x = 2716.058, y = 274.768, z = -1532.409 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3002, owner = 86030 },
{ config_id = 86032, gadget_id = 70500000, pos = { x = 2715.976, y = 275.054, z = -1533.206 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3002, owner = 86030 },
{ config_id = 86033, gadget_id = 70500000, pos = { x = 2716.309, y = 275.466, z = -1532.913 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3002, owner = 86030 },
{ config_id = 86034, gadget_id = 70290003, pos = { x = 2713.042, y = 274.008, z = -1535.414 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86035, gadget_id = 70500000, pos = { x = 2713.042, y = 274.111, z = -1535.505 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3003, owner = 86034 },
{ config_id = 86036, gadget_id = 70500000, pos = { x = 2713.042, y = 274.111, z = -1535.313 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3003, owner = 86034 },
{ config_id = 86037, gadget_id = 70290008, pos = { x = 2708.269, y = 274.344, z = -1537.841 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86038, gadget_id = 70500000, pos = { x = 2708.269, y = 274.344, z = -1537.841 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3008, owner = 86037 },
{ config_id = 86039, gadget_id = 70290009, pos = { x = 2704.355, y = 273.927, z = -1540.749 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86040, gadget_id = 70500000, pos = { x = 2704.355, y = 273.927, z = -1540.749 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3005, owner = 86039 },
{ config_id = 86041, gadget_id = 70290010, pos = { x = 2707.427, y = 273.802, z = -1546.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86042, gadget_id = 70500000, pos = { x = 2707.427, y = 273.802, z = -1546.190 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3006, owner = 86041 },
{ config_id = 86043, gadget_id = 70290011, pos = { x = 2710.327, y = 274.428, z = -1541.279 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86044, gadget_id = 70500000, pos = { x = 2710.327, y = 274.428, z = -1541.279 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3009, owner = 86043 },
{ config_id = 86045, gadget_id = 70290013, pos = { x = 2715.930, y = 274.256, z = -1525.817 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86046, gadget_id = 70500000, pos = { x = 2715.930, y = 274.256, z = -1525.817 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2016, owner = 86045 },
{ config_id = 86047, gadget_id = 70500000, pos = { x = 2716.693, y = 274.805, z = -1525.821 }, rot = { x = 80.732, y = 197.769, z = 283.477 }, level = 1, point_type = 2016, owner = 86045 },
{ config_id = 86048, gadget_id = 70500000, pos = { x = 2715.648, y = 274.129, z = -1525.838 }, rot = { x = 343.642, y = 330.700, z = 341.572 }, level = 1, point_type = 2016, owner = 86045 },
{ config_id = 86049, gadget_id = 70290014, pos = { x = 2712.562, y = 273.990, z = -1528.549 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86050, gadget_id = 70500000, pos = { x = 2712.292, y = 273.990, z = -1529.030 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2015, owner = 86049 },
{ config_id = 86051, gadget_id = 70290016, pos = { x = 2708.949, y = 274.268, z = -1530.464 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86052, gadget_id = 70500000, pos = { x = 2708.949, y = 274.268, z = -1530.464 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3010, owner = 86051 },
{ config_id = 86053, gadget_id = 70290002, pos = { x = 2700.844, y = 272.481, z = -1547.094 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86054, gadget_id = 70500000, pos = { x = 2699.773, y = 274.099, z = -1546.380 }, rot = { x = 0.000, y = 265.000, z = 0.000 }, level = 1, point_type = 3011, owner = 86053 },
{ config_id = 86055, gadget_id = 70500000, pos = { x = 2701.714, y = 275.109, z = -1548.105 }, rot = { x = 0.000, y = 314.000, z = 0.000 }, level = 1, point_type = 3011, owner = 86053 },
{ config_id = 86056, gadget_id = 70500000, pos = { x = 2700.887, y = 275.389, z = -1545.713 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3011, owner = 86053 },
{ config_id = 86057, gadget_id = 70540011, pos = { x = 2704.557, y = 274.440, z = -1533.262 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86058, gadget_id = 70500000, pos = { x = 2704.557, y = 274.440, z = -1533.262 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2011, owner = 86057 },
{ config_id = 86059, gadget_id = 70500000, pos = { x = 2704.343, y = 274.182, z = -1533.203 }, rot = { x = 348.727, y = 341.756, z = 340.760 }, level = 1, point_type = 2011, owner = 86057 },
{ config_id = 86060, gadget_id = 70500000, pos = { x = 2704.657, y = 274.169, z = -1533.049 }, rot = { x = 348.515, y = 87.775, z = 340.020 }, level = 1, point_type = 2011, owner = 86057 },
{ config_id = 86061, gadget_id = 70500000, pos = { x = 2704.569, y = 274.167, z = -1533.409 }, rot = { x = 344.486, y = 149.827, z = 4.688 }, level = 1, point_type = 2011, owner = 86057 },
{ config_id = 86062, gadget_id = 70290015, pos = { x = 2701.267, y = 274.354, z = -1535.237 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86063, gadget_id = 70500000, pos = { x = 2701.267, y = 274.354, z = -1535.237 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2023, owner = 86062 },
{ config_id = 86064, gadget_id = 70500000, pos = { x = 2701.302, y = 274.343, z = -1535.310 }, rot = { x = 16.170, y = 343.571, z = 19.390 }, level = 1, point_type = 2023, owner = 86062 },
{ config_id = 86065, gadget_id = 70500000, pos = { x = 2692.693, y = 274.224, z = -1522.529 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2033 },
{ config_id = 86066, gadget_id = 70500000, pos = { x = 2693.717, y = 275.054, z = -1525.793 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2034 },
{ config_id = 86067, gadget_id = 70500000, pos = { x = 2694.531, y = 274.654, z = -1527.647 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2035 },
{ config_id = 86068, gadget_id = 70500000, pos = { x = 2699.711, y = 275.687, z = -1537.554 }, rot = { x = 283.963, y = 356.435, z = 351.260 }, level = 1, point_type = 2036 },
{ config_id = 86069, gadget_id = 70500000, pos = { x = 2695.621, y = 274.871, z = -1530.439 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2037 },
{ config_id = 86070, gadget_id = 70500000, pos = { x = 2697.107, y = 274.662, z = -1532.959 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2038 },
{ config_id = 86071, gadget_id = 70290002, pos = { x = 2699.772, y = 273.937, z = -1537.359 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86072, gadget_id = 70500000, pos = { x = 2698.701, y = 275.558, z = -1536.646 }, rot = { x = 0.000, y = 265.000, z = 0.000 }, level = 1, point_type = 2034, owner = 86071 },
{ config_id = 86073, gadget_id = 70500000, pos = { x = 2700.642, y = 276.565, z = -1538.370 }, rot = { x = 0.000, y = 314.000, z = 0.000 }, level = 1, point_type = 2034, owner = 86071 },
{ config_id = 86074, gadget_id = 70500000, pos = { x = 2699.815, y = 276.845, z = -1535.979 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2034, owner = 86071 },
{ config_id = 86075, gadget_id = 70500000, pos = { x = 2691.650, y = 274.215, z = -1523.194 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 1008 },
{ config_id = 86076, gadget_id = 70500000, pos = { x = 2692.525, y = 274.615, z = -1529.276 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2040 },
{ config_id = 86077, gadget_id = 70500000, pos = { x = 2693.597, y = 274.645, z = -1531.946 }, rot = { x = 0.000, y = 110.437, z = 0.000 }, level = 1, point_type = 2041 },
{ config_id = 86078, gadget_id = 70520032, pos = { x = 2689.559, y = 274.842, z = -1524.578 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86079, gadget_id = 70500000, pos = { x = 2689.559, y = 274.842, z = -1524.578 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2039, owner = 86078 },
{ config_id = 86080, gadget_id = 70520036, pos = { x = 2691.181, y = 274.329, z = -1527.472 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86081, gadget_id = 70500000, pos = { x = 2691.242, y = 274.940, z = -1527.480 }, rot = { x = 355.994, y = 311.325, z = 358.906 }, level = 1, point_type = 2042, owner = 86080 },
{ config_id = 86082, gadget_id = 70500000, pos = { x = 2691.125, y = 274.778, z = -1527.336 }, rot = { x = 19.170, y = 313.613, z = 2.185 }, level = 1, point_type = 2042, owner = 86080 },
{ config_id = 86083, gadget_id = 70500000, pos = { x = 2687.779, y = 273.959, z = -1526.830 }, rot = { x = 2.652, y = 0.206, z = 8.881 }, level = 1, point_type = 2043 },
{ config_id = 86084, gadget_id = 70500000, pos = { x = 2689.158, y = 274.164, z = -1529.391 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 1009 },
{ config_id = 86085, gadget_id = 70500000, pos = { x = 2690.848, y = 274.340, z = -1531.546 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 1010 },
{ config_id = 86086, gadget_id = 70500000, pos = { x = 2692.012, y = 274.231, z = -1533.528 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2044 },
{ config_id = 86087, gadget_id = 70500000, pos = { x = 2693.409, y = 274.183, z = -1535.702 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2046 },
{ config_id = 86088, gadget_id = 70500000, pos = { x = 2695.270, y = 273.612, z = -1538.968 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2047 },
{ config_id = 86089, gadget_id = 70500000, pos = { x = 2692.607, y = 273.446, z = -1540.609 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2052 },
{ config_id = 86090, gadget_id = 70540044, pos = { x = 2691.292, y = 273.691, z = -1537.907 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86091, gadget_id = 70500000, pos = { x = 2691.292, y = 273.691, z = -1537.907 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2048, owner = 86090 },
{ config_id = 86092, gadget_id = 70540037, pos = { x = 2689.855, y = 273.936, z = -1535.332 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86093, gadget_id = 70500000, pos = { x = 2690.241, y = 274.312, z = -1535.510 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2049, owner = 86092 },
{ config_id = 86094, gadget_id = 70500000, pos = { x = 2689.686, y = 274.657, z = -1535.018 }, rot = { x = 0.000, y = 270.022, z = 0.000 }, level = 1, point_type = 2049, owner = 86092 },
{ config_id = 86095, gadget_id = 70540039, pos = { x = 2688.733, y = 275.518, z = -1533.537 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86096, gadget_id = 70500000, pos = { x = 2688.505, y = 275.026, z = -1533.286 }, rot = { x = 48.676, y = 285.487, z = 305.374 }, level = 1, point_type = 2050, owner = 86095 },
{ config_id = 86097, gadget_id = 70540041, pos = { x = 2686.751, y = 273.800, z = -1531.069 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86098, gadget_id = 70500000, pos = { x = 2686.496, y = 274.103, z = -1530.839 }, rot = { x = 331.307, y = 8.032, z = 340.983 }, level = 1, point_type = 2051, owner = 86097 },
{ config_id = 86099, gadget_id = 70500000, pos = { x = 2687.090, y = 274.390, z = -1530.963 }, rot = { x = 3.949, y = 307.634, z = 40.312 }, level = 1, point_type = 2051, owner = 86097 },
{ config_id = 86100, gadget_id = 70500000, pos = { x = 2686.876, y = 274.319, z = -1531.170 }, rot = { x = 14.217, y = 333.005, z = 0.000 }, level = 1, point_type = 2051, owner = 86097 },
{ config_id = 86101, gadget_id = 70500000, pos = { x = 2687.084, y = 274.151, z = -1531.333 }, rot = { x = 35.416, y = 303.622, z = 0.000 }, level = 1, point_type = 2051, owner = 86097 },
{ config_id = 86102, gadget_id = 70500000, pos = { x = 2685.228, y = 274.303, z = -1528.726 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2053 },
{ config_id = 86103, gadget_id = 70500000, pos = { x = 2683.271, y = 275.071, z = -1529.425 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 2054 },
{ config_id = 86104, gadget_id = 70330450, pos = { x = 2705.655, y = 274.223, z = -1539.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 86105, gadget_id = 70500000, pos = { x = 2705.655, y = 274.223, z = -1539.590 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, point_type = 3012, owner = 86104 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 86001, 86002, 86003, 86004, 86005, 86006, 86007, 86008, 86009, 86010, 86011, 86012, 86013, 86014, 86015, 86016, 86017, 86018, 86019, 86020, 86021, 86022, 86023, 86024, 86025, 86026, 86027, 86028, 86029, 86030, 86031, 86032, 86033, 86034, 86035, 86036, 86037, 86038, 86039, 86040, 86041, 86042, 86043, 86044, 86045, 86046, 86047, 86048, 86049, 86050, 86051, 86052, 86053, 86054, 86055, 86056, 86057, 86058, 86059, 86060, 86061, 86062, 86063, 86064, 86065, 86066, 86067, 86068, 86069, 86070, 86071, 86072, 86073, 86074, 86075, 86076, 86077, 86078, 86079, 86080, 86081, 86082, 86083, 86084, 86085, 86086, 86087, 86088, 86089, 86090, 86091, 86092, 86093, 86094, 86095, 86096, 86097, 86098, 86099, 86100, 86101, 86102, 86103, 86104, 86105 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,180 @@
-- 基础信息
local base_info = {
group_id = 111101087
}
-- Trigger变量
local defs = {
duration = 30,
group_id = 111101087,
gadget_sum = 2
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 87001, gadget_id = 70220005, pos = { x = 2489.621, y = 220.367, z = -1372.801 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 87002, gadget_id = 70900051, pos = { x = 2491.351, y = 219.297, z = -1370.652 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, isOneoff = true, persistent = true },
{ config_id = 87003, gadget_id = 70211111, pos = { x = 2488.751, y = 219.941, z = -1371.124 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "解谜中级蒙德", isOneoff = true, persistent = true },
{ config_id = 87004, gadget_id = 70220005, pos = { x = 2489.336, y = 219.259, z = -1369.322 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1087005, name = "CHALLENGE_SUCCESS_87005", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "56", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_87005" },
{ config_id = 1087006, name = "CHALLENGE_FAIL_87006", event = EventType.EVENT_CHALLENGE_FAIL, source = "56", condition = "", action = "action_EVENT_CHALLENGE_FAIL_87006", trigger_count = 0 },
{ config_id = 1087007, name = "GADGET_STATE_CHANGE_87007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_87007", action = "action_EVENT_GADGET_STATE_CHANGE_87007", trigger_count = 0 },
{ config_id = 1087008, name = "ANY_GADGET_DIE_87008", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "", action = "", trigger_count = 0, tag = "201" }
}
-- 变量
variables = {
{ config_id = 1, name = "gadget_sum", value = 2, no_refresh = true },
{ config_id = 2, name = "gadget_start", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = suite_1,
monsters = { },
gadgets = { 87002 },
regions = { },
triggers = { "CHALLENGE_SUCCESS_87005", "CHALLENGE_FAIL_87006", "GADGET_STATE_CHANGE_87007", "ANY_GADGET_DIE_87008" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = suite_2,
monsters = { },
gadgets = { 87001, 87004 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_87005(context, evt)
-- 将configid为 87002 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 87002, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为87003的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 87003 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3003, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_87006(context, evt)
-- 将configid为 87002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 87002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101087, 2)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 111101087, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3003, 4, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
-- 将本组内变量名为 "gadget_start" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "gadget_start", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_87007(context, evt)
if 87002 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_87007(context, evt)
-- 202号挑战,duration内开启宝箱
if 0 ~= ScriptLib.ActiveChallenge(context, 56, 201, defs.duration, 2, 201, defs.gadget_sum) then
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 2)
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 3003, 1, 1) then
return -1
end
return 0
end

View File

@@ -0,0 +1,386 @@
-- 基础信息
local base_info = {
group_id = 111101088
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 88001, monster_id = 21010401, pos = { x = 2665.291, y = 198.333, z = -1757.222 }, rot = { x = 0.000, y = 20.037, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 88002, monster_id = 21010901, pos = { x = 2687.421, y = 198.354, z = -1755.963 }, rot = { x = 0.000, y = 353.810, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 88004, monster_id = 22010201, pos = { x = 2676.483, y = 200.767, z = -1744.958 }, rot = { x = 0.000, y = 323.584, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 88006, monster_id = 21020101, pos = { x = 2676.594, y = 200.804, z = -1745.978 }, rot = { x = 0.000, y = 323.584, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true },
{ config_id = 88008, monster_id = 21030301, pos = { x = 2676.267, y = 200.799, z = -1745.486 }, rot = { x = 0.000, y = 27.558, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 88005, gadget_id = 70950087, pos = { x = 2664.044, y = 194.988, z = -1753.513 }, rot = { x = 0.000, y = 49.032, z = 0.000 }, level = 1 },
{ config_id = 88007, gadget_id = 70950087, pos = { x = 2690.216, y = 194.600, z = -1751.760 }, rot = { x = 0.000, y = 196.466, z = 0.000 }, level = 1 },
-- 雪山活动开启机关
{ config_id = 88009, gadget_id = 70360128, pos = { x = 2677.279, y = 194.305, z = -1745.781 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
-- 领奖台
{ config_id = 88010, gadget_id = 70210113, pos = { x = 2677.279, y = 194.305, z = -1745.781 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, chest_drop_id = 1000100, drop_count = 1, showcutscene = true, persistent = true, is_blossom_chest = true },
-- 哨塔保护罩A
{ config_id = 88011, gadget_id = 70290058, pos = { x = 2665.609, y = 194.600, z = -1757.164 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 可摧毁小哨塔A
{ config_id = 88012, gadget_id = 70950092, pos = { x = 2665.609, y = 194.600, z = -1757.164 }, rot = { x = 0.000, y = 314.149, z = 0.000 }, level = 1, state = GadgetState.GearStart },
-- 可摧毁小哨塔B
{ config_id = 88013, gadget_id = 70950092, pos = { x = 2688.205, y = 194.631, z = -1756.378 }, rot = { x = 0.000, y = 311.327, z = 0.000 }, level = 1, state = GadgetState.GearStart },
-- 哨塔保护罩B
{ config_id = 88015, gadget_id = 70290058, pos = { x = 2688.205, y = 197.285, z = -1756.378 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
-- 不可摧毁大哨塔A
{ config_id = 88032, gadget_id = 70290059, pos = { x = 2677.042, y = 194.600, z = -1745.282 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart },
-- 小哨塔A连接梯子A
{ config_id = 88035, gadget_id = 70290060, pos = { x = 2670.290, y = 198.882, z = -1751.972 }, rot = { x = 0.000, y = 313.734, z = 0.000 }, level = 1 },
-- 小哨塔B连接梯子B
{ config_id = 88036, gadget_id = 70290060, pos = { x = 2683.347, y = 198.800, z = -1752.045 }, rot = { x = 0.000, y = 221.702, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
-- 消灭了风丘丘萨满后销毁在场全部风护罩
{ config_id = 1088003, name = "ANY_MONSTER_DIE_88003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_88003", action = "action_EVENT_ANY_MONSTER_DIE_88003" },
{ config_id = 1088019, name = "CHALLENGE_SUCCESS_88019", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_88019" },
{ config_id = 1088020, name = "CHALLENGE_FAIL_88020", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_88020", trigger_count = 0 },
{ config_id = 1088022, name = "GROUP_REFRESH_88022", event = EventType.EVENT_GROUP_REFRESH, source = "", condition = "", action = "action_EVENT_GROUP_REFRESH_88022" },
{ config_id = 1088023, name = "BLOSSOM_CHEST_DIE_88023", event = EventType.EVENT_BLOSSOM_CHEST_DIE, source = "", condition = "condition_EVENT_BLOSSOM_CHEST_DIE_88023", action = "action_EVENT_BLOSSOM_CHEST_DIE_88023", trigger_count = 0 },
{ config_id = 1088025, name = "BLOSSOM_PROGRESS_FINISH_88025", event = EventType.EVENT_BLOSSOM_PROGRESS_FINISH, source = "", condition = "", action = "action_EVENT_BLOSSOM_PROGRESS_FINISH_88025" },
{ config_id = 1088026, name = "GROUP_LOAD_88026", event = EventType.EVENT_GROUP_LOAD, source = "", condition = "", action = "action_EVENT_GROUP_LOAD_88026" },
-- 销毁了小哨塔A后销毁梯子A
{ config_id = 1088027, name = "ANY_GADGET_DIE_88027", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_88027", action = "action_EVENT_ANY_GADGET_DIE_88027" },
-- 销毁了小哨塔B后销毁梯子B
{ config_id = 1088028, name = "ANY_GADGET_DIE_88028", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_88028", action = "action_EVENT_ANY_GADGET_DIE_88028" },
{ config_id = 1088030, name = "ANY_MONSTER_DIE_88030", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_88030", action = "action_EVENT_ANY_MONSTER_DIE_88030" },
{ config_id = 1088031, name = "ANY_MONSTER_DIE_88031", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_88031", action = "action_EVENT_ANY_MONSTER_DIE_88031" }
}
-- 变量
variables = {
{ config_id = 1, name = "GroupCompletion", value = 0, no_refresh = false },
{ config_id = 2, name = "remainingHeat", value = 3, no_refresh = false },
{ config_id = 3, name = "wave", value = 0, no_refresh = false }
}
-- 废弃数据
garbages = {
triggers = {
{ config_id = 1088021, name = "GADGET_CREATE_88021", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_88021", action = "action_EVENT_GADGET_CREATE_88021", trigger_count = 0 },
{ config_id = 1088024, name = "SELECT_OPTION_88024", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_88024", action = "action_EVENT_SELECT_OPTION_88024", trigger_count = 0 }
}
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { "GROUP_LOAD_88026" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = [默认在场的第一组魔物],
monsters = { 88001, 88002, 88008 },
gadgets = { 88005, 88007, 88011, 88012, 88013, 88015, 88032, 88035, 88036 },
regions = { },
triggers = { "ANY_MONSTER_DIE_88003", "CHALLENGE_SUCCESS_88019", "CHALLENGE_FAIL_88020", "GROUP_REFRESH_88022", "BLOSSOM_CHEST_DIE_88023", "BLOSSOM_PROGRESS_FINISH_88025", "ANY_GADGET_DIE_88027", "ANY_GADGET_DIE_88028", "ANY_MONSTER_DIE_88030" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = [第二波怪物],
monsters = { 88006 },
gadgets = { },
regions = { },
triggers = { "ANY_MONSTER_DIE_88031" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = [第三波怪物],
monsters = { 88004 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_88003(context, evt)
if 88008 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_88003(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 88011 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 88015 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_88019(context, evt)
-- 指定group的循环玩法进度加1
ScriptLib.AddBlossomScheduleProgressByGroupId(context, 111101088)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_88020(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 111101088, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_REFRESH_88022(context, evt)
-- 创建id为88009的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 88009 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 指定group的循环玩法进度加1
if 0 ~= ScriptLib.SetBlossomScheduleStateByGroupId(context, 111101088, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_blossomscehedule_byGroupId")
return -1
end
-- 刷新循环营地的掉落奖励
if 0 ~= ScriptLib.RefreshBlossomDropRewardByGroupId(context, 111101088) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_BLOSSOM_CHEST_DIE_88023(context, evt)
if 88010 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_BLOSSOM_CHEST_DIE_88023(context, evt)
-- 刷新本group,指定suite与等级修正,自动通知对应循环玩法的进度
if 0 ~= ScriptLib.RefreshBlossomGroup(context, { group_id = 0, suite = 2, exclude_prev = true }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_blossom_group")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_BLOSSOM_PROGRESS_FINISH_88025(context, evt)
-- 创建循环玩法的地脉之花奖励
if 0 ~= ScriptLib.CreateBlossomChestByGroupId(context, 111101088,88010) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_blossomChest_bygroupid")
return -1
end
-- 指定group的循环玩法进度加1
if 0 ~= ScriptLib.SetBlossomScheduleStateByGroupId(context, 111101088, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_blossomscehedule_byGroupId")
return -1
end
-- 将本组内变量名为 "GroupCompletion" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "GroupCompletion", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_GROUP_LOAD_88026(context, evt)
-- 刷新本group,指定suite与等级修正,自动通知对应循环玩法的进度
if 0 ~= ScriptLib.RefreshBlossomGroup(context, { group_id = 0, suite = 2, exclude_prev = true }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_blossom_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_88027(context, evt)
if 88012 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_88027(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 88035 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_88028(context, evt)
if 88013 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_88028(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 88036 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_88030(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 111101088) ~= 0 then
return false
end
-- 判断变量"wave"为0
if ScriptLib.GetGroupVariableValue(context, "wave") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_88030(context, evt)
-- 针对当前group内变量名为 "wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 111101088, 3)
-- 在指定位置对应半径范围播放reminder
local pos = {x=2677,y=194,z=-1745}
if 0 ~= ScriptLib.ShowReminderRadius(context, 400002, pos, 25) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_88031(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 111101088) ~= 0 then
return false
end
-- 判断变量"wave"为1
if ScriptLib.GetGroupVariableValue(context, "wave") ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_88031(context, evt)
-- 针对当前group内变量名为 "wave" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "wave", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : change_GroupVariable")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 111101088, 4)
-- 在指定位置对应半径范围播放reminder
local pos = {x=2677,y=194,z=-1745}
if 0 ~= ScriptLib.ShowReminderRadius(context, 400003, pos, 25) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
return 0
end

View File

@@ -0,0 +1,78 @@
-- 基础信息
local base_info = {
group_id = 111101089
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 89001, gadget_id = 70950091, pos = { x = 2390.431, y = 280.801, z = -1560.785 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, mark_flag = 2 },
{ config_id = 89002, gadget_id = 70950091, pos = { x = 2372.443, y = 278.965, z = -1556.166 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, mark_flag = 2 },
{ config_id = 89003, gadget_id = 70950091, pos = { x = 2360.193, y = 277.412, z = -1551.099 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop, mark_flag = 2 },
{ config_id = 89004, gadget_id = 70950091, pos = { x = 2359.754, y = 282.620, z = -1566.175 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop, mark_flag = 2 },
{ config_id = 89005, gadget_id = 70950091, pos = { x = 2342.600, y = 276.592, z = -1551.873 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearAction1, mark_flag = 2 },
{ config_id = 89006, gadget_id = 70950091, pos = { x = 2336.755, y = 273.878, z = -1539.004 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearAction2, mark_flag = 2 },
{ config_id = 89007, gadget_id = 70290069, pos = { x = 2375.838, y = 280.395, z = -1563.641 }, 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 = { 89001, 89002, 89003, 89004, 89005, 89006, 89007 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,215 @@
-- 基础信息
local base_info = {
group_id = 111101090
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 90001, gadget_id = 70360006, pos = { x = 2752.089, y = 197.019, z = -1696.605 }, rot = { x = 356.466, y = 359.726, z = 8.881 }, level = 1 },
{ config_id = 90002, gadget_id = 70950079, pos = { x = 2752.560, y = 197.582, z = -1706.982 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, is_use_point_array = true },
{ config_id = 90003, gadget_id = 70360001, pos = { x = 2752.560, y = 197.582, z = -1706.982 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1090004, name = "GADGET_CREATE_90004", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_90004", action = "action_EVENT_GADGET_CREATE_90004" },
{ config_id = 1090005, name = "SELECT_OPTION_90005", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_90005", action = "action_EVENT_SELECT_OPTION_90005", trigger_count = 0 },
{ config_id = 1090006, name = "GADGET_STATE_CHANGE_90006", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_90006", action = "action_EVENT_GADGET_STATE_CHANGE_90006", trigger_count = 0 },
{ config_id = 1090007, name = "GADGET_STATE_CHANGE_90007", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_90007", action = "action_EVENT_GADGET_STATE_CHANGE_90007", trigger_count = 0 },
{ config_id = 1090008, name = "GADGET_STATE_CHANGE_90008", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_90008", action = "action_EVENT_GADGET_STATE_CHANGE_90008", trigger_count = 0 },
{ config_id = 1090009, name = "GADGET_STATE_CHANGE_90009", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_90009", action = "action_EVENT_GADGET_STATE_CHANGE_90009", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 90001, 90002, 90003 },
regions = { },
triggers = { "GADGET_CREATE_90004", "SELECT_OPTION_90005", "GADGET_STATE_CHANGE_90006", "GADGET_STATE_CHANGE_90007", "GADGET_STATE_CHANGE_90008", "GADGET_STATE_CHANGE_90009" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_90004(context, evt)
if 90003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_90004(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101090, 90003, {211}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_90005(context, evt)
-- 判断是gadgetid 90003 option_id 211
if 90003 ~= evt.param1 then
return false
end
if 211 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_90005(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = true}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 90002, 110100012, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_90006(context, evt)
if 90001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_90006(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 90002, 110100013, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_90007(context, evt)
if 90001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_90007(context, evt)
-- 设置移动平台点阵,点阵id为point_array_id
-- route_type = 0,1,2 [OneWay 单向/Reciprocate 往复/Loop 循环]
-- turn_mode = true/false 开启/关闭
local tempParam = {route_type = 0, turn_mode = false}
if 0 ~= ScriptLib.SetPlatformPointArray(context, 90002, 110100014, {1}, tempParam) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_platform_pointArray")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_90008(context, evt)
if 90001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_90008(context, evt)
-- 删除指定group 111101090 指定config90003物件身上指定option211
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 111101090, 90003, 211) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_90009(context, evt)
if 90001 ~= evt.param2 or GadgetState.Default ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_90009(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101090, 90003, {211}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end

View File

@@ -0,0 +1,114 @@
-- 基础信息
local base_info = {
group_id = 111101091
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 91001, gadget_id = 70950022, pos = { x = 2588.801, y = 217.631, z = -1401.752 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStop, route_id = 110100022 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1091002, name = "GADGET_STATE_CHANGE_91002", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_91002", action = "action_EVENT_GADGET_STATE_CHANGE_91002", trigger_count = 0 },
{ config_id = 1091003, name = "GADGET_STATE_CHANGE_91003", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_91003", action = "action_EVENT_GADGET_STATE_CHANGE_91003", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 91001 },
regions = { },
triggers = { "GADGET_STATE_CHANGE_91002", "GADGET_STATE_CHANGE_91003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_91002(context, evt)
if 91001 ~= evt.param2 or GadgetState.GearStop ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_91002(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 91001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : start_platform")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_91003(context, evt)
if 91001 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_91003(context, evt)
-- 停止移动平台
if 0 ~= ScriptLib.StopPlatform(context, 91001) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : stop_platform")
return -1
end
return 0
end

View File

@@ -0,0 +1,163 @@
-- 基础信息
local base_info = {
group_id = 111101092
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 92007, monster_id = 21010201, pos = { x = 2668.073, y = 265.260, z = -1349.254 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
{ config_id = 92008, monster_id = 21010201, pos = { x = 2664.678, y = 265.604, z = -1348.111 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 92001, gadget_id = 70360002, pos = { x = 2659.859, y = 266.031, z = -1345.368 }, rot = { x = 0.000, y = 76.724, z = 0.000 }, level = 1 },
{ config_id = 92004, gadget_id = 70310017, pos = { x = 2666.774, y = 265.354, z = -1345.739 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true },
{ config_id = 92005, gadget_id = 70310021, pos = { x = 2666.774, y = 265.354, z = -1345.739 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, state = GadgetState.GearStart, persistent = true }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1092002, name = "GADGET_CREATE_92002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_92002", action = "action_EVENT_GADGET_CREATE_92002" },
{ config_id = 1092003, name = "SELECT_OPTION_92003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_92003", action = "action_EVENT_SELECT_OPTION_92003" },
{ config_id = 1092006, name = "ANY_GADGET_DIE_92006", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_92006", action = "action_EVENT_ANY_GADGET_DIE_92006" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 92001 },
regions = { },
triggers = { "GADGET_CREATE_92002", "SELECT_OPTION_92003", "ANY_GADGET_DIE_92006" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { 92007, 92008 },
gadgets = { 92004, 92005 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_92002(context, evt)
if 92001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_92002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101092, 92001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_92003(context, evt)
-- 判断是gadgetid 92001 option_id 7
if 92001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_92003(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101092, 2)
-- 删除指定group 111101092 指定config92001物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 111101092, 92001, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 将configid为 92001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 92001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_92006(context, evt)
if 92005 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_92006(context, evt)
-- 将configid为 92004 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 92004, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end

View File

@@ -0,0 +1,138 @@
-- 基础信息
local base_info = {
group_id = 111101093
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 93001, gadget_id = 70360107, pos = { x = 2493.534, y = 213.576, z = -1289.448 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1093003, name = "GADGET_CREATE_93003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_93003", action = "action_EVENT_GADGET_CREATE_93003" },
{ config_id = 1093004, name = "SELECT_OPTION_93004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_93004", action = "action_EVENT_SELECT_OPTION_93004" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 93001 },
regions = { },
triggers = { "GADGET_CREATE_93003", "SELECT_OPTION_93004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_93003(context, evt)
if 93001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_93003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 0, 93001, {187}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_93004(context, evt)
-- 判断是gadgetid 93001 option_id 187
if 93001 ~= evt.param1 then
return false
end
if 187 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_93004(context, evt)
-- 将configid为 93001 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 93001, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 将configid为 93001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 93001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101093, 2)
return 0
end

View File

@@ -0,0 +1,292 @@
-- 基础信息
local base_info = {
group_id = 111101094
}
-- DEFS_MISCS
local defs = {
RevivePoint = {pos = {x=2153.553, y= 217.2468, z=-1402.285},
radius = 2, rot = {x=0, y=196.7968, z=0}},
group_id = 111101094
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
[94006] = { config_id = 94006, monster_id = 21010701, pos = { x = 2195.709, y = 212.353, z = -1478.690 }, rot = { x = 12.865, y = 279.999, z = 2.543 }, level = 1, drop_tag = "丘丘人", affix = { 1403, 1405, 1407 }, isElite = true },
[94008] = { config_id = 94008, monster_id = 21011002, pos = { x = 2184.225, y = 212.768, z = -1477.651 }, rot = { x = 0.000, y = 96.705, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 1403, 1407, 1405 }, isElite = true, pose_id = 32 },
[94009] = { config_id = 94009, monster_id = 21020101, pos = { x = 2189.752, y = 212.660, z = -1483.322 }, rot = { x = 0.000, y = 268.578, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 1403, 1407, 1405 }, isElite = true, pose_id = 401 },
[94014] = { config_id = 94014, monster_id = 21030203, pos = { x = 2193.244, y = 212.782, z = -1485.749 }, rot = { x = 12.865, y = 284.567, z = 2.543 }, level = 1, drop_tag = "丘丘萨满", affix = { 1403, 1405, 1407 }, isElite = true },
[94015] = { config_id = 94015, monster_id = 21010501, pos = { x = 2173.595, y = 221.599, z = -1482.334 }, rot = { x = 0.000, y = 2.726, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 1403, 1407, 1405 }, isElite = true, pose_id = 32 },
[94039] = { config_id = 94039, monster_id = 21010301, pos = { x = 2179.654, y = 213.788, z = -1480.410 }, rot = { x = 0.000, y = 331.378, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 1403, 1407, 1405 }, isElite = true },
[94040] = { config_id = 94040, monster_id = 21010301, pos = { x = 2191.115, y = 212.501, z = -1472.931 }, rot = { x = 0.000, y = 239.426, z = 0.000 }, level = 1, drop_id = 1000100, affix = { 1403, 1407, 1405 }, isElite = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
[94023] = { config_id = 94023, gadget_id = 70360166, pos = { x = 2209.820, y = 213.800, z = -1487.222 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1, persistent = true },
[94024] = { config_id = 94024, gadget_id = 70360166, pos = { x = 2195.732, y = 212.329, z = -1472.175 }, rot = { x = 0.000, y = 249.449, z = 0.000 }, level = 1, drop_id = 1000100, drop_count = 1, persistent = true },
[94093] = { config_id = 94093, gadget_id = 70360025, pos = { x = 2162.032, y = 221.631, z = -1384.395 }, rot = { x = 0.000, y = 349.859, z = 0.000 }, level = 1 },
[94094] = { config_id = 94094, gadget_id = 70350085, pos = { x = 2162.032, y = 222.507, z = -1384.395 }, rot = { x = 0.000, y = 349.859, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
-- 进入区域后-开启挑战
[94041] = { config_id = 94041, shape = RegionShape.SPHERE, radius = 80, pos = { x = 2211.472, y = 213.802, z = -1481.959 } },
-- 结束挑战
[94095] = { config_id = 94095, shape = RegionShape.SPHERE, radius = 2, pos = { x = 2162.032, y = 221.166, z = -1384.395 } }
}
-- 触发器
triggers = {
{ config_id = 1094020, name = "GADGET_STATE_CHANGE_94020", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_94020", action = "action_EVENT_GADGET_STATE_CHANGE_94020", trigger_count = 0 },
-- 进入区域后-开启挑战
{ config_id = 1094041, name = "ENTER_REGION_94041", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_94041", action = "action_EVENT_ENTER_REGION_94041", trigger_count = 0 },
{ config_id = 1094042, name = "ANY_GADGET_DIE_94042", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_94042", action = "", trigger_count = 0, tag = "998" },
{ config_id = 1094043, name = "ANY_GADGET_DIE_94043", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_94043", action = "", trigger_count = 0, tag = "998" },
{ config_id = 1094044, name = "CHALLENGE_SUCCESS_94044", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1001", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_94044", trigger_count = 0 },
{ config_id = 1094045, name = "CHALLENGE_FAIL_94045", event = EventType.EVENT_CHALLENGE_FAIL, source = "100", condition = "", action = "action_EVENT_CHALLENGE_FAIL_94045", trigger_count = 0 },
{ config_id = 1094046, name = "GADGET_STATE_CHANGE_94046", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_94046", action = "action_EVENT_GADGET_STATE_CHANGE_94046", trigger_count = 0 },
{ config_id = 1094047, name = "MONSTER_BATTLE_94047", event = EventType.EVENT_MONSTER_BATTLE, source = "", condition = "", action = "action_EVENT_MONSTER_BATTLE_94047" },
-- 结束挑战
{ config_id = 1094095, name = "ENTER_REGION_94095", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_94095", action = "action_EVENT_ENTER_REGION_94095", trigger_count = 0, tag = "999" },
{ config_id = 1094097, name = "CHALLENGE_SUCCESS_94097", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "100", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_94097", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "hasStarted", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = 常驻营地组,
monsters = { 94009, 94015, 94039, 94040 },
gadgets = { 94023, 94024 },
regions = { 94041 },
triggers = { "GADGET_STATE_CHANGE_94020", "ENTER_REGION_94041", "ANY_GADGET_DIE_94042", "ANY_GADGET_DIE_94043", "CHALLENGE_SUCCESS_94044", "CHALLENGE_FAIL_94045", "GADGET_STATE_CHANGE_94046", "MONSTER_BATTLE_94047", "CHALLENGE_SUCCESS_94097" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 撤离目标组,
monsters = { },
gadgets = { 94093, 94094 },
regions = { 94095 },
triggers = { "ENTER_REGION_94095" },
rand_weight = 0
},
{
-- suite_id = 3,
-- description = 埋伏怪物组,
monsters = { 94006, 94008, 94014 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 0
},
{
-- suite_id = 4,
-- description = 挑战完成存档用,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_94020(context, evt)
-- 检测config_id为94023的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 94023 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_94020(context, evt)
-- 在指定位置对应半径范围播放reminder
local pos = {x=2209.82,y=213.8002,z=-1487.222}
if 0 ~= ScriptLib.ShowReminderRadius(context, 400032, pos, 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_94041(context, evt)
if evt.param1 ~= 94041 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"hasStarted"为0
if ScriptLib.GetGroupVariableValue(context, "hasStarted") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_94041(context, evt)
ScriptLib.SetGroupVariableValue(context, "hasStarted", 1)
ScriptLib.CreateFatherChallenge(context, 100, 64, 600, {success=200, fail=100, fail_on_wipe=true})
ScriptLib.AttachChildChallenge(context, 100, 1001, 65, {2,998,2}, {},{success=100,fail=100})
ScriptLib.StartFatherChallenge(context, 100)
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_94042(context, evt)
if 94023 ~= evt.param1 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_94043(context, evt)
if 94024 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_94044(context, evt)
ScriptLib.AttachChildChallenge(context, 100, 1002, 66, {4,999,1}, {},{success=100,fail=100})
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 4)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_94045(context, evt)
ScriptLib.RefreshGroup(context, {group_id = defs.group_id, suite = 1})
ScriptLib.SetGroupVariableValue(context, "hasStarted", 0)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_94046(context, evt)
-- 检测config_id为94024的gadget是否从GadgetState.Default变为GadgetState.GearStart
if 94024 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 or GadgetState.Default ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_94046(context, evt)
-- 在指定位置对应半径范围播放reminder
local pos = {x=2195.732,y=212.3285,z=-1472.175}
if 0 ~= ScriptLib.ShowReminderRadius(context, 400032, pos, 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_reminder_ui_bypos")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_MONSTER_BATTLE_94047(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 111101094, 3)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_94095(context, evt)
if evt.param1 ~= 94095 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_94095(context, evt)
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 94093 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 94094 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_94097(context, evt)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 111101094, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
return 0
end

View File

@@ -0,0 +1,261 @@
-- 基础信息
local base_info = {
group_id = 111101095
}
-- DEFS_MISCS
local defs = {
group_id = 111101095,
thunder1_id = 95019,
thunder2_id = 95020,
thunder3_id = 95021
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 95008, monster_id = 21010201, pos = { x = 2219.908, y = 234.748, z = -1321.063 }, rot = { x = 0.000, y = 224.506, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
{ config_id = 95009, monster_id = 21010201, pos = { x = 2209.978, y = 236.673, z = -1319.127 }, rot = { x = 0.000, y = 196.430, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
{ config_id = 95010, monster_id = 21010301, pos = { x = 2208.706, y = 236.661, z = -1312.891 }, rot = { x = 0.000, y = 219.384, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
{ config_id = 95011, monster_id = 21010301, pos = { x = 2200.676, y = 235.094, z = -1307.245 }, rot = { x = 0.000, y = 196.430, z = 0.000 }, level = 1, drop_tag = "丘丘人" },
{ config_id = 95012, monster_id = 20010501, pos = { x = 2188.128, y = 235.734, z = -1313.011 }, rot = { x = 7.161, y = 207.150, z = 3.658 }, level = 1, drop_tag = "史莱姆" },
{ config_id = 95013, monster_id = 20010501, pos = { x = 2183.861, y = 236.880, z = -1321.220 }, rot = { x = 0.000, y = 131.889, z = 0.000 }, level = 1, drop_tag = "史莱姆" }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 95001, gadget_id = 70210112, pos = { x = 2213.260, y = 237.008, z = -1320.250 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 95002, gadget_id = 70210112, pos = { x = 2203.261, y = 237.008, z = -1313.439 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 95003, gadget_id = 70210112, pos = { x = 2187.672, y = 237.387, z = -1319.433 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 95018, gadget_id = 70900205, pos = { x = 2203.261, y = 234.694, z = -1313.439 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 95019, gadget_id = 70710291, pos = { x = 2213.260, y = 237.008, z = -1320.250 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 95020, gadget_id = 70710291, pos = { x = 2203.261, y = 237.008, z = -1313.439 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true },
{ config_id = 95021, gadget_id = 70710291, pos = { x = 2187.672, y = 237.387, z = -1319.433 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, persistent = true }
}
-- 区域
regions = {
{ config_id = 95004, shape = RegionShape.SPHERE, radius = 30, pos = { x = 2191.725, y = 236.227, z = -1315.411 } }
}
-- 触发器
triggers = {
{ config_id = 1095004, name = "ENTER_REGION_95004", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_95004", action = "action_EVENT_ENTER_REGION_95004" },
{ config_id = 1095005, name = "ANY_GADGET_DIE_95005", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_95005", action = "action_EVENT_ANY_GADGET_DIE_95005", trigger_count = 0, tag = "998" },
{ config_id = 1095006, name = "ANY_GADGET_DIE_95006", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_95006", action = "action_EVENT_ANY_GADGET_DIE_95006", trigger_count = 0, tag = "998" },
{ config_id = 1095007, name = "ANY_GADGET_DIE_95007", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_95007", action = "action_EVENT_ANY_GADGET_DIE_95007", trigger_count = 0, tag = "998" },
{ config_id = 1095014, name = "CHALLENGE_SUCCESS_95014", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "100", condition = "", action = "" },
{ config_id = 1095015, name = "CHALLENGE_FAIL_95015", event = EventType.EVENT_CHALLENGE_FAIL, source = "100", condition = "", action = "action_EVENT_CHALLENGE_FAIL_95015" },
{ config_id = 1095017, name = "CHALLENGE_SUCCESS_95017", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1001", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_95017" }
}
-- 变量
variables = {
{ config_id = 1, name = "hasStarted", value = 0, no_refresh = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 5,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 95001, 95002, 95003, 95018, 95019, 95020, 95021 },
regions = { 95004 },
triggers = { "ENTER_REGION_95004", "ANY_GADGET_DIE_95005", "ANY_GADGET_DIE_95006", "ANY_GADGET_DIE_95007", "CHALLENGE_SUCCESS_95014", "CHALLENGE_FAIL_95015", "CHALLENGE_SUCCESS_95017" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 迷雾一埋伏怪物组,
monsters = { 95008, 95009 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 迷雾二埋伏怪物组,
monsters = { 95010, 95011 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = 迷雾三埋伏怪物组,
monsters = { 95012, 95013 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = 完成挑战存档用,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_95004(context, evt)
if evt.param1 ~= 95004 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
-- 判断变量"hasStarted"为0
if ScriptLib.GetGroupVariableValue(context, "hasStarted") ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_95004(context, evt)
ScriptLib.SetGroupVariableValue(context, "hasStarted", 1)
ScriptLib.CreateFatherChallenge(context, 100, 67, 99999, {success=400, fail=100, fail_on_wipe=true})
ScriptLib.AttachChildChallenge(context, 100, 1001, 68, {2,998,3}, {},{success=100,fail=100})
ScriptLib.StartFatherChallenge(context, 100)
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_95005(context, evt)
if 95001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_95005(context, evt)
math.randomseed(tostring(ScriptLib.GetServerTime(context)):reverse():sub(1, 6))
local randomTemp = math.random(1, 3)
if randomTemp == 1 then
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 2)
ScriptLib.AttachChildChallenge(context, 100, 1002, 69, {defs.group_id,2}, {},{success=100,fail=100})
elseif randomTemp == 2 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.tunder1_id, 201)
else
ScriptLib.ModifyFatherChallengeProperty(context, 100, FatherChallengeProperty.CUR_SUCC, 100)
ScriptLib.PrintContextLog(context, "## ModifyFatherChallengeProperty!!!" )
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_95006(context, evt)
if 95002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_95006(context, evt)
math.randomseed(tostring(ScriptLib.GetServerTime(context)):reverse():sub(1, 6))
local randomTemp = math.random(1, 3)
if randomTemp == 1 then
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 3)
ScriptLib.AttachChildChallenge(context, 100, 1002, 69, {defs.group_id,2}, {},{success=100,fail=100})
elseif randomTemp == 2 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.tunder2_id, 201)
else
ScriptLib.ModifyFatherChallengeProperty(context, 100, FatherChallengeProperty.CUR_SUCC, 100)
ScriptLib.PrintContextLog(context, "## ModifyFatherChallengeProperty!!!" )
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_95007(context, evt)
if 95003 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_95007(context, evt)
math.randomseed(tostring(ScriptLib.GetServerTime(context)):reverse():sub(1, 6))
local randomTemp = math.random(1, 3)
if randomTemp == 1 then
ScriptLib.AddExtraGroupSuite(context, defs.group_id, 3)
ScriptLib.AttachChildChallenge(context, 100, 1002, 69, {defs.group_id,2}, {},{success=100,fail=100})
elseif randomTemp == 2 then
ScriptLib.SetGroupGadgetStateByConfigId(context, defs.group_id, defs.tunder3_id, 201)
else
ScriptLib.ModifyFatherChallengeProperty(context, 100, FatherChallengeProperty.CUR_SUCC, 100)
ScriptLib.PrintContextLog(context, "## ModifyFatherChallengeProperty!!!" )
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_95015(context, evt)
ScriptLib.RefreshGroup(context, {group_id = defs.group_id, suite = 1})
ScriptLib.SetGroupVariableValue(context, "hasStarted", 0)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_95017(context, evt)
ScriptLib.PrintContextLog(context, "## ChallengeSuccess 1001!!!")
return 0
end

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,286 @@
-- 基础信息
local base_info = {
group_id = 111101097
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 97001, monster_id = 20011201, pos = { x = 2180.268, y = 226.158, z = -1218.638 }, rot = { x = 0.000, y = 154.794, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1410 } },
{ config_id = 97003, monster_id = 20011201, pos = { x = 2178.016, y = 226.257, z = -1222.886 }, rot = { x = 0.000, y = 154.794, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1410 } },
{ config_id = 97005, monster_id = 20011301, pos = { x = 2183.560, y = 227.496, z = -1223.656 }, rot = { x = 0.000, y = 199.772, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1410 } },
{ config_id = 97009, monster_id = 20011101, pos = { x = 2178.307, y = 225.777, z = -1219.644 }, rot = { x = 0.000, y = 113.268, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1410 } },
{ config_id = 97010, monster_id = 20011001, pos = { x = 2179.438, y = 226.871, z = -1224.318 }, rot = { x = 0.000, y = 113.268, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1410 } },
{ config_id = 97011, monster_id = 20011001, pos = { x = 2184.098, y = 227.309, z = -1221.219 }, rot = { x = 0.000, y = 158.246, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1410 } },
{ config_id = 97012, monster_id = 20010501, pos = { x = 2179.268, y = 226.967, z = -1224.980 }, rot = { x = 0.000, y = 279.020, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1410 } },
{ config_id = 97013, monster_id = 20010501, pos = { x = 2178.991, y = 225.917, z = -1219.390 }, rot = { x = 0.000, y = 234.042, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1410 } },
{ config_id = 97014, monster_id = 20010601, pos = { x = 2183.584, y = 227.187, z = -1220.810 }, rot = { x = 0.000, y = 234.042, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1410 } },
{ config_id = 97017, monster_id = 20010901, pos = { x = 2180.463, y = 226.170, z = -1218.210 }, rot = { x = 0.000, y = 74.056, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1410 } },
{ config_id = 97018, monster_id = 20010801, pos = { x = 2183.072, y = 227.358, z = -1223.159 }, rot = { x = 0.000, y = 29.078, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1410 } },
{ config_id = 97019, monster_id = 20010801, pos = { x = 2178.307, y = 226.538, z = -1223.811 }, rot = { x = 0.000, y = 29.078, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1410 } },
{ config_id = 97024, monster_id = 20011401, pos = { x = 2181.802, y = 227.428, z = -1225.045 }, rot = { x = 0.000, y = 236.865, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1410 } },
{ config_id = 97025, monster_id = 20011501, pos = { x = 2177.843, y = 225.865, z = -1221.085 }, rot = { x = 0.000, y = 191.887, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1410 } },
{ config_id = 97026, monster_id = 20011401, pos = { x = 2182.201, y = 226.666, z = -1219.054 }, rot = { x = 0.000, y = 191.887, z = 0.000 }, level = 1, drop_id = 1000100, disableWander = true, affix = { 1410 } }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 97002, gadget_id = 70690006, pos = { x = 2206.920, y = 272.854, z = -1212.204 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 97004, gadget_id = 70310013, pos = { x = 2192.543, y = 283.620, z = -1229.954 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 97007, gadget_id = 70690006, pos = { x = 2175.769, y = 224.837, z = -1214.379 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 97008, gadget_id = 70360025, pos = { x = 2192.562, y = 284.331, z = -1229.872 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 97015, gadget_id = 70350085, pos = { x = 2192.562, y = 284.331, z = -1229.872 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 97016, gadget_id = 70690006, pos = { x = 2191.272, y = 252.554, z = -1196.376 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 97020, gadget_id = 70690006, pos = { x = 2200.841, y = 239.446, z = -1220.121 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 97030, gadget_id = 70360001, pos = { x = 2181.200, y = 226.854, z = -1222.291 }, rot = { x = 6.335, y = 28.693, z = 3.410 }, level = 1, persistent = true },
{ config_id = 97031, gadget_id = 70350083, pos = { x = 2181.202, y = 226.880, z = -1222.416 }, rot = { x = 6.335, y = 28.693, z = 3.410 }, level = 1, persistent = true },
{ config_id = 97034, gadget_id = 70310013, pos = { x = 2195.668, y = 239.446, z = -1218.892 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 97035, gadget_id = 70310013, pos = { x = 2192.211, y = 252.570, z = -1201.733 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 97037, gadget_id = 70310013, pos = { x = 2206.138, y = 272.805, z = -1210.033 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 97023, shape = RegionShape.SPHERE, radius = 2, pos = { x = 2192.562, y = 283.942, z = -1229.872 } }
}
-- 触发器
triggers = {
{ config_id = 1097006, name = "GADGET_CREATE_97006", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_97006", action = "action_EVENT_GADGET_CREATE_97006", trigger_count = 0 },
{ config_id = 1097021, name = "CHALLENGE_SUCCESS_97021", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "874", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_97021", trigger_count = 0 },
{ config_id = 1097022, name = "CHALLENGE_FAIL_97022", event = EventType.EVENT_CHALLENGE_FAIL, source = "874", condition = "", action = "action_EVENT_CHALLENGE_FAIL_97022", trigger_count = 0 },
{ config_id = 1097023, name = "ENTER_REGION_97023", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_97023", action = "", trigger_count = 0, tag = "888" },
{ config_id = 1097032, name = "SELECT_OPTION_97032", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_97032", action = "action_EVENT_SELECT_OPTION_97032", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "hasStarted", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 3,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = 起点,
monsters = { },
gadgets = { 97030, 97031 },
regions = { },
triggers = { "GADGET_CREATE_97006", "CHALLENGE_SUCCESS_97021", "CHALLENGE_FAIL_97022", "SELECT_OPTION_97032" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = 终点,
monsters = { },
gadgets = { 97002, 97004, 97007, 97008, 97015, 97016, 97020, 97034, 97035, 97037 },
regions = { 97023 },
triggers = { "ENTER_REGION_97023" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = 事件完成空Suite,
monsters = { },
gadgets = { 97031 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_97006(context, evt)
if 97030 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_97006(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101097, 97030, {40}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_97021(context, evt)
-- 将configid为 97031 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 97031, GadgetState.GearStop) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 97008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101097, 2)
-- group调整group进度,只对非randSuite有效
if 0 ~= ScriptLib.GoToGroupSuite(context, 111101097, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : goto_groupSuite")
return -1
end
--销毁编号为1该怪物潮的识别id)的怪物潮
if 0 ~= ScriptLib.KillMonsterTide(context, 111101097, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_tide")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_97022(context, evt)
-- 将configid为 97031 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 97031, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建id为97030的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 97030 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_gadget")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 97008 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101097, 2)
-- 将本组内变量名为 "hasStarted" 的变量设置为 0
if 0 ~= ScriptLib.SetGroupVariableValue(context, "hasStarted", 0) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
--销毁编号为1该怪物潮的识别id)的怪物潮
if 0 ~= ScriptLib.KillMonsterTide(context, 111101097, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_monster_tide")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_97023(context, evt)
if evt.param1 ~= 97023 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_97032(context, evt)
-- 判断是gadgetid 97030 option_id 40
if 97030 ~= evt.param1 then
return false
end
if 40 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_97032(context, evt)
-- 删除指定group 111101097 指定config97030物件身上指定option40
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 111101097, 97030, 40) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 永久关闭CongfigId的Gadget需要和Groups的RefreshWithBlock标签搭配
if 0 ~= ScriptLib.KillEntityByConfigId(context, { config_id = 97030 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : kill_entity_by_configId")
return -1
end
-- 将configid为 97031 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 97031, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 创建编号为874该挑战的识别id),挑战内容为205的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 874, 205, 30, 4, 888, 3) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101097, 2)
-- 将本组内变量名为 "hasStarted" 的变量设置为 1
if 0 ~= ScriptLib.SetGroupVariableValue(context, "hasStarted", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_groupVariable")
return -1
end
-- 创建编号为1该怪物潮的识别id)的怪物潮创建怪物总数为15场上怪物最少3只最多3只
if 0 ~= ScriptLib.AutoMonsterTide(context, 1, 111101097, {97001,97003,97005,97011,97010,97009,97019,97018,97017,97013,97012,97014,97024,97026,97025}, 15, 3, 3) then
return -1
end
return 0
end

View File

@@ -0,0 +1,371 @@
-- 基础信息
local base_info = {
group_id = 111101098
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 98001, gadget_id = 70350083, pos = { x = 2279.418, y = 217.235, z = -1152.729 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24, persistent = true },
{ config_id = 98002, gadget_id = 70360096, pos = { x = 2222.857, y = 230.322, z = -1146.267 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24 },
{ config_id = 98003, gadget_id = 70360096, pos = { x = 2187.927, y = 233.416, z = -1095.687 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24 },
{ config_id = 98004, gadget_id = 70360096, pos = { x = 2212.672, y = 206.909, z = -1026.921 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24 },
{ config_id = 98005, gadget_id = 70360096, pos = { x = 2170.716, y = 200.626, z = -1002.106 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24 },
{ config_id = 98006, gadget_id = 70360096, pos = { x = 2111.340, y = 221.997, z = -1025.842 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 24 },
-- 墙
{ config_id = 98015, gadget_id = 70950011, pos = { x = 2314.450, y = 207.450, z = -1137.603 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 墙
{ config_id = 98016, gadget_id = 70950011, pos = { x = 2325.760, y = 207.124, z = -1138.025 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 墙
{ config_id = 98017, gadget_id = 70950011, pos = { x = 2340.550, y = 206.591, z = -1138.225 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
-- 墙
{ config_id = 98018, gadget_id = 70950011, pos = { x = 2353.489, y = 206.591, z = -1146.350 }, rot = { x = 0.000, y = 44.219, z = 0.000 }, level = 1 },
-- 墙
{ config_id = 98019, gadget_id = 70950011, pos = { x = 2363.489, y = 207.910, z = -1157.640 }, rot = { x = 0.000, y = 55.574, z = 0.000 }, level = 1 },
-- 墙
{ config_id = 98020, gadget_id = 70950011, pos = { x = 2299.598, y = 208.439, z = -1137.946 }, rot = { x = 0.000, y = 343.156, z = 0.000 }, level = 1 },
-- 墙
{ config_id = 98021, gadget_id = 70950011, pos = { x = 2288.458, y = 212.264, z = -1141.295 }, rot = { x = 0.000, y = 339.387, z = 0.000 }, level = 1 },
-- 墙
{ config_id = 98022, gadget_id = 70950011, pos = { x = 2275.814, y = 213.320, z = -1147.131 }, rot = { x = 0.000, y = 326.687, z = 0.000 }, level = 1 },
{ config_id = 98030, gadget_id = 70900321, pos = { x = 2305.259, y = 211.595, z = -1151.493 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98031, gadget_id = 70900321, pos = { x = 2323.212, y = 209.592, z = -1157.238 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98032, gadget_id = 70900321, pos = { x = 2314.829, y = 210.037, z = -1173.478 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98033, gadget_id = 70900321, pos = { x = 2340.645, y = 209.957, z = -1173.357 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98034, gadget_id = 70900321, pos = { x = 2340.645, y = 205.835, z = -1149.069 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98035, gadget_id = 70220055, pos = { x = 2346.444, y = 210.952, z = -1178.624 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98036, gadget_id = 70220055, pos = { x = 2346.444, y = 208.911, z = -1156.949 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98037, gadget_id = 70220055, pos = { x = 2335.995, y = 206.135, z = -1147.031 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98038, gadget_id = 70220055, pos = { x = 2346.444, y = 206.413, z = -1148.209 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98039, gadget_id = 70220055, pos = { x = 2324.469, y = 209.631, z = -1174.545 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98040, gadget_id = 70220055, pos = { x = 2329.744, y = 209.496, z = -1178.624 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98041, gadget_id = 70220055, pos = { x = 2346.444, y = 210.608, z = -1172.613 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98042, gadget_id = 70220055, pos = { x = 2302.336, y = 209.622, z = -1171.689 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98043, gadget_id = 70220055, pos = { x = 2320.141, y = 212.859, z = -1155.370 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98044, gadget_id = 70220055, pos = { x = 2296.671, y = 210.499, z = -1164.794 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98045, gadget_id = 70220003, pos = { x = 2321.952, y = 207.682, z = -1160.511 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98046, gadget_id = 70220003, pos = { x = 2337.619, y = 212.028, z = -1161.548 }, rot = { x = 0.000, y = 243.348, z = 0.000 }, level = 1 },
{ config_id = 98047, gadget_id = 70220003, pos = { x = 2335.322, y = 209.272, z = -1181.181 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98048, gadget_id = 70220003, pos = { x = 2307.776, y = 209.768, z = -1174.821 }, rot = { x = 0.000, y = 288.826, z = 0.000 }, level = 1 },
{ config_id = 98049, gadget_id = 70220003, pos = { x = 2311.862, y = 210.030, z = -1168.820 }, rot = { x = 0.000, y = 288.826, z = 0.000 }, level = 1 },
{ config_id = 98050, gadget_id = 70220003, pos = { x = 2342.390, y = 210.409, z = -1176.785 }, rot = { x = 0.000, y = 302.795, z = 0.000 }, level = 1 },
{ config_id = 98051, gadget_id = 70220003, pos = { x = 2321.953, y = 213.349, z = -1153.686 }, rot = { x = 0.000, y = 47.266, z = 0.000 }, level = 1 },
{ config_id = 98052, gadget_id = 70220003, pos = { x = 2324.699, y = 212.250, z = -1161.733 }, rot = { x = 2.018, y = 87.557, z = 359.914 }, level = 1 },
{ config_id = 98053, gadget_id = 70220003, pos = { x = 2326.896, y = 211.033, z = -1181.180 }, rot = { x = 0.000, y = 37.187, z = 0.000 }, level = 1 },
{ config_id = 98054, gadget_id = 70900321, pos = { x = 2320.272, y = 211.308, z = -1181.024 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98055, gadget_id = 70220055, pos = { x = 2309.615, y = 209.591, z = -1171.689 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98056, gadget_id = 70690001, pos = { x = 2336.415, y = 212.138, z = -1151.837 }, rot = { x = 0.000, y = 98.109, z = 0.000 }, level = 1 },
{ config_id = 98057, gadget_id = 70690001, pos = { x = 2339.636, y = 214.357, z = -1170.560 }, rot = { x = 0.000, y = 148.919, z = 0.000 }, level = 1 },
{ config_id = 98058, gadget_id = 70690001, pos = { x = 2317.200, y = 215.775, z = -1155.707 }, rot = { x = 0.000, y = 117.409, z = 0.000 }, level = 1 },
{ config_id = 98059, gadget_id = 70220003, pos = { x = 2298.733, y = 210.010, z = -1170.739 }, rot = { x = 0.000, y = 265.403, z = 0.000 }, level = 1 },
{ config_id = 98060, gadget_id = 70220003, pos = { x = 2305.492, y = 210.030, z = -1163.480 }, rot = { x = 0.000, y = 280.805, z = 0.000 }, level = 1 },
{ config_id = 98061, gadget_id = 70220003, pos = { x = 2298.733, y = 210.010, z = -1175.429 }, rot = { x = 0.000, y = 265.403, z = 0.000 }, level = 1 },
{ config_id = 98062, gadget_id = 70220055, pos = { x = 2326.777, y = 211.469, z = -1186.763 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98063, gadget_id = 70220055, pos = { x = 2315.059, y = 208.419, z = -1147.031 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98064, gadget_id = 70220055, pos = { x = 2305.860, y = 211.571, z = -1154.029 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 98065, gadget_id = 70220055, pos = { x = 2296.671, y = 212.088, z = -1153.456 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 98011, shape = RegionShape.SPHERE, radius = 10.7, pos = { x = 2221.882, y = 226.264, z = -1146.372 } },
{ config_id = 98012, shape = RegionShape.SPHERE, radius = 14.5, pos = { x = 2189.570, y = 229.396, z = -1095.766 } },
{ config_id = 98013, shape = RegionShape.SPHERE, radius = 16.4, pos = { x = 2171.129, y = 200.048, z = -1001.037 } },
{ config_id = 98014, shape = RegionShape.SPHERE, radius = 5, pos = { x = 2114.274, y = 222.367, z = -1022.620 } }
}
-- 触发器
triggers = {
{ config_id = 1098007, name = "GADGET_CREATE_98007", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_98007", action = "action_EVENT_GADGET_CREATE_98007", trigger_count = 0 },
{ config_id = 1098008, name = "SELECT_OPTION_98008", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_98008", action = "action_EVENT_SELECT_OPTION_98008" },
{ config_id = 1098009, name = "CHALLENGE_SUCCESS_98009", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "666", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_98009" },
{ config_id = 1098010, name = "CHALLENGE_FAIL_98010", event = EventType.EVENT_CHALLENGE_FAIL, source = "666", condition = "", action = "action_EVENT_CHALLENGE_FAIL_98010", trigger_count = 0 },
{ config_id = 1098011, name = "ENTER_REGION_98011", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_98011", action = "action_EVENT_ENTER_REGION_98011" },
{ config_id = 1098012, name = "ENTER_REGION_98012", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_98012", action = "action_EVENT_ENTER_REGION_98012" },
{ config_id = 1098013, name = "ENTER_REGION_98013", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_98013", action = "action_EVENT_ENTER_REGION_98013" },
{ config_id = 1098014, name = "ENTER_REGION_98014", event = EventType.EVENT_ENTER_REGION, source = "", condition = "", action = "", tag = "666" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 98001 },
regions = { 98014 },
triggers = { "GADGET_CREATE_98007", "SELECT_OPTION_98008", "CHALLENGE_SUCCESS_98009", "CHALLENGE_FAIL_98010", "ENTER_REGION_98014" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 98002 },
regions = { 98011 },
triggers = { "ENTER_REGION_98011" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 98003 },
regions = { 98012 },
triggers = { "ENTER_REGION_98012" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 98004, 98005 },
regions = { 98013 },
triggers = { "ENTER_REGION_98013" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 98006 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 98030, 98031, 98032, 98033, 98034, 98054, 98056, 98057, 98058 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 8,
-- description = ,
monsters = { },
gadgets = { 98045, 98046, 98047, 98048, 98049, 98050, 98051, 98052, 98053, 98059, 98060, 98061 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 9,
-- description = ,
monsters = { },
gadgets = { 98035, 98036, 98037, 98038, 98039, 98040, 98041, 98042, 98043, 98044, 98055, 98062, 98063, 98064, 98065 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 10,
-- description = 这组不刷,
monsters = { },
gadgets = { 98015, 98016, 98017, 98018, 98019, 98020, 98021, 98022 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_98007(context, evt)
if 98001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_98007(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101098, 98001, {2}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_98008(context, evt)
-- 判断是gadgetid 98001 option_id 2
if 98001 ~= evt.param1 then
return false
end
if 2 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_98008(context, evt)
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101098, 2)
-- 创建编号为666该挑战的识别id),挑战内容为127的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 666, 127, 180, 4, 666, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : active_challenge")
return -1
end
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 111101098, 6)
-- 添加suite7的新内容
ScriptLib.AddExtraGroupSuite(context, 111101098, 7)
-- 添加suite8的新内容
ScriptLib.AddExtraGroupSuite(context, 111101098, 8)
-- 添加suite9的新内容
ScriptLib.AddExtraGroupSuite(context, 111101098, 9)
-- 添加suite10的新内容
ScriptLib.AddExtraGroupSuite(context, 111101098, 10)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_98009(context, evt)
-- 删除suite5的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101098, 5)
return 0
end
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_98010(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 111101098, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_98011(context, evt)
if evt.param1 ~= 98011 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_98011(context, evt)
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 111101098, 3)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_98012(context, evt)
if evt.param1 ~= 98012 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_98012(context, evt)
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 111101098, 4)
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_98013(context, evt)
if evt.param1 ~= 98013 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_98013(context, evt)
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 111101098, 5)
-- 删除suite2的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101098, 2)
-- 删除suite3的所有内容
ScriptLib.RemoveExtraGroupSuite(context, 111101098, 3)
return 0
end

View File

@@ -0,0 +1,454 @@
-- 基础信息
local base_info = {
group_id = 111101099
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 99001, gadget_id = 70360002, pos = { x = 2353.929, y = 283.898, z = -1729.235 }, rot = { x = 0.000, y = 333.979, z = 0.000 }, level = 1 },
{ config_id = 99004, gadget_id = 70950051, pos = { x = 2340.344, y = 297.580, z = -1748.613 }, rot = { x = 0.000, y = 251.760, z = 0.000 }, level = 1 },
{ config_id = 99005, gadget_id = 70950051, pos = { x = 2337.306, y = 297.580, z = -1740.623 }, rot = { x = 0.000, y = 268.607, z = 0.000 }, level = 1 },
{ config_id = 99006, gadget_id = 70950051, pos = { x = 2338.489, y = 301.994, z = -1744.689 }, rot = { x = 0.000, y = 268.607, z = 0.000 }, level = 1 },
{ config_id = 99007, gadget_id = 70950051, pos = { x = 2338.489, y = 292.977, z = -1744.689 }, rot = { x = 0.000, y = 251.900, z = 0.000 }, level = 1 },
{ config_id = 99008, gadget_id = 70950051, pos = { x = 2361.542, y = 296.378, z = -1714.950 }, rot = { x = 0.000, y = 74.830, z = 0.000 }, level = 1 },
{ config_id = 99009, gadget_id = 70950051, pos = { x = 2364.003, y = 296.300, z = -1722.641 }, rot = { x = 0.000, y = 74.830, z = 0.000 }, level = 1 },
{ config_id = 99010, gadget_id = 70950051, pos = { x = 2362.847, y = 300.008, z = -1719.209 }, rot = { x = 0.000, y = 74.830, z = 0.000 }, level = 1 },
{ config_id = 99011, gadget_id = 70950051, pos = { x = 2362.847, y = 292.468, z = -1719.209 }, rot = { x = 0.000, y = 74.830, z = 0.000 }, level = 1 },
{ config_id = 99012, gadget_id = 70950051, pos = { x = 2363.875, y = 294.208, z = -1733.902 }, rot = { x = 0.000, y = 271.640, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99013, gadget_id = 70950053, pos = { x = 2361.540, y = 303.047, z = -1724.374 }, rot = { x = 0.000, y = 271.640, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99014, gadget_id = 70950051, pos = { x = 2360.785, y = 294.208, z = -1720.879 }, rot = { x = 0.000, y = 264.290, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99015, gadget_id = 70950050, pos = { x = 2338.489, y = 297.486, z = -1744.689 }, rot = { x = 0.000, y = 268.607, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99016, gadget_id = 70950051, pos = { x = 2340.344, y = 292.981, z = -1748.613 }, rot = { x = 0.000, y = 246.400, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99017, gadget_id = 70950053, pos = { x = 2357.557, y = 297.257, z = -1753.630 }, rot = { x = 0.000, y = 340.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99018, gadget_id = 70950052, pos = { x = 2358.171, y = 290.119, z = -1746.312 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true },
{ config_id = 99019, gadget_id = 70950052, pos = { x = 2351.667, y = 296.245, z = -1746.312 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true },
{ config_id = 99020, gadget_id = 70950051, pos = { x = 2340.344, y = 302.031, z = -1748.613 }, rot = { x = 0.000, y = 249.900, z = 0.000 }, level = 1 },
{ config_id = 99021, gadget_id = 70950051, pos = { x = 2337.306, y = 301.975, z = -1740.623 }, rot = { x = 0.000, y = 268.607, z = 0.000 }, level = 1 },
{ config_id = 99022, gadget_id = 70950051, pos = { x = 2337.306, y = 292.920, z = -1740.623 }, rot = { x = 0.000, y = 268.607, z = 0.000 }, level = 1 },
{ config_id = 99023, gadget_id = 70950051, pos = { x = 2350.580, y = 301.936, z = -1756.690 }, rot = { x = 0.000, y = 340.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99024, gadget_id = 70950051, pos = { x = 2354.178, y = 301.936, z = -1755.097 }, rot = { x = 0.000, y = 340.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99025, gadget_id = 70950051, pos = { x = 2357.557, y = 301.936, z = -1753.630 }, rot = { x = 0.000, y = 340.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99026, gadget_id = 70950053, pos = { x = 2350.580, y = 297.234, z = -1756.690 }, rot = { x = 0.000, y = 340.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99027, gadget_id = 70950053, pos = { x = 2354.178, y = 297.257, z = -1755.097 }, rot = { x = 0.000, y = 340.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99029, gadget_id = 70950052, pos = { x = 2335.455, y = 295.033, z = -1727.887 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true },
{ config_id = 99031, gadget_id = 70950051, pos = { x = 2361.526, y = 298.201, z = -1724.340 }, rot = { x = 0.000, y = 271.640, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99032, gadget_id = 70950050, pos = { x = 2362.213, y = 298.014, z = -1727.566 }, rot = { x = 0.000, y = 271.640, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true },
{ config_id = 99033, gadget_id = 70950051, pos = { x = 2360.785, y = 298.014, z = -1720.879 }, rot = { x = 0.000, y = 264.290, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99034, gadget_id = 70950053, pos = { x = 2362.953, y = 303.176, z = -1730.589 }, rot = { x = 0.000, y = 271.640, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99035, gadget_id = 70950051, pos = { x = 2363.875, y = 303.087, z = -1733.902 }, rot = { x = 0.000, y = 271.640, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99036, gadget_id = 70950051, pos = { x = 2360.785, y = 303.087, z = -1720.879 }, rot = { x = 0.000, y = 264.290, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99037, gadget_id = 70950052, pos = { x = 2345.770, y = 290.119, z = -1746.312 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true },
{ config_id = 99038, gadget_id = 70950052, pos = { x = 2355.010, y = 295.033, z = -1718.774 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true },
{ config_id = 99039, gadget_id = 70950052, pos = { x = 2368.353, y = 295.033, z = -1741.866 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true },
{ config_id = 99040, gadget_id = 70950052, pos = { x = 2343.775, y = 295.033, z = -1754.236 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true },
{ config_id = 99041, gadget_id = 70950050, pos = { x = 2362.847, y = 296.318, z = -1719.209 }, rot = { x = 0.000, y = 74.830, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99042, gadget_id = 70950051, pos = { x = 2350.580, y = 292.031, z = -1756.690 }, rot = { x = 0.000, y = 340.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99043, gadget_id = 70950051, pos = { x = 2354.178, y = 292.054, z = -1755.097 }, rot = { x = 0.000, y = 340.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99044, gadget_id = 70950051, pos = { x = 2357.557, y = 292.054, z = -1753.630 }, rot = { x = 0.000, y = 340.000, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99045, gadget_id = 70950051, pos = { x = 2362.953, y = 294.208, z = -1730.589 }, rot = { x = 0.000, y = 271.640, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99046, gadget_id = 70950051, pos = { x = 2361.502, y = 294.119, z = -1724.286 }, rot = { x = 0.000, y = 271.640, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99047, gadget_id = 70950051, pos = { x = 2362.953, y = 298.201, z = -1730.589 }, rot = { x = 0.000, y = 271.640, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99048, gadget_id = 70950051, pos = { x = 2363.875, y = 298.193, z = -1733.902 }, rot = { x = 0.000, y = 271.640, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99050, gadget_id = 70950051, pos = { x = 2351.679, y = 290.240, z = -1718.798 }, rot = { x = 0.000, y = 345.470, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99051, gadget_id = 70950052, pos = { x = 2342.811, y = 299.573, z = -1721.315 }, rot = { x = 0.000, y = 345.470, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99052, gadget_id = 70950051, pos = { x = 2339.665, y = 290.240, z = -1722.130 }, rot = { x = 0.000, y = 345.470, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99053, gadget_id = 70950051, pos = { x = 2342.777, y = 295.040, z = -1721.330 }, rot = { x = 0.000, y = 345.470, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99054, gadget_id = 70950050, pos = { x = 2345.636, y = 294.853, z = -1720.589 }, rot = { x = 0.000, y = 345.470, z = 0.000 }, level = 1, start_route = false, is_use_point_array = true },
{ config_id = 99055, gadget_id = 70950051, pos = { x = 2339.665, y = 294.853, z = -1722.130 }, rot = { x = 0.000, y = 345.470, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99056, gadget_id = 70950052, pos = { x = 2348.537, y = 299.702, z = -1719.790 }, rot = { x = 0.000, y = 345.470, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99057, gadget_id = 70950051, pos = { x = 2351.679, y = 299.613, z = -1718.798 }, rot = { x = 0.000, y = 345.470, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99058, gadget_id = 70950051, pos = { x = 2339.665, y = 299.613, z = -1722.130 }, rot = { x = 0.000, y = 345.470, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99059, gadget_id = 70950053, pos = { x = 2348.537, y = 290.240, z = -1719.790 }, rot = { x = 0.000, y = 345.470, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99060, gadget_id = 70950053, pos = { x = 2342.724, y = 290.150, z = -1721.356 }, rot = { x = 0.000, y = 345.470, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99061, gadget_id = 70950051, pos = { x = 2348.537, y = 295.040, z = -1719.790 }, rot = { x = 0.000, y = 345.470, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99064, gadget_id = 70950051, pos = { x = 2351.679, y = 294.835, z = -1718.798 }, rot = { x = 0.000, y = 345.470, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99066, gadget_id = 70950051, pos = { x = 2351.739, y = 298.331, z = -1745.043 }, rot = { x = 0.000, y = 334.320, z = 0.000 }, level = 1 },
{ config_id = 99067, gadget_id = 70950051, pos = { x = 2358.435, y = 298.331, z = -1741.940 }, rot = { x = 0.000, y = 334.320, z = 0.000 }, level = 1 },
{ config_id = 99068, gadget_id = 70950051, pos = { x = 2354.888, y = 302.104, z = -1743.452 }, rot = { x = 0.000, y = 334.320, z = 0.000 }, level = 1 },
{ config_id = 99069, gadget_id = 70950051, pos = { x = 2354.888, y = 293.293, z = -1743.452 }, rot = { x = 0.000, y = 334.320, z = 0.000 }, level = 1 },
{ config_id = 99070, gadget_id = 70950051, pos = { x = 2328.892, y = 293.186, z = -1740.166 }, rot = { x = 0.000, y = 245.160, z = 0.000 }, level = 1 },
{ config_id = 99071, gadget_id = 70950051, pos = { x = 2331.815, y = 293.186, z = -1746.002 }, rot = { x = 0.000, y = 245.160, z = 0.000 }, level = 1 },
{ config_id = 99072, gadget_id = 70950051, pos = { x = 2330.353, y = 296.754, z = -1742.673 }, rot = { x = 0.000, y = 245.160, z = 0.000 }, level = 1 },
{ config_id = 99073, gadget_id = 70950051, pos = { x = 2330.352, y = 290.063, z = -1742.672 }, rot = { x = 0.000, y = 245.160, z = 0.000 }, level = 1 },
{ config_id = 99074, gadget_id = 70950050, pos = { x = 2354.888, y = 298.236, z = -1743.452 }, rot = { x = 0.000, y = 334.320, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99075, gadget_id = 70950051, pos = { x = 2351.739, y = 292.999, z = -1745.043 }, rot = { x = 0.000, y = 345.470, z = 0.000 }, level = 1, start_route = false },
{ config_id = 99076, gadget_id = 70950051, pos = { x = 2351.739, y = 302.140, z = -1745.043 }, rot = { x = 0.000, y = 334.320, z = 0.000 }, level = 1 },
{ config_id = 99077, gadget_id = 70950051, pos = { x = 2358.435, y = 302.084, z = -1741.940 }, rot = { x = 0.000, y = 334.320, z = 0.000 }, level = 1 },
{ config_id = 99078, gadget_id = 70950051, pos = { x = 2358.435, y = 293.236, z = -1741.940 }, rot = { x = 0.000, y = 334.320, z = 0.000 }, level = 1 },
{ config_id = 99079, gadget_id = 70950050, pos = { x = 2330.353, y = 293.405, z = -1742.673 }, rot = { x = 0.000, y = 245.160, z = 0.000 }, level = 1, start_route = false }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1099002, name = "GADGET_CREATE_99002", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_99002", action = "action_EVENT_GADGET_CREATE_99002", trigger_count = 0 },
{ config_id = 1099003, name = "SELECT_OPTION_99003", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_99003", action = "action_EVENT_SELECT_OPTION_99003", trigger_count = 0, forbid_guest = false },
{ config_id = 1099028, name = "TIMER_EVENT_99028", event = EventType.EVENT_TIMER_EVENT, source = "refresh_ballon", condition = "", action = "action_EVENT_TIMER_EVENT_99028", trigger_count = 0 },
{ config_id = 1099030, name = "GADGET_CREATE_99030", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_99030", action = "action_EVENT_GADGET_CREATE_99030", trigger_count = 0 },
{ config_id = 1099049, name = "GADGET_CREATE_99049", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_99049", action = "action_EVENT_GADGET_CREATE_99049", trigger_count = 0 },
{ config_id = 1099062, name = "TIMER_EVENT_99062", event = EventType.EVENT_TIMER_EVENT, source = "destroy_ballon", condition = "", action = "action_EVENT_TIMER_EVENT_99062", trigger_count = 0 },
{ config_id = 1099063, name = "GADGET_CREATE_99063", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_99063", action = "action_EVENT_GADGET_CREATE_99063", trigger_count = 0 },
{ config_id = 1099065, name = "GADGET_CREATE_99065", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_99065", action = "action_EVENT_GADGET_CREATE_99065", trigger_count = 0 },
{ config_id = 1099080, name = "GADGET_CREATE_99080", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_99080", action = "action_EVENT_GADGET_CREATE_99080", trigger_count = 0 },
{ config_id = 1099081, name = "GADGET_CREATE_99081", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_99081", action = "action_EVENT_GADGET_CREATE_99081", trigger_count = 0 },
{ config_id = 1099082, name = "GADGET_CREATE_99082", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_99082", action = "action_EVENT_GADGET_CREATE_99082", trigger_count = 0 },
{ config_id = 1099083, name = "GADGET_CREATE_99083", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_99083", action = "action_EVENT_GADGET_CREATE_99083", trigger_count = 0 },
{ config_id = 1099084, name = "GADGET_CREATE_99084", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_99084", action = "action_EVENT_GADGET_CREATE_99084", trigger_count = 0 }
}
-- 变量
variables = {
{ config_id = 1, name = "stage", value = 0, no_refresh = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 99001 },
regions = { },
triggers = { "GADGET_CREATE_99002", "SELECT_OPTION_99003", "TIMER_EVENT_99028", "TIMER_EVENT_99062" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 99004, 99005, 99006, 99007, 99008, 99009, 99010, 99011, 99015, 99016, 99020, 99021, 99022, 99041 },
regions = { },
triggers = { "GADGET_CREATE_99080" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 99012, 99013, 99014, 99031, 99032, 99033, 99034, 99035, 99036, 99045, 99046, 99047, 99048 },
regions = { },
triggers = { "GADGET_CREATE_99049", "GADGET_CREATE_99081" },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 99017, 99023, 99024, 99025, 99026, 99027, 99042, 99043, 99044 },
regions = { },
triggers = { "GADGET_CREATE_99082" },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 99018, 99019, 99037, 99050, 99051, 99052, 99053, 99054, 99055, 99056, 99057, 99058, 99059, 99060, 99061, 99064 },
regions = { },
triggers = { "GADGET_CREATE_99063", "GADGET_CREATE_99065", "GADGET_CREATE_99083" },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 99029, 99038, 99039, 99040, 99066, 99067, 99068, 99069, 99070, 99071, 99072, 99073, 99074, 99075, 99076, 99077, 99078, 99079 },
regions = { },
triggers = { "GADGET_CREATE_99030", "GADGET_CREATE_99084" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_99002(context, evt)
if 99001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_99002(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101099, 99001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_99003(context, evt)
-- 判断是gadgetid 99001 option_id 7
if 99001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_99003(context, evt)
if evt.param2 == 7 then
local uid_list = ScriptLib.GetSceneUidList(context)
ScriptLib.SetPlayerGroupVisionType(context, uid_list, {0})
ScriptLib.DelWorktopOptionByGroupId(context, 111101099, 99001, 7)
ScriptLib.SetWorktopOptionsByGroupId(context, 111101099, 99001, {2905})
ScriptLib.AddExtraGroupSuite(context, 111101099, 2)
ScriptLib.CreateGroupTimerEvent(context, 111101099, "refresh_ballon", 10)
ScriptLib.CreateGroupTimerEvent(context, 111101099, "destroy_ballon", 7)
ScriptLib.ChangeGroupVariableValue(context, "stage", 1)
elseif evt.param2 == 2905 then
local uid_list = ScriptLib.GetSceneUidList(context)
ScriptLib.SetPlayerGroupVisionType(context, uid_list, {1})
ScriptLib.SetWorktopOptionsByGroupId(context, 111101099, 99001, {7})
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_99028(context, evt)
if ScriptLib.GetGroupVariableValue(context, "stage") == 1 then
ScriptLib.AddExtraGroupSuite(context, 111101099, 3)
ScriptLib.CreateGroupTimerEvent(context, 111101099, "refresh_ballon", 10)
ScriptLib.ChangeGroupVariableValue(context, "stage", 1)
elseif ScriptLib.GetGroupVariableValue(context, "stage") == 2 then
ScriptLib.AddExtraGroupSuite(context, 111101099, 4)
ScriptLib.CreateGroupTimerEvent(context, 111101099, "refresh_ballon", 10)
ScriptLib.ChangeGroupVariableValue(context, "stage", 1)
elseif ScriptLib.GetGroupVariableValue(context, "stage") == 3 then
ScriptLib.AddExtraGroupSuite(context, 111101099, 5)
ScriptLib.CreateGroupTimerEvent(context, 111101099, "refresh_ballon", 10)
ScriptLib.ChangeGroupVariableValue(context, "stage", 1)
elseif ScriptLib.GetGroupVariableValue(context, "stage") == 4 then
ScriptLib.AddExtraGroupSuite(context, 111101099, 6)
ScriptLib.CreateGroupTimerEvent(context, 111101099, "refresh_ballon", 10)
ScriptLib.ChangeGroupVariableValue(context, "stage", 1)
elseif ScriptLib.GetGroupVariableValue(context, "stage") == 5 then
ScriptLib.AddExtraGroupSuite(context, 111101099, 2)
ScriptLib.CreateGroupTimerEvent(context, 111101099, "refresh_ballon", 10)
ScriptLib.SetGroupVariableValue(context, "stage", 1)
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_99030(context, evt)
if 99029 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_99030(context, evt)
ScriptLib.SetPlatformPointArray(context, 99038, 110100004, { 1,2,3,4 }, { route_type = 2 })
ScriptLib.SetPlatformPointArray(context, 99039, 110100004, { 2,3,4,1 }, { route_type = 2 })
ScriptLib.SetPlatformPointArray(context, 99040, 110100004, { 3,4,1,2 }, { route_type = 2 })
ScriptLib.SetPlatformPointArray(context, 99029, 110100004, { 4,1,2,3 }, { route_type = 2 })
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_99049(context, evt)
if 99032 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_99049(context, evt)
ScriptLib.SetPlatformPointArray(context, 99032, 110100001, { 1,2,3 }, { route_type = 2 })
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_99062(context, evt)
if ScriptLib.GetGroupVariableValue(context, "stage") == 1 then
for i, v in ipairs(suites[2].gadgets) do
ScriptLib.SetGroupGadgetStateByConfigId(context, 111101099, v, 201)
end
elseif ScriptLib.GetGroupVariableValue(context, "stage") == 2 then
for i, v in ipairs(suites[3].gadgets) do
ScriptLib.SetGroupGadgetStateByConfigId(context, 111101099, v, 201)
end
elseif ScriptLib.GetGroupVariableValue(context, "stage") == 3 then
for i, v in ipairs(suites[4].gadgets) do
ScriptLib.SetGroupGadgetStateByConfigId(context, 111101099, v, 201)
end
elseif ScriptLib.GetGroupVariableValue(context, "stage") == 4 then
for i, v in ipairs(suites[5].gadgets) do
ScriptLib.SetGroupGadgetStateByConfigId(context, 111101099, v, 201)
end
elseif ScriptLib.GetGroupVariableValue(context, "stage") == 5 then
for i, v in ipairs(suites[6].gadgets) do
ScriptLib.SetGroupGadgetStateByConfigId(context, 111101099, v, 201)
end
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_99063(context, evt)
if 99054 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_99063(context, evt)
ScriptLib.SetPlatformPointArray(context, 99054, 110100002, { 1,3,2 }, { route_type = 2 })
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_99065(context, evt)
if 99018 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_99065(context, evt)
ScriptLib.SetPlatformPointArray(context, 99018, 110100003, { 1,2,3 }, { route_type = 2 })
ScriptLib.SetPlatformPointArray(context, 99019, 110100003, { 2,3,1 }, { route_type = 2 })
ScriptLib.SetPlatformPointArray(context, 99037, 110100003, { 3,1,2 }, { route_type = 2 })
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_99080(context, evt)
if 99004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_99080(context, evt)
ScriptLib.CreateGroupTimerEvent(context, 111101099, "destroy_ballon", 7)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_99081(context, evt)
if 99012 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_99081(context, evt)
ScriptLib.CreateGroupTimerEvent(context, 111101099, "destroy_ballon", 7)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_99082(context, evt)
if 99017 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_99082(context, evt)
ScriptLib.CreateGroupTimerEvent(context, 111101099, "destroy_ballon", 7)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_99083(context, evt)
if 99018 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_99083(context, evt)
ScriptLib.CreateGroupTimerEvent(context, 111101099, "destroy_ballon", 7)
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_99084(context, evt)
if 99029 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_99084(context, evt)
ScriptLib.CreateGroupTimerEvent(context, 111101099, "destroy_ballon", 7)
return 0
end

View File

@@ -0,0 +1,305 @@
-- 基础信息
local base_info = {
group_id = 111101100
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 100001, gadget_id = 70360002, pos = { x = 2269.024, y = 230.211, z = -1203.624 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 100004, gadget_id = 70350139, pos = { x = 2270.027, y = 227.819, z = -1180.840 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 100005, gadget_id = 70350140, pos = { x = 2270.027, y = 227.819, z = -1180.840 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 100006, gadget_id = 70950050, pos = { x = 2262.859, y = 234.326, z = -1197.504 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 100007, gadget_id = 70950050, pos = { x = 2262.860, y = 231.664, z = -1197.504 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 100008, gadget_id = 70950050, pos = { x = 2264.557, y = 231.664, z = -1197.504 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 100009, gadget_id = 70950050, pos = { x = 2266.591, y = 231.664, z = -1197.504 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 100010, gadget_id = 70950050, pos = { x = 2266.591, y = 234.326, z = -1197.504 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 100011, gadget_id = 70950050, pos = { x = 2268.288, y = 231.664, z = -1197.504 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 100012, gadget_id = 70950050, pos = { x = 2271.888, y = 231.664, z = -1197.504 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 100013, gadget_id = 70950050, pos = { x = 2271.888, y = 234.326, z = -1197.504 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 100014, gadget_id = 70950050, pos = { x = 2279.589, y = 239.490, z = -1208.835 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 100016, gadget_id = 70950050, pos = { x = 2252.481, y = 228.011, z = -1196.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 110100044 },
{ config_id = 100017, gadget_id = 70350138, pos = { x = 2252.481, y = 227.911, z = -1193.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 110100045 },
{ config_id = 100018, gadget_id = 70350138, pos = { x = 2252.481, y = 227.616, z = -1190.000 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, route_id = 110100046 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1100002, name = "SELECT_OPTION_100002", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_100002", action = "action_EVENT_SELECT_OPTION_100002" },
{ config_id = 1100003, name = "GADGET_CREATE_100003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_100003", action = "action_EVENT_GADGET_CREATE_100003" },
{ config_id = 1100019, name = "GADGET_CREATE_100019", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_100019", action = "action_EVENT_GADGET_CREATE_100019" },
{ config_id = 1100020, name = "TIMER_EVENT_100020", event = EventType.EVENT_TIMER_EVENT, source = "time5", condition = "", action = "action_EVENT_TIMER_EVENT_100020", trigger_count = 10 },
{ config_id = 1100021, name = "TIMER_EVENT_100021", event = EventType.EVENT_TIMER_EVENT, source = "time1", condition = "", action = "action_EVENT_TIMER_EVENT_100021", trigger_count = 10 },
{ config_id = 1100022, name = "TIMER_EVENT_100022", event = EventType.EVENT_TIMER_EVENT, source = "time2", condition = "", action = "action_EVENT_TIMER_EVENT_100022", trigger_count = 10 },
{ config_id = 1100023, name = "TIMER_EVENT_100023", event = EventType.EVENT_TIMER_EVENT, source = "time3", condition = "", action = "action_EVENT_TIMER_EVENT_100023", trigger_count = 10 },
{ config_id = 1100024, name = "TIMER_EVENT_100024", event = EventType.EVENT_TIMER_EVENT, source = "time4", condition = "", action = "action_EVENT_TIMER_EVENT_100024", trigger_count = 10 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 100001 },
regions = { },
triggers = { "SELECT_OPTION_100002", "GADGET_CREATE_100003" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 100004, 100005, 100006, 100007, 100008, 100009, 100010, 100011, 100012, 100013, 100014 },
regions = { },
triggers = { "GADGET_CREATE_100019", "TIMER_EVENT_100020", "TIMER_EVENT_100021", "TIMER_EVENT_100022", "TIMER_EVENT_100023", "TIMER_EVENT_100024" },
rand_weight = 100
},
{
-- suite_id = 3,
-- description = ,
monsters = { },
gadgets = { 100016, 100017 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 4,
-- description = ,
monsters = { },
gadgets = { 100017, 100018 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 5,
-- description = ,
monsters = { },
gadgets = { 100017 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 6,
-- description = ,
monsters = { },
gadgets = { 100016, 100018 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 7,
-- description = ,
monsters = { },
gadgets = { 100016, 100017, 100018 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_SELECT_OPTION_100002(context, evt)
-- 判断是gadgetid 100001 option_id 7
if 100001 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_100002(context, evt)
-- 删除指定group 111101100 指定config100001物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 111101100, 100001, 7) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : del_work_options_by_group_configId")
return -1
end
-- 添加suite2的新内容
ScriptLib.AddExtraGroupSuite(context, 111101100, 2)
-- 延迟1秒后,向groupId为111101100的对象,请求一次调用,并将string参数"time5" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 111101100, "time5", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_100003(context, evt)
if 100001 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_100003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101100, 100001, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_100019(context, evt)
if 100004 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_100019(context, evt)
-- 将configid为 100004 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 100004, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 延迟1秒后,向groupId为111101100的对象,请求一次调用,并将string参数"time5" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 111101100, "time5", 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 将configid为 100005 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 100005, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_100020(context, evt)
-- 延迟5秒后,向groupId为111101100的对象,请求一次调用,并将string参数"time1" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 111101100, "time1", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 添加suite3的新内容
ScriptLib.AddExtraGroupSuite(context, 111101100, 3)
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_100021(context, evt)
-- 延迟5秒后,向groupId为111101100的对象,请求一次调用,并将string参数"time2" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 111101100, "time2", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 添加suite4的新内容
ScriptLib.AddExtraGroupSuite(context, 111101100, 4)
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_100022(context, evt)
-- 延迟5秒后,向groupId为111101100的对象,请求一次调用,并将string参数"time3" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 111101100, "time3", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 添加suite5的新内容
ScriptLib.AddExtraGroupSuite(context, 111101100, 5)
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_100023(context, evt)
-- 延迟5秒后,向groupId为111101100的对象,请求一次调用,并将string参数"time4" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 111101100, "time4", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 添加suite6的新内容
ScriptLib.AddExtraGroupSuite(context, 111101100, 6)
return 0
end
-- 触发操作
function action_EVENT_TIMER_EVENT_100024(context, evt)
-- 延迟5秒后,向groupId为111101100的对象,请求一次调用,并将string参数"time5" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 111101100, "time5", 5) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : create_timerevent_by_group")
return -1
end
-- 添加suite7的新内容
ScriptLib.AddExtraGroupSuite(context, 111101100, 7)
return 0
end

View File

@@ -0,0 +1,183 @@
-- 基础信息
local base_info = {
group_id = 111101101
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 101001, gadget_id = 70350081, pos = { x = 2517.870, y = 204.064, z = -1177.889 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 101002, gadget_id = 70360001, pos = { x = 2517.977, y = 205.026, z = -1178.011 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 101005, gadget_id = 70360046, pos = { x = 2517.592, y = 234.094, z = -1177.988 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 101006, gadget_id = 70360138, pos = { x = 2519.959, y = 224.482, z = -1174.646 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 101007, gadget_id = 70360139, pos = { x = 2518.581, y = 205.122, z = -1172.950 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 101009, gadget_id = 70360137, pos = { x = 2520.213, y = 227.341, z = -1174.876 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 101010, gadget_id = 70690021, pos = { x = 2520.164, y = 229.759, z = -1174.886 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 101011, gadget_id = 70690020, pos = { x = 2520.255, y = 221.832, z = -1173.883 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 101013, gadget_id = 70360143, pos = { x = 2519.628, y = 213.839, z = -1174.154 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 101014, gadget_id = 70360144, pos = { x = 2519.406, y = 218.116, z = -1173.954 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1101003, name = "GADGET_CREATE_101003", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_101003", action = "action_EVENT_GADGET_CREATE_101003" },
{ config_id = 1101004, name = "SELECT_OPTION_101004", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_101004", action = "action_EVENT_SELECT_OPTION_101004" },
{ config_id = 1101008, name = "ANY_GADGET_DIE_101008", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_101008", action = "action_EVENT_ANY_GADGET_DIE_101008" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 101001, 101002 },
regions = { },
triggers = { "GADGET_CREATE_101003", "SELECT_OPTION_101004" },
rand_weight = 100
},
{
-- suite_id = 2,
-- description = ,
monsters = { },
gadgets = { 101005, 101006, 101007, 101009, 101010, 101011, 101013, 101014 },
regions = { },
triggers = { "ANY_GADGET_DIE_101008" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_101003(context, evt)
if 101002 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_101003(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 111101101, 101002, {7}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_wok_options_by_configid")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_101004(context, evt)
-- 判断是gadgetid 101002 option_id 7
if 101002 ~= evt.param1 then
return false
end
if 7 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_101004(context, evt)
-- 卸载指定gadget
if 0 ~= ScriptLib.RemoveEntityByConfigId(context, 111101101, EntityType.GADGET, 101002 ) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : remove_gadget_by_configid")
return -1
end
-- 将configid为 101001 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 101001, GadgetState.GearStart) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 111101101, suite = 2 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
-- 将使用操作台的玩家传送至目标点
if evt.uid ~= nil then
local t_pos = {x=2517.592, y=236, z=-1177.988}
if 0 ~= ScriptLib.TransPlayerToPos(context, {uid_list = {evt.uid}, pos = t_pos, rot = {x=0, y=0, z=0}}) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
else
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : trans_player_byOption")
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_101008(context, evt)
if 101007 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_101008(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 111101101, suite = 1 }) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : refresh_group_to_suite")
return -1
end
return 0
end

View File

@@ -0,0 +1,119 @@
-- 基础信息
local base_info = {
group_id = 111101102
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 102001, monster_id = 21010201, pos = { x = 2430.789, y = 206.784, z = -1277.413 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true },
{ config_id = 102007, monster_id = 20050201, pos = { x = 2430.265, y = 207.056, z = -1267.459 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "魔法生物", affix = { 5010 } },
{ config_id = 102008, monster_id = 21010201, pos = { x = 2436.427, y = 207.327, z = -1282.090 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true },
{ config_id = 102009, monster_id = 21010401, pos = { x = 2428.306, y = 211.675, z = -1257.265 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "远程丘丘人", disableWander = true },
{ config_id = 102010, monster_id = 21010201, pos = { x = 2420.819, y = 206.547, z = -1268.225 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "丘丘人", disableWander = true },
{ config_id = 102011, monster_id = 20050201, pos = { x = 2473.313, y = 213.384, z = -1283.123 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "魔法生物", affix = { 5010 } },
{ config_id = 102012, monster_id = 20050201, pos = { x = 2465.331, y = 212.438, z = -1272.537 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "魔法生物", affix = { 5010 } },
{ config_id = 102013, monster_id = 20050201, pos = { x = 2485.637, y = 213.677, z = -1287.102 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "魔法生物", affix = { 5010 } },
{ config_id = 102014, monster_id = 20050201, pos = { x = 2490.825, y = 211.038, z = -1269.812 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "魔法生物", affix = { 5010 } },
{ config_id = 102015, monster_id = 28020301, pos = { x = 2472.589, y = 212.953, z = -1269.160 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "走兽" },
{ config_id = 102016, monster_id = 28020301, pos = { x = 2480.117, y = 214.694, z = -1288.844 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "走兽" },
{ config_id = 102017, monster_id = 28020301, pos = { x = 2485.078, y = 212.808, z = -1282.245 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, drop_tag = "走兽" },
{ config_id = 102018, monster_id = 21030101, pos = { x = 2427.314, y = 206.404, z = -1268.920 }, rot = { x = 0.000, y = 50.762, z = 0.000 }, level = 1, drop_tag = "丘丘萨满", disableWander = true, affix = { 5010 }, pose_id = 9012 },
{ config_id = 102019, monster_id = 21020101, pos = { x = 2425.320, y = 206.825, z = -1277.658 }, rot = { x = 0.000, y = 37.898, z = 0.000 }, level = 1, drop_tag = "丘丘暴徒", disableWander = true, pose_id = 401 },
{ config_id = 102020, monster_id = 21030101, pos = { x = 2431.541, y = 206.034, z = -1264.148 }, rot = { x = 0.000, y = 166.929, z = 0.000 }, level = 1, drop_tag = "丘丘萨满", disableWander = true, affix = { 5010 }, pose_id = 9012 },
{ config_id = 102021, monster_id = 21030101, pos = { x = 2432.227, y = 206.382, z = -1270.199 }, rot = { x = 0.000, y = 328.549, z = 0.000 }, level = 1, drop_tag = "丘丘萨满", disableWander = true, affix = { 5010 }, pose_id = 9012 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 102002, gadget_id = 70211022, pos = { x = 2410.195, y = 208.492, z = -1284.412 }, rot = { x = 0.000, y = 74.401, z = 0.000 }, level = 1, drop_tag = "战斗高级蒙德", state = GadgetState.ChestLocked, isOneoff = true, persistent = true },
{ config_id = 102004, gadget_id = 70300090, pos = { x = 2427.598, y = 205.991, z = -1257.381 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 102005, gadget_id = 70300102, pos = { x = 2429.918, y = 206.261, z = -1267.451 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 },
{ config_id = 102006, gadget_id = 70300087, pos = { x = 2430.078, y = 206.721, z = -1267.420 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
{ config_id = 1102003, name = "ANY_MONSTER_DIE_102003", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_102003", action = "action_EVENT_ANY_MONSTER_DIE_102003" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { 102001, 102007, 102008, 102009, 102010, 102011, 102012, 102013, 102014, 102015, 102016, 102017, 102018, 102019, 102020, 102021 },
gadgets = { 102002, 102004, 102005, 102006 },
regions = { },
triggers = { "ANY_MONSTER_DIE_102003" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_102003(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_102003(context, evt)
-- 将configid为 102002 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 102002, GadgetState.Default) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : set_gadget_state_by_configId")
return -1
end
-- 运营数据埋点匹配LD定义的规则使用
if 0 ~= ScriptLib.MarkPlayerAction(context, 4001, 3, 1) then
ScriptLib.PrintContextLog(context, "@@ LUA_WARNING : mark_playerAction")
return -1
end
return 0
end

View File

@@ -0,0 +1,73 @@
-- 基础信息
local base_info = {
group_id = 111101103
}
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 103001, gadget_id = 70900379, pos = { x = 2606.028, y = 212.455, z = -1380.417 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, talk_state = 6800101 },
{ config_id = 103002, gadget_id = 70900379, pos = { x = 2597.889, y = 211.448, z = -1383.494 }, rot = { x = 0.000, y = 0.000, z = 0.000 }, level = 1, talk_state = 6800004 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
end_suite = 0,
rand_suite = false
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 1,
-- description = ,
monsters = { },
gadgets = { 103001, 103002 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More