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

View File

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

View File

@@ -0,0 +1,9 @@
-- 所有的group
groups = {
{ id = 220011001, refresh_time = 0, pos = { x = 482.5, y = -21.6, z = 67.9 } },
{ id = 220011002, refresh_time = 0, pos = { x = 404.6, y = -22.1, z = 123.6 } },
{ id = 220011003, refresh_time = 0, pos = { x = 487.4, y = -21.6, z = 120.4 } },
{ id = 220011004, refresh_time = 0, pos = { x = 532.9, y = -2.0, z = 242.4 } },
{ id = 220011006, refresh_time = 0, pos = { x = 411.6, y = -22.1, z = 67.1 } },
{ id = 220011901, refresh_time = 0, pos = { x = 514.9, y = -37.4, z = 73.0 } }
}

View File

@@ -0,0 +1,8 @@
dummy_points = {
["Q308LisaDungeon"] = { pos = { x = 550.1, y = -38.2, z = 62.0 }, rot = { x = 0.0, y = 179.5, z = 0.0 } },
["Q308SavePointIntro"] = { pos = { x = 474.5, y = -20.0, z = 72.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 } },
["Q308LisaWay"] = { pos = { x = 550.1, y = -38.2, z = 62.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 } },
["Q308Player"] = { pos = { x = 533.2, y = -2.0, z = 251.8 }, rot = { x = 0.0, y = 73.7, z = 0.0 } },
["Q308Lisa"] = { pos = { x = 535.2, y = -2.0, z = 252.6 }, rot = { x = 0.0, y = 241.2, z = 0.0 } },
["Q308Paimon"] = { pos = { x = 533.8, y = -2.0, z = 250.7 }, rot = { x = 0.0, y = 31.3, z = 0.0 } }
}

View File

@@ -0,0 +1,634 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 8, monster_id = 20011201, pos = { x = 448.7, y = -24.4, z = 68.4 }, rot = { x = 0.0, y = 92.3, z = 0.0 }, level = 1, drop_id = 1100309 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 1, gadget_id = 70210011, pos = { x = 507.4, y = -37.2, z = 83.8 }, rot = { x = 0.0, y = 182.3, z = 0.0 }, level = 1, chest_drop_id = 1100301, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
{ config_id = 3, gadget_id = 70350002, pos = { x = 469.6, y = -20.4, z = 67.5 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 5, gadget_id = 70360002, pos = { x = 475.5, y = -20.0, z = 63.9 }, rot = { x = 0.0, y = 90.1, z = 0.0 }, level = 1 },
{ config_id = 6, gadget_id = 70210011, pos = { x = 428.4, y = -22.1, z = 53.6 }, rot = { x = 0.0, y = 321.6, z = 0.0 }, level = 1, chest_drop_id = 1100301, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
{ config_id = 10, gadget_id = 70350002, pos = { x = 406.4, y = -22.2, z = 81.4 }, rot = { x = 0.0, y = 180.2, z = 0.0 }, level = 1 },
{ config_id = 23, gadget_id = 70350002, pos = { x = 423.5, y = -22.1, z = 71.1 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 25, gadget_id = 70220013, pos = { x = 490.5, y = -20.1, z = 78.2 }, rot = { x = 0.0, y = 41.5, z = 0.0 }, level = 1 },
{ config_id = 26, gadget_id = 70220013, pos = { x = 491.5, y = -20.3, z = 75.8 }, rot = { x = 0.0, y = 272.6, z = 0.0 }, level = 1 },
{ config_id = 27, gadget_id = 70210011, pos = { x = 495.1, y = -20.0, z = 77.0 }, rot = { x = 0.0, y = 75.6, z = 0.0 }, level = 1, chest_drop_id = 1100301, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
{ config_id = 28, gadget_id = 70220014, pos = { x = 489.4, y = -20.3, z = 79.6 }, rot = { x = 0.0, y = 283.9, z = 0.0 }, level = 1 },
{ config_id = 31, gadget_id = 70220013, pos = { x = 502.9, y = -37.3, z = 81.8 }, rot = { x = 0.0, y = 351.4, z = 0.0 }, level = 1 },
{ config_id = 32, gadget_id = 70220013, pos = { x = 505.4, y = -37.5, z = 82.0 }, rot = { x = 0.0, y = 314.5, z = 0.0 }, level = 1 },
{ config_id = 33, gadget_id = 70220013, pos = { x = 504.5, y = -37.7, z = 80.1 }, rot = { x = 0.0, y = 290.5, z = 0.0 }, level = 1 },
{ config_id = 39, gadget_id = 70310002, pos = { x = 494.2, y = -27.0, z = 70.9 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 40, gadget_id = 70310002, pos = { x = 494.4, y = -26.8, z = 64.1 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 41, gadget_id = 70310002, pos = { x = 495.3, y = -16.2, z = 72.0 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1 },
{ config_id = 42, gadget_id = 70310002, pos = { x = 495.0, y = -16.4, z = 63.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 43, gadget_id = 70310002, pos = { x = 450.2, y = -19.6, z = 64.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 44, gadget_id = 70310001, pos = { x = 425.9, y = -22.3, z = 65.5 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 45, gadget_id = 70310001, pos = { x = 426.0, y = -22.2, z = 76.8 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 46, gadget_id = 70310001, pos = { x = 400.7, y = -20.1, z = 78.9 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1 },
{ config_id = 47, gadget_id = 70310001, pos = { x = 411.8, y = -20.1, z = 78.9 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1 },
{ config_id = 54, gadget_id = 70310002, pos = { x = 472.1, y = -15.7, z = 61.6 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 55, gadget_id = 70310002, pos = { x = 472.1, y = -15.6, z = 73.3 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 61, gadget_id = 70310002, pos = { x = 501.0, y = -31.4, z = 84.4 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 62, gadget_id = 70310001, pos = { x = 420.8, y = -22.1, z = 58.1 }, rot = { x = 0.0, y = 99.0, z = 0.0 }, level = 1 },
{ config_id = 67, gadget_id = 70310001, pos = { x = 544.6, y = -42.1, z = 46.2 }, rot = { x = 0.0, y = 223.2, z = 0.0 }, level = 1 },
{ config_id = 68, gadget_id = 70310001, pos = { x = 555.3, y = -42.0, z = 46.2 }, rot = { x = 0.0, y = 183.0, z = 0.0 }, level = 1 },
{ config_id = 71, gadget_id = 70310001, pos = { x = 544.7, y = -43.4, z = 40.2 }, rot = { x = 0.0, y = 64.0, z = 0.0 }, level = 1 },
{ config_id = 72, gadget_id = 70310001, pos = { x = 555.5, y = -43.4, z = 40.6 }, rot = { x = 0.0, y = 83.2, z = 0.0 }, level = 1 },
{ config_id = 73, gadget_id = 70310001, pos = { x = 555.6, y = -40.5, z = 51.3 }, rot = { x = 0.0, y = 76.8, z = 0.0 }, level = 1 },
{ config_id = 74, gadget_id = 70310001, pos = { x = 544.6, y = -40.6, z = 51.1 }, rot = { x = 0.0, y = 266.0, z = 0.0 }, level = 1 },
{ config_id = 75, gadget_id = 70310001, pos = { x = 555.4, y = -39.3, z = 55.2 }, rot = { x = 0.0, y = 209.6, z = 0.0 }, level = 1 },
{ config_id = 76, gadget_id = 70310001, pos = { x = 544.8, y = -39.3, z = 55.3 }, rot = { x = 0.0, y = 97.2, z = 0.0 }, level = 1 },
{ config_id = 77, gadget_id = 70310001, pos = { x = 555.3, y = -38.2, z = 71.1 }, rot = { x = 0.0, y = 348.4, z = 0.0 }, level = 1 },
{ config_id = 78, gadget_id = 70310001, pos = { x = 545.1, y = -38.1, z = 71.2 }, rot = { x = 0.0, y = 239.0, z = 0.0 }, level = 1 },
{ config_id = 79, gadget_id = 70310001, pos = { x = 555.4, y = -38.2, z = 81.8 }, rot = { x = 0.0, y = 21.3, z = 0.0 }, level = 1 },
{ config_id = 80, gadget_id = 70310001, pos = { x = 545.1, y = -38.2, z = 81.5 }, rot = { x = 0.0, y = 100.8, z = 0.0 }, level = 1 },
{ config_id = 87, gadget_id = 70900202, pos = { x = 532.3, y = 2.3, z = 219.9 }, rot = { x = 0.0, y = 331.6, z = 0.0 }, level = 1 },
{ config_id = 88, gadget_id = 70900202, pos = { x = 496.3, y = -34.5, z = 67.7 }, rot = { x = 0.0, y = 275.0, z = 0.0 }, level = 1 },
{ config_id = 89, gadget_id = 70900202, pos = { x = 475.4, y = -18.5, z = 63.9 }, rot = { x = 0.0, y = 162.9, z = 0.0 }, level = 1 },
{ config_id = 90, gadget_id = 70900205, pos = { x = 402.2, y = -22.1, z = 54.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 91, gadget_id = 70900205, pos = { x = 398.6, y = -22.1, z = 54.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 92, gadget_id = 70900205, pos = { x = 402.1, y = -22.1, z = 51.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 93, gadget_id = 70900205, pos = { x = 398.3, y = -22.1, z = 50.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 135, gadget_id = 70900008, pos = { x = 410.5, y = -22.1, z = 63.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 136, gadget_id = 70210022, pos = { x = 400.1, y = -22.1, z = 65.4 }, rot = { x = 0.0, y = 91.0, z = 0.0 }, level = 1, chest_drop_id = 1100302, state = GadgetState.ChestLocked, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
{ config_id = 142, gadget_id = 70900201, pos = { x = 533.9, y = -2.0, z = 248.0 }, rot = { x = 0.0, y = 120.1, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 1, shape = RegionShape.SPHERE, radius = 5, pos = { x = 481.4, y = -21.4, z = 69.3 } },
{ config_id = 4, shape = RegionShape.SPHERE, radius = 5, pos = { x = 480.0, y = -21.6, z = 67.3 } },
{ config_id = 7, shape = RegionShape.SPHERE, radius = 5, pos = { x = 447.7, y = -22.1, z = 69.3 } },
{ config_id = 13, shape = RegionShape.SPHERE, radius = 9, pos = { x = 550.0, y = -38.1, z = 75.8 } },
{ config_id = 14, shape = RegionShape.CUBIC, size = { x = 15.0, y = 10.0, z = 25.0 }, pos = { x = 512.0, y = -35.2, z = 75.1 } },
{ config_id = 15, shape = RegionShape.CUBIC, size = { x = 10.0, y = 3.0, z = 8.0 }, pos = { x = 429.5, y = -21.6, z = 78.9 } },
{ config_id = 16, shape = RegionShape.CUBIC, size = { x = 6.0, y = 5.0, z = 12.0 }, pos = { x = 459.7, y = -22.6, z = 69.2 } },
{ config_id = 17, shape = RegionShape.CUBIC, size = { x = 6.0, y = 8.0, z = 5.0 }, pos = { x = 430.5, y = -22.1, z = 62.7 } },
{ config_id = 28, shape = RegionShape.SPHERE, radius = 5, pos = { x = 449.0, y = -21.6, z = 69.1 } },
{ config_id = 36, shape = RegionShape.CUBIC, size = { x = 8.0, y = 5.0, z = 8.0 }, pos = { x = 496.6, y = -27.5, z = 67.7 } },
{ config_id = 37, shape = RegionShape.CUBIC, size = { x = 6.0, y = 3.0, z = 9.0 }, pos = { x = 497.0, y = -16.9, z = 67.7 } },
{ config_id = 39, shape = RegionShape.SPHERE, radius = 5, pos = { x = 502.2, y = -37.3, z = 85.4 } },
{ config_id = 44, shape = RegionShape.CUBIC, size = { x = 15.0, y = 3.0, z = 3.0 }, pos = { x = 550.0, y = -42.2, z = 43.2 } },
{ config_id = 45, shape = RegionShape.CUBIC, size = { x = 15.0, y = 5.0, z = 3.0 }, pos = { x = 549.7, y = -41.1, z = 48.1 } },
{ config_id = 46, shape = RegionShape.SPHERE, radius = 5, pos = { x = 549.9, y = -38.2, z = 62.5 } },
{ config_id = 60, shape = RegionShape.SPHERE, radius = 5, pos = { x = 411.7, y = -22.1, z = 63.8 } },
{ config_id = 64, shape = RegionShape.SPHERE, radius = 5, pos = { x = 414.1, y = -22.1, z = 66.5 } }
}
-- 触发器
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_4", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_4", action = "action_EVENT_SELECT_OPTION_4" },
{ name = "ANY_MONSTER_DIE_7", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_7", action = "action_EVENT_ANY_MONSTER_DIE_7" },
{ name = "ENTER_REGION_13", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_13", action = "action_EVENT_ENTER_REGION_13" },
{ name = "ENTER_REGION_14", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_14", action = "action_EVENT_ENTER_REGION_14" },
{ name = "ENTER_REGION_15", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_15", action = "action_EVENT_ENTER_REGION_15" },
{ name = "ENTER_REGION_16", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_16", action = "action_EVENT_ENTER_REGION_16" },
{ name = "ENTER_REGION_17", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_17", action = "action_EVENT_ENTER_REGION_17" },
{ name = "SELECT_OPTION_28", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_28", action = "action_EVENT_SELECT_OPTION_28" },
{ name = "ENTER_REGION_36", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_36", action = "action_EVENT_ENTER_REGION_36" },
{ name = "ENTER_REGION_37", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_37", action = "action_EVENT_ENTER_REGION_37" },
{ name = "GADGET_CREATE_39", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_39", action = "action_EVENT_GADGET_CREATE_39" },
{ name = "ENTER_REGION_44", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_44", action = "action_EVENT_ENTER_REGION_44" },
{ name = "ENTER_REGION_45", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_45", action = "action_EVENT_ENTER_REGION_45" },
{ name = "ENTER_REGION_46", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_46", action = "action_EVENT_ENTER_REGION_46" },
{ name = "GADGET_STATE_CHANGE_60", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_60", action = "action_EVENT_GADGET_STATE_CHANGE_60", trigger_count = 0 },
{ name = "TIMER_EVENT_64", event = EventType.EVENT_TIMER_EVENT, source = "begin", condition = "", action = "action_EVENT_TIMER_EVENT_64", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { 8 },
gadgets = { 1, 3, 5, 6, 10, 23, 25, 26, 27, 28, 31, 32, 33, 39, 40, 41, 42, 43, 44, 45, 46, 47, 54, 55, 61, 62, 67, 68, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 90, 91, 92, 93, 135, 136 },
regions = { 1, 4, 7, 13, 14, 15, 16, 17, 28, 36, 37, 39, 44, 45, 46, 60, 64 },
triggers = { "GADGET_CREATE_1", "SELECT_OPTION_4", "ANY_MONSTER_DIE_7", "ENTER_REGION_13", "ENTER_REGION_14", "ENTER_REGION_15", "ENTER_REGION_16", "ENTER_REGION_17", "SELECT_OPTION_28", "ENTER_REGION_36", "ENTER_REGION_37", "GADGET_CREATE_39", "ENTER_REGION_44", "ENTER_REGION_45", "ENTER_REGION_46", "GADGET_STATE_CHANGE_60", "TIMER_EVENT_64" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_GADGET_CREATE_1(context, evt)
-- 判断是gadgetid 5
if 5 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_1(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {1}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_4(context, evt)
-- 判断是gadgetid 5
if 5 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_4(context, evt)
-- 将configid为 3 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 3, GadgetState.GearStart) then
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220011001, monsters = {}, gadgets = {89} }) then
return -1
end
-- 将configid为 5 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_7(context, evt)
--判断死亡怪物的configid是否为 8
if evt.param1 ~= 8 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_7(context, evt)
-- 将configid为 23 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 23, GadgetState.GearStart) then
return -1
end
-- 将configid为 44 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 44, GadgetState.GearStart) then
return -1
end
-- 将configid为 45 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 45, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_13(context, evt)
if evt.param1 ~= 13 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_13(context, evt)
-- 触发镜头注目注目位置为坐标550-3583持续时间为3秒并且为强制注目形式不广播其他玩家
local pos = {x=550, y=-35, z=83}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 3, is_force = true, is_broadcast = false }) then
return -1
end
-- 调用提示id为 1041001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041001) then
return -1
end
-- 创生gadget 88
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 88 }) then
return -1
end
-- 创生gadget 142
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 142 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_14(context, evt)
if evt.param1 ~= 14 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_14(context, evt)
-- 调用提示id为 1041011 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041011) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_15(context, evt)
if evt.param1 ~= 15 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_15(context, evt)
-- 调用提示id为 1041021 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041021) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_16(context, evt)
if evt.param1 ~= 16 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_16(context, evt)
-- 调用提示id为 1041041 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041041) then
return -1
end
-- 将configid为 43 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 43, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_17(context, evt)
if evt.param1 ~= 17 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_17(context, evt)
-- 调用提示id为 1041031 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041031) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_28(context, evt)
-- 判断是gadgetid 5
if 5 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_28(context, evt)
-- 根据不同的选项做不同的操作
if 1 == evt.param2 then
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 5, GadgetState.GearStart) then
return -1
end
return 0
end
-- 删除指定group 220011001 指定config5物件身上指定option1
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220011001, 5, 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_36(context, evt)
if evt.param1 ~= 36 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_36(context, evt)
-- 将configid为 39 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 39, GadgetState.GearStart) then
return -1
end
-- 将configid为 40 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 40, GadgetState.GearStart) then
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220011001, monsters = {}, gadgets = {88,142} }) then
return -1
end
-- 创生gadget 89
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 89 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_37(context, evt)
if evt.param1 ~= 37 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_37(context, evt)
-- 将configid为 41 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 41, GadgetState.GearStart) then
return -1
end
-- 将configid为 42 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 42, GadgetState.GearStart) then
return -1
end
-- 将configid为 54 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 54, GadgetState.GearStart) then
return -1
end
-- 将configid为 55 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 55, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_39(context, evt)
if 61 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_39(context, evt)
-- 将configid为 61 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 61, GadgetState.GearStart) then
return -1
end
-- 将configid为 62 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 62, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_44(context, evt)
if evt.param1 ~= 44 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_44(context, evt)
-- 将configid为 67 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 67, GadgetState.GearStart) then
return -1
end
-- 将configid为 68 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 68, GadgetState.GearStart) then
return -1
end
-- 将configid为 71 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 71, GadgetState.GearStart) then
return -1
end
-- 将configid为 72 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 72, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_45(context, evt)
if evt.param1 ~= 45 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_45(context, evt)
-- 将configid为 73 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 73, GadgetState.GearStart) then
return -1
end
-- 将configid为 74 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 74, GadgetState.GearStart) then
return -1
end
-- 将configid为 75 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 75, GadgetState.GearStart) then
return -1
end
-- 将configid为 76 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 76, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_46(context, evt)
if evt.param1 ~= 46 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_46(context, evt)
-- 将configid为 77 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 77, GadgetState.GearStart) then
return -1
end
-- 将configid为 78 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 78, GadgetState.GearStart) then
return -1
end
-- 将configid为 79 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 79, GadgetState.GearStart) then
return -1
end
-- 将configid为 80 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 80, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_STATE_CHANGE_60(context, evt)
if GadgetState.GearStart ~= evt.param1 or 135 ~= evt.param2 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_STATE_CHANGE_60(context, evt)
-- 通知任务系统完成条件类型"LUA通知"复杂参数为quest_param的进度+1
if 0 ~= ScriptLib.AddQuestProgress(context, "LisaOne") then
return -1
end
-- 延迟3秒后,向groupId为220011001的对象,请求一次调用,并将string参数"begin" 传递过去
if 0 ~= ScriptLib.CreateGroupTimerEvent(context, 220011001, "begin", 3) then
return -1
end
return 0
end
-- 触发条件
-- 触发操作
function action_EVENT_TIMER_EVENT_64(context, evt)
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220011006, suite = 1 }) then
return -1
end
return 0
end

View File

@@ -0,0 +1,204 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 10, monster_id = 21010401, pos = { x = 403.5, y = -23.9, z = 127.1 }, rot = { x = 0.0, y = 182.0, z = 0.0 }, level = 1, drop_id = 1100309, disableWander = true, pose_id = 402 },
{ config_id = 11, monster_id = 21010401, pos = { x = 408.9, y = -24.2, z = 125.2 }, rot = { x = 0.0, y = 206.8, z = 0.0 }, level = 1, drop_id = 1100309, disableWander = true, pose_id = 402 },
{ config_id = 12, monster_id = 21010401, pos = { x = 397.4, y = -24.1, z = 125.9 }, rot = { x = 0.0, y = 159.6, z = 0.0 }, level = 1, drop_id = 1100309, disableWander = true, pose_id = 402 },
{ config_id = 27, monster_id = 21010201, pos = { x = 400.3, y = -24.5, z = 130.9 }, rot = { x = 0.0, y = 181.9, z = 0.0 }, level = 0, drop_id = 1100309 }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 12, gadget_id = 70350002, pos = { x = 416.0, y = -24.2, z = 120.7 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 13, gadget_id = 70210022, pos = { x = 403.4, y = -24.2, z = 122.3 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1, chest_drop_id = 1100302, state = GadgetState.ChestLocked, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
{ config_id = 34, gadget_id = 70220005, pos = { x = 399.8, y = -23.6, z = 140.6 }, rot = { x = 0.0, y = 212.0, z = 0.0 }, level = 1 },
{ config_id = 35, gadget_id = 70220014, pos = { x = 401.4, y = -23.7, z = 141.3 }, rot = { x = 0.0, y = 206.7, z = 0.0 }, level = 1 },
{ config_id = 36, gadget_id = 70220013, pos = { x = 404.1, y = -23.6, z = 141.2 }, rot = { x = 0.0, y = 199.7, z = 0.0 }, level = 1 },
{ config_id = 37, gadget_id = 70220013, pos = { x = 402.7, y = -23.7, z = 143.0 }, rot = { x = 0.0, y = 205.4, z = 0.0 }, level = 1 },
{ config_id = 38, gadget_id = 70220013, pos = { x = 399.9, y = -23.6, z = 142.4 }, rot = { x = 0.0, y = 92.7, z = 0.0 }, level = 1 },
{ config_id = 48, gadget_id = 70310001, pos = { x = 414.0, y = -22.2, z = 126.6 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 49, gadget_id = 70310001, pos = { x = 413.8, y = -22.2, z = 114.9 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 94, gadget_id = 70900202, pos = { x = 422.9, y = -22.8, z = 120.9 }, rot = { x = 0.0, y = 215.6, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 9, shape = RegionShape.SPHERE, radius = 5, pos = { x = 403.3, y = -23.9, z = 122.3 } },
{ config_id = 32, shape = RegionShape.SPHERE, radius = 5, pos = { x = 400.5, y = -24.1, z = 121.5 } },
{ config_id = 33, shape = RegionShape.CUBIC, size = { x = 5.0, y = 3.0, z = 10.0 }, pos = { x = 418.5, y = -24.1, z = 121.1 } },
{ config_id = 62, shape = RegionShape.CUBIC, size = { x = 10.0, y = 3.0, z = 10.0 }, pos = { x = 418.1, y = -22.5, z = 71.3 } }
}
-- 触发器
triggers = {
{ name = "ANY_MONSTER_DIE_9", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_9", action = "action_EVENT_ANY_MONSTER_DIE_9" },
{ name = "ANY_MONSTER_DIE_32", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_32", action = "action_EVENT_ANY_MONSTER_DIE_32" },
{ name = "ENTER_REGION_33", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_33", action = "action_EVENT_ENTER_REGION_33" },
{ name = "ENTER_REGION_62", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_62", action = "action_EVENT_ENTER_REGION_62" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { 10, 11, 12, 27 },
gadgets = { 12, 13, 34, 35, 36, 37, 38, 48, 49 },
regions = { 9, 32, 33, 62 },
triggers = { "ANY_MONSTER_DIE_9", "ANY_MONSTER_DIE_32", "ENTER_REGION_33", "ENTER_REGION_62" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_9(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_9(context, evt)
-- 将configid为 12 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 12, GadgetState.GearStart) then
return -1
end
-- 将configid为 48 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 48, GadgetState.GearStart) then
return -1
end
-- 将configid为 49 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 49, GadgetState.GearStart) then
return -1
end
-- 创生gadget 94
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 94 }) then
return -1
end
-- 调用提示id为 1041042 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041042) then
return -1
end
-- 触发镜头注目注目位置为坐标415-19121持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=415, y=-19, z=121}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_32(context, evt)
-- 判断剩余怪物数量是否是0
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_32(context, evt)
-- 将configid为 13 的物件更改为状态 GadgetState.Default
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 13, GadgetState.Default) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_33(context, evt)
if evt.param1 ~= 33 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_33(context, evt)
-- 调用提示id为 1041072 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041072) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_62(context, evt)
if evt.param1 ~= 62 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_62(context, evt)
-- 触发镜头注目注目位置为坐标410-2263持续时间为1秒并且为强制注目形式不广播其他玩家
local pos = {x=410, y=-22, z=63}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 1, is_force = true, is_broadcast = false }) then
return -1
end
-- 调用提示id为 1041093 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041093) then
return -1
end
return 0
end

View File

@@ -0,0 +1,483 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 16, monster_id = 21010401, pos = { x = 489.0, y = -24.1, z = 127.0 }, rot = { x = 0.0, y = 240.0, z = 0.0 }, level = 1, drop_id = 1100309, pose_id = 402 },
{ config_id = 17, monster_id = 21010401, pos = { x = 488.5, y = -23.4, z = 116.2 }, rot = { x = 0.0, y = 305.5, z = 0.0 }, level = 1, drop_id = 1100309, pose_id = 402 },
{ config_id = 18, monster_id = 20011101, pos = { x = 486.6, y = -23.6, z = 120.9 }, rot = { x = 0.0, y = 269.3, z = 0.0 }, level = 1, drop_id = 1100309, disableWander = true, affix = { 1002 }, isElite = true },
{ config_id = 19, monster_id = 21010401, pos = { x = 489.8, y = -22.9, z = 121.2 }, rot = { x = 0.0, y = 280.5, z = 0.0 }, level = 1, drop_id = 1100309, pose_id = 402 },
{ config_id = 21, monster_id = 21010201, pos = { x = 480.1, y = -22.9, z = 126.7 }, rot = { x = 0.0, y = 140.1, z = 0.0 }, level = 1, drop_id = 1100309 },
{ config_id = 22, monster_id = 21010201, pos = { x = 481.1, y = -22.9, z = 116.1 }, rot = { x = 0.0, y = 53.7, z = 0.0 }, level = 1, drop_id = 1100309 },
{ config_id = 23, monster_id = 21010201, pos = { x = 492.0, y = -23.0, z = 116.6 }, rot = { x = 0.0, y = 298.0, z = 0.0 }, level = 1, drop_id = 1100309 },
{ config_id = 24, monster_id = 21010201, pos = { x = 492.0, y = -23.0, z = 126.5 }, rot = { x = 0.0, y = 225.3, z = 0.0 }, level = 1, drop_id = 1100309, isElite = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 18, gadget_id = 70350002, pos = { x = 463.7, y = -9.5, z = 120.9 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 19, gadget_id = 70350002, pos = { x = 500.9, y = -23.2, z = 121.6 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 50, gadget_id = 70310001, pos = { x = 460.1, y = -7.3, z = 126.8 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 51, gadget_id = 70310001, pos = { x = 460.1, y = -7.2, z = 115.1 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 52, gadget_id = 70310002, pos = { x = 498.7, y = -18.6, z = 127.4 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 53, gadget_id = 70310002, pos = { x = 498.7, y = -18.5, z = 116.0 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 63, gadget_id = 70310002, pos = { x = 430.3, y = -13.3, z = 128.5 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 64, gadget_id = 70310002, pos = { x = 430.3, y = -13.4, z = 114.7 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 65, gadget_id = 70310002, pos = { x = 430.3, y = -19.4, z = 128.5 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 66, gadget_id = 70310002, pos = { x = 430.3, y = -19.4, z = 114.7 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 95, gadget_id = 70900202, pos = { x = 511.9, y = -24.3, z = 121.7 }, rot = { x = 0.0, y = 48.8, z = 0.0 }, level = 1 },
{ config_id = 96, gadget_id = 70900202, pos = { x = 532.8, y = -23.3, z = 123.1 }, rot = { x = 0.0, y = 215.6, z = 0.0 }, level = 1 },
{ config_id = 127, gadget_id = 70220013, pos = { x = 458.4, y = -9.4, z = 111.8 }, rot = { x = 0.0, y = 147.1, z = 0.0 }, level = 1 },
{ config_id = 128, gadget_id = 70220013, pos = { x = 455.7, y = -9.3, z = 111.3 }, rot = { x = 0.0, y = 241.3, z = 0.0 }, level = 1 },
{ config_id = 129, gadget_id = 70220013, pos = { x = 453.3, y = -9.3, z = 110.2 }, rot = { x = 0.0, y = 163.6, z = 0.0 }, level = 1 },
{ config_id = 130, gadget_id = 70220013, pos = { x = 459.2, y = -9.3, z = 109.2 }, rot = { x = 0.0, y = 239.0, z = 0.0 }, level = 1 },
{ config_id = 131, gadget_id = 70210021, pos = { x = 456.4, y = -9.3, z = 107.8 }, rot = { x = 0.0, y = 245.9, z = 0.0 }, level = 1, chest_drop_id = 1100302, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
{ config_id = 132, gadget_id = 70220014, pos = { x = 455.0, y = -9.4, z = 109.3 }, rot = { x = 0.0, y = 299.3, z = 0.0 }, level = 1 },
{ config_id = 133, gadget_id = 70220014, pos = { x = 456.5, y = -9.3, z = 113.2 }, rot = { x = 0.0, y = 34.8, z = 0.0 }, level = 1 },
{ config_id = 134, gadget_id = 70220014, pos = { x = 454.4, y = -9.4, z = 110.9 }, rot = { x = 0.0, y = 48.8, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 11, shape = RegionShape.SPHERE, radius = 7.3, pos = { x = 435.2, y = -7.7, z = 121.1 } },
{ config_id = 12, shape = RegionShape.SPHERE, radius = 5, pos = { x = 487.7, y = -22.8, z = 119.2 } },
{ config_id = 22, shape = RegionShape.SPHERE, radius = 5, pos = { x = 486.7, y = -23.0, z = 120.2 } },
{ config_id = 26, shape = RegionShape.CUBIC, size = { x = 10.0, y = 8.0, z = 15.0 }, pos = { x = 505.9, y = -22.5, z = 121.3 } },
{ config_id = 40, shape = RegionShape.SPHERE, radius = 5, pos = { x = 422.8, y = -24.3, z = 120.5 } },
{ config_id = 41, shape = RegionShape.CUBIC, size = { x = 15.0, y = 3.0, z = 15.0 }, pos = { x = 427.0, y = -17.0, z = 121.8 } },
{ config_id = 66, shape = RegionShape.SPHERE, radius = 5, pos = { x = 493.9, y = -23.4, z = 122.0 } },
{ config_id = 67, shape = RegionShape.SPHERE, radius = 5, pos = { x = 489.3, y = -23.4, z = 122.1 } },
{ config_id = 68, shape = RegionShape.SPHERE, radius = 5, pos = { x = 483.6, y = -23.4, z = 123.2 } },
{ config_id = 69, shape = RegionShape.SPHERE, radius = 5, pos = { x = 483.2, y = -23.4, z = 124.9 } },
{ config_id = 70, shape = RegionShape.SPHERE, radius = 5, pos = { x = 493.2, y = -23.4, z = 119.5 } },
{ config_id = 71, shape = RegionShape.SPHERE, radius = 5, pos = { x = 487.2, y = -23.4, z = 111.5 } },
{ config_id = 72, shape = RegionShape.SPHERE, radius = 5, pos = { x = 493.1, y = -23.1, z = 110.6 } },
{ config_id = 73, shape = RegionShape.SPHERE, radius = 5, pos = { x = 486.6, y = -23.4, z = 112.3 } }
}
-- 触发器
triggers = {
{ name = "ENTER_REGION_11", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_11", action = "action_EVENT_ENTER_REGION_11" },
{ name = "VARIABLE_CHANGE_12", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_12", action = "action_EVENT_VARIABLE_CHANGE_12" },
{ name = "ANY_MONSTER_DIE_22", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_22", action = "action_EVENT_ANY_MONSTER_DIE_22" },
{ name = "ENTER_REGION_26", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_26", action = "action_EVENT_ENTER_REGION_26" },
{ name = "ENTER_REGION_40", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_40", action = "action_EVENT_ENTER_REGION_40" },
{ name = "ENTER_REGION_41", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_41", action = "action_EVENT_ENTER_REGION_41" },
{ name = "ANY_MONSTER_DIE_66", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_66", action = "action_EVENT_ANY_MONSTER_DIE_66" },
{ name = "ANY_MONSTER_DIE_67", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_67", action = "action_EVENT_ANY_MONSTER_DIE_67" },
{ name = "ANY_MONSTER_DIE_68", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_68", action = "action_EVENT_ANY_MONSTER_DIE_68" },
{ name = "ANY_MONSTER_DIE_69", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_69", action = "action_EVENT_ANY_MONSTER_DIE_69" },
{ name = "ANY_MONSTER_DIE_70", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_70", action = "action_EVENT_ANY_MONSTER_DIE_70" },
{ name = "ANY_MONSTER_DIE_71", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_71", action = "action_EVENT_ANY_MONSTER_DIE_71" },
{ name = "ANY_MONSTER_DIE_72", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_72", action = "action_EVENT_ANY_MONSTER_DIE_72" },
{ name = "ANY_MONSTER_DIE_73", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_73", action = "action_EVENT_ANY_MONSTER_DIE_73" }
}
-- 变量
variables = {
{ name = "Key", value = 0, persistent = false }
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = suite_1,
monsters = { 16, 17, 18, 19 },
gadgets = { 18, 19, 50, 51, 52, 53, 63, 64, 65, 66, 127, 128, 129, 130, 131, 132, 133, 134 },
regions = { 11, 12, 22, 26, 40, 41, 66, 67, 68, 69, 70, 71, 72, 73 },
triggers = { "ENTER_REGION_11", "VARIABLE_CHANGE_12", "ANY_MONSTER_DIE_22", "ENTER_REGION_26", "ENTER_REGION_40", "ENTER_REGION_41", "ANY_MONSTER_DIE_66", "ANY_MONSTER_DIE_67", "ANY_MONSTER_DIE_68", "ANY_MONSTER_DIE_69", "ANY_MONSTER_DIE_70", "ANY_MONSTER_DIE_71", "ANY_MONSTER_DIE_72", "ANY_MONSTER_DIE_73" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_11(context, evt)
if evt.param1 ~= 11 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_11(context, evt)
-- 将configid为 18 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 18, GadgetState.GearStart) then
return -1
end
-- 将configid为 50 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 50, GadgetState.GearStart) then
return -1
end
-- 将configid为 51 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 51, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_VARIABLE_CHANGE_12(context, evt)
-- 判断变量"Key"为8
if ScriptLib.GetGroupVariableValue(context, "Key") ~= 8 then
return false
end
return true
end
-- 触发操作
function action_EVENT_VARIABLE_CHANGE_12(context, evt)
-- 将configid为 19 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 19, GadgetState.GearStart) then
return -1
end
-- 将configid为 52 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 52, GadgetState.GearStart) then
return -1
end
-- 将configid为 53 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 53, GadgetState.GearStart) then
return -1
end
-- 创生gadget 95
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 95 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_22(context, evt)
-- 判断剩余怪物数量是否是1
if ScriptLib.GetGroupMonsterCount(context) ~= 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_22(context, evt)
-- 调用提示id为 1037001 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1037001) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_26(context, evt)
if evt.param1 ~= 26 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_26(context, evt)
-- 调用提示id为 1041022 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041022) then
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220011003, monsters = {}, gadgets = {95} }) then
return -1
end
-- 创生gadget 96
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 96 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_40(context, evt)
if evt.param1 ~= 40 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_40(context, evt)
-- 将configid为 65 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 65, GadgetState.GearStart) then
return -1
end
-- 将configid为 66 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 66, GadgetState.GearStart) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_41(context, evt)
if evt.param1 ~= 41 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_41(context, evt)
-- 将configid为 63 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 63, GadgetState.GearStart) then
return -1
end
-- 将configid为 64 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 64, GadgetState.GearStart) then
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220011002, monsters = {}, gadgets = {94} }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_66(context, evt)
--判断死亡怪物的configid是否为 21
if evt.param1 ~= 21 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_66(context, evt)
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_67(context, evt)
if 22 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_67(context, evt)
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_68(context, evt)
if 23 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_68(context, evt)
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_69(context, evt)
if 24 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_69(context, evt)
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_70(context, evt)
--判断死亡怪物的configid是否为 17
if evt.param1 ~= 17 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_70(context, evt)
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 22, delay_time = 1 }) then
return -1
end
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_71(context, evt)
--判断死亡怪物的configid是否为 16
if evt.param1 ~= 16 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_71(context, evt)
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 21, delay_time = 1 }) then
return -1
end
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_72(context, evt)
--判断死亡怪物的configid是否为 19
if evt.param1 ~= 19 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_72(context, evt)
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 23, delay_time = 1 }) then
return -1
end
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
return -1
end
-- 延迟1秒刷怪
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 24, delay_time = 1 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_DIE_73(context, evt)
--判断死亡怪物的configid是否为 18
if evt.param1 ~= 18 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_DIE_73(context, evt)
-- 针对当前group内变量名为 "Key" 的变量,进行修改,变化值为 1
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Key", 1) then
return -1
end
return 0
end

View File

@@ -0,0 +1,336 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
{ config_id = 29, gadget_id = 70300016, pos = { x = 533.8, y = -2.0, z = 254.0 }, rot = { x = 0.0, y = 181.2, z = 0.0 }, level = 1 },
{ config_id = 56, gadget_id = 70310001, pos = { x = 523.0, y = -2.1, z = 251.9 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
{ config_id = 57, gadget_id = 70310001, pos = { x = 543.4, y = -2.1, z = 252.1 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
{ config_id = 58, gadget_id = 70310001, pos = { x = 528.5, y = -2.1, z = 261.9 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1 },
{ config_id = 59, gadget_id = 70310001, pos = { x = 525.7, y = -2.1, z = 256.9 }, rot = { x = 0.0, y = 37.1, z = 0.0 }, level = 1 },
{ config_id = 60, gadget_id = 70310001, pos = { x = 540.6, y = -2.1, z = 257.0 }, rot = { x = 0.0, y = 110.4, z = 0.0 }, level = 1 },
{ config_id = 69, gadget_id = 70210051, pos = { x = 533.5, y = -2.1, z = 257.0 }, rot = { x = 0.0, y = 180.6, z = 0.0 }, level = 1, chest_drop_id = 1100300, showcutscene = true, type = GadgetType.GADGET_DUNGEON_PASS_CHEST },
{ config_id = 70, gadget_id = 70380001, pos = { x = 531.6, y = -22.4, z = 141.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 6, start_route = false },
{ config_id = 81, gadget_id = 70310001, pos = { x = 537.9, y = -2.0, z = 261.7 }, rot = { x = 0.0, y = 247.8, z = 0.0 }, level = 1 },
{ config_id = 82, gadget_id = 70380001, pos = { x = 521.0, y = -26.0, z = 121.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 7 },
{ config_id = 83, gadget_id = 70360002, pos = { x = 532.8, y = -24.9, z = 123.1 }, rot = { x = 0.0, y = 270.7, z = 0.0 }, level = 1 },
{ config_id = 84, gadget_id = 70900205, pos = { x = 531.4, y = -24.8, z = 121.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 85, gadget_id = 70900205, pos = { x = 531.5, y = -9.3, z = 158.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
{ config_id = 86, gadget_id = 70380001, pos = { x = 531.6, y = -10.7, z = 163.8 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 8 },
{ config_id = 97, gadget_id = 70900202, pos = { x = 531.4, y = -8.8, z = 158.7 }, rot = { x = 0.0, y = 103.8, z = 0.0 }, level = 1 },
{ config_id = 98, gadget_id = 70900202, pos = { x = 532.6, y = -1.1, z = 221.9 }, rot = { x = 0.0, y = 277.2, z = 0.0 }, level = 1 },
{ config_id = 137, gadget_id = 70380001, pos = { x = 545.3, y = -25.8, z = 132.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 20011012, start_route = false },
{ config_id = 138, gadget_id = 70380001, pos = { x = 540.1, y = -25.8, z = 131.7 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 20011011, start_route = false },
{ config_id = 139, gadget_id = 70380001, pos = { x = 531.7, y = -18.9, z = 136.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 20011010, start_route = false },
{ config_id = 140, gadget_id = 70380001, pos = { x = 520.6, y = -26.0, z = 151.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 20011009, start_route = false },
{ config_id = 141, gadget_id = 70900205, pos = { x = 531.7, y = -25.9, z = 151.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 }
}
-- 区域
regions = {
{ config_id = 38, shape = RegionShape.CUBIC, size = { x = 40.0, y = 5.0, z = 10.0 }, pos = { x = 533.6, y = -2.1, z = 238.0 } },
{ config_id = 43, shape = RegionShape.SPHERE, radius = 5, pos = { x = 533.6, y = -2.1, z = 262.7 } },
{ config_id = 47, shape = RegionShape.SPHERE, radius = 5, pos = { x = 507.2, y = -24.5, z = 123.6 } },
{ config_id = 48, shape = RegionShape.SPHERE, radius = 5, pos = { x = 519.9, y = -25.0, z = 121.7 } },
{ config_id = 53, shape = RegionShape.SPHERE, radius = 5, pos = { x = 531.1, y = -9.3, z = 158.3 } },
{ config_id = 54, shape = RegionShape.SPHERE, radius = 5, pos = { x = 532.8, y = -2.1, z = 223.7 } },
{ config_id = 63, shape = RegionShape.CUBIC, size = { x = 5.0, y = 5.0, z = 3.0 }, pos = { x = 531.5, y = -23.6, z = 151.6 } }
}
-- 触发器
triggers = {
{ name = "ENTER_REGION_38", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_38", action = "action_EVENT_ENTER_REGION_38" },
{ name = "DUNGEON_SETTLE_43", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_43", action = "action_EVENT_DUNGEON_SETTLE_43" },
{ name = "GADGET_CREATE_47", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_47", action = "action_EVENT_GADGET_CREATE_47" },
{ name = "SELECT_OPTION_48", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_48", action = "action_EVENT_SELECT_OPTION_48" },
{ 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 = "ENTER_REGION_63", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_63", action = "action_EVENT_ENTER_REGION_63" }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { 29, 56, 57, 58, 59, 60, 70, 81, 82, 83, 84, 85, 86, 137, 138, 139, 140, 141 },
regions = { 38, 43, 47, 48, 53, 54, 63 },
triggers = { "ENTER_REGION_38", "DUNGEON_SETTLE_43", "GADGET_CREATE_47", "SELECT_OPTION_48", "ENTER_REGION_53", "ENTER_REGION_54", "ENTER_REGION_63" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_38(context, evt)
if evt.param1 ~= 38 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_38(context, evt)
-- 将configid为 56 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 56, GadgetState.GearStart) then
return -1
end
-- 将configid为 57 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 57, GadgetState.GearStart) then
return -1
end
-- 将configid为 58 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 58, GadgetState.GearStart) then
return -1
end
-- 将configid为 59 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 59, GadgetState.GearStart) then
return -1
end
-- 将configid为 60 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 60, GadgetState.GearStart) then
return -1
end
-- 将configid为 81 的物件更改为状态 GadgetState.GearStart
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 81, GadgetState.GearStart) then
return -1
end
-- 调用提示id为 1041112 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041112) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_DUNGEON_SETTLE_43(context, evt)
-- 判断副本成功
if 1 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_DUNGEON_SETTLE_43(context, evt)
-- 创生gadget 69
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 69 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_GADGET_CREATE_47(context, evt)
if 83 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_GADGET_CREATE_47(context, evt)
-- 设置操作台选项
if 0 ~= ScriptLib.SetWorktopOptions(context, {7}) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_SELECT_OPTION_48(context, evt)
-- 判断是gadgetid 83
if 83 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_SELECT_OPTION_48(context, evt)
-- 根据不同的选项做不同的操作
if 7 == evt.param2 then
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 70) then
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 137) then
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 138) then
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 139) then
return -1
end
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 140) then
return -1
end
-- 删除指定group 220011004 指定config83物件身上指定option7
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220011004, 83, 7) then
return -1
end
-- 解锁目标4
if 0 ~= ScriptLib.UnlockForce(context, 4) then
return -1
end
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220011003, monsters = {}, gadgets = {96} }) then
return -1
end
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 97 }) then
return -1
end
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 83, GadgetState.GearStart) then
return -1
end
return 0
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_53(context, evt)
if evt.param1 ~= 53 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_53(context, evt)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220011004, monsters = {}, gadgets = {97} }) then
return -1
end
-- 创生gadget 98
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 98 }) then
return -1
end
-- 调用提示id为 1041026 的提示UI会显示在屏幕中央偏下位置id索引自 ReminderData表格
if 0 ~= ScriptLib.ShowReminder(context, 1041026) 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)
-- 杀死Group内指定的monster和gadget
if 0 ~= ScriptLib.KillGroupEntity(context, { group_id = 220011004, monsters = {}, gadgets = {98} }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ENTER_REGION_63(context, evt)
if evt.param1 ~= 63 then return false end
-- 判断角色数量不少于1
if ScriptLib.GetRegionEntityCount(context, { region_eid = evt.source_eid, entity_type = EntityType.AVATAR }) < 1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ENTER_REGION_63(context, evt)
-- 启动移动平台
if 0 ~= ScriptLib.StartPlatform(context, 141) then
return -1
end
return 0
end

View File

@@ -0,0 +1,238 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
{ config_id = 9, monster_id = 20011201, pos = { x = 409.7, y = -22.2, z = 67.2 }, rot = { x = 0.0, y = 136.8, z = 0.0 }, level = 3, drop_id = 1100309, disableWander = true },
{ config_id = 25, monster_id = 20011201, pos = { x = 409.7, y = -22.0, z = 60.6 }, rot = { x = 0.0, y = 36.5, z = 0.0 }, level = 3, drop_id = 1100309, disableWander = true },
{ config_id = 26, monster_id = 20011201, pos = { x = 408.6, y = -22.1, z = 61.4 }, rot = { x = 0.0, y = 76.9, z = 0.0 }, level = 3, drop_id = 1100309, disableWander = true },
{ config_id = 28, monster_id = 20011201, pos = { x = 408.8, y = -22.1, z = 65.9 }, rot = { x = 0.0, y = 109.4, z = 0.0 }, level = 3, drop_id = 1100309, disableWander = true }
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 8, shape = RegionShape.SPHERE, radius = 5, pos = { x = 408.8, y = -22.1, z = 67.6 } },
{ config_id = 56, shape = RegionShape.SPHERE, radius = 5, pos = { x = 405.7, y = -22.1, z = 64.5 } },
{ config_id = 57, shape = RegionShape.SPHERE, radius = 5, pos = { x = 405.0, y = -22.0, z = 61.7 } },
{ config_id = 58, shape = RegionShape.SPHERE, radius = 5, pos = { x = 405.4, y = -22.1, z = 66.2 } },
{ config_id = 59, shape = RegionShape.SPHERE, radius = 5, pos = { x = 407.2, y = -22.1, z = 65.1 } },
{ config_id = 61, shape = RegionShape.SPHERE, radius = 5, pos = { x = 410.2, y = -22.1, z = 58.2 } },
{ config_id = 65, shape = RegionShape.SPHERE, radius = 5, pos = { x = 412.6, y = -22.1, z = 63.9 } }
}
-- 触发器
triggers = {
{ name = "CHALLENGE_SUCCESS_8", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "1", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_8", trigger_count = 0 },
{ name = "ANY_MONSTER_LIVE_56", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_56", action = "action_EVENT_ANY_MONSTER_LIVE_56", trigger_count = 0 },
{ name = "ANY_MONSTER_LIVE_57", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_57", action = "action_EVENT_ANY_MONSTER_LIVE_57", trigger_count = 0 },
{ name = "ANY_MONSTER_LIVE_58", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_58", action = "action_EVENT_ANY_MONSTER_LIVE_58", trigger_count = 0 },
{ name = "ANY_MONSTER_LIVE_59", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_59", action = "action_EVENT_ANY_MONSTER_LIVE_59", trigger_count = 0 },
{ name = "CHALLENGE_FAIL_61", event = EventType.EVENT_CHALLENGE_FAIL, source = "1", condition = "", action = "action_EVENT_CHALLENGE_FAIL_61", trigger_count = 0 },
{ name = "ANY_MONSTER_LIVE_65", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_65", action = "action_EVENT_ANY_MONSTER_LIVE_65", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 2,
rand_suite = false,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { 9, 25, 26, 28 },
gadgets = { },
regions = { 8, 56, 57, 58, 59, 61, 65 },
triggers = { "CHALLENGE_SUCCESS_8", "ANY_MONSTER_LIVE_56", "ANY_MONSTER_LIVE_57", "ANY_MONSTER_LIVE_58", "ANY_MONSTER_LIVE_59", "CHALLENGE_FAIL_61", "ANY_MONSTER_LIVE_65" },
rand_weight = 100
},
{
-- suite_id = 1,
-- description = suite_2,
monsters = { },
gadgets = { },
regions = { },
triggers = { },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
-- 触发操作
function action_EVENT_CHALLENGE_SUCCESS_8(context, evt)
-- 改变指定group组220011001中 configid为10的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220011001, 10, GadgetState.GearStart) then
return -1
end
-- 改变指定group组220011001中 configid为46的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220011001, 46, GadgetState.GearStart) then
return -1
end
-- 改变指定group组220011001中 configid为47的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220011001, 47, GadgetState.GearStart) then
return -1
end
-- 触发镜头注目注目位置为坐标406-1781持续时间为2秒并且为强制注目形式不广播其他玩家
local pos = {x=406, y=-17, z=81}
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false }) then
return -1
end
-- 改变指定group组220011001中 configid为136的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220011001, 136, GadgetState.Default) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_56(context, evt)
if 9 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_56(context, evt)
-- 开启或者关闭groupid为220011001中,configid为9的怪物的aiset为1是开启为0是关闭
if 0 ~= ScriptLib.SetMonsterAIByGroup(context, 0, 9, 220011001) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_57(context, evt)
if 25 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_57(context, evt)
-- 开启或者关闭groupid为220011001中,configid为25的怪物的aiset为1是开启为0是关闭
if 0 ~= ScriptLib.SetMonsterAIByGroup(context, 0, 25, 220011001) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_58(context, evt)
if 26 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_58(context, evt)
-- 开启或者关闭groupid为220011001中,configid为26的怪物的aiset为1是开启为0是关闭
if 0 ~= ScriptLib.SetMonsterAIByGroup(context, 0, 26, 220011001) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_59(context, evt)
if 28 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_59(context, evt)
-- 开启或者关闭groupid为220011001中,configid为28的怪物的aiset为1是开启为0是关闭
if 0 ~= ScriptLib.SetMonsterAIByGroup(context, 0, 28, 220011001) then
return -1
end
return 0
end
-- 触发条件
-- 触发操作
function action_EVENT_CHALLENGE_FAIL_61(context, evt)
-- 改变指定group组220011001中 configid为135的gadget的state
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220011001, 135, GadgetState.Default) then
return -1
end
-- 重新生成指定group指定suite
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220011006, suite = 2 }) then
return -1
end
return 0
end
-- 触发条件
function condition_EVENT_ANY_MONSTER_LIVE_65(context, evt)
if 9 ~= evt.param1 then
return false
end
return true
end
-- 触发操作
function action_EVENT_ANY_MONSTER_LIVE_65(context, evt)
-- 创建编号为1该挑战的识别id),挑战内容为137的区域挑战具体参数填写方式见DungeonChallengeData表中的注释所有填写的值都必须是int类型
if 0 ~= ScriptLib.ActiveChallenge(context, 1, 137, 20, 220011006, 4, 0) then
return -1
end
return 0
end

View File

@@ -0,0 +1,114 @@
--================================================================
--
-- 配置
--
--================================================================
-- 怪物
monsters = {
}
-- NPC
npcs = {
}
-- 装置
gadgets = {
}
-- 区域
regions = {
{ config_id = 49, shape = RegionShape.SPHERE, radius = 5, pos = { x = 460.4, y = -24.4, z = 69.2 } },
{ config_id = 50, shape = RegionShape.SPHERE, radius = 5, pos = { x = 406.5, y = -22.6, z = 107.9 } },
{ config_id = 51, shape = RegionShape.CUBIC, size = { x = 30.0, y = 2.0, z = 30.0 }, pos = { x = 487.5, y = -17.5, z = 121.6 } },
{ config_id = 55, shape = RegionShape.SPHERE, radius = 7.3, pos = { x = 411.7, y = -22.1, z = 64.0 } }
}
-- 触发器
triggers = {
{ name = "ENTER_REGION_49", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_49", action = "", trigger_count = 0 },
{ name = "ENTER_REGION_50", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_50", action = "", trigger_count = 0 },
{ name = "ENTER_REGION_51", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_51", action = "", trigger_count = 0 },
{ name = "ENTER_REGION_55", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_55", action = "", trigger_count = 0 }
}
-- 变量
variables = {
}
--================================================================
--
-- 初始化配置
--
--================================================================
-- 初始化时创建
init_config = {
suite = 1,
rand_suite = true,
npcs = { }
}
--================================================================
--
-- 小组配置
--
--================================================================
suites = {
{
-- suite_id = 0,
-- description = ,
monsters = { },
gadgets = { },
regions = { 49, 50, 51, 55 },
triggers = { "ENTER_REGION_49", "ENTER_REGION_50", "ENTER_REGION_51", "ENTER_REGION_55" },
rand_weight = 100
}
}
--================================================================
--
-- 触发器
--
--================================================================
-- 触发条件
function condition_EVENT_ENTER_REGION_49(context, evt)
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30807) == QuestState.UNFINISHED and evt.param1 == 49 then
return true
end
return false
end
-- 触发操作
-- 触发条件
function condition_EVENT_ENTER_REGION_50(context, evt)
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30808) == QuestState.UNFINISHED and evt.param1 == 50 then
return true
end
return false
end
-- 触发操作
-- 触发条件
function condition_EVENT_ENTER_REGION_51(context, evt)
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30809) == QuestState.UNFINISHED and evt.param1 == 51 then
return true
end
return false
end
-- 触发操作
-- 触发条件
function condition_EVENT_ENTER_REGION_55(context, evt)
if ScriptLib.GetEntityType(evt.target_eid) == EntityType.AVATAR and ScriptLib.GetQuestState(context, evt.target_eid, 30812) == QuestState.UNFINISHED and evt.param1 == 55 then
return true
end
return false
end
-- 触发操作

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,53 @@
routes = {
["Monster8"] = {
name = "Monster8",
localId = 1,
type = 1,
points = {
{ pos = { x = 450.0, y = -24.9, z = 68.9 }, waitTime = 0, speedLevel = 1 },
{ pos = { x = 445.3, y = -24.8, z = 66.1 }, waitTime = 0, speedLevel = 1 },
{ pos = { x = 443.7, y = -24.8, z = 71.9 }, waitTime = 0, speedLevel = 1 },
{ pos = { x = 440.5, y = -24.9, z = 66.3 }, waitTime = 0, speedLevel = 1 }
}
},
["Monster11"] = {
name = "Monster11",
localId = 2,
type = 1,
points = {
{ pos = { x = 408.2, y = -24.1, z = 130.4 }, waitTime = 0, speedLevel = 1 },
{ pos = { x = 408.9, y = -24.1, z = 126.3 }, waitTime = 0, speedLevel = 1 },
{ pos = { x = 409.0, y = -24.1, z = 122.0 }, waitTime = 0, speedLevel = 1 }
}
},
["Monster12"] = {
name = "Monster12",
localId = 3,
type = 1,
points = {
{ pos = { x = 396.9, y = -24.1, z = 130.9 }, waitTime = 0, speedLevel = 1 },
{ pos = { x = 396.3, y = -24.1, z = 126.8 }, waitTime = 0, speedLevel = 1 },
{ pos = { x = 397.1, y = -24.1, z = 122.5 }, waitTime = 0, speedLevel = 1 }
}
},
["Monster18"] = {
name = "Monster18",
localId = 4,
type = 1,
points = {
{ pos = { x = 493.4, y = -23.6, z = 123.7 }, waitTime = 0, speedLevel = 1 },
{ pos = { x = 488.2, y = -23.6, z = 124.2 }, waitTime = 0, speedLevel = 1 },
{ pos = { x = 486.3, y = -23.6, z = 131.1 }, waitTime = 0, speedLevel = 1 }
}
},
["Monster19"] = {
name = "Monster19",
localId = 5,
type = 1,
points = {
{ pos = { x = 493.7, y = -23.6, z = 117.2 }, waitTime = 0, speedLevel = 1 },
{ pos = { x = 488.7, y = -23.6, z = 117.5 }, waitTime = 0, speedLevel = 1 },
{ pos = { x = 486.4, y = -23.6, z = 111.8 }, waitTime = 0, speedLevel = 1 }
}
}
}