This commit is contained in:
Akbar Yahya
2022-11-21 16:30:31 +08:00
commit e0d4d8040c
3326 changed files with 683000 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
-- 地图配置
scene_config = {
begin_pos = { x = -122.1, z = -179.4 },
size = { x = 989.5, z = 572.1 },
born_pos = { x = 84.7, y = 0.5, z = 278.6 },
born_rot = { x = 0.0, y = 90.0, z = 0.0 },
die_y = -19.60183
}
-- 所有的区块
blocks = { 20000 }
-- 所有的区块范围坐标
block_rects = {
{ min = { x = -122.1, z = -179.4 }, max = { x = 867.4, z = 392.7 } }
}
-- Dummy Points
dummy_points = { "dummy_points" }
-- Routes
routes_config = { }

View File

@@ -0,0 +1,710 @@
{
"sceneId": 20000,
"routes": [
{
"localId": 1,
"name": "Platform_001",
"type": "Reciprocate",
"points": [
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 21.3757362,
"y": 13.1353588,
"z": -23.5831928
},
"targetVelocity": 2.0
},
{
"waitTime": 2.0,
"speedLevel": 1,
"pos": {
"x": 21.421608,
"y": 1.19262588,
"z": -23.5831928
},
"targetVelocity": 2.0
}
]
},
{
"localId": 2,
"name": "Route_002",
"type": "Loop",
"points": [
{
"waitTime": 1.0,
"speedLevel": 1,
"pos": {
"x": 60.6229668,
"y": 5.0,
"z": -45.07943
},
"targetVelocity": 3.0
},
{
"waitTime": 1.0,
"speedLevel": 1,
"pos": {
"x": 60.0334167,
"y": 5.0,
"z": -36.69221
},
"targetVelocity": 2.0
}
]
},
{
"localId": 3,
"name": "Platform_003",
"type": "Loop",
"points": [
{
"waitTime": 1.0,
"speedLevel": 1,
"pos": {
"x": 62.2767868,
"y": 5.331745,
"z": -36.1001968
},
"targetVelocity": 2.0
},
{
"waitTime": 1.0,
"speedLevel": 1,
"pos": {
"x": 49.68495,
"y": 7.75745773,
"z": -45.6996536
},
"targetVelocity": 2.0
}
]
},
{
"localId": 4,
"name": "Platform_004",
"type": "Loop",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 67.60939,
"y": 3.0,
"z": -47.6154556
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 73.88874,
"y": 5.0,
"z": -43.1052551
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 69.51057,
"y": 3.0,
"z": -35.0083542
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 62.25197,
"y": 5.0,
"z": -35.7702942
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 60.5382462,
"y": 3.0,
"z": -42.8904037
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 66.4005356,
"y": 5.0,
"z": -47.98841
},
"targetVelocity": 3.0
}
]
},
{
"localId": 5,
"name": "Route_005",
"type": "Loop",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 140.51976,
"y": 0.49999994,
"z": 241.571823
}
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 134.401031,
"y": 0.5,
"z": 252.594864
}
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 123.137054,
"y": 0.5,
"z": 252.50264
}
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 119.48674,
"y": 0.50000006,
"z": 242.993668
}
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 122.1506,
"y": 0.5,
"z": 232.385162
}
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 133.8742,
"y": 0.50000006,
"z": 227.401886
}
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 141.222122,
"y": 0.49999994,
"z": 236.9779
}
}
]
},
{
"localId": 6,
"name": "Route_006",
"type": "Reciprocate",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 67.66766,
"y": 2.00000143,
"z": 217.845947
}
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 67.8733749,
"y": 1.99999833,
"z": 254.075974
}
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 52.03694,
"y": 1.99999785,
"z": 256.309875
}
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 46.9344826,
"y": 1.99999714,
"z": 243.578125
}
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 41.7850456,
"y": 2.00000119,
"z": 219.055389
}
}
]
},
{
"localId": 20000007,
"name": "Platform_20000007",
"type": "Reciprocate",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 82.22555,
"y": 0.5,
"z": -13.8563395
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 90.6615753,
"y": 2.676342,
"z": -18.04402
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 97.51422,
"y": 2.63345337,
"z": -11.10784
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 85.6175156,
"y": 2.79940414,
"z": -9.710276
},
"targetVelocity": 3.0
}
]
},
{
"localId": 20000008,
"name": "Platform_20000008",
"type": "OneWay",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 89.12973,
"y": 2.76853752,
"z": -5.99292755
},
"targetVelocity": 4.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 95.77568,
"y": 2.23536682,
"z": 11.75077
},
"targetVelocity": 4.0
}
]
},
{
"localId": 20000009,
"name": "Platform_20000009",
"type": "OneWay",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 94.0049,
"y": 1.98840714,
"z": 14.9708862
},
"targetVelocity": 4.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 76.09073,
"y": 2.098557,
"z": 32.59501
},
"targetVelocity": 4.0,
"hasReachEvent": true
}
]
},
{
"localId": 20000010,
"name": "Platform_20000010",
"type": "Reciprocate",
"points": [
{
"waitTime": 5.0,
"speedLevel": 1,
"pos": {
"x": 92.3599854,
"y": -1.340766,
"z": -114.311172
},
"targetVelocity": 4.0
},
{
"waitTime": 5.0,
"speedLevel": 1,
"pos": {
"x": 92.433876,
"y": -1.37482738,
"z": -122.292427
},
"targetVelocity": 4.0
}
]
},
{
"localId": 20000011,
"name": "Platform_20000011",
"type": "OneWay",
"points": [
{
"waitTime": 10.0,
"speedLevel": 1,
"pos": {
"x": 93.506485,
"y": 0.246423721,
"z": -126.3586
},
"targetVelocity": 1.0
},
{
"waitTime": 10.0,
"speedLevel": 1,
"pos": {
"x": 92.2355652,
"y": -0.238999486,
"z": -126.710785
},
"targetVelocity": 1.0
}
]
},
{
"localId": 20000012,
"name": "123",
"type": "OneWay",
"points": [
{
"waitTime": 1.0,
"speedLevel": 1,
"pos": {
"x": 188.292114,
"y": -1.46233845,
"z": 47.0503845
},
"targetVelocity": 3.0
},
{
"waitTime": 1.0,
"speedLevel": 1,
"pos": {
"x": 188.153015,
"y": -0.8607745,
"z": 52.67951
},
"targetVelocity": 3.0
}
]
},
{
"localId": 20000013,
"name": "124",
"type": "OneWay",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 191.998856,
"y": -1.47575521,
"z": 44.37244
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 191.972076,
"y": -0.893359661,
"z": 52.6922226
},
"targetVelocity": 3.0
}
]
},
{
"localId": 20000014,
"name": "125",
"type": "OneWay",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 195.950058,
"y": -1.67380333,
"z": 42.22155
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 194.704666,
"y": -0.856433868,
"z": 52.69018
},
"targetVelocity": 3.0
}
]
},
{
"localId": 20000015,
"name": "126",
"type": "OneWay",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 199.71553,
"y": -1.486537,
"z": 41.2229042
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 198.01207,
"y": -0.8719702,
"z": 52.6938858
},
"targetVelocity": 3.0
}
]
},
{
"localId": 20000016,
"name": "127",
"type": "OneWay",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 202.2655,
"y": -1.79458714,
"z": 44.0320778
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 201.471878,
"y": -0.767807961,
"z": 52.81653
},
"targetVelocity": 3.0
}
]
},
{
"localId": 20000017,
"name": "Route_20000017",
"type": "Loop",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 802.5684,
"y": 5.90144348,
"z": 362.027466
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 810.7374,
"y": 5.46284437,
"z": 361.995331
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 815.727539,
"y": 5.46284437,
"z": 361.491577
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 819.880249,
"y": 5.90144253,
"z": 361.5135
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 820.044434,
"y": 5.90144348,
"z": 356.443
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 825.3037,
"y": 5.462845,
"z": 356.3974
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 834.114563,
"y": 5.46284437,
"z": 355.96167
},
"targetVelocity": 3.0
}
]
},
{
"localId": 20000018,
"name": "Platform_20000018",
"type": "Loop",
"points": [
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 802.6508,
"y": 5.462845,
"z": 363.378326
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 821.1673,
"y": 5.433359,
"z": 363.026459
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 821.7376,
"y": 5.46284437,
"z": 357.136139
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 830.521362,
"y": 5.462845,
"z": 357.084
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 830.3852,
"y": 5.90144348,
"z": 353.2554
},
"targetVelocity": 3.0
},
{
"waitTime": 0.0,
"speedLevel": 1,
"pos": {
"x": 838.2076,
"y": 5.462845,
"z": 353.700958
},
"targetVelocity": 3.0
}
]
}
]
}

View File

@@ -0,0 +1,44 @@
-- 所有的group
groups = {
{ id = 220000001, refresh_time = 0, pos = { x = 55.7, y = 0.5, z = -2.2 } },
{ id = 220000002, refresh_time = 0, pos = { x = 58.8, y = 0.5, z = -56.5 } },
{ id = 220000004, refresh_time = 0, pos = { x = -60.4, y = 0.5, z = -38.1 } },
{ id = 220000005, refresh_time = 0, pos = { x = 71.0, y = 0.5, z = -41.0 } },
{ id = 220000006, refresh_time = 0, pos = { x = 83.4, y = 0.5, z = -51.5 } },
{ id = 220000007, refresh_time = 0, pos = { x = 59.0, y = 0.5, z = -79.6 } },
{ id = 220000008, refresh_time = 0, pos = { x = 22.7, y = 0.5, z = -77.9 } },
{ id = 220000009, refresh_time = 0, pos = { x = -10.4, y = 0.5, z = -68.8 } },
{ id = 220000010, refresh_time = 0, pos = { x = 51.2, y = 0.5, z = -32.6 } },
{ id = 220000018, refresh_time = 0, pos = { x = 55.8, y = 0.5, z = -41.5 } },
{ id = 220000019, refresh_time = 0, pos = { x = 135.4, y = 0.5, z = 42.1 } },
{ id = 220000020, refresh_time = 0, pos = { x = 140.5, y = 0.5, z = 93.2 } },
{ id = 220000021, refresh_time = 0, pos = { x = 140.4, y = 2.0, z = 136.0 } },
{ id = 220000022, refresh_time = 0, pos = { x = 136.7, y = 0.5, z = 182.6 } },
{ id = 220000023, refresh_time = 0, pos = { x = 128.6, y = 2.1, z = 241.4 } },
{ id = 220000024, refresh_time = 0, pos = { x = 78.2, y = 0.5, z = 55.9 } },
{ id = 220000025, refresh_time = 0, pos = { x = 77.7, y = 0.5, z = 94.8 } },
{ id = 220000026, refresh_time = 0, pos = { x = 69.3, y = 0.5, z = 123.9 } },
{ id = 220000027, refresh_time = 0, pos = { x = 59.1, y = 0.5, z = 168.5 } },
{ id = 220000028, refresh_time = 0, pos = { x = 58.9, y = 5.0, z = 234.9 } },
{ id = 220000029, refresh_time = 0, pos = { x = 93.7, y = 0.5, z = -75.4 } },
{ id = 220000030, refresh_time = 0, pos = { x = -1.0, y = 1.3, z = 73.6 } },
{ id = 220000031, refresh_time = 0, pos = { x = 2.3, y = 0.5, z = 201.0 } },
{ id = 220000034, refresh_time = 0, pos = { x = 89.0, y = 0.5, z = -13.8 } },
{ id = 220000035, refresh_time = 0, pos = { x = 89.0, y = 0.5, z = 0.1 } },
{ id = 220000036, refresh_time = 0, pos = { x = 143.1, y = 1.1, z = -2.1 }, refresh_with_block = false },
{ id = 220000037, refresh_time = 0, pos = { x = 143.1, y = 1.1, z = -2.9 } },
{ id = 220000038, refresh_time = 0, pos = { x = 94.9, y = 0.5, z = -58.3 } },
{ id = 220000039, refresh_time = 0, pos = { x = 90.6, y = 0.5, z = -88.1 } },
{ id = 220000040, refresh_time = 0, pos = { x = 92.6, y = -10.5, z = -149.1 } },
{ id = 220000041, refresh_time = 0, pos = { x = 170.5, y = 0.6, z = 50.8 } },
{ id = 220000042, refresh_time = 0, pos = { x = 108.2, y = 0.5, z = 50.9 } },
{ id = 220000043, refresh_time = 0, pos = { x = 108.1, y = 0.5, z = 35.0 } },
{ id = 220000044, refresh_time = 0, pos = { x = 148.5, y = 0.5, z = 276.7 } },
{ id = 220000045, refresh_time = 0, pos = { x = 417.4, y = 5.6, z = 276.6 } },
{ id = 220000046, refresh_time = 0, pos = { x = 461.3, y = 5.6, z = 311.3 } },
{ id = 220000047, refresh_time = 0, pos = { x = 828.1, y = 5.9, z = 362.5 } },
{ id = 220000048, refresh_time = 0, pos = { x = 274.3, y = 5.6, z = 279.3 } },
{ id = 220000049, refresh_time = 0, pos = { x = 652.8, y = 5.8, z = 357.4 } },
{ id = 220000050, refresh_time = 0, pos = { x = 751.7, y = 5.6, z = 360.4 } },
{ id = 220000051, refresh_time = 0, pos = { x = 91.9, y = 0.5, z = 276.6 } }
}

View File

@@ -0,0 +1,2 @@
dummy_points = {
}

View File

@@ -0,0 +1,267 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 1, monster_id = 20010801, pos = { x = 57.5, y = 0.5, z = -2.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 2, monster_id = 20010801, pos = { x = 64.9, y = 0.5, z = 5.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 3, monster_id = 20011001, pos = { x = 60.6, y = 0.5, z = 0.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 4, monster_id = 20010901, pos = { x = 56.6, y = 0.5, z = 8.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 5, monster_id = 20011001, pos = { x = 54.0, y = 0.5, z = 5.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 6, monster_id = 20011001, pos = { x = 59.0, y = 0.5, z = 5.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 7, monster_id = 20011101, pos = { x = 52.4, y = 0.5, z = 6.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 8, monster_id = 20010901, pos = { x = 62.4, y = 0.5, z = 7.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1, gadget_id = 70350001, pos = { x = 57.0, y = 0.5, z = -22.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 2, gadget_id = 70360002, pos = { x = 63.2, y = 0.5, z = -28.6 }, rot = { x = 0.0, y = 161.4, z = 0.0 }, level = 1 },
{ config_id = 7, gadget_id = 70210031, pos = { x = 111.4, y = 22.9, z = -36.9 }, rot = { x = 0.0, y = 95.4, z = 0.0 }, level = 1, chest_drop_id = 1100302 },
{ config_id = 8, gadget_id = 70210031, pos = { x = 111.4, y = 22.9, z = -40.5 }, rot = { x = 0.0, y = 29.3, z = 0.0 }, level = 1, chest_drop_id = 1100302 },
{ config_id = 42, gadget_id = 70380002, pos = { x = 21.5, y = 2.9, z = -22.6 }, rot = { x = 270.0, y = 0.0, z = 0.0 }, level = 1, route_id = 1 }
}
-- 区域
regions = {
{ config_id = 1, shape = RegionShape.SPHERE, radius = 5, pos = { x = 61.1, y = 0.5, z = -28.1 } },
{ config_id = 3, shape = RegionShape.SPHERE, radius = 5, pos = { x = 60.8, y = 0.5, z = -30.6 } },
{ config_id = 4, shape = RegionShape.SPHERE, radius = 5, pos = { x = 57.6, y = 0.5, z = -28.3 } },
{ config_id = 5, shape = RegionShape.SPHERE, radius = 5, pos = { x = 59.0, y = 0.5, z = -29.8 } },
{ config_id = 10, shape = RegionShape.SPHERE, radius = 19.05, pos = { x = 58.2, y = 0.5, z = -39.9 } },
{ config_id = 11, shape = RegionShape.SPHERE, radius = 20.08, pos = { x = 18.6, y = 0.5, z = -41.4 } }
}
-- 触发器
triggers = {
{ name = "GADGET_CREATE_1", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_1", action = "action_EVENT_GADGET_CREATE_1" },
{ name = "SELECT_OPTION_3", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3", action = "action_EVENT_SELECT_OPTION_3" },
{ name = "SELECT_OPTION_4", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4", action = "action_EVENT_SELECT_OPTION_4" },
{ name = "SELECT_OPTION_5", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_5", action = "action_EVENT_SELECT_OPTION_5" },
{ name = "ENTER_REGION_10", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_10", action = "action_EVENT_ENTER_REGION_10", trigger_count = 0 },
{ name = "ENTER_REGION_11", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11", action = "action_EVENT_ENTER_REGION_11", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 1, 2, 7, 8, 42 },
regions = { 1, 3, 4, 5, 10, 11 },
triggers = { "GADGET_CREATE_1", "SELECT_OPTION_3", "SELECT_OPTION_4", "SELECT_OPTION_5", "ENTER_REGION_10", "ENTER_REGION_11" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1(context, evt)
if 2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {100,101,102}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_3(context, evt)
-- 判断是gadgetid 2
if 2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_3(context, evt)
-- 根据不同的选项做不同的操作
if 100 == evt.param2 then
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 1, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 2, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 3, delay_time = 0 }) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1, GadgetState.GearStart) then
return -1
end
return 0
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4(context, evt)
-- 判断是gadgetid 2
if 2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4(context, evt)
-- 根据不同的选项做不同的操作
if 101 == evt.param2 then
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 4, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 5, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 6, delay_time = 0 }) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1, GadgetState.GearStart) then
return -1
end
return 0
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_5(context, evt)
-- 判断是gadgetid 2
if 2 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_5(context, evt)
-- 根据不同的选项做不同的操作
if 102 == evt.param2 then
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 7, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8, delay_time = 0 }) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 1, GadgetState.GearStart) then
return -1
end
return 0
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_10(context, evt)
if evt.param1 ~= 10 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_10(context, evt)
-- play_type含义1·代表开始播放 2·代表停止播放
-- 在指定位置播放或停止音效资源
pos = {x=53, y=2, z=-53}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "DungeonSound1001", play_type= 1, is_broadcast = false }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_11(context, evt)
if evt.param1 ~= 11 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11(context, evt)
-- play_type含义1·代表开始播放 2·代表停止播放
-- 在指定位置播放或停止音效资源
pos = {x=53, y=2, z=-53}
if 0 ~= ScriptLib.ScenePlaySound(context, {play_pos = pos, sound_name = "DungeonSound1001", play_type= 2, is_broadcast = false }) then
return -1
end
return 0
end

View File

@@ -0,0 +1,211 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 3, gadget_id = 70350002, pos = { x = 59.1, y = 0.5, z = -57.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 4, gadget_id = 70350003, pos = { x = 23.6, y = 0.5, z = -57.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 5, gadget_id = 70360002, pos = { x = 54.9, y = 0.5, z = -54.9 }, rot = { x = 0.0, y = 358.3, z = 0.0 }, level = 1 },
{ config_id = 6, gadget_id = 70360002, pos = { x = 20.0, y = 0.5, z = -55.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 6, shape = RegionShape.SPHERE, radius = 5, pos = { x = 58.3, y = 0.5, z = -53.5 } },
{ config_id = 7, shape = RegionShape.SPHERE, radius = 5, pos = { x = 58.3, y = 0.5, z = -53.5 } },
{ config_id = 8, shape = RegionShape.SPHERE, radius = 5, pos = { x = 23.0, y = 0.5, z = -54.8 } },
{ config_id = 9, shape = RegionShape.SPHERE, radius = 5, pos = { x = 23.1, y = 0.5, z = -54.8 } },
{ config_id = 12, shape = RegionShape.SPHERE, radius = 5, pos = { x = 21.6, y = 0.4, z = 0.2 } }
}
-- 触发器
triggers = {
{ name = "GADGET_CREATE_6", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_6", action = "action_EVENT_GADGET_CREATE_6" },
{ name = "SELECT_OPTION_7", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_7", action = "action_EVENT_SELECT_OPTION_7", trigger_count = 0 },
{ name = "GADGET_CREATE_8", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_8", action = "action_EVENT_GADGET_CREATE_8" },
{ name = "SELECT_OPTION_9", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_9", action = "action_EVENT_SELECT_OPTION_9", trigger_count = 0 },
{ name = "ENTER_REGION_12", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_12", action = "action_EVENT_ENTER_REGION_12" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 3, 4, 5, 6 },
regions = { 6, 7, 8, 9, 12 },
triggers = { "GADGET_CREATE_6", "SELECT_OPTION_7", "GADGET_CREATE_8", "SELECT_OPTION_9", "ENTER_REGION_12" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_6(context, evt)
if 5 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_6(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {1,4}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_7(context, evt)
-- 判断是gadgetid 5
if 5 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_7(context, evt)
-- 根据不同的选项做不同的操作
if 1 == evt.param2 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3, GadgetState.GearStart) then
return -1
end
return 0
end
-- 根据不同的选项做不同的操作
if 4 == evt.param2 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3, GadgetState.Default) then
return -1
end
return 0
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_8(context, evt)
if 6 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_8(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {1,4}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_9(context, evt)
-- 判断是gadgetid 6
if 6 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_9(context, evt)
-- 根据不同的选项做不同的操作
if 1 == evt.param2 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4, GadgetState.GearStart) then
return -1
end
return 0
end
-- 根据不同的选项做不同的操作
if 4 == evt.param2 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 4, GadgetState.Default) then
return -1
end
return 0
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_12(context, evt)
if evt.param1 ~= 12 then return false end
-- 判断是gadgetid 5
if 5 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_12(context, evt)
-- 根据不同的选项做不同的操作
if 4 == evt.param2 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3, GadgetState.Default) then
return -1
end
return -1
end
-- 杀死Group内所有monster
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220000002, kill_policy = GroupKillPolicy.GROUP_KILL_MONSTER }) then
return -1
end
return 0
end

View File

@@ -0,0 +1,163 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 9, monster_id = 21020101, pos = { x = -67.1, y = 0.5, z = -37.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 10, monster_id = 20011001, pos = { x = -70.0, y = 0.5, z = -41.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 11, monster_id = 20011001, pos = { x = -69.5, y = 0.5, z = -33.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 12, monster_id = 21020201, pos = { x = -74.5, y = 0.5, z = -38.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 9, gadget_id = 70350002, pos = { x = -42.4, y = 0.5, z = -37.5 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 10, gadget_id = 70360002, pos = { x = -39.9, y = 0.4, z = -33.8 }, rot = { x = 0.0, y = 108.3, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 13, shape = RegionShape.SPHERE, radius = 5, pos = { x = -39.4, y = 0.4, z = -37.4 } },
{ config_id = 14, shape = RegionShape.SPHERE, radius = 5, pos = { x = -42.0, y = 0.4, z = -37.4 } },
{ config_id = 15, shape = RegionShape.SPHERE, radius = 5, pos = { x = -38.7, y = 0.4, z = -33.9 } }
}
-- 触发器
triggers = {
{ name = "GADGET_CREATE_13", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_13", action = "action_EVENT_GADGET_CREATE_13" },
{ name = "SELECT_OPTION_14", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_14", action = "action_EVENT_SELECT_OPTION_14" },
{ name = "SELECT_OPTION_15", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_15", action = "action_EVENT_SELECT_OPTION_15" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 9, 10 },
regions = { 13, 14, 15 },
triggers = { "GADGET_CREATE_13", "SELECT_OPTION_14", "SELECT_OPTION_15" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_13(context, evt)
if 10 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_13(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {120,121}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_14(context, evt)
-- 判断是gadgetid 10
if 10 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_14(context, evt)
-- 根据不同的选项做不同的操作
if 120 == evt.param2 then
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 13, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 14, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 15, delay_time = 0 }) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9, GadgetState.GearStart) then
return -1
end
return 0
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_15(context, evt)
-- 判断是gadgetid 10
if 10 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_15(context, evt)
-- 根据不同的选项做不同的操作
if 121 == evt.param2 then
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 16, delay_time = 0 }) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 9, GadgetState.Default) then
return -1
end
return 0
end
return 0
end

View File

@@ -0,0 +1,306 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 11, gadget_id = 70900007, pos = { x = 67.2, y = 0.6, z = -40.8 }, rot = { x = 0.0, y = 305.2, z = 0.0 }, level = 1, state = GadgetState.GearStop },
{ config_id = 12, gadget_id = 70900008, pos = { x = 74.0, y = 0.5, z = -48.5 }, rot = { x = 0.0, y = 159.9, z = 0.0 }, level = 1, state = GadgetState.GearStop },
{ config_id = 13, gadget_id = 70900009, pos = { x = 76.7, y = 0.5, z = -32.7 }, rot = { x = 0.0, y = 29.3, z = 0.0 }, level = 1, state = GadgetState.GearStop },
{ config_id = 14, gadget_id = 70350003, pos = { x = 73.7, y = 1.5, z = -53.2 }, rot = { x = 0.0, y = 15.5, z = 0.0 }, level = 1 },
{ config_id = 16, gadget_id = 70350003, pos = { x = 75.8, y = 1.4, z = -29.0 }, rot = { x = 0.0, y = 135.6, z = 0.0 }, level = 1 },
{ config_id = 18, gadget_id = 70210032, pos = { x = 87.9, y = 0.5, z = -61.2 }, rot = { x = 0.0, y = 5.4, z = 0.0 }, level = 1, chest_drop_id = 1100302, state = GadgetState.ChestLocked, showcutscene = true },
{ config_id = 19, gadget_id = 70360001, pos = { x = 84.6, y = 1.3, z = -51.2 }, rot = { x = 0.0, y = 206.1, z = 0.0 }, level = 1 },
{ config_id = 21, gadget_id = 70500000, pos = { x = 88.1, y = 0.5, z = -27.5 }, rot = { x = 0.0, y = 104.1, z = 0.0 }, level = 1, point_type = 1000001 },
{ config_id = 22, gadget_id = 70210031, pos = { x = 85.1, y = 0.5, z = -30.9 }, rot = { x = 0.0, y = 168.0, z = 0.0 }, level = 1, chest_drop_id = 1100302, showcutscene = true }
}
-- 区域
regions = {
{ config_id = 16, shape = RegionShape.SPHERE, radius = 5, pos = { x = 81.2, y = 0.5, z = -45.2 } },
{ config_id = 17, shape = RegionShape.SPHERE, radius = 5, pos = { x = 78.6, y = 0.5, z = -33.5 } },
{ config_id = 18, shape = RegionShape.SPHERE, radius = 5, pos = { x = 66.7, y = 0.5, z = -41.8 } },
{ config_id = 19, shape = RegionShape.SPHERE, radius = 5, pos = { x = 72.8, y = 0.5, z = -49.2 } },
{ config_id = 20, shape = RegionShape.SPHERE, radius = 5, pos = { x = 75.5, y = 0.5, z = -32.3 } },
{ config_id = 21, shape = RegionShape.SPHERE, radius = 5, pos = { x = 65.6, y = 0.5, z = -41.5 } },
{ config_id = 22, shape = RegionShape.SPHERE, radius = 5, pos = { x = 84.3, y = 0.5, z = -49.9 } },
{ config_id = 23, shape = RegionShape.SPHERE, radius = 5, pos = { x = 85.2, y = 0.5, z = -45.9 } },
{ config_id = 24, shape = RegionShape.SPHERE, radius = 5, pos = { x = 89.2, y = 0.5, z = -29.7 } },
{ config_id = 69, shape = RegionShape.SPHERE, radius = 11.6, pos = { x = 87.2, y = 0.5, z = -62.3 } }
}
-- 触发器
triggers = {
{ name = "GADGET_STATE_CHANGE_16", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_16", action = "action_EVENT_GADGET_STATE_CHANGE_16", trigger_count = 0 },
{ name = "GADGET_STATE_CHANGE_17", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_17", action = "action_EVENT_GADGET_STATE_CHANGE_17", trigger_count = 0 },
{ name = "GADGET_STATE_CHANGE_18", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_18", action = "action_EVENT_GADGET_STATE_CHANGE_18", trigger_count = 0 },
{ name = "GADGET_STATE_CHANGE_19", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_19", action = "action_EVENT_GADGET_STATE_CHANGE_19", trigger_count = 0 },
{ name = "GADGET_STATE_CHANGE_20", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_20", action = "action_EVENT_GADGET_STATE_CHANGE_20", trigger_count = 0 },
{ name = "ENTER_REGION_21", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_21", action = "action_EVENT_ENTER_REGION_21", trigger_count = 0 },
{ name = "GADGET_CREATE_22", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_22", action = "action_EVENT_GADGET_CREATE_22" },
{ name = "SELECT_OPTION_23", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_23", action = "action_EVENT_SELECT_OPTION_23" },
{ name = "GATHER_24", event = EventType.EVENT_GATHER, source = "21", condition = "", action = "action_EVENT_GATHER_24" },
{ name = "ENTER_REGION_69", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_69", action = "action_EVENT_ENTER_REGION_69" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 11, 12, 13, 14, 16, 18, 19, 21 },
regions = { 16, 17, 18, 19, 20, 21, 22, 23, 24, 69 },
triggers = { "GADGET_STATE_CHANGE_16", "GADGET_STATE_CHANGE_17", "GADGET_STATE_CHANGE_18", "GADGET_STATE_CHANGE_19", "GADGET_STATE_CHANGE_20", "ENTER_REGION_21", "GADGET_CREATE_22", "SELECT_OPTION_23", "GATHER_24", "ENTER_REGION_69" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_16(context, evt)
if GadgetState.GearStart ~= evt.param1 or 12 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_16(context, evt)
-- 将configid为 14 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 14, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_17(context, evt)
if GadgetState.GearStart ~= evt.param1 or 13 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_17(context, evt)
-- 将configid为 16 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 16, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_18(context, evt)
if GadgetState.GearStart ~= evt.param1 or 11 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_18(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000018, suite = 1 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_19(context, evt)
ScriptLib.PrintLog("enter condition judge")
if GadgetState.GearStop ~= evt.param1 or 12 ~= evt.param2 then
ScriptLib.PrintLog("judge false")
return false
end
ScriptLib.PrintLog("judge true")
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_19(context, evt)
-- 将configid为 14 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 14, GadgetState.GearStop) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_20(context, evt)
ScriptLib.PrintLog("enter condition judge")
if GadgetState.GearStop ~= evt.param1 or 13 ~= evt.param2 then
ScriptLib.PrintLog("judge false")
return false
end
ScriptLib.PrintLog("judge true")
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_20(context, evt)
-- 将configid为 16 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 16, GadgetState.GearStop) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_21(context, evt)
ScriptLib.PrintLog("Enter condition judge")
if GadgetState.GearStop ~= evt.param1 or 11 ~= evt.param2 then
ScriptLib.PrintLog("judge false")
return false
end
ScriptLib.PrintLog("judge true")
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_21(context, evt)
-- 将configid为 15 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 15, GadgetState.GearStop) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_22(context, evt)
if 19 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_22(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {23}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_23(context, evt)
-- 判断是gadgetid 19
if 19 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_23(context, evt)
-- 根据不同的选项做不同的操作
if 23 == evt.param2 then
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 18 }) then
return -1
end
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000006, suite = 2 }) then
return -1
end
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220000005, 19,23 ) then
return -1
end
end
-- 重新生成指定group指定suite
return 0
end
-- 触发条件
-- 触发操作
function action_EVENT_GATHER_24(context, evt)
-- 创生gadget 22
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 22 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_69(context, evt)
if evt.param1 ~= 69 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_69(context, evt)
-- 解锁目标18
if 0 ~= ScriptLib.ChangeGroupGadget(context, { config_id = 18, state = GadgetState.Default }) then
return -1
end
return 0
end

View File

@@ -0,0 +1,76 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 20, gadget_id = 70590005, pos = { x = 84.7, y = 1.6, z = -51.1 }, rot = { x = 0.0, y = 119.8, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = false,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 20 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 1,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,95 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 23, gadget_id = 70900018, pos = { x = 66.7, y = 0.8, z = -87.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 24, gadget_id = 70900018, pos = { x = 50.6, y = 0.7, z = -86.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 25, gadget_id = 70220013, pos = { x = 67.9, y = 0.5, z = -86.6 }, rot = { x = 0.0, y = 40.0, z = 0.0 }, level = 1 },
{ config_id = 26, gadget_id = 70210031, pos = { x = 59.0, y = 0.5, z = -83.8 }, rot = { x = 0.0, y = 75.5, z = 0.0 }, level = 1, chest_drop_id = 1100302, showcutscene = true }
}
-- 区域
regions = {
{ config_id = 25, shape = RegionShape.SPHERE, radius = 5, pos = { x = 68.2, y = 0.5, z = -82.6 } }
}
-- 触发器
triggers = {
{ name = "ANY_GADGET_DIE_25", event = EventType.EVENT_ANY_GADGET_DIE, source = "", condition = "condition_EVENT_ANY_GADGET_DIE_25", action = "action_EVENT_ANY_GADGET_DIE_25" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 23, 24, 25 },
regions = { 25 },
triggers = { "ANY_GADGET_DIE_25" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_GADGET_DIE_25(context, evt)
ScriptLib.PrintLog("enter condition")
if 25 ~= evt.param1 then
ScriptLib.PrintLog("configid judge false")
return false
end
ScriptLib.PrintLog("configid judge true")
return true
end
-- 触发操作
function action_EVENT_ANY_GADGET_DIE_25(context, evt)
ScriptLib.PrintLog("enter action")
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 26 }) then
ScriptLib.PrintLog("create gadget fail")
return -1
end
return 0
end

View File

@@ -0,0 +1,125 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 27, gadget_id = 70900014, pos = { x = 30.0, y = 0.2, z = -86.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, arguments = { 0, 0, 0 } },
{ config_id = 28, gadget_id = 70900014, pos = { x = 13.6, y = 0.1, z = -86.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, arguments = { 0, 0, 0 } },
{ config_id = 29, gadget_id = 70310001, pos = { x = 30.1, y = 1.1, z = -86.4 }, rot = { x = 0.0, y = 109.3, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 30, gadget_id = 70310001, pos = { x = 13.6, y = 1.1, z = -86.8 }, rot = { x = 0.0, y = 311.0, z = 0.0 }, level = 1 },
{ config_id = 31, gadget_id = 70210031, pos = { x = 21.5, y = 0.5, z = -83.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, chest_drop_id = 1100302, showcutscene = true },
{ config_id = 32, gadget_id = 70320001, pos = { x = 30.1, y = 0.5, z = -94.0 }, rot = { x = 0.0, y = 19.9, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 26, shape = RegionShape.SPHERE, radius = 5, pos = { x = 13.4, y = 0.5, z = -83.8 } },
{ config_id = 27, shape = RegionShape.SPHERE, radius = 5, pos = { x = 24.0, y = 0.5, z = -69.1 } }
}
-- 触发器
triggers = {
{ name = "GADGET_STATE_CHANGE_26", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_26", action = "action_EVENT_GADGET_STATE_CHANGE_26", trigger_count = 0 },
{ name = "CLIENT_EXECUTE_27", event = EventType.EVENT_CLIENT_EXECUTE, source = "FireSourceChange", condition = "condition_EVENT_CLIENT_EXECUTE_27", action = "action_EVENT_CLIENT_EXECUTE_27", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 27, 28, 29, 30, 32 },
regions = { 26, 27 },
triggers = { "GADGET_STATE_CHANGE_26", "CLIENT_EXECUTE_27" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_26(context, evt)
ScriptLib.PrintLog("enter firebox condition")
if 30 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
ScriptLib.PrintLog("fire box not match")
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_26(context, evt)
-- 创生gadget 31
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 31 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_27(context, evt)
ScriptLib.PrintLog("enter fire condition")
return true
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_27(context, evt)
-- 针对groupid为 220000008 中该config对应的物件进行状态改变操作
ScriptLib.PrintLog("enter fire action")
local this_gadget = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
--ScriptLib.PrintLog("config_id="..this_gadget)
if evt.param1 == 1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, 220000008, this_gadget, GadgetState.GearStart )
ScriptLib.PrintLog("fire success")
return 0
end
if evt.param1 == 0 then
ScriptLib.SetGroupGadgetStateByConfigId(context, 220000008, this_gadget, GadgetState.Default )
ScriptLib.PrintLog("fire put off")
return 0
end
return 0
end

View File

@@ -0,0 +1,135 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 34, gadget_id = 70900028, pos = { x = -13.4, y = 0.0, z = -80.6 }, rot = { x = 0.0, y = 0.3, z = 0.0 }, level = 1 },
{ config_id = 35, gadget_id = 70900027, pos = { x = -13.4, y = 0.5, z = -60.0 }, rot = { x = 0.0, y = 0.3, z = 0.0 }, level = 1 },
{ config_id = 36, gadget_id = 70950001, pos = { x = -8.2, y = 14.4, z = -86.0 }, rot = { x = 0.0, y = 57.7, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 32, shape = RegionShape.SPHERE, radius = 5, pos = { x = 1.4, y = 0.5, z = -97.2 } },
{ config_id = 33, shape = RegionShape.SPHERE, radius = 10, pos = { x = -13.4, y = 0.4, z = -80.8 } },
{ config_id = 34, shape = RegionShape.SPHERE, radius = 5, pos = { x = -12.4, y = 0.5, z = -45.7 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_32", event = EventType.EVENT_CLIENT_EXECUTE, source = "FireSourceChange", condition = "", action = "action_EVENT_CLIENT_EXECUTE_32", trigger_count = 0 },
{ name = "ENTER_REGION_33", event = EventType.EVENT_ENTER_REGION, source = "4", condition = "", action = "action_EVENT_ENTER_REGION_33" },
{ name = "ENTER_REGION_34", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_34", action = "action_EVENT_ENTER_REGION_34", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 34, 35, 36 },
regions = { 32, 33, 34 },
triggers = { "CLIENT_EXECUTE_32", "ENTER_REGION_33", "ENTER_REGION_34" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_32(context, evt)
-- 针对groupid为 220000009 中该config对应的物件进行状态改变操作
local this_gadget = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
--ScriptLib.PrintLog("config_id="..this_gadget)
if evt.param1 == 1 then
ScriptLib.SetGroupGadgetStateByConfigId(context, 220000009, this_gadget, GadgetState.GearStart )
return 0
end
if evt.param1 == 0 then
ScriptLib.SetGroupGadgetStateByConfigId(context, 220000009, this_gadget, GadgetState.Default )
return 0
end
return 0
end
-- 触发条件
-- 触发操作
function action_EVENT_ENTER_REGION_33(context, evt)
-- 将configid为 34 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 34, GadgetState.GearStart) then
return -1
end
-- 将configid为 35 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 35, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_34(context, evt)
if evt.param1 ~= 34 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_34(context, evt)
-- 重新生成指定group默认为独立随机
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000009 }) then
return -1
end
return 0
end

View File

@@ -0,0 +1,184 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 43, gadget_id = 70900025, pos = { x = 42.3, y = 1.7, z = -29.7 }, rot = { x = 0.0, y = 335.5, z = 0.0 }, level = 1 },
{ config_id = 44, gadget_id = 70900025, pos = { x = 36.4, y = 2.4, z = -29.9 }, rot = { x = 0.0, y = 146.8, z = 0.0 }, level = 1 },
{ config_id = 45, gadget_id = 70900025, pos = { x = 30.8, y = 1.7, z = -29.3 }, rot = { x = 0.0, y = 217.1, z = 0.0 }, level = 1 },
{ config_id = 46, gadget_id = 70900027, pos = { x = 31.0, y = 5.3, z = -29.4 }, rot = { x = 0.0, y = 343.8, z = 0.0 }, level = 1 },
{ config_id = 47, gadget_id = 70210007, pos = { x = 36.5, y = 5.9, z = -29.8 }, rot = { x = 0.0, y = 81.5, z = 0.0 }, level = 1, chest_drop_id = 1100302, state = GadgetState.ChestBramble },
{ config_id = 48, gadget_id = 70220005, pos = { x = 42.6, y = 5.2, z = -29.7 }, rot = { x = 0.0, y = 299.4, z = 0.0 }, level = 1 },
{ config_id = 49, gadget_id = 70900036, pos = { x = 20.7, y = 0.5, z = -39.4 }, rot = { x = 0.0, y = 296.4, z = 0.0 }, level = 1 },
{ config_id = 50, gadget_id = 70360002, pos = { x = 29.6, y = 0.5, z = -41.5 }, rot = { x = 0.0, y = 266.7, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 35, shape = RegionShape.SPHERE, radius = 5, pos = { x = 36.5, y = 4.6, z = -30.6 } },
{ config_id = 36, shape = RegionShape.SPHERE, radius = 5, pos = { x = 36.8, y = 5.9, z = -30.6 } },
{ config_id = 38, shape = RegionShape.SPHERE, radius = 5, pos = { x = 29.8, y = 0.5, z = -41.8 } },
{ config_id = 39, shape = RegionShape.SPHERE, radius = 5, pos = { x = 29.6, y = 0.5, z = -41.3 } },
{ config_id = 47, shape = RegionShape.SPHERE, radius = 5, pos = { x = 51.8, y = 0.5, z = -32.8 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_35", event = EventType.EVENT_CLIENT_EXECUTE, source = "Chest_Bramble_Remove", condition = "", action = "action_EVENT_CLIENT_EXECUTE_35", trigger_count = 0 },
{ name = "CLIENT_EXECUTE_36", event = EventType.EVENT_CLIENT_EXECUTE, source = "Chest_Frozen_Remove", condition = "", action = "action_EVENT_CLIENT_EXECUTE_36", trigger_count = 0 },
{ name = "GADGET_CREATE_38", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_38", action = "action_EVENT_GADGET_CREATE_38", trigger_count = 0 },
{ name = "SELECT_OPTION_39", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_39", action = "action_EVENT_SELECT_OPTION_39", trigger_count = 0 },
{ name = "GADGET_STATE_CHANGE_47", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_47", action = "action_EVENT_GADGET_STATE_CHANGE_47", trigger_count = 0 }
}
-- 变量
variables = {
{ name = "Sculpture_State", value = 0, persistent = true }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 43, 44, 45, 46, 47, 48, 49, 50 },
regions = { 35, 36, 38, 39, 47 },
triggers = { "CLIENT_EXECUTE_35", "CLIENT_EXECUTE_36", "GADGET_CREATE_38", "SELECT_OPTION_39", "GADGET_STATE_CHANGE_47" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_35(context, evt)
--由entityId获取configId
local This_configID = ScriptLib.GetConfigIdByEntityId(context, evt.param1 )
--转换对应宝箱状态
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 0, This_configID, GadgetState.Default ) then
return -1
end
return 0
end
-- 触发条件
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_36(context, evt)
--由entityId获取configId
This_configID = ScriptLib.GetConfigIdByEntityId(context, evt.param1 )
--转换对应宝箱状态
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 0, This_configID, GadgetState.Default ) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_38(context, evt)
if 50 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_38(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {1,4}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_39(context, evt)
if evt.param1 == 50 then
return true
end
return false
end
-- 触发操作
function action_EVENT_SELECT_OPTION_39(context, evt)
local state = ScriptLib.GetGroupVariableValue(context, "Sculpture_State")
-- 根据不同的选项做不同的操作
if 1 == evt.param2 then
if state == 0 then
ScriptLib.SetGadgetStateByConfigId(context, 49, GadgetState.GearStart)
elseif state == 201 then
ScriptLib.SetGadgetStateByConfigId(context, 49, GadgetState.GearStop)
elseif state == 202 then
ScriptLib.SetGadgetStateByConfigId(context, 49, GadgetState.Default)
end
elseif 4 == evt.param2 then
if state == 0 then
ScriptLib.SetGadgetStateByConfigId(context, 49, GadgetState.GearStop)
elseif state == 201 then
ScriptLib.SetGadgetStateByConfigId(context, 49, GadgetState.Default)
elseif state == 202 then
ScriptLib.SetGadgetStateByConfigId(context, 49, GadgetState.GearStart)
end
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_47(context, evt)
if evt.param2 ~= 49 then
return false
else return true
end
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_47(context, evt)
if evt.param1 == GadgetState.Default then
ScriptLib.SetGroupVariableValue(context, "Sculpture_State", 0)
elseif evt.param1 == GadgetState.GearStart then
ScriptLib.SetGroupVariableValue(context, "Sculpture_State", 201)
elseif evt.param1 == GadgetState.GearStop then
ScriptLib.SetGroupVariableValue(context, "Sculpture_State", 202)
end
return 0
end

View File

@@ -0,0 +1,78 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 59, gadget_id = 70380002, pos = { x = 63.4, y = 0.5, z = -44.2 }, rot = { x = 0.0, y = 280.7, z = 0.0 }, level = 1, route_id = 2 },
{ config_id = 60, gadget_id = 70380002, pos = { x = 74.9, y = 0.5, z = -46.5 }, rot = { x = 0.0, y = 283.6, z = 0.0 }, level = 1, route_id = 4 },
{ config_id = 61, gadget_id = 70380002, pos = { x = 67.6, y = 0.5, z = -34.4 }, rot = { x = 0.0, y = 316.1, z = 0.0 }, level = 1, route_id = 3 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
rand_suite = false,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { },
gadgets = { 59, 60, 61 },
regions = { },
triggers = { },
rand_weight = 100
},
{
-- suite_id = 1,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,189 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 118, gadget_id = 70900207, pos = { x = 188.1, y = 0.6, z = 47.0 }, rot = { x = 0.0, y = 241.0, z = 0.0 }, level = 1 },
{ config_id = 119, gadget_id = 70900207, pos = { x = 192.3, y = 0.6, z = 44.5 }, rot = { x = 0.0, y = 328.8, z = 0.0 }, level = 1 },
{ config_id = 120, gadget_id = 70900207, pos = { x = 196.1, y = 0.6, z = 42.6 }, rot = { x = 0.0, y = 301.4, z = 0.0 }, level = 1 },
{ config_id = 121, gadget_id = 70900207, pos = { x = 199.9, y = 0.6, z = 40.9 }, rot = { x = 0.0, y = 204.2, z = 0.0 }, level = 1 },
{ config_id = 122, gadget_id = 70900207, pos = { x = 201.8, y = 0.6, z = 44.6 }, rot = { x = 0.0, y = 327.3, z = 0.0 }, level = 1 },
{ config_id = 123, gadget_id = 70380003, pos = { x = 188.3, y = -1.5, z = 47.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 20000012, start_route = false },
{ config_id = 124, gadget_id = 70380003, pos = { x = 192.1, y = -1.5, z = 44.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 20000013, start_route = false },
{ config_id = 125, gadget_id = 70380003, pos = { x = 195.9, y = -1.5, z = 42.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 20000014, start_route = false },
{ config_id = 126, gadget_id = 70380003, pos = { x = 199.9, y = -1.5, z = 40.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 20000015, start_route = false },
{ config_id = 127, gadget_id = 70380003, pos = { x = 202.1, y = -1.4, z = 44.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 20000016, start_route = false },
{ config_id = 132, gadget_id = 70510009, pos = { x = 108.8, y = 0.5, z = 64.3 }, rot = { x = 0.0, y = 272.2, z = 0.0 }, level = 1 },
{ config_id = 133, gadget_id = 70510009, pos = { x = 106.9, y = 0.5, z = 65.9 }, rot = { x = 0.0, y = 48.2, z = 0.0 }, level = 1 },
{ config_id = 134, gadget_id = 70510009, pos = { x = 104.6, y = 0.5, z = 67.5 }, rot = { x = 0.0, y = 94.8, z = 0.0 }, level = 1 },
{ config_id = 135, gadget_id = 70510009, pos = { x = 105.3, y = 0.5, z = 65.6 }, rot = { x = 0.0, y = 66.4, z = 0.0 }, level = 1 },
{ config_id = 136, gadget_id = 70510009, pos = { x = 103.0, y = 0.5, z = 68.9 }, rot = { x = 0.0, y = 55.1, z = 0.0 }, level = 1 },
{ config_id = 137, gadget_id = 70510009, pos = { x = 100.7, y = 0.5, z = 70.3 }, rot = { x = 0.0, y = 53.9, z = 0.0 }, level = 1 },
{ config_id = 138, gadget_id = 70510009, pos = { x = 103.1, y = 0.5, z = 67.2 }, rot = { x = 0.0, y = 270.4, z = 0.0 }, level = 1 },
{ config_id = 139, gadget_id = 70510009, pos = { x = 106.2, y = 0.5, z = 68.2 }, rot = { x = 0.0, y = 259.9, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 70, shape = RegionShape.SPHERE, radius = 5, pos = { x = 182.7, y = 0.6, z = 47.3 } },
{ config_id = 71, shape = RegionShape.SPHERE, radius = 5, pos = { x = 177.3, y = 0.6, z = 44.1 } },
{ config_id = 72, shape = RegionShape.SPHERE, radius = 5, pos = { x = 173.9, y = 0.6, z = 45.0 } },
{ config_id = 73, shape = RegionShape.SPHERE, radius = 5, pos = { x = 177.9, y = 0.6, z = 51.4 } },
{ config_id = 74, shape = RegionShape.SPHERE, radius = 5, pos = { x = 182.9, y = 0.6, z = 38.6 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_70", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricPile", condition = "condition_EVENT_CLIENT_EXECUTE_70", action = "action_EVENT_CLIENT_EXECUTE_70" },
{ name = "CLIENT_EXECUTE_71", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricPile", condition = "condition_EVENT_CLIENT_EXECUTE_71", action = "action_EVENT_CLIENT_EXECUTE_71" },
{ name = "CLIENT_EXECUTE_72", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricPile", condition = "condition_EVENT_CLIENT_EXECUTE_72", action = "action_EVENT_CLIENT_EXECUTE_72" },
{ name = "CLIENT_EXECUTE_73", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricPile", condition = "condition_EVENT_CLIENT_EXECUTE_73", action = "action_EVENT_CLIENT_EXECUTE_73" },
{ name = "CLIENT_EXECUTE_74", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricPile", condition = "condition_EVENT_CLIENT_EXECUTE_74", action = "action_EVENT_CLIENT_EXECUTE_74" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { },
gadgets = { 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 132, 133, 134, 135, 136, 137, 138 },
regions = { 70, 71, 72, 73, 74 },
triggers = { "CLIENT_EXECUTE_70", "CLIENT_EXECUTE_71", "CLIENT_EXECUTE_72", "CLIENT_EXECUTE_73", "CLIENT_EXECUTE_74" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_70(context, evt)
if 118 ~= ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return false
end
return true
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_70(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 123) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_71(context, evt)
if 119 ~= ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return false
end
return true
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_71(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 124) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_72(context, evt)
if 120 ~= ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return false
end
return true
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_72(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 125) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_73(context, evt)
if 121 ~= ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return false
end
return true
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_73(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 126) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_74(context, evt)
if 122 ~= ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid }) then
return false
end
return true
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_74(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 127) then
return -1
end
return 0
end

View File

@@ -0,0 +1,70 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 23, monster_id = 21010301, pos = { x = 143.8, y = 0.5, z = 87.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 24, monster_id = 21010301, pos = { x = 147.0, y = 0.5, z = 78.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 25, monster_id = 21010301, pos = { x = 139.8, y = 0.5, z = 80.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 63, gadget_id = 70210031, pos = { x = 147.3, y = 0.5, z = 100.9 }, rot = { x = 0.0, y = 313.6, z = 0.0 }, level = 1, chest_drop_id = 1100302 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { 23, 24, 25 },
gadgets = { 63 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,70 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 26, monster_id = 21011001, pos = { x = 133.5, y = 6.5, z = 145.1 }, rot = { x = 0.0, y = 283.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 27, monster_id = 21011001, pos = { x = 133.4, y = 6.5, z = 129.6 }, rot = { x = 0.0, y = 326.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 28, monster_id = 21011001, pos = { x = 144.5, y = 6.5, z = 144.9 }, rot = { x = 0.0, y = 157.7, z = 0.0 }, level = 0, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 64, gadget_id = 70210031, pos = { x = 144.3, y = 6.5, z = 129.5 }, rot = { x = 0.0, y = 203.8, z = 0.0 }, level = 1, chest_drop_id = 1100302 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { 26, 27, 28 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,69 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 29, monster_id = 21010201, pos = { x = 137.4, y = 0.5, z = 180.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 30, monster_id = 21010201, pos = { x = 137.4, y = 0.5, z = 186.3 }, rot = { x = 0.0, y = 204.4, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 31, monster_id = 21010301, pos = { x = 133.6, y = 0.5, z = 183.2 }, rot = { x = 0.0, y = 81.2, z = 0.0 }, level = 0, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { 29, 30, 31 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,73 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 32, monster_id = 21020101, pos = { x = 139.4, y = 0.5, z = 239.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 33, monster_id = 21010201, pos = { x = 131.2, y = 0.5, z = 237.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 34, monster_id = 21010201, pos = { x = 132.0, y = 0.5, z = 243.3 }, rot = { x = 0.0, y = 205.7, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 35, monster_id = 21010201, pos = { x = 124.3, y = 0.5, z = 240.9 }, rot = { x = 0.0, y = 83.1, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 36, monster_id = 21011001, pos = { x = 111.2, y = 7.0, z = 248.1 }, rot = { x = 0.0, y = 291.6, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 37, monster_id = 21011001, pos = { x = 137.3, y = 7.0, z = 256.5 }, rot = { x = 0.0, y = 230.5, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 38, monster_id = 21011001, pos = { x = 137.3, y = 7.0, z = 224.4 }, rot = { x = 0.0, y = 338.2, z = 0.0 }, level = 0, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { 32, 33, 34, 35, 36, 37, 38 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,70 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 39, monster_id = 21010601, pos = { x = 68.9, y = 6.0, z = 63.3 }, rot = { x = 0.0, y = 121.1, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 40, monster_id = 21010301, pos = { x = 77.8, y = 0.5, z = 44.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 41, monster_id = 21010301, pos = { x = 79.9, y = 0.5, z = 62.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 65, gadget_id = 70210031, pos = { x = 71.7, y = 6.5, z = 58.5 }, rot = { x = 0.0, y = 276.8, z = 0.0 }, level = 1, chest_drop_id = 1100302 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { 39, 40, 41 },
gadgets = { 65 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,69 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 42, monster_id = 21010201, pos = { x = 72.7, y = 0.5, z = 92.0 }, rot = { x = 0.0, y = 76.8, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 43, monster_id = 21010201, pos = { x = 76.2, y = 0.5, z = 88.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 44, monster_id = 21010301, pos = { x = 76.3, y = 0.5, z = 95.9 }, rot = { x = 0.0, y = 166.2, z = 0.0 }, level = 0, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { 42, 43, 44 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,82 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 66, gadget_id = 70500001, pos = { x = 70.4, y = 30.5, z = 116.6 }, rot = { x = 0.0, y = 25.5, z = 0.0 }, level = 1, point_type = 1000001, isOneoff = true },
{ config_id = 67, gadget_id = 70210031, pos = { x = 66.1, y = 9.4, z = 121.1 }, rot = { x = 0.0, y = 172.2, z = 0.0 }, level = 1, chest_drop_id = 1100302, showcutscene = true }
}
-- 区域
regions = {
{ config_id = 48, shape = RegionShape.SPHERE, radius = 5, pos = { x = 67.1, y = 1.7, z = 119.3 } }
}
-- 触发器
triggers = {
{ name = "GATHER_48", event = EventType.EVENT_GATHER, source = "66", condition = "", action = "action_EVENT_GATHER_48" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { },
gadgets = { 66 },
regions = { 48 },
triggers = { "GATHER_48" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
-- 触发操作
function action_EVENT_GATHER_48(context, evt)
-- 创生gadget 67
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 67 }) then
return -1
end
return 0
end

View File

@@ -0,0 +1,70 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 45, monster_id = 21010301, pos = { x = 55.6, y = 0.5, z = 171.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 46, monster_id = 21010301, pos = { x = 63.0, y = 0.5, z = 170.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 47, monster_id = 20011201, pos = { x = 61.1, y = 0.5, z = 151.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 48, monster_id = 20011201, pos = { x = 55.8, y = 0.5, z = 156.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { 45, 46, 47, 48 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,72 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 49, monster_id = 21010901, pos = { x = 72.8, y = 7.0, z = 236.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 50, monster_id = 21010901, pos = { x = 56.7, y = 7.0, z = 207.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 51, monster_id = 21010901, pos = { x = 59.0, y = 7.0, z = 261.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 52, monster_id = 21010901, pos = { x = 33.5, y = 7.0, z = 236.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 53, monster_id = 22010201, pos = { x = 66.3, y = 2.0, z = 249.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 68, gadget_id = 70210031, pos = { x = 52.8, y = 5.0, z = 237.5 }, rot = { x = 0.0, y = 336.7, z = 0.0 }, level = 1, chest_drop_id = 1100302 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { 49, 50, 51, 52, 53 },
gadgets = { 68 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,69 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 69, gadget_id = 70510003, pos = { x = 135.1, y = 3.4, z = -114.1 }, rot = { x = 0.0, y = 178.2, z = 0.0 }, level = 1 },
{ config_id = 71, gadget_id = 70510001, pos = { x = 152.9, y = 13.2, z = -125.7 }, rot = { x = 0.0, y = 84.2, z = 0.0 }, level = 1 },
{ config_id = 72, gadget_id = 70510004, pos = { x = 114.0, y = 0.5, z = -110.5 }, rot = { x = 0.0, y = 101.6, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 69, 71, 72 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,136 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 54, monster_id = 21010201, pos = { x = -31.0, y = 1.3, z = 79.4 }, rot = { x = 0.0, y = 76.8, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 55, monster_id = 21010201, pos = { x = -25.2, y = 1.3, z = 72.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 56, monster_id = 21010301, pos = { x = -22.3, y = 1.3, z = 81.9 }, rot = { x = 0.0, y = 166.2, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 57, monster_id = 21010401, pos = { x = -8.0, y = 7.0, z = 77.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 58, monster_id = 21010401, pos = { x = -20.5, y = 7.0, z = 102.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 59, monster_id = 21010401, pos = { x = -19.2, y = 7.0, z = 54.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 73, gadget_id = 70220005, pos = { x = -38.7, y = 7.2, z = 207.0 }, rot = { x = 0.0, y = 116.0, z = 0.0 }, level = 1 },
{ config_id = 74, gadget_id = 70220005, pos = { x = -42.0, y = 7.2, z = 213.5 }, rot = { x = 0.0, y = 337.0, z = 0.0 }, level = 1 },
{ config_id = 75, gadget_id = 70220005, pos = { x = -33.7, y = 7.2, z = 212.9 }, rot = { x = 0.0, y = 132.6, z = 0.0 }, level = 1 },
{ config_id = 83, gadget_id = 70220005, pos = { x = -39.1, y = 7.2, z = 210.0 }, rot = { x = 0.0, y = 51.0, z = 0.0 }, level = 1 },
{ config_id = 84, gadget_id = 70220005, pos = { x = -35.7, y = 7.2, z = 211.9 }, rot = { x = 0.0, y = 353.6, z = 0.0 }, level = 1 },
{ config_id = 85, gadget_id = 70220005, pos = { x = -35.2, y = 7.2, z = 209.8 }, rot = { x = 0.0, y = 237.5, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 49, shape = RegionShape.SPHERE, radius = 10.2, pos = { x = 19.3, y = 0.5, z = 51.5 } }
}
-- 触发器
triggers = {
{ name = "ENTER_REGION_49", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_49", action = "action_EVENT_ENTER_REGION_49" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { },
gadgets = { 73, 74, 75, 83, 84, 85 },
regions = { 49 },
triggers = { "ENTER_REGION_49" },
rand_weight = 100
},
{
-- suite_id = 1,
-- description = suite_2,
monsters = { 54, 55, 56, 57, 58, 59 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_49(context, evt)
if evt.param1 ~= 49 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_49(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 54, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 55, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 56, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 57, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 58, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 59, delay_time = 0 }) then
return -1
end
return 0
end

View File

@@ -0,0 +1,132 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 60, monster_id = 21010701, pos = { x = -40.8, y = 7.2, z = 209.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 61, monster_id = 21010201, pos = { x = -37.0, y = 7.2, z = 211.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 62, monster_id = 21010501, pos = { x = -38.9, y = 7.2, z = 213.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 63, monster_id = 21010501, pos = { x = -22.3, y = 0.5, z = 208.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 64, monster_id = 20011301, pos = { x = -18.9, y = 0.5, z = 208.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 65, monster_id = 21010501, pos = { x = -24.4, y = 0.5, z = 213.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 81, gadget_id = 70220003, pos = { x = -19.3, y = 0.5, z = 181.8 }, rot = { x = 0.0, y = 69.6, z = 0.0 }, level = 1 },
{ config_id = 82, gadget_id = 70220003, pos = { x = -15.4, y = 0.5, z = 182.6 }, rot = { x = 0.0, y = 317.8, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 50, shape = RegionShape.SPHERE, radius = 14.6, pos = { x = 15.2, y = 0.5, z = 191.8 } }
}
-- 触发器
triggers = {
{ name = "ENTER_REGION_50", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_50", action = "action_EVENT_ENTER_REGION_50" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 81, 82 },
regions = { 50 },
triggers = { "ENTER_REGION_50" },
rand_weight = 100
},
{
-- suite_id = 1,
-- description = suite_2,
monsters = { 60, 61, 62, 63, 64, 65 },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_50(context, evt)
if evt.param1 ~= 50 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_50(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 60, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 61, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 62, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 63, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 64, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 65, delay_time = 0 }) then
return -1
end
return 0
end

View File

@@ -0,0 +1,148 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 87, gadget_id = 70710002, pos = { x = 81.4, y = 0.5, z = -12.1 }, rot = { x = 0.0, y = 292.2, z = 0.0 }, level = 1, route_id = 20000007 },
{ config_id = 90, gadget_id = 70210041, pos = { x = 74.3, y = 0.5, z = 32.9 }, rot = { x = 0.0, y = 181.6, z = 0.0 }, level = 1, chest_drop_id = 303125, showcutscene = true }
}
-- 区域
regions = {
{ config_id = 53, shape = RegionShape.SPHERE, radius = 10.2, pos = { x = 89.1, y = 0.5, z = -11.0 } },
{ config_id = 54, shape = RegionShape.SPHERE, radius = 5, pos = { x = 96.6, y = 0.5, z = 14.0 } },
{ config_id = 55, shape = RegionShape.SPHERE, radius = 1.1, pos = { x = 75.8, y = 2.0, z = 33.0 } }
}
-- 触发器
triggers = {
{ name = "ENTER_REGION_53", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_53", action = "action_EVENT_ENTER_REGION_53" },
{ name = "ENTER_REGION_54", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_54", action = "action_EVENT_ENTER_REGION_54" },
{ name = "PLATFORM_REACH_POINT_55", event = EventType.EVENT_PLATFORM_REACH_POINT, source = "", condition = "condition_EVENT_PLATFORM_REACH_POINT_55", action = "action_EVENT_PLATFORM_REACH_POINT_55" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 87 },
regions = { 53, 54, 55 },
triggers = { "ENTER_REGION_53", "ENTER_REGION_54", "PLATFORM_REACH_POINT_55" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_53(context, evt)
if evt.param1 ~= 53 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_53(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 87, 20000008) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_54(context, evt)
if evt.param1 ~= 54 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_54(context, evt)
-- 设置移动平台路径
if 0 ~= ScriptLib.SetPlatformRouteId(context, 87, 20000009) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_PLATFORM_REACH_POINT_55(context, evt)
-- 判断是gadgetid 为 87的移动平台是否到达了20000009 的路线中的 1 点
if 87 ~= evt.param1 then
return false
end
if 20000009 ~= evt.param2 then
return false
end
if 1 ~= evt.param3 then
return false
end
return true
end
-- 触发操作
function action_EVENT_PLATFORM_REACH_POINT_55(context, evt)
-- 创生gadget 90
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 90 }) then
return -1
end
return 0
end

View File

@@ -0,0 +1,68 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 88, gadget_id = 70900043, pos = { x = 79.2, y = 0.6, z = 32.9 }, rot = { x = 0.0, y = 1.4, z = 0.0 }, level = 1 },
{ config_id = 89, gadget_id = 70900042, pos = { x = 76.1, y = 0.6, z = 32.6 }, rot = { x = 0.0, y = 182.7, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 88, 89 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,131 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 91, gadget_id = 70800001, pos = { x = 143.2, y = 1.1, z = -2.4 }, rot = { x = 0.0, y = 215.0, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 56, shape = RegionShape.SPHERE, radius = 5, pos = { x = 142.8, y = 1.1, z = -2.8 } },
{ config_id = 57, shape = RegionShape.SPHERE, radius = 5, pos = { x = 142.0, y = 1.1, z = -1.8 } }
}
-- 触发器
triggers = {
{ name = "GADGET_CREATE_56", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_56", action = "action_EVENT_GADGET_CREATE_56", trigger_count = 0 },
{ name = "SELECT_OPTION_57", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_57", action = "action_EVENT_SELECT_OPTION_57", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = false,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 91 },
regions = { 56, 57 },
triggers = { "GADGET_CREATE_56", "SELECT_OPTION_57" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_56(context, evt)
if 91 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_56(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {24}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_57(context, evt)
-- 判断是gadgetid 91 option_id 24
if 91 ~= evt.param1 then
return false
end
if 24 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_57(context, evt)
-- 当option_id为24时开启封印战斗战斗区域半径为10圈内进度每秒增长1圈外进度每秒衰减2进度达到60时判定为战斗成功填0则取默认值100进度衰减到0后5秒判定为战斗失败
if 24 == evt.param2 then
local ret = ScriptLib.StartSealBattle(context, {radius = 10, in_add = 1, out_sub = 2, fail_time = 5, max_progress = 60})
--ScriptLib.PrintLog("StartSealBattle ret: " ..ret)
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000037, suite = 1 }) then
return -1
end
-- 删除指定group 220000036 指定config91物件身上指定option24
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220000036, 91, 24) then
return -1
end
-- 将configid为 91 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 91, GadgetState.GearStart) then
return -1
end
return 0
end

View File

@@ -0,0 +1,273 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 77, monster_id = 20011201, pos = { x = 142.0, y = 1.1, z = 4.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 15 },
{ config_id = 78, monster_id = 20011201, pos = { x = 147.4, y = 1.1, z = -7.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 15 },
{ config_id = 79, monster_id = 21030201, pos = { x = 137.0, y = 1.1, z = -6.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 15 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 58, shape = RegionShape.SPHERE, radius = 5, pos = { x = 142.7, y = 1.1, z = -2.4 } },
{ config_id = 59, shape = RegionShape.SPHERE, radius = 5, pos = { x = 142.8, y = 1.1, z = -3.8 } },
{ config_id = 60, shape = RegionShape.SPHERE, radius = 5, pos = { x = 141.8, y = 1.1, z = -1.6 } },
{ config_id = 63, shape = RegionShape.SPHERE, radius = 5, pos = { x = 141.5, y = 1.1, z = -4.3 } },
{ config_id = 64, shape = RegionShape.SPHERE, radius = 5, pos = { x = 141.0, y = 1.1, z = -1.7 } },
{ config_id = 65, shape = RegionShape.SPHERE, radius = 5, pos = { x = 140.5, y = 1.1, z = -0.7 } },
{ config_id = 66, shape = RegionShape.SPHERE, radius = 5, pos = { x = 134.0, y = 1.1, z = 1.2 } },
{ config_id = 67, shape = RegionShape.SPHERE, radius = 5, pos = { x = 136.0, y = 1.1, z = -1.0 } },
{ config_id = 68, shape = RegionShape.SPHERE, radius = 5, pos = { x = 136.4, y = 1.1, z = 1.0 } }
}
-- 触发器
triggers = {
{ name = "ANY_MONSTER_DIE_58", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_58", action = "action_EVENT_ANY_MONSTER_DIE_58", trigger_count = 0 },
{ name = "ANY_MONSTER_DIE_59", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_59", action = "action_EVENT_ANY_MONSTER_DIE_59", trigger_count = 0 },
{ name = "ANY_MONSTER_DIE_60", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_60", action = "action_EVENT_ANY_MONSTER_DIE_60", trigger_count = 0 },
{ name = "ANY_MONSTER_LIVE_63", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_63", action = "action_EVENT_ANY_MONSTER_LIVE_63" },
{ name = "CHALLENGE_SUCCESS_64", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "37", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_64", trigger_count = 0 },
{ name = "CHALLENGE_FAIL_65", event = EventType.EVENT_CHALLENGE_FAIL, source = "37", condition = "", action = "action_EVENT_CHALLENGE_FAIL_65", trigger_count = 0 },
{ name = "ANY_MONSTER_LIVE_66", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_66", action = "action_EVENT_ANY_MONSTER_LIVE_66", trigger_count = 0 },
{ name = "ANY_MONSTER_LIVE_67", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_67", action = "action_EVENT_ANY_MONSTER_LIVE_67", trigger_count = 0 },
{ name = "ANY_MONSTER_LIVE_68", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_68", action = "action_EVENT_ANY_MONSTER_LIVE_68", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
rand_suite = false,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 77, 78, 79 },
gadgets = { },
regions = { 58, 59, 60, 63, 64, 65, 66, 67, 68 },
triggers = { "ANY_MONSTER_DIE_58", "ANY_MONSTER_DIE_59", "ANY_MONSTER_DIE_60", "ANY_MONSTER_LIVE_63", "CHALLENGE_SUCCESS_64", "CHALLENGE_FAIL_65", "ANY_MONSTER_LIVE_66", "ANY_MONSTER_LIVE_67", "ANY_MONSTER_LIVE_68" },
rand_weight = 100
},
{
-- suite_id = 1,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_58(context, evt)
if 77 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_58(context, evt)
-- 延迟5秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 77, delay_time = 5 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_59(context, evt)
if 78 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_59(context, evt)
-- 延迟5秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 78, delay_time = 5 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_60(context, evt)
if 79 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_60(context, evt)
-- 延迟10秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 79, delay_time = 10 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_63(context, evt)
if 77 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_63(context, evt)
-- 创建编号为37该挑战的识别id),挑战内容为152的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 37, 152, 60, 220000037, 5, 0) then
return -1
end
return 0
end
-- 触发条件
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_64(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220000036, 91, {24}) then
return -1
end
-- 改变指定group组220000036中 configid为91的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220000036, 91, GadgetState.Default) then
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000037, suite = 2 }) then
return -1
end
return 0
end
-- 触发条件
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_65(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220000036, 91, {24}) then
return -1
end
-- 改变指定group组220000036中 configid为91的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220000036, 91, GadgetState.Default) then
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220000037, suite = 2 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_66(context, evt)
if 79 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_66(context, evt)
-- 通知groupid为220000037中,configid为79的怪物入战或者脱战set为1是入战为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 1, 79, 220000037) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_67(context, evt)
if 77 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_67(context, evt)
-- 通知groupid为220000037中,configid为77的怪物入战或者脱战set为1是入战为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 1, 77, 220000037) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_68(context, evt)
if 78 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_68(context, evt)
-- 通知groupid为220000037中,configid为78的怪物入战或者脱战set为1是入战为0是脱战
if 0 ~= ScriptLib.SetMonsterBattleByGroup(context, 1, 78, 220000037) then
return -1
end
return 0
end

View File

@@ -0,0 +1,67 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 92, gadget_id = 70220001, pos = { x = 97.0, y = 0.5, z = -58.6 }, rot = { x = 0.0, y = 258.8, z = 0.0 }, level = 1, drop_id = 400101 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = false,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 92 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,69 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 93, gadget_id = 70380003, pos = { x = 92.4, y = -1.3, z = -114.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 20000010, save_route = true, persistent = true },
{ config_id = 94, gadget_id = 70380001, pos = { x = 92.7, y = -0.8, z = -126.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 20000011, start_route = false, persistent = true },
{ config_id = 95, gadget_id = 70210041, pos = { x = 92.5, y = 0.2, z = -126.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, chest_drop_id = 403145, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 93, 94 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,85 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 96, gadget_id = 70210041, pos = { x = 94.4, y = -3.4, z = -153.5 }, rot = { x = 0.0, y = 359.6, z = 0.0 }, level = 1, chest_drop_id = 403145, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
{ config_id = 97, gadget_id = 70900046, pos = { x = 91.0, y = -10.5, z = -149.6 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 101, gadget_id = 70900046, pos = { x = 90.8, y = -10.5, z = -148.2 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 102, gadget_id = 70900046, pos = { x = 91.0, y = -10.5, z = -146.5 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 103, gadget_id = 70900046, pos = { x = 90.2, y = -10.5, z = -145.1 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 104, gadget_id = 70900046, pos = { x = 92.7, y = -10.5, z = -145.0 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 105, gadget_id = 70900046, pos = { x = 94.8, y = -10.5, z = -146.9 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 106, gadget_id = 70900046, pos = { x = 89.3, y = -10.5, z = -147.9 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 107, gadget_id = 70900046, pos = { x = 93.3, y = -10.5, z = -148.3 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 108, gadget_id = 70900046, pos = { x = 95.8, y = -10.5, z = -150.6 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 109, gadget_id = 70900046, pos = { x = 96.6, y = -10.5, z = -148.7 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 110, gadget_id = 70900046, pos = { x = 97.1, y = -10.5, z = -145.9 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 111, gadget_id = 70900046, pos = { x = 95.8, y = -10.5, z = -144.7 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 112, gadget_id = 70900046, pos = { x = 93.9, y = -10.5, z = -144.2 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 113, gadget_id = 70900046, pos = { x = 93.2, y = -10.5, z = -147.1 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 114, gadget_id = 70900046, pos = { x = 93.5, y = -10.5, z = -150.6 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 115, gadget_id = 70900046, pos = { x = 97.7, y = -10.5, z = -147.8 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 116, gadget_id = 70900046, pos = { x = 91.7, y = -10.5, z = -143.8 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 },
{ config_id = 117, gadget_id = 70900046, pos = { x = 95.1, y = -10.5, z = -143.3 }, rot = { x = 0.0, y = 83.6, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 96, 97, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,118 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 80, monster_id = 21010101, pos = { x = 170.2, y = 0.6, z = 55.3 }, rot = { x = 0.0, y = 171.7, z = 0.0 }, level = 0 },
{ config_id = 81, monster_id = 21010101, pos = { x = 165.1, y = 0.6, z = 47.3 }, rot = { x = 0.0, y = 83.3, z = 0.0 }, level = 0 },
{ config_id = 82, monster_id = 21010101, pos = { x = 168.5, y = 0.6, z = 40.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 83, monster_id = 21010101, pos = { x = 173.2, y = 0.6, z = 44.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
{ config_id = 84, monster_id = 21010101, pos = { x = 173.0, y = 0.6, z = 51.4 }, rot = { x = 0.0, y = 225.6, z = 0.0 }, level = 0 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 128, gadget_id = 70900207, pos = { x = 166.2, y = 0.7, z = 53.0 }, rot = { x = 0.0, y = 37.9, z = 0.0 }, level = 1 },
{ config_id = 129, gadget_id = 70900207, pos = { x = 170.2, y = 0.5, z = 53.1 }, rot = { x = 0.0, y = 8.7, z = 0.0 }, level = 1 },
{ config_id = 130, gadget_id = 70900207, pos = { x = 170.4, y = 0.4, z = 49.1 }, rot = { x = 0.0, y = 129.9, z = 0.0 }, level = 1 },
{ config_id = 131, gadget_id = 70900207, pos = { x = 166.3, y = 0.6, z = 49.2 }, rot = { x = 0.0, y = 293.3, z = 0.0 }, level = 1 },
{ config_id = 140, gadget_id = 70510008, pos = { x = 167.9, y = 0.9, z = 51.0 }, rot = { x = 0.0, y = 112.6, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 75, shape = RegionShape.SPHERE, radius = 5, pos = { x = 169.2, y = 0.6, z = 47.8 } }
}
-- 触发器
triggers = {
{ name = "ANY_MONSTER_DIE_75", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_75", action = "action_EVENT_ANY_MONSTER_DIE_75", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 80, 81, 82, 83, 84 },
gadgets = { 128, 129, 130, 140 },
regions = { 75 },
triggers = { "ANY_MONSTER_DIE_75" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_75(context, evt)
-- 判断指定group组剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCountByGroupId(context, 220000041) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_75(context, evt)
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 80, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 81, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 82, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 83, delay_time = 0 }) then
return -1
end
-- 延迟0秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 84, delay_time = 0 }) then
return -1
end
return 0
end

View File

@@ -0,0 +1,84 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 141, gadget_id = 70900221, pos = { x = 105.3, y = 0.5, z = 51.0 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 142, gadget_id = 70900223, pos = { x = 111.3, y = 0.5, z = 51.1 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 143, gadget_id = 71000004, pos = { x = 114.1, y = 0.5, z = 48.3 }, rot = { x = 0.0, y = 301.5, z = 0.0 }, level = 1 },
{ config_id = 148, gadget_id = 70500000, pos = { x = 99.1, y = 0.5, z = 57.4 }, rot = { x = 0.0, y = 104.3, z = 0.0 }, level = 1, point_type = 20001001 }
}
-- 区域
regions = {
{ config_id = 76, shape = RegionShape.SPHERE, radius = 5, pos = { x = 111.3, y = 1.3, z = 52.1 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_76", event = EventType.EVENT_CLIENT_EXECUTE, source = "LaserSwitch_Un_Hit", condition = "", action = "action_EVENT_CLIENT_EXECUTE_76" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 141, 142, 148 },
regions = { 76 },
triggers = { "CLIENT_EXECUTE_76" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_76(context, evt)
-- 创建id为143的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 143 }) then
return -1
end
return 0
end

View File

@@ -0,0 +1,89 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 144, gadget_id = 70900221, pos = { x = 105.2, y = 0.5, z = 35.1 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 145, gadget_id = 70900223, pos = { x = 111.2, y = 0.5, z = 35.3 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 146, gadget_id = 71000004, pos = { x = 114.0, y = 0.5, z = 32.4 }, rot = { x = 0.0, y = 301.5, z = 0.0 }, level = 1 },
{ config_id = 147, gadget_id = 70220007, pos = { x = 108.3, y = 0.5, z = 34.7 }, rot = { x = 0.0, y = 92.1, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 77, shape = RegionShape.SPHERE, radius = 5, pos = { x = 111.3, y = 1.3, z = 36.2 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_77", event = EventType.EVENT_CLIENT_EXECUTE, source = "LaserSwitch_Hit", condition = "", action = "action_EVENT_CLIENT_EXECUTE_77" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 144, 145, 147 },
regions = { 77 },
triggers = { "CLIENT_EXECUTE_77" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_77(context, evt)
-- 创建id为146的gadget
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 146 }) then
return -1
end
-- 将configid为 144 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 144, GadgetState.GearStop) then
return -1
end
return 0
end

View File

@@ -0,0 +1,112 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 85, monster_id = 23040101, pos = { x = 543.2, y = -0.9, z = 363.2 }, rot = { x = 0.0, y = 225.0, z = 0.0 }, level = 20, disableWander = true },
{ config_id = 86, monster_id = 23040101, pos = { x = 543.4, y = -0.9, z = 358.2 }, rot = { x = 0.0, y = 321.5, z = 0.0 }, level = 20, disableWander = true },
{ config_id = 88, monster_id = 21010101, pos = { x = 716.7, y = 5.8, z = 379.4 }, rot = { x = 0.0, y = 149.6, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 89, monster_id = 21010101, pos = { x = 719.6, y = 5.8, z = 379.9 }, rot = { x = 0.0, y = 238.8, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 90, monster_id = 21010101, pos = { x = 731.7, y = 5.5, z = 360.8 }, rot = { x = 0.0, y = 24.9, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 91, monster_id = 21010101, pos = { x = 733.8, y = 5.5, z = 359.7 }, rot = { x = 0.0, y = 355.7, z = 0.0 }, level = 0, disableWander = true },
{ config_id = 92, monster_id = 23040101, pos = { x = 780.9, y = 5.5, z = 360.7 }, rot = { x = 0.0, y = 225.0, z = 0.0 }, level = 12, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 150, gadget_id = 70900213, pos = { x = 264.1, y = 5.6, z = 282.3 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1, state = GadgetState.GearAction1 },
{ config_id = 152, gadget_id = 70900213, pos = { x = 299.6, y = 5.6, z = 279.2 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 153, gadget_id = 70900213, pos = { x = 299.6, y = 5.6, z = 278.2 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 162, gadget_id = 70900221, pos = { x = 361.1, y = 6.0, z = 285.5 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 173, gadget_id = 70320002, pos = { x = 483.3, y = 5.5, z = 368.8 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 174, gadget_id = 70320002, pos = { x = 485.2, y = 5.5, z = 368.8 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 175, gadget_id = 70320002, pos = { x = 487.1, y = 5.5, z = 368.9 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 176, gadget_id = 70320002, pos = { x = 483.9, y = 5.5, z = 354.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 177, gadget_id = 70320002, pos = { x = 485.7, y = 5.5, z = 354.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 178, gadget_id = 70320002, pos = { x = 487.6, y = 5.5, z = 354.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 179, gadget_id = 70220003, pos = { x = 508.2, y = 5.5, z = 364.9 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 180, gadget_id = 70220003, pos = { x = 508.1, y = 5.5, z = 360.1 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 181, gadget_id = 70220003, pos = { x = 508.1, y = 5.5, z = 355.5 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 187, gadget_id = 70900216, pos = { x = 700.9, y = 5.7, z = 360.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 188, gadget_id = 70900216, pos = { x = 718.0, y = 5.7, z = 377.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 189, gadget_id = 70900216, pos = { x = 734.6, y = 5.4, z = 361.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 190, gadget_id = 70900207, pos = { x = 786.6, y = 5.8, z = 375.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 192, gadget_id = 70210002, pos = { x = 416.4, y = 5.6, z = 263.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, chest_drop_id = 400102, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
{ config_id = 193, gadget_id = 70210002, pos = { x = 476.1, y = 5.6, z = 309.4 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1, chest_drop_id = 400102, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
{ config_id = 198, gadget_id = 70900207, pos = { x = 786.9, y = 5.8, z = 380.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 199, gadget_id = 70900207, pos = { x = 792.8, y = 5.8, z = 380.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 200, gadget_id = 70900207, pos = { x = 799.4, y = 5.8, z = 379.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 201, gadget_id = 70900207, pos = { x = 805.1, y = 5.8, z = 380.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 202, gadget_id = 70900207, pos = { x = 811.0, y = 5.8, z = 380.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 203, gadget_id = 70900207, pos = { x = 815.7, y = 5.8, z = 379.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 204, gadget_id = 70900207, pos = { x = 821.6, y = 5.8, z = 379.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 205, gadget_id = 70900207, pos = { x = 826.7, y = 5.8, z = 369.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 206, gadget_id = 70900207, pos = { x = 826.7, y = 5.8, z = 374.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 207, gadget_id = 70900207, pos = { x = 826.7, y = 5.8, z = 379.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 213, gadget_id = 70900221, pos = { x = 369.5, y = 6.1, z = 272.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 215, gadget_id = 70900213, pos = { x = 299.7, y = 6.6, z = 279.2 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 216, gadget_id = 70900213, pos = { x = 299.7, y = 6.6, z = 278.2 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 222, gadget_id = 70900213, pos = { x = 264.5, y = 5.6, z = 273.4 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1, state = GadgetState.GearAction1 },
{ config_id = 235, gadget_id = 70900216, pos = { x = 771.1, y = 5.3, z = 363.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 238, gadget_id = 70220003, pos = { x = 506.1, y = 5.5, z = 353.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 239, gadget_id = 70220003, pos = { x = 505.7, y = 5.5, z = 366.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 240, gadget_id = 70220003, pos = { x = 502.9, y = 5.5, z = 366.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 244, gadget_id = 70220005, pos = { x = 736.4, y = 5.5, z = 364.6 }, rot = { x = 0.0, y = 197.1, z = 0.0 }, level = 1 },
{ config_id = 247, gadget_id = 70220011, pos = { x = 255.2, y = 5.6, z = 278.2 }, rot = { x = 0.0, y = 89.6, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 85, 86, 88, 89, 90, 91, 92 },
gadgets = { 150, 152, 153, 162, 173, 174, 175, 176, 177, 178, 179, 180, 181, 187, 188, 189, 190, 192, 193, 198, 199, 200, 201, 202, 203, 204, 205, 206, 207, 213, 215, 216, 222, 235, 238, 239, 240, 244 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,90 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 169, gadget_id = 70900221, pos = { x = 415.5, y = 5.6, z = 282.6 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 170, gadget_id = 70900223, pos = { x = 422.9, y = 5.6, z = 282.8 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 182, gadget_id = 70350004, pos = { x = 415.7, y = 5.7, z = 270.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 183, gadget_id = 70350004, pos = { x = 431.7, y = 5.6, z = 277.6 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 211, gadget_id = 70220007, pos = { x = 419.0, y = 5.6, z = 281.8 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 78, shape = RegionShape.SPHERE, radius = 5, pos = { x = 417.3, y = 5.6, z = 279.6 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_78", event = EventType.EVENT_CLIENT_EXECUTE, source = "LaserSwitch_Hit", condition = "", action = "action_EVENT_CLIENT_EXECUTE_78" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 169, 170, 182, 183, 211 },
regions = { 78 },
triggers = { "CLIENT_EXECUTE_78" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_78(context, evt)
-- 将configid为 182 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 182, GadgetState.GearStop) then
return -1
end
-- 将configid为 183 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 183, GadgetState.GearStart) then
return -1
end
return 0
end

View File

@@ -0,0 +1,89 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 171, gadget_id = 70900223, pos = { x = 457.6, y = 5.6, z = 316.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 172, gadget_id = 70900221, pos = { x = 457.6, y = 5.6, z = 311.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 184, gadget_id = 70350004, pos = { x = 468.5, y = 5.7, z = 309.0 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1, state = GadgetState.GearStart },
{ config_id = 185, gadget_id = 70350004, pos = { x = 462.1, y = 5.7, z = 324.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 79, shape = RegionShape.SPHERE, radius = 5, pos = { x = 461.0, y = 5.6, z = 311.5 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_79", event = EventType.EVENT_CLIENT_EXECUTE, source = "LaserSwitch_Un_Hit", condition = "", action = "action_EVENT_CLIENT_EXECUTE_79" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 171, 172, 184, 185 },
regions = { 79 },
triggers = { "CLIENT_EXECUTE_79" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_79(context, evt)
-- 将configid为 185 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 185, GadgetState.GearStart) then
return -1
end
-- 将configid为 184 的物件更改为状态 GadgetState.GearStop
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 184, GadgetState.GearStop) then
return -1
end
return 0
end

View File

@@ -0,0 +1,95 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 191, gadget_id = 70900208, pos = { x = 786.9, y = 5.8, z = 380.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, drop_id = 1400301 },
{ config_id = 194, gadget_id = 70900208, pos = { x = 793.0, y = 5.8, z = 380.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, drop_id = 1400301 },
{ config_id = 195, gadget_id = 70900208, pos = { x = 799.3, y = 5.8, z = 380.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, drop_id = 1400301 },
{ config_id = 196, gadget_id = 70900208, pos = { x = 805.3, y = 5.8, z = 380.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, drop_id = 1400301 },
{ config_id = 197, gadget_id = 70900208, pos = { x = 810.9, y = 5.8, z = 379.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, drop_id = 1400301 },
{ config_id = 208, gadget_id = 70900206, pos = { x = 826.9, y = 5.9, z = 363.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 209, gadget_id = 70900207, pos = { x = 826.8, y = 7.6, z = 362.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 210, gadget_id = 70380003, pos = { x = 802.8, y = 3.9, z = 363.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 20000018, save_route = true, persistent = true }
}
-- 区域
regions = {
{ config_id = 80, shape = RegionShape.SPHERE, radius = 5, pos = { x = 826.7, y = 5.9, z = 362.9 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_80", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricPile", condition = "condition_EVENT_CLIENT_EXECUTE_80", action = "action_EVENT_CLIENT_EXECUTE_80", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 191, 194, 195, 196, 197, 208, 209, 210 },
regions = { 80 },
triggers = { "CLIENT_EXECUTE_80" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_CLIENT_EXECUTE_80(context, evt)
if 209 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_80(context, evt)
-- 将configid为 208 的物件更改为状态 GadgetState.GearAction1
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 208, GadgetState.GearAction1) then
return -1
end
return 0
end

View File

@@ -0,0 +1,71 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 248, gadget_id = 70320002, pos = { x = 312.6, y = 5.6, z = 283.7 }, rot = { x = 0.0, y = 270.2, z = 0.0 }, level = 1 },
{ config_id = 249, gadget_id = 70320002, pos = { x = 301.9, y = 5.6, z = 283.9 }, rot = { x = 0.0, y = 89.3, z = 0.0 }, level = 1 },
{ config_id = 250, gadget_id = 70320002, pos = { x = 314.9, y = 5.6, z = 283.6 }, rot = { x = 0.0, y = 99.7, z = 0.0 }, level = 1 },
{ config_id = 251, gadget_id = 70320002, pos = { x = 324.5, y = 5.6, z = 283.7 }, rot = { x = 0.0, y = 267.4, z = 0.0 }, level = 1 },
{ config_id = 252, gadget_id = 70900206, pos = { x = 314.6, y = 5.6, z = 287.7 }, rot = { x = 0.0, y = 18.3, z = 0.0 }, level = 1, state = GadgetState.GearAction1 }
}
-- 区域
regions = {
}
-- 触发器
triggers = {
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 248, 249, 250, 251 },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================

View File

@@ -0,0 +1,109 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 224, gadget_id = 70900206, pos = { x = 644.9, y = 5.8, z = 367.4 }, rot = { x = 0.0, y = 133.2, z = 0.0 }, level = 1, state = GadgetState.GearAction1 },
{ config_id = 225, gadget_id = 70900206, pos = { x = 654.2, y = 5.8, z = 345.8 }, rot = { x = 0.0, y = 133.2, z = 0.0 }, level = 1, state = GadgetState.GearAction2 },
{ config_id = 226, gadget_id = 70900206, pos = { x = 661.8, y = 5.8, z = 368.6 }, rot = { x = 0.0, y = 133.2, z = 0.0 }, level = 1, state = GadgetState.GearAction1 },
{ config_id = 227, gadget_id = 71000004, pos = { x = 635.0, y = 5.8, z = 358.1 }, rot = { x = 0.0, y = 267.3, z = 0.0 }, level = 1 },
{ config_id = 228, gadget_id = 71000004, pos = { x = 644.5, y = 5.8, z = 365.6 }, rot = { x = 0.0, y = 267.3, z = 0.0 }, level = 1 },
{ config_id = 229, gadget_id = 71000004, pos = { x = 652.6, y = 5.8, z = 347.1 }, rot = { x = 0.0, y = 267.3, z = 0.0 }, level = 1 },
{ config_id = 230, gadget_id = 71000004, pos = { x = 660.7, y = 5.8, z = 367.8 }, rot = { x = 0.0, y = 267.3, z = 0.0 }, level = 1 },
{ config_id = 237, gadget_id = 71000004, pos = { x = 652.7, y = 5.8, z = 357.1 }, rot = { x = 0.0, y = 267.3, z = 0.0 }, level = 1 },
{ config_id = 246, gadget_id = 71000004, pos = { x = 636.2, y = 5.8, z = 363.0 }, rot = { x = 0.0, y = 267.3, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 81, shape = RegionShape.SPHERE, radius = 5, pos = { x = 671.0, y = 5.9, z = 361.8 } }
}
-- 触发器
triggers = {
{ name = "ENTER_REGION_81", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_81", action = "action_EVENT_ENTER_REGION_81" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 224, 225, 226, 227, 228, 229, 230, 237, 246 },
regions = { 81 },
triggers = { "ENTER_REGION_81" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_81(context, evt)
if evt.param1 ~= 81 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_81(context, evt)
-- 将configid为 224 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 224, GadgetState.Default) then
return -1
end
-- 将configid为 225 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 225, GadgetState.Default) then
return -1
end
-- 将configid为 226 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 226, GadgetState.Default) then
return -1
end
return 0
end

View File

@@ -0,0 +1,92 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 241, gadget_id = 70350004, pos = { x = 746.9, y = 5.7, z = 361.0 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 243, gadget_id = 70900216, pos = { x = 777.4, y = 5.2, z = 370.2 }, rot = { x = 0.0, y = 299.2, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 82, shape = RegionShape.SPHERE, radius = 5, pos = { x = 743.3, y = 6.0, z = 360.4 } }
}
-- 触发器
triggers = {
{ name = "ENTER_REGION_82", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_82", action = "action_EVENT_ENTER_REGION_82" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 241 },
regions = { 82 },
triggers = { "ENTER_REGION_82" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_82(context, evt)
if evt.param1 ~= 82 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_82(context, evt)
-- 将configid为 241 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 241, GadgetState.GearStart) then
return -1
end
return 0
end

View File

@@ -0,0 +1,95 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 253, gadget_id = 70900207, pos = { x = 100.3, y = 0.5, z = 275.7 }, rot = { x = 0.0, y = 141.3, z = 0.0 }, level = 1 },
{ config_id = 254, gadget_id = 70900208, pos = { x = 99.1, y = 0.5, z = 273.5 }, rot = { x = 0.0, y = 81.9, z = 0.0 }, level = 1 },
{ config_id = 255, gadget_id = 70900208, pos = { x = 97.2, y = 0.5, z = 271.7 }, rot = { x = 0.0, y = 81.9, z = 0.0 }, level = 1 },
{ config_id = 256, gadget_id = 70900208, pos = { x = 95.0, y = 0.5, z = 269.9 }, rot = { x = 0.0, y = 45.5, z = 0.0 }, level = 1 },
{ config_id = 257, gadget_id = 70900208, pos = { x = 94.0, y = 0.5, z = 266.8 }, rot = { x = 0.0, y = 110.9, z = 0.0 }, level = 1 },
{ config_id = 258, gadget_id = 70900208, pos = { x = 93.5, y = 0.5, z = 263.2 }, rot = { x = 0.0, y = 278.3, z = 0.0 }, level = 1 },
{ config_id = 259, gadget_id = 70900208, pos = { x = 95.4, y = 0.5, z = 261.5 }, rot = { x = 0.0, y = 51.2, z = 0.0 }, level = 1 },
{ config_id = 260, gadget_id = 70900208, pos = { x = 77.6, y = 0.5, z = 285.8 }, rot = { x = 0.0, y = 81.9, z = 0.0 }, level = 1 },
{ config_id = 261, gadget_id = 70900208, pos = { x = 75.7, y = 0.5, z = 283.9 }, rot = { x = 0.0, y = 81.9, z = 0.0 }, level = 1 },
{ config_id = 262, gadget_id = 70900208, pos = { x = 73.5, y = 0.5, z = 282.2 }, rot = { x = 0.0, y = 45.5, z = 0.0 }, level = 1 },
{ config_id = 263, gadget_id = 70900208, pos = { x = 72.5, y = 0.5, z = 279.1 }, rot = { x = 0.0, y = 110.9, z = 0.0 }, level = 1 },
{ config_id = 264, gadget_id = 70900208, pos = { x = 72.0, y = 0.5, z = 275.5 }, rot = { x = 0.0, y = 278.3, z = 0.0 }, level = 1 },
{ config_id = 265, gadget_id = 70900208, pos = { x = 73.9, y = 0.5, z = 273.7 }, rot = { x = 0.0, y = 51.2, z = 0.0 }, level = 1 },
{ config_id = 266, gadget_id = 70900224, pos = { x = 74.9, y = 0.5, z = 270.9 }, rot = { x = 0.0, y = 269.6, z = 0.0 }, level = 1 },
{ config_id = 267, gadget_id = 70350004, pos = { x = 69.5, y = 0.8, z = 270.4 }, rot = { x = 0.0, y = 360.0, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 83, shape = RegionShape.SPHERE, radius = 5, pos = { x = 69.4, y = 1.0, z = 270.6 } }
}
-- 触发器
triggers = {
{ name = "CLIENT_EXECUTE_83", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricSwitch_Hit", condition = "", action = "action_EVENT_CLIENT_EXECUTE_83" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 253, 254, 255, 256, 257, 258, 259, 260, 261, 262, 263, 264, 265, 266, 267 },
regions = { 83 },
triggers = { "CLIENT_EXECUTE_83" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
-- 触发操作
function action_EVENT_CLIENT_EXECUTE_83(context, evt)
-- 将configid为 267 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 267, GadgetState.GearStart) then
return -1
end
return 0
end

View File

@@ -0,0 +1,63 @@
{
"radius": 10.0,
"points": {},
"areas": {},
"forces": {
"1": {
"$type": "ConfigAirflowField",
"pos": {
"x": 99.41113,
"y": 0.5,
"z": -41.8289642
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"gadgetId": 40200001,
"up": false,
"scale": 1.0,
"velocity": 5.0
}
},
"entities": {
"1": {
"$type": "ConfigLocalTrigger",
"gadgetId": 70010006,
"pos": {
"x": 90.9741058,
"y": -4.43560648,
"z": -111.232925
},
"rot": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"areaId": 0,
"unlocked": true,
"checkDist": 500.0,
"withGO": true,
"triggerFlag": "DeadRegion",
"shape": {
"$type": "ConfigShapeRect",
"useHeight": true,
"height": 8.32,
"centerType": "Center",
"width": 32.56,
"length": 1.51
},
"checkCount": 0,
"vectorParam": {
"x": 0.0,
"y": 0.0,
"z": 0.0
},
"floatParam": 0.0
}
},
"doors": {}
}

View File

@@ -0,0 +1,849 @@
[
{
"groupId": 220000001,
"configID": 1,
"position": {
"x": 61.064003,
"y": 0.5,
"z": -28.1493263
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000001,
"configID": 3,
"position": {
"x": 60.7680855,
"y": 0.5,
"z": -30.5882568
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000001,
"configID": 4,
"position": {
"x": 57.59006,
"y": 0.5,
"z": -28.3125229
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000001,
"configID": 5,
"position": {
"x": 58.9597168,
"y": 0.5,
"z": -29.813673
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000002,
"configID": 6,
"position": {
"x": 58.3309555,
"y": 0.5,
"z": -53.5327339
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000002,
"configID": 7,
"position": {
"x": 58.32727,
"y": 0.5,
"z": -53.4502869
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000002,
"configID": 8,
"position": {
"x": 23.00528,
"y": 0.5,
"z": -54.7981339
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000002,
"configID": 9,
"position": {
"x": 23.13101,
"y": 0.5,
"z": -54.79371
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000001,
"configID": 10,
"position": {
"x": 58.247036,
"y": 0.5,
"z": -39.9296532
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000001,
"configID": 11,
"position": {
"x": 18.5849266,
"y": 0.5,
"z": -41.4110947
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000002,
"configID": 12,
"position": {
"x": 21.5523853,
"y": 0.399999619,
"z": 0.159124374
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000004,
"configID": 13,
"position": {
"x": -39.4163,
"y": 0.449998826,
"z": -37.393158
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000004,
"configID": 14,
"position": {
"x": -41.9817848,
"y": 0.449996918,
"z": -37.3536758
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000004,
"configID": 15,
"position": {
"x": -38.7244949,
"y": 0.449996918,
"z": -33.8559837
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000005,
"configID": 16,
"position": {
"x": 81.2200546,
"y": 0.5,
"z": -45.20286
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000005,
"configID": 17,
"position": {
"x": 78.6430359,
"y": 0.5,
"z": -33.45944
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000005,
"configID": 18,
"position": {
"x": 66.6545639,
"y": 0.5,
"z": -41.81715
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000005,
"configID": 19,
"position": {
"x": 72.82925,
"y": 0.5,
"z": -49.1760025
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000005,
"configID": 20,
"position": {
"x": 75.50213,
"y": 0.5,
"z": -32.2542725
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000005,
"configID": 21,
"position": {
"x": 65.64414,
"y": 0.5,
"z": -41.46639
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000005,
"configID": 22,
"position": {
"x": 84.2689362,
"y": 0.5,
"z": -49.922554
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000005,
"configID": 23,
"position": {
"x": 85.1852646,
"y": 0.5,
"z": -45.915
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000005,
"configID": 24,
"position": {
"x": 89.22012,
"y": 0.5,
"z": -29.7313175
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000007,
"configID": 25,
"position": {
"x": 68.17566,
"y": 0.5,
"z": -82.64627
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000008,
"configID": 26,
"position": {
"x": 13.4148483,
"y": 0.5,
"z": -83.76994
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000008,
"configID": 27,
"position": {
"x": 23.9745541,
"y": 0.5,
"z": -69.1068
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000003,
"configID": 28,
"position": {
"x": -15.1788578,
"y": 1.01010132,
"z": -18.82701
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000003,
"configID": 29,
"position": {
"x": -15.0252943,
"y": 0.5,
"z": -4.791464
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000003,
"configID": 30,
"position": {
"x": -15.6631174,
"y": 0.5,
"z": -28.39352
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000003,
"configID": 31,
"position": {
"x": -16.0080833,
"y": 0.5,
"z": -3.01405787
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000009,
"configID": 32,
"position": {
"x": 1.37490749,
"y": 0.5,
"z": -97.2204
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000009,
"configID": 33,
"position": {
"x": -13.4323206,
"y": 0.35,
"z": -80.7559738
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000009,
"configID": 34,
"position": {
"x": -12.3768387,
"y": 0.5,
"z": -45.7364655
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000010,
"configID": 35,
"position": {
"x": 36.5219421,
"y": 4.598982,
"z": -30.6035252
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000010,
"configID": 36,
"position": {
"x": 36.78087,
"y": 5.905988,
"z": -30.5545864
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000010,
"configID": 38,
"position": {
"x": 29.7869015,
"y": 0.5,
"z": -41.7543526
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000010,
"configID": 39,
"position": {
"x": 29.5541611,
"y": 0.5,
"z": -41.3396225
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000011,
"configID": 40,
"position": {
"x": 5.70984268,
"y": 0.5,
"z": -41.8662262
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000011,
"configID": 41,
"position": {
"x": 5.93929243,
"y": 0.5,
"z": -42.04083
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000011,
"configID": 42,
"position": {
"x": 4.34412,
"y": 0.5,
"z": -39.9482727
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000011,
"configID": 43,
"position": {
"x": 3.17572021,
"y": 0.5,
"z": -43.2096252
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000011,
"configID": 44,
"position": {
"x": 3.958004,
"y": 0.5,
"z": -44.8037071
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000011,
"configID": 45,
"position": {
"x": 2.02333069,
"y": 0.5,
"z": -35.8899345
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000011,
"configID": 46,
"position": {
"x": 1.85778236,
"y": 0.5,
"z": -41.8430672
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000010,
"configID": 47,
"position": {
"x": 51.7949638,
"y": 0.5,
"z": -32.7613525
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000026,
"configID": 48,
"position": {
"x": 67.11086,
"y": 1.660624,
"z": 119.258255
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000030,
"configID": 49,
"position": {
"x": 19.3141518,
"y": 0.50000006,
"z": 51.4829941
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000031,
"configID": 50,
"position": {
"x": 15.2139359,
"y": 0.5,
"z": 191.789764
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000034,
"configID": 53,
"position": {
"x": 89.07856,
"y": 0.49999997,
"z": -11.004488
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000034,
"configID": 54,
"position": {
"x": 96.6111755,
"y": 0.50000006,
"z": 14.00849
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000034,
"configID": 55,
"position": {
"x": 75.84141,
"y": 2.0488205,
"z": 32.9570465
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000036,
"configID": 56,
"position": {
"x": 142.821411,
"y": 1.13284457,
"z": -2.76973176
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000036,
"configID": 57,
"position": {
"x": 142.027969,
"y": 1.13284445,
"z": -1.81979072
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000037,
"configID": 58,
"position": {
"x": 142.684647,
"y": 1.13284445,
"z": -2.42410851
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000037,
"configID": 59,
"position": {
"x": 142.822113,
"y": 1.13284457,
"z": -3.76874828
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000037,
"configID": 60,
"position": {
"x": 141.778366,
"y": 1.13284445,
"z": -1.59668255
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000037,
"configID": 63,
"position": {
"x": 141.482422,
"y": 1.13284457,
"z": -4.330171
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000037,
"configID": 64,
"position": {
"x": 141.042877,
"y": 1.13284445,
"z": -1.72002935
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000037,
"configID": 65,
"position": {
"x": 140.479019,
"y": 1.13284421,
"z": -0.6789878
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000037,
"configID": 66,
"position": {
"x": 133.988785,
"y": 1.13284445,
"z": 1.215878
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000037,
"configID": 67,
"position": {
"x": 135.971924,
"y": 1.13284445,
"z": -0.958610654
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000037,
"configID": 68,
"position": {
"x": 136.387878,
"y": 1.13284445,
"z": 0.9551661
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000005,
"configID": 69,
"position": {
"x": 87.16796,
"y": 0.499998033,
"z": -62.2780075
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000019,
"configID": 70,
"position": {
"x": 182.714111,
"y": 0.6407645,
"z": 47.3153038
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000019,
"configID": 71,
"position": {
"x": 177.329712,
"y": 0.6407645,
"z": 44.0852776
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000019,
"configID": 72,
"position": {
"x": 173.920578,
"y": 0.640764236,
"z": 44.9880028
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000019,
"configID": 73,
"position": {
"x": 177.85614,
"y": 0.6407645,
"z": 51.4060478
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000019,
"configID": 74,
"position": {
"x": 182.8536,
"y": 0.6407645,
"z": 38.58835
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000041,
"configID": 75,
"position": {
"x": 169.20401,
"y": 0.640764,
"z": 47.7641869
},
"tlog_tag": "",
"comment": ""
},
{
"groupId": 220000042,
"configID": 76,
"position": {
"x": 111.345772,
"y": 1.27105236,
"z": 52.0872231
},
"tlog_tag": "",
"comment": "镭射机关测试1"
},
{
"groupId": 220000043,
"configID": 77,
"position": {
"x": 111.277695,
"y": 1.27105236,
"z": 36.217495
},
"tlog_tag": "",
"comment": "镭射机关测试2"
},
{
"groupId": 220000045,
"configID": 78,
"position": {
"x": 417.285583,
"y": 5.57284451,
"z": 279.616974
},
"tlog_tag": "",
"comment": "岩技能-镭射开门1"
},
{
"groupId": 220000046,
"configID": 79,
"position": {
"x": 460.95166,
"y": 5.57284641,
"z": 311.476044
},
"tlog_tag": "",
"comment": "岩技能-镭射开门2"
},
{
"groupId": 220000047,
"configID": 80,
"position": {
"x": 826.6899,
"y": 5.90144348,
"z": 362.90506
},
"tlog_tag": "",
"comment": "岩技能-电桩激活出风开关"
},
{
"groupId": 220000049,
"configID": 81,
"position": {
"x": 671.0105,
"y": 5.914489,
"z": 361.759827
},
"tlog_tag": "",
"comment": "岩技能-关闭风场"
},
{
"groupId": 220000050,
"configID": 82,
"position": {
"x": 743.332153,
"y": 6.006822,
"z": 360.4391
},
"tlog_tag": "",
"comment": "岩技能-打开遗迹守卫大门"
},
{
"groupId": 220000051,
"configID": 83,
"position": {
"x": 69.37216,
"y": 1.01635933,
"z": 270.630157
},
"tlog_tag": "",
"comment": "电桩开关-开门"
}
]