mirror of
https://gitlab.com/YuukiPS/GSServer-CBT.git
synced 2025-08-03 10:20:12 +03:00
melon
This commit is contained in:
22
soggy_resources/lua/Scene/20014/scene20014.lua
Normal file
22
soggy_resources/lua/Scene/20014/scene20014.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
-- 地图配置
|
||||
scene_config = {
|
||||
begin_pos = { x = -3141.5, z = -3294.5 },
|
||||
size = { x = 6874.2, z = 6909.4 },
|
||||
born_pos = { x = 191.3, y = 48.5, z = 275.1 },
|
||||
born_rot = { x = 0.0, y = 0.0, z = 0.0 },
|
||||
die_y = 40
|
||||
}
|
||||
|
||||
-- 所有的区块
|
||||
blocks = { 20014 }
|
||||
|
||||
-- 所有的区块范围坐标
|
||||
block_rects = {
|
||||
{ min = { x = -3141.5, z = -3294.5 }, max = { x = 3732.7, z = 3614.9 } }
|
||||
}
|
||||
|
||||
-- Dummy Points
|
||||
dummy_points = { "dummy_points" }
|
||||
|
||||
-- Routes
|
||||
routes_config = { "routes" }
|
329
soggy_resources/lua/Scene/20014/scene20014_20014_routes.json
Normal file
329
soggy_resources/lua/Scene/20014/scene20014_20014_routes.json
Normal file
@@ -0,0 +1,329 @@
|
||||
{
|
||||
"sceneId": 20014,
|
||||
"routes": [
|
||||
{
|
||||
"localId": 1,
|
||||
"name": "DefaultRouteName",
|
||||
"type": "OneWay",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 202.457275,
|
||||
"y": 57.0166245,
|
||||
"z": 367.4267
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 200.106842,
|
||||
"y": 56.9054375,
|
||||
"z": 367.6261
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 192.747955,
|
||||
"y": 56.9995155,
|
||||
"z": 374.2412
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"localId": 2,
|
||||
"name": "DefaultRouteName",
|
||||
"type": "OneWay",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 180.807266,
|
||||
"y": 57.0162468,
|
||||
"z": 367.531158
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 183.019409,
|
||||
"y": 57.0164,
|
||||
"z": 367.4716
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 5,
|
||||
"pos": {
|
||||
"x": 189.580688,
|
||||
"y": 56.9995155,
|
||||
"z": 374.0517
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"localId": 3,
|
||||
"name": "DefaultRouteName",
|
||||
"type": "OneWay",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 177.796036,
|
||||
"y": 57.0163155,
|
||||
"z": 380.9268
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 179.3591,
|
||||
"y": 57.01649,
|
||||
"z": 383.395721
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 187.947845,
|
||||
"y": 56.9995155,
|
||||
"z": 379.1792
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"localId": 4,
|
||||
"name": "DefaultRouteName",
|
||||
"type": "OneWay",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 204.874,
|
||||
"y": 57.01635,
|
||||
"z": 381.091553
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 203.135422,
|
||||
"y": 57.01662,
|
||||
"z": 383.4969
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 195.930679,
|
||||
"y": 56.999527,
|
||||
"z": 380.6968
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"localId": 5,
|
||||
"name": "DefaultRouteName",
|
||||
"type": "OneWay",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 202.9953,
|
||||
"y": 57.0166321,
|
||||
"z": 390.38327
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 199.4319,
|
||||
"y": 57.0165,
|
||||
"z": 389.6465
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 193.370132,
|
||||
"y": 56.999527,
|
||||
"z": 380.146576
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"localId": 6,
|
||||
"name": "DefaultRouteName",
|
||||
"type": "OneWay",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 180.490616,
|
||||
"y": 56.89037,
|
||||
"z": 391.1152
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 183.140457,
|
||||
"y": 56.90761,
|
||||
"z": 390.861176
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 187.9693,
|
||||
"y": 56.9995232,
|
||||
"z": 380.9166
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"localId": 7,
|
||||
"name": "DefaultRouteName",
|
||||
"type": "OneWay",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 191.40126,
|
||||
"y": 59.016552,
|
||||
"z": 397.89798
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 191.32782,
|
||||
"y": 59.01622,
|
||||
"z": 394.9449
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 191.4749,
|
||||
"y": 57.1,
|
||||
"z": 383.509857
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"localId": 8,
|
||||
"name": "DefaultRouteName",
|
||||
"type": "OneWay",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 178.554321,
|
||||
"y": 57.0164948,
|
||||
"z": 371.616425
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 178.497849,
|
||||
"y": 56.9322052,
|
||||
"z": 391.6211
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 185.0544,
|
||||
"y": 56.950943,
|
||||
"z": 390.460358
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 190.561691,
|
||||
"y": 56.999527,
|
||||
"z": 379.722473
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"localId": 9,
|
||||
"name": "DefaultRouteName",
|
||||
"type": "OneWay",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 205.328873,
|
||||
"y": 57.0164,
|
||||
"z": 371.5525
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 204.558243,
|
||||
"y": 57.016468,
|
||||
"z": 391.831879
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 198.292419,
|
||||
"y": 57.016674,
|
||||
"z": 388.9966
|
||||
}
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 2,
|
||||
"pos": {
|
||||
"x": 193.118317,
|
||||
"y": 56.9995155,
|
||||
"z": 379.467926
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
10
soggy_resources/lua/Scene/20014/scene20014_block20014.lua
Normal file
10
soggy_resources/lua/Scene/20014/scene20014_block20014.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
-- 所有的group
|
||||
groups = {
|
||||
{ id = 220014002, refresh_time = 0, pos = { x = 191.8, y = 57.0, z = 332.1 } },
|
||||
{ id = 220014003, refresh_time = 0, pos = { x = 172.0, y = 57.0, z = 338.2 } },
|
||||
{ id = 220014004, refresh_time = 0, pos = { x = 215.0, y = 57.0, z = 338.4 } },
|
||||
{ id = 220014005, refresh_time = 0, pos = { x = 191.5, y = 57.0, z = 377.0 } },
|
||||
{ id = 220014006, refresh_time = 0, pos = { x = 191.6, y = 57.0, z = 376.5 } },
|
||||
{ id = 220014007, refresh_time = 0, pos = { x = 191.5, y = 57.0, z = 376.1 } },
|
||||
{ id = 220014008, refresh_time = 0, pos = { x = 192.2, y = 57.0, z = 376.8 } }
|
||||
}
|
@@ -0,0 +1,3 @@
|
||||
dummy_points = {
|
||||
["M 0001"] = { pos = { x = 186.1, y = 50.5, z = 291.5 }, rot = { x = 0.0, y = 34.7, z = 0.0 } }
|
||||
}
|
442
soggy_resources/lua/Scene/20014/scene20014_group220014002.lua
Normal file
442
soggy_resources/lua/Scene/20014/scene20014_group220014002.lua
Normal file
@@ -0,0 +1,442 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 1, gadget_id = 70220003, pos = { x = 189.3, y = 57.0, z = 316.0 }, rot = { x = 0.0, y = 178.9, z = 0.0 }, level = 1 },
|
||||
{ config_id = 2, gadget_id = 70220003, pos = { x = 195.2, y = 57.1, z = 319.3 }, rot = { x = 0.0, y = 266.3, z = 0.0 }, level = 1 },
|
||||
{ config_id = 3, gadget_id = 70220003, pos = { x = 192.9, y = 57.0, z = 321.4 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 4, gadget_id = 70220003, pos = { x = 186.7, y = 57.1, z = 320.8 }, rot = { x = 0.0, y = 92.8, z = 0.0 }, level = 1 },
|
||||
{ config_id = 5, gadget_id = 70220003, pos = { x = 182.1, y = 57.0, z = 324.9 }, rot = { x = 0.0, y = 267.9, z = 0.0 }, level = 1 },
|
||||
{ config_id = 6, gadget_id = 70220003, pos = { x = 184.5, y = 57.0, z = 327.5 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 7, gadget_id = 70220003, pos = { x = 180.2, y = 57.1, z = 322.0 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 8, gadget_id = 70220003, pos = { x = 186.2, y = 57.0, z = 330.5 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 9, gadget_id = 70220003, pos = { x = 188.9, y = 57.0, z = 333.0 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 10, gadget_id = 70220003, pos = { x = 184.3, y = 57.0, z = 337.6 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 11, gadget_id = 70220003, pos = { x = 194.2, y = 57.1, z = 338.4 }, rot = { x = 0.0, y = 158.5, z = 0.0 }, level = 1 },
|
||||
{ config_id = 12, gadget_id = 70220003, pos = { x = 193.3, y = 57.1, z = 333.1 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 13, gadget_id = 70220003, pos = { x = 194.9, y = 57.0, z = 331.2 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 14, gadget_id = 70220003, pos = { x = 203.5, y = 57.0, z = 326.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 15, gadget_id = 70220003, pos = { x = 198.8, y = 57.1, z = 325.1 }, rot = { x = 0.0, y = 5.8, z = 0.0 }, level = 1 },
|
||||
{ config_id = 16, gadget_id = 70220003, pos = { x = 200.4, y = 57.1, z = 328.3 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 17, gadget_id = 70220003, pos = { x = 200.4, y = 57.0, z = 333.1 }, rot = { x = 0.0, y = 83.7, z = 0.0 }, level = 1 },
|
||||
{ config_id = 18, gadget_id = 70220003, pos = { x = 192.6, y = 57.0, z = 328.9 }, rot = { x = 0.0, y = 0.5, z = 0.0 }, level = 1 },
|
||||
{ config_id = 19, gadget_id = 70220003, pos = { x = 200.1, y = 57.0, z = 324.4 }, rot = { x = 0.0, y = 269.5, z = 0.0 }, level = 1 },
|
||||
{ config_id = 20, gadget_id = 70220003, pos = { x = 200.8, y = 57.0, z = 334.6 }, rot = { x = 0.0, y = 320.3, z = 0.0 }, level = 1 },
|
||||
{ config_id = 21, gadget_id = 70220003, pos = { x = 200.4, y = 57.0, z = 344.7 }, rot = { x = 0.0, y = 266.6, z = 0.0 }, level = 1 },
|
||||
{ config_id = 22, gadget_id = 70220003, pos = { x = 196.3, y = 57.1, z = 339.2 }, rot = { x = 0.0, y = 179.6, z = 0.0 }, level = 1 },
|
||||
{ config_id = 23, gadget_id = 70220003, pos = { x = 192.2, y = 57.1, z = 335.8 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 24, gadget_id = 70220003, pos = { x = 179.1, y = 57.0, z = 331.6 }, rot = { x = 0.0, y = 179.1, z = 0.0 }, level = 1 },
|
||||
{ config_id = 25, gadget_id = 70350002, pos = { x = 191.5, y = 58.6, z = 347.7 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 26, gadget_id = 70350003, pos = { x = 176.3, y = 56.9, z = 328.5 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 27, gadget_id = 70350003, pos = { x = 207.0, y = 56.9, z = 328.5 }, rot = { x = 0.0, y = 270.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 28, gadget_id = 70900007, pos = { x = 197.5, y = 58.5, z = 343.4 }, rot = { x = 0.0, y = 180.1, z = 0.0 }, level = 1, state = GadgetState.GearStop },
|
||||
{ config_id = 29, gadget_id = 70220013, pos = { x = 202.0, y = 57.1, z = 336.6 }, rot = { x = 0.0, y = 333.2, z = 0.0 }, level = 1 },
|
||||
{ config_id = 30, gadget_id = 70220013, pos = { x = 200.4, y = 57.0, z = 338.0 }, rot = { x = 0.0, y = 187.9, z = 0.0 }, level = 1 },
|
||||
{ config_id = 31, gadget_id = 70220013, pos = { x = 199.5, y = 57.0, z = 339.8 }, rot = { x = 0.0, y = 151.7, z = 0.0 }, level = 1 },
|
||||
{ config_id = 33, gadget_id = 70220013, pos = { x = 201.3, y = 56.7, z = 340.5 }, rot = { x = 0.0, y = 87.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 34, gadget_id = 70220013, pos = { x = 202.2, y = 57.0, z = 338.6 }, rot = { x = 0.0, y = 22.9, z = 0.0 }, level = 1 },
|
||||
{ config_id = 35, gadget_id = 70360002, pos = { x = 173.7, y = 57.0, z = 341.8 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1, state = GadgetState.GearStop },
|
||||
{ config_id = 36, gadget_id = 70360002, pos = { x = 209.6, y = 57.0, z = 341.3 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1, state = GadgetState.GearStop },
|
||||
{ config_id = 37, gadget_id = 70360002, pos = { x = 191.4, y = 57.0, z = 377.0 }, rot = { x = 0.0, y = 179.7, z = 0.0 }, level = 1 },
|
||||
{ config_id = 76, gadget_id = 70220003, pos = { x = 184.0, y = 57.0, z = 341.8 }, rot = { x = 0.0, y = 271.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 77, gadget_id = 70220003, pos = { x = 182.7, y = 57.0, z = 344.2 }, rot = { x = 0.0, y = 265.9, z = 0.0 }, level = 1 },
|
||||
{ config_id = 78, gadget_id = 70220003, pos = { x = 199.8, y = 57.0, z = 342.0 }, rot = { x = 0.0, y = 274.4, z = 0.0 }, level = 1 },
|
||||
{ config_id = 79, gadget_id = 70210021, pos = { x = 203.6, y = 57.0, z = 320.5 }, rot = { x = 0.0, y = 269.5, z = 0.0 }, level = 1, chest_drop_id = 1400502, type = GadgetType.GADGET_DUNGEON_SECRET_CHEST },
|
||||
{ config_id = 84, gadget_id = 70220013, pos = { x = 203.7, y = 56.9, z = 334.4 }, rot = { x = 0.0, y = 231.8, z = 0.0 }, level = 1 },
|
||||
{ config_id = 86, gadget_id = 70220013, pos = { x = 204.2, y = 57.0, z = 336.4 }, rot = { x = 0.0, y = 70.5, z = 0.0 }, level = 1 },
|
||||
{ config_id = 110, gadget_id = 70900007, pos = { x = 185.8, y = 58.5, z = 343.6 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1, state = GadgetState.GearStop }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 1, shape = RegionShape.SPHERE, radius = 46.57, pos = { x = 190.2, y = 57.0, z = 365.5 } },
|
||||
{ config_id = 3, shape = RegionShape.SPHERE, radius = 5, pos = { x = 170.6, y = 57.0, z = 342.0 } },
|
||||
{ config_id = 5, shape = RegionShape.SPHERE, radius = 5, pos = { x = 212.2, y = 57.0, z = 342.8 } },
|
||||
{ config_id = 6, shape = RegionShape.SPHERE, radius = 19.3, pos = { x = 192.0, y = 58.4, z = 369.6 } },
|
||||
{ config_id = 16, shape = RegionShape.SPHERE, radius = 5, pos = { x = 191.5, y = 57.0, z = 376.0 } },
|
||||
{ config_id = 17, shape = RegionShape.SPHERE, radius = 5, pos = { x = 191.4, y = 57.0, z = 376.2 } },
|
||||
{ config_id = 22, shape = RegionShape.SPHERE, radius = 18.4, pos = { x = 193.2, y = 57.0, z = 371.1 } },
|
||||
{ config_id = 36, shape = RegionShape.SPHERE, radius = 7.8, pos = { x = 166.8, y = 57.0, z = 339.7 } },
|
||||
{ config_id = 40, shape = RegionShape.SPHERE, radius = 5, pos = { x = 189.4, y = 58.3, z = 342.2 } },
|
||||
{ config_id = 41, shape = RegionShape.SPHERE, radius = 5, pos = { x = 195.7, y = 58.5, z = 342.4 } },
|
||||
{ config_id = 42, shape = RegionShape.SPHERE, radius = 5, pos = { x = 191.1, y = 58.4, z = 342.4 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "ENTER_REGION_1", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_1", action = "action_EVENT_ENTER_REGION_1" },
|
||||
{ name = "SELECT_OPTION_3", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_3", action = "action_EVENT_SELECT_OPTION_3", trigger_count = 0 },
|
||||
{ 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_6", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_6", action = "action_EVENT_ENTER_REGION_6" },
|
||||
{ name = "GADGET_CREATE_16", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_16", action = "action_EVENT_GADGET_CREATE_16" },
|
||||
{ name = "SELECT_OPTION_17", event = EventType.EVENT_SELECT_OPTION, source = "", condition = "condition_EVENT_SELECT_OPTION_17", action = "action_EVENT_SELECT_OPTION_17", trigger_count = 0 },
|
||||
{ name = "ENTER_REGION_22", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_22", action = "action_EVENT_ENTER_REGION_22" },
|
||||
{ name = "ENTER_REGION_36", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_36", action = "action_EVENT_ENTER_REGION_36" },
|
||||
{ name = "GADGET_STATE_CHANGE_40", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_40", action = "action_EVENT_GADGET_STATE_CHANGE_40" },
|
||||
{ name = "GADGET_STATE_CHANGE_41", event = EventType.EVENT_GADGET_STATE_CHANGE, source = "", condition = "condition_EVENT_GADGET_STATE_CHANGE_41", action = "action_EVENT_GADGET_STATE_CHANGE_41" },
|
||||
{ name = "VARIABLE_CHANGE_42", event = EventType.EVENT_VARIABLE_CHANGE, source = "", condition = "condition_EVENT_VARIABLE_CHANGE_42", action = "action_EVENT_VARIABLE_CHANGE_42" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ name = "Fire", value = 0, persistent = false }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 33, 34, 35, 36, 37, 76, 77, 78, 84, 86, 110 },
|
||||
regions = { 1, 3, 5, 6, 16, 17, 22, 36, 40, 41, 42 },
|
||||
triggers = { "ENTER_REGION_1", "SELECT_OPTION_3", "SELECT_OPTION_5", "ENTER_REGION_6", "GADGET_CREATE_16", "SELECT_OPTION_17", "ENTER_REGION_22", "ENTER_REGION_36", "GADGET_STATE_CHANGE_40", "GADGET_STATE_CHANGE_41", "VARIABLE_CHANGE_42" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_1(context, evt)
|
||||
if evt.param1 ~= 1 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_1(context, evt)
|
||||
-- 将configid为 26 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 26, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 将configid为 27 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 27, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_3(context, evt)
|
||||
-- 判断是gadgetid 35
|
||||
if 35 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_3(context, evt)
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 9 == evt.param2 then
|
||||
|
||||
-- 将configid为 110 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 110, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 删除指定group: 220014002 ;指定config:35;物件身上指定option:9;
|
||||
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220014002, 35, 9) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 触发镜头注目,注目位置为坐标(185,58,343),持续时间为2秒,并且为强制注目形式,不广播其他玩家
|
||||
local pos = {x=185, y=58, z=343}
|
||||
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 35, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
|
||||
return 0
|
||||
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_5(context, evt)
|
||||
-- 判断是gadgetid 36
|
||||
if 36 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_5(context, evt)
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 8 == evt.param2 then
|
||||
|
||||
-- 将configid为 110 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 28, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
|
||||
|
||||
-- 删除指定group: 220014002 ;指定config:35;物件身上指定option:9;
|
||||
if 0 ~= ScriptLib.DelWorktopOptionByGroupId(context, 220014002, 36, 8) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 触发镜头注目,注目位置为坐标(185,58,343),持续时间为2秒,并且为强制注目形式,不广播其他玩家
|
||||
local pos = {x=197, y=59, z=343}
|
||||
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 2, is_force = true, is_broadcast = false }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 36, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
|
||||
return 0
|
||||
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_6(context, evt)
|
||||
if evt.param1 ~= 6 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_6(context, evt)
|
||||
-- 触发镜头注目
|
||||
pos = {x=191, y=57, z=377}
|
||||
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 3, is_force = true, is_broadcast = false }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_CREATE_16(context, evt)
|
||||
if 37 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_CREATE_16(context, evt)
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptions(context, {10}) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_17(context, evt)
|
||||
-- 判断是gadgetid 37
|
||||
if 37 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_17(context, evt)
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 10 == evt.param2 then
|
||||
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 220014002, 37, 10)
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220014005, suite = 2 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 根据不同的选项做不同的操作
|
||||
if 11 == evt.param2 then
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 220014002, 37, 11)
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220014006, suite = 2 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
if 12 == evt.param2 then
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 220014002, 37, 12)
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220014007, suite = 2 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
if 13 == evt.param2 then
|
||||
ScriptLib.DelWorktopOptionByGroupId(context, 220014002, 37, 13)
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220014008, suite = 2 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_22(context, evt)
|
||||
if evt.param1 ~= 22 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_22(context, evt)
|
||||
-- 将configid为 25 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 25, GadgetState.Default) 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为 26 的物件更改为状态 GadgetState.Default
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 26, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_40(context, evt)
|
||||
if 110 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_40(context, evt)
|
||||
-- 针对当前group内变量名为 "Fire" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Fire", 1) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_STATE_CHANGE_41(context, evt)
|
||||
if 28 ~= evt.param2 or GadgetState.GearStart ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_STATE_CHANGE_41(context, evt)
|
||||
-- 针对当前group内变量名为 "Fire" 的变量,进行修改,变化值为 1
|
||||
if 0 ~= ScriptLib.ChangeGroupVariableValue(context, "Fire", 1) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_VARIABLE_CHANGE_42(context, evt)
|
||||
-- 判断变量"Fire"为2
|
||||
if ScriptLib.GetGroupVariableValue(context, "Fire") ~= 2 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_VARIABLE_CHANGE_42(context, evt)
|
||||
-- 将configid为 25 的物件更改为状态 GadgetState.GearStart
|
||||
if 0 ~= ScriptLib.SetGadgetStateByConfigId(context, 25, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
135
soggy_resources/lua/Scene/20014/scene20014_group220014003.lua
Normal file
135
soggy_resources/lua/Scene/20014/scene20014_group220014003.lua
Normal file
@@ -0,0 +1,135 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 26, monster_id = 20011201, pos = { x = 167.7, y = 57.0, z = 340.0 }, rot = { x = 0.0, y = 174.5, z = 0.0 }, level = 0 },
|
||||
{ config_id = 27, monster_id = 20011201, pos = { x = 171.0, y = 57.0, z = 340.8 }, rot = { x = 0.0, y = 174.5, z = 0.0 }, level = 0 },
|
||||
{ config_id = 28, monster_id = 20011201, pos = { x = 173.9, y = 57.0, z = 337.8 }, rot = { x = 0.0, y = 174.5, z = 0.0 }, level = 0 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 30, shape = RegionShape.SPHERE, radius = 9.59, pos = { x = 165.9, y = 57.0, z = 341.5 } },
|
||||
{ config_id = 38, shape = RegionShape.SPHERE, radius = 5, pos = { x = 170.2, y = 57.0, z = 338.3 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "ENTER_REGION_30", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_30", action = "action_EVENT_ENTER_REGION_30" },
|
||||
{ name = "ANY_MONSTER_DIE_38", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_38", action = "action_EVENT_ANY_MONSTER_DIE_38" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { 30, 38 },
|
||||
triggers = { "ENTER_REGION_30", "ANY_MONSTER_DIE_38" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_30(context, evt)
|
||||
if evt.param1 ~= 30 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_30(context, evt)
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 26, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 27, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 28, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_38(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_38(context, evt)
|
||||
-- 改变指定group组220014002中, configid为35的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220014002, 35, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 改变指定group组220014002中, configid为35的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220014002, 26, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220014002, 35, {9}) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
131
soggy_resources/lua/Scene/20014/scene20014_group220014004.lua
Normal file
131
soggy_resources/lua/Scene/20014/scene20014_group220014004.lua
Normal file
@@ -0,0 +1,131 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 29, monster_id = 20010501, pos = { x = 212.9, y = 57.0, z = 343.3 }, rot = { x = 0.0, y = 182.6, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 30, monster_id = 20010501, pos = { x = 217.0, y = 57.0, z = 343.4 }, rot = { x = 0.0, y = 182.6, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 35, monster_id = 20010501, pos = { x = 214.6, y = 57.0, z = 343.4 }, rot = { x = 0.0, y = 195.9, z = 0.0 }, level = 0 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 32, shape = RegionShape.SPHERE, radius = 6.87, pos = { x = 214.2, y = 57.0, z = 337.8 } },
|
||||
{ config_id = 39, shape = RegionShape.SPHERE, radius = 5, pos = { x = 215.8, y = 57.0, z = 338.2 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "ENTER_REGION_32", event = EventType.EVENT_ENTER_REGION, source = "", condition = "condition_EVENT_ENTER_REGION_32", action = "action_EVENT_ENTER_REGION_32" },
|
||||
{ name = "ANY_MONSTER_DIE_39", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_39", action = "action_EVENT_ANY_MONSTER_DIE_39" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { 29 },
|
||||
gadgets = { },
|
||||
regions = { 32, 39 },
|
||||
triggers = { "ENTER_REGION_32", "ANY_MONSTER_DIE_39" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_32(context, evt)
|
||||
if evt.param1 ~= 32 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_32(context, evt)
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 30, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 35, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_39(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_39(context, evt)
|
||||
-- 改变指定group组220014002中, configid为36的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 220014002, 36, GadgetState.Default) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220014002, 36, {8}) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 改变指定group组27中, configid为220014002的gadget的state
|
||||
if 0 ~= ScriptLib.SetGroupGadgetStateByConfigId(context, 27, 220014002, GadgetState.GearStart) then
|
||||
return -1
|
||||
end
|
||||
|
||||
|
||||
return 0
|
||||
end
|
141
soggy_resources/lua/Scene/20014/scene20014_group220014005.lua
Normal file
141
soggy_resources/lua/Scene/20014/scene20014_group220014005.lua
Normal file
@@ -0,0 +1,141 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 1, monster_id = 21010301, pos = { x = 202.2, y = 57.0, z = 390.8 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 2, monster_id = 21010301, pos = { x = 180.8, y = 57.0, z = 391.7 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 3, monster_id = 21010301, pos = { x = 205.4, y = 57.0, z = 379.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 4, monster_id = 21010301, pos = { x = 178.1, y = 57.0, z = 379.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0 },
|
||||
{ config_id = 5, monster_id = 21010301, pos = { x = 191.7, y = 57.0, z = 389.7 }, rot = { x = 0.0, y = 179.0, z = 0.0 }, level = 0 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 126, gadget_id = 70360001, pos = { x = 177.5, y = 57.0, z = 396.6 }, rot = { x = 0.0, y = 254.0, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 46, shape = RegionShape.SPHERE, radius = 5, pos = { x = 195.5, y = 57.0, z = 377.6 } },
|
||||
{ config_id = 47, shape = RegionShape.SPHERE, radius = 5, pos = { x = 194.7, y = 57.0, z = 382.4 } },
|
||||
{ config_id = 48, shape = RegionShape.SPHERE, radius = 5, pos = { x = 192.6, y = 57.0, z = 380.8 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "ANY_MONSTER_LIVE_46", event = EventType.EVENT_ANY_MONSTER_LIVE, source = "", condition = "condition_EVENT_ANY_MONSTER_LIVE_46", action = "action_EVENT_ANY_MONSTER_LIVE_46" },
|
||||
{ name = "CHALLENGE_SUCCESS_47", event = EventType.EVENT_CHALLENGE_SUCCESS, source = "501", condition = "", action = "action_EVENT_CHALLENGE_SUCCESS_47" },
|
||||
{ name = "CHALLENGE_FAIL_48", event = EventType.EVENT_CHALLENGE_FAIL, source = "501", condition = "", action = "action_EVENT_CHALLENGE_FAIL_48" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = false,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { 46, 47, 48 },
|
||||
triggers = { "ANY_MONSTER_LIVE_46", "CHALLENGE_SUCCESS_47", "CHALLENGE_FAIL_48" },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = suite_2,
|
||||
monsters = { 1, 2, 3, 4, 5 },
|
||||
gadgets = { },
|
||||
regions = { 46, 47, 48 },
|
||||
triggers = { "ANY_MONSTER_LIVE_46", "CHALLENGE_SUCCESS_47", "CHALLENGE_FAIL_48" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_LIVE_46(context, evt)
|
||||
if 5 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_LIVE_46(context, evt)
|
||||
-- 创建编号为501(该挑战的识别id),挑战内容为146的区域挑战,具体参数填写方式,见DungeonChallengeData表中的注释,所有填写的值都必须是int类型
|
||||
if 0 ~= ScriptLib.ActiveChallenge(context, 501, 146, 90, 220014005, 5, 0) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CHALLENGE_SUCCESS_47(context, evt)
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptionsByGroupId(context, 220014002, 37, {11}) then
|
||||
return -1
|
||||
end
|
||||
|
||||
if 0 ~= ScriptLib.ShowReminder(context, 10060501) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 触发镜头注目
|
||||
local pos = {x=191, y=57, z=377}
|
||||
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 3, is_force = true, is_broadcast = false }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CHALLENGE_FAIL_48(context, evt)
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220014005, suite = 1 }) then
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 220014002, 37, {10})
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
178
soggy_resources/lua/Scene/20014/scene20014_group220014006.lua
Normal file
178
soggy_resources/lua/Scene/20014/scene20014_group220014006.lua
Normal file
@@ -0,0 +1,178 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 7, monster_id = 20010901, pos = { x = 191.5, y = 57.0, z = 385.5 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 8, monster_id = 20011001, pos = { x = 184.2, y = 57.0, z = 382.3 }, rot = { x = 0.0, y = 144.8, z = 0.0 }, level = 0 },
|
||||
{ config_id = 9, monster_id = 20011001, pos = { x = 197.8, y = 57.0, z = 382.2 }, rot = { x = 0.0, y = 242.4, z = 0.0 }, level = 0 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 99, gadget_id = 70220003, pos = { x = 184.1, y = 57.0, z = 370.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 100, gadget_id = 70220003, pos = { x = 181.1, y = 57.0, z = 373.0 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 101, gadget_id = 70220003, pos = { x = 181.0, y = 57.0, z = 376.8 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 102, gadget_id = 70220003, pos = { x = 181.2, y = 57.0, z = 382.4 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 103, gadget_id = 70220003, pos = { x = 181.0, y = 57.0, z = 386.1 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 104, gadget_id = 70220003, pos = { x = 188.2, y = 57.0, z = 370.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 105, gadget_id = 70220003, pos = { x = 192.4, y = 57.0, z = 370.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 106, gadget_id = 70220003, pos = { x = 202.5, y = 57.0, z = 373.3 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 107, gadget_id = 70220003, pos = { x = 202.5, y = 57.0, z = 376.8 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 108, gadget_id = 70220003, pos = { x = 202.6, y = 57.0, z = 382.5 }, rot = { x = 0.0, y = 90.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 109, gadget_id = 70220003, pos = { x = 202.6, y = 57.0, z = 386.2 }, rot = { x = 0.0, y = 91.4, z = 0.0 }, level = 1 },
|
||||
{ config_id = 111, gadget_id = 70220003, pos = { x = 197.0, y = 92.5, z = 370.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 112, gadget_id = 70220003, pos = { x = 196.3, y = 57.1, z = 370.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 113, gadget_id = 70220003, pos = { x = 200.0, y = 56.9, z = 370.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 114, gadget_id = 70220003, pos = { x = 183.5, y = 57.0, z = 388.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 115, gadget_id = 70220003, pos = { x = 187.7, y = 57.0, z = 388.6 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 116, gadget_id = 70220003, pos = { x = 191.9, y = 57.0, z = 388.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 117, gadget_id = 70220003, pos = { x = 195.7, y = 57.0, z = 388.5 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 118, gadget_id = 70220003, pos = { x = 199.3, y = 57.0, z = 388.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 7, shape = RegionShape.SPHERE, radius = 5, pos = { x = 191.5, y = 57.0, z = 376.1 } },
|
||||
{ config_id = 8, shape = RegionShape.SPHERE, radius = 5, pos = { x = 191.6, y = 57.0, z = 376.2 } },
|
||||
{ config_id = 11, shape = RegionShape.SPHERE, radius = 5, pos = { x = 191.5, y = 57.0, z = 376.0 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ 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", trigger_count = 0 },
|
||||
{ name = "ANY_MONSTER_DIE_8", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_8", action = "action_EVENT_ANY_MONSTER_DIE_8", trigger_count = 0 },
|
||||
{ name = "ANY_MONSTER_DIE_11", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_11", action = "action_EVENT_ANY_MONSTER_DIE_11" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
{ name = "RemindCount", value = 0, persistent = false }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = false,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = suite_2,
|
||||
monsters = { 7, 8, 9 },
|
||||
gadgets = { 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 111, 112, 113, 114, 115, 116, 117, 118 },
|
||||
regions = { 7, 8, 11 },
|
||||
triggers = { "ANY_MONSTER_DIE_7", "ANY_MONSTER_DIE_8", "ANY_MONSTER_DIE_11" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
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)
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 8, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_8(context, evt)
|
||||
--判断死亡怪物的configid是否为 9
|
||||
if evt.param1 ~= 9 then
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_8(context, evt)
|
||||
-- 延迟0秒刷怪
|
||||
if 0 ~= ScriptLib.CreateMonster(context, { config_id = 9, delay_time = 0 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_11(context, evt)
|
||||
--判断死亡怪物的configid是否为 7
|
||||
if evt.param1 ~= 7 then
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_11(context, evt)
|
||||
-- 重新生成指定group,指定suite
|
||||
if 0 ~= ScriptLib.RefreshGroup(context, { group_id = 220014006, suite = 1 }) then
|
||||
return -1
|
||||
end
|
||||
if 0 ~= ScriptLib.ShowReminder(context, 10060701) then
|
||||
return -1
|
||||
end
|
||||
-- 触发镜头注目
|
||||
local pos = {x=191, y=57, z=377}
|
||||
if 0 ~= ScriptLib.BeginCameraSceneLook(context, { look_pos = pos, duration = 3, is_force = true, is_broadcast = false }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
|
||||
ScriptLib.SetWorktopOptionsByGroupId(context, 220014002, 37, {12})
|
||||
|
||||
return 0
|
||||
end
|
119
soggy_resources/lua/Scene/20014/scene20014_group220014007.lua
Normal file
119
soggy_resources/lua/Scene/20014/scene20014_group220014007.lua
Normal file
@@ -0,0 +1,119 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 12, monster_id = 23040101, pos = { x = 191.5, y = 59.3, z = 398.5 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 2, affix = { 1001, 1002, 1003 }, isElite = true },
|
||||
{ config_id = 17, monster_id = 21010301, pos = { x = 181.0, y = 56.8, z = 392.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 18, monster_id = 21010301, pos = { x = 202.7, y = 57.0, z = 391.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 19, monster_id = 21010301, pos = { x = 177.6, y = 57.0, z = 379.2 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 20, monster_id = 21010301, pos = { x = 205.9, y = 57.0, z = 379.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 0, disableWander = true }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 38, gadget_id = 70210031, pos = { x = 191.7, y = 57.0, z = 388.4 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1, chest_drop_id = 1400500, showcutscene = true, type = GadgetType.GADGET_DUNGEON_PASS_CHEST },
|
||||
{ config_id = 41, gadget_id = 70220004, pos = { x = 201.0, y = 57.0, z = 379.4 }, rot = { x = 0.0, y = 354.2, z = 0.0 }, level = 1 },
|
||||
{ config_id = 42, gadget_id = 70220004, pos = { x = 183.6, y = 57.0, z = 389.2 }, rot = { x = 0.0, y = 106.8, z = 0.0 }, level = 1 },
|
||||
{ config_id = 43, gadget_id = 70220004, pos = { x = 200.6, y = 57.0, z = 388.5 }, rot = { x = 0.0, y = 12.8, z = 0.0 }, level = 1 },
|
||||
{ config_id = 44, gadget_id = 70220004, pos = { x = 200.2, y = 56.9, z = 369.9 }, rot = { x = 0.0, y = 214.6, z = 0.0 }, level = 1 },
|
||||
{ config_id = 45, gadget_id = 70220005, pos = { x = 201.4, y = 58.5, z = 356.5 }, rot = { x = 0.0, y = 134.9, z = 0.0 }, level = 1 },
|
||||
{ config_id = 46, gadget_id = 70220005, pos = { x = 191.4, y = 58.4, z = 356.3 }, rot = { x = 0.0, y = 189.9, z = 0.0 }, level = 1 },
|
||||
{ config_id = 47, gadget_id = 70220005, pos = { x = 181.7, y = 58.5, z = 356.4 }, rot = { x = 0.0, y = 334.7, z = 0.0 }, level = 1 },
|
||||
{ config_id = 48, gadget_id = 70220005, pos = { x = 184.1, y = 59.0, z = 397.1 }, rot = { x = 0.0, y = 102.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 49, gadget_id = 70220005, pos = { x = 199.0, y = 59.0, z = 397.0 }, rot = { x = 0.0, y = 178.2, z = 0.0 }, level = 1 },
|
||||
{ config_id = 119, gadget_id = 70220004, pos = { x = 204.1, y = 57.0, z = 379.1 }, rot = { x = 0.0, y = 224.4, z = 0.0 }, level = 1 },
|
||||
{ config_id = 120, gadget_id = 70220004, pos = { x = 204.2, y = 57.0, z = 369.1 }, rot = { x = 0.0, y = 166.8, z = 0.0 }, level = 1 },
|
||||
{ config_id = 121, gadget_id = 70220004, pos = { x = 179.5, y = 57.0, z = 368.7 }, rot = { x = 0.0, y = 136.2, z = 0.0 }, level = 1 },
|
||||
{ config_id = 122, gadget_id = 70220004, pos = { x = 182.1, y = 57.0, z = 371.3 }, rot = { x = 0.0, y = 68.7, z = 0.0 }, level = 1 },
|
||||
{ config_id = 123, gadget_id = 70220004, pos = { x = 182.6, y = 57.0, z = 380.0 }, rot = { x = 0.0, y = 320.4, z = 0.0 }, level = 1 },
|
||||
{ config_id = 124, gadget_id = 70220004, pos = { x = 179.3, y = 57.0, z = 379.0 }, rot = { x = 0.0, y = 224.5, z = 0.0 }, level = 1 },
|
||||
{ config_id = 125, gadget_id = 70220004, pos = { x = 179.4, y = 57.0, z = 388.2 }, rot = { x = 0.0, y = 359.3, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 15, shape = RegionShape.SPHERE, radius = 5, pos = { x = 191.3, y = 57.0, z = 376.1 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "DUNGEON_SETTLE_15", event = EventType.EVENT_DUNGEON_SETTLE, source = "", condition = "condition_EVENT_DUNGEON_SETTLE_15", action = "action_EVENT_DUNGEON_SETTLE_15" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = false,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = suite_2,
|
||||
monsters = { 12 },
|
||||
gadgets = { 41, 42, 43, 44, 45, 46, 47, 48, 49, 119, 120, 121, 122, 123, 124, 125 },
|
||||
regions = { 15 },
|
||||
triggers = { "DUNGEON_SETTLE_15" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_DUNGEON_SETTLE_15(context, evt)
|
||||
-- 判断副本成功
|
||||
if 1 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_DUNGEON_SETTLE_15(context, evt)
|
||||
-- 创生gadget 38
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 38 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
117
soggy_resources/lua/Scene/20014/scene20014_group220014008.lua
Normal file
117
soggy_resources/lua/Scene/20014/scene20014_group220014008.lua
Normal file
@@ -0,0 +1,117 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 23, monster_id = 21020201, pos = { x = 187.4, y = 57.0, z = 386.2 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0, disableWander = true },
|
||||
{ config_id = 24, monster_id = 21020101, pos = { x = 194.9, y = 57.0, z = 385.5 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 0, disableWander = true }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 50, gadget_id = 70210031, pos = { x = 191.5, y = 57.0, z = 381.9 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1, chest_drop_id = 1400500, showcutscene = true, type = GadgetType.GADGET_DUNGEON_PASS_CHEST },
|
||||
{ config_id = 51, gadget_id = 70210031, pos = { x = 192.4, y = 57.0, z = 382.9 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1, chest_drop_id = 1400500, type = GadgetType.GADGET_DUNGEON_PASS_CHEST },
|
||||
{ config_id = 52, gadget_id = 70210031, pos = { x = 190.7, y = 57.0, z = 383.0 }, rot = { x = 0.0, y = 180.0, z = 0.0 }, level = 1, chest_drop_id = 1400500, type = GadgetType.GADGET_DUNGEON_PASS_CHEST }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 19, shape = RegionShape.SPHERE, radius = 5, pos = { x = 192.1, y = 57.0, z = 376.5 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "ANY_MONSTER_DIE_19", event = EventType.EVENT_ANY_MONSTER_DIE, source = "", condition = "condition_EVENT_ANY_MONSTER_DIE_19", action = "action_EVENT_ANY_MONSTER_DIE_19" }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = false,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
},
|
||||
{
|
||||
-- suite_id = 1,
|
||||
-- description = suite_2,
|
||||
monsters = { 23, 24 },
|
||||
gadgets = { },
|
||||
regions = { 19 },
|
||||
triggers = { "ANY_MONSTER_DIE_19" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ANY_MONSTER_DIE_19(context, evt)
|
||||
-- 判断剩余怪物数量是否是0
|
||||
if ScriptLib.GetGroupMonsterCount(context) ~= 0 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ANY_MONSTER_DIE_19(context, evt)
|
||||
-- 创生gadget 50
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 50 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 51
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 51 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 52
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 52 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
-- 创生gadget 53
|
||||
if 0 ~= ScriptLib.CreateGadget(context, { config_id = 53 }) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
93
soggy_resources/lua/Scene/20014/scene20014_point.json
Normal file
93
soggy_resources/lua/Scene/20014/scene20014_point.json
Normal file
@@ -0,0 +1,93 @@
|
||||
{
|
||||
"radius": 10.0,
|
||||
"points": {
|
||||
"2": {
|
||||
"type": "NORMAL",
|
||||
"$type": "DungeonQuitPoint",
|
||||
"gadgetId": 70120004,
|
||||
"pos": {
|
||||
"x": 191.486938,
|
||||
"y": 59.264,
|
||||
"z": 399.6114
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 180.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"areaId": 0,
|
||||
"unlocked": true,
|
||||
"cutsceneList": [],
|
||||
"size": {
|
||||
"x": 5.0,
|
||||
"y": 5.0,
|
||||
"z": 5.0
|
||||
},
|
||||
"titleTextID": "UI_DUNGEON_EXIT"
|
||||
},
|
||||
"3": {
|
||||
"type": "NORMAL",
|
||||
"$type": "DungeonWayPoint",
|
||||
"gadgetId": 70120003,
|
||||
"pos": {
|
||||
"x": 204.278061,
|
||||
"y": 58.51642,
|
||||
"z": 353.124146
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"areaId": 0,
|
||||
"unlocked": true,
|
||||
"cutsceneList": [],
|
||||
"size": {
|
||||
"x": 40.0,
|
||||
"y": 20.0,
|
||||
"z": 10.0
|
||||
},
|
||||
"isBoss": false,
|
||||
"groupIds": []
|
||||
}
|
||||
},
|
||||
"areas": {},
|
||||
"forces": {},
|
||||
"entities": {
|
||||
"1": {
|
||||
"$type": "ConfigLocalTrigger",
|
||||
"gadgetId": 70010006,
|
||||
"pos": {
|
||||
"x": 194.457733,
|
||||
"y": 37.7,
|
||||
"z": 346.7
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"areaId": 0,
|
||||
"unlocked": true,
|
||||
"checkDist": 100.0,
|
||||
"withGO": false,
|
||||
"triggerFlag": "DeadRegion",
|
||||
"shape": {
|
||||
"$type": "ConfigShapeRect",
|
||||
"useHeight": true,
|
||||
"height": 5.0,
|
||||
"centerType": "Center",
|
||||
"width": 200.0,
|
||||
"length": 300.0
|
||||
},
|
||||
"checkCount": 0,
|
||||
"vectorParam": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"floatParam": 0.0
|
||||
}
|
||||
},
|
||||
"doors": {}
|
||||
}
|
94
soggy_resources/lua/Scene/20014/scene20014_routes.lua
Normal file
94
soggy_resources/lua/Scene/20014/scene20014_routes.lua
Normal file
@@ -0,0 +1,94 @@
|
||||
routes = {
|
||||
["DefaultRouteName"] = {
|
||||
name = "DefaultRouteName",
|
||||
localId = 1,
|
||||
type = 0,
|
||||
points = {
|
||||
{ pos = { x = 202.5, y = 57.0, z = 367.4 }, waitTime = 0, speedLevel = 1 },
|
||||
{ pos = { x = 200.1, y = 56.9, z = 367.6 }, waitTime = 0, speedLevel = 2 },
|
||||
{ pos = { x = 192.7, y = 57.0, z = 374.2 }, waitTime = 0, speedLevel = 2 }
|
||||
}
|
||||
},
|
||||
["DefaultRouteName"] = {
|
||||
name = "DefaultRouteName",
|
||||
localId = 2,
|
||||
type = 0,
|
||||
points = {
|
||||
{ pos = { x = 180.8, y = 57.0, z = 367.5 }, waitTime = 0, speedLevel = 1 },
|
||||
{ pos = { x = 183.0, y = 57.0, z = 367.5 }, waitTime = 0, speedLevel = 2 },
|
||||
{ pos = { x = 189.6, y = 57.0, z = 374.1 }, waitTime = 0, speedLevel = 5 }
|
||||
}
|
||||
},
|
||||
["DefaultRouteName"] = {
|
||||
name = "DefaultRouteName",
|
||||
localId = 3,
|
||||
type = 0,
|
||||
points = {
|
||||
{ pos = { x = 177.8, y = 57.0, z = 380.9 }, waitTime = 0, speedLevel = 1 },
|
||||
{ pos = { x = 179.4, y = 57.0, z = 383.4 }, waitTime = 0, speedLevel = 2 },
|
||||
{ pos = { x = 187.9, y = 57.0, z = 379.2 }, waitTime = 0, speedLevel = 2 }
|
||||
}
|
||||
},
|
||||
["DefaultRouteName"] = {
|
||||
name = "DefaultRouteName",
|
||||
localId = 4,
|
||||
type = 0,
|
||||
points = {
|
||||
{ pos = { x = 204.9, y = 57.0, z = 381.1 }, waitTime = 0, speedLevel = 1 },
|
||||
{ pos = { x = 203.1, y = 57.0, z = 383.5 }, waitTime = 0, speedLevel = 2 },
|
||||
{ pos = { x = 195.9, y = 57.0, z = 380.7 }, waitTime = 0, speedLevel = 2 }
|
||||
}
|
||||
},
|
||||
["DefaultRouteName"] = {
|
||||
name = "DefaultRouteName",
|
||||
localId = 5,
|
||||
type = 0,
|
||||
points = {
|
||||
{ pos = { x = 203.0, y = 57.0, z = 390.4 }, waitTime = 0, speedLevel = 1 },
|
||||
{ pos = { x = 199.4, y = 57.0, z = 389.6 }, waitTime = 0, speedLevel = 2 },
|
||||
{ pos = { x = 193.4, y = 57.0, z = 380.1 }, waitTime = 0, speedLevel = 2 }
|
||||
}
|
||||
},
|
||||
["DefaultRouteName"] = {
|
||||
name = "DefaultRouteName",
|
||||
localId = 6,
|
||||
type = 0,
|
||||
points = {
|
||||
{ pos = { x = 180.5, y = 56.9, z = 391.1 }, waitTime = 0, speedLevel = 1 },
|
||||
{ pos = { x = 183.1, y = 56.9, z = 390.9 }, waitTime = 0, speedLevel = 2 },
|
||||
{ pos = { x = 188.0, y = 57.0, z = 380.9 }, waitTime = 0, speedLevel = 2 }
|
||||
}
|
||||
},
|
||||
["DefaultRouteName"] = {
|
||||
name = "DefaultRouteName",
|
||||
localId = 7,
|
||||
type = 0,
|
||||
points = {
|
||||
{ pos = { x = 191.4, y = 59.0, z = 397.9 }, waitTime = 0, speedLevel = 1 },
|
||||
{ pos = { x = 191.3, y = 59.0, z = 394.9 }, waitTime = 0, speedLevel = 1 },
|
||||
{ pos = { x = 191.5, y = 57.1, z = 383.5 }, waitTime = 0, speedLevel = 1 }
|
||||
}
|
||||
},
|
||||
["DefaultRouteName"] = {
|
||||
name = "DefaultRouteName",
|
||||
localId = 8,
|
||||
type = 0,
|
||||
points = {
|
||||
{ pos = { x = 178.6, y = 57.0, z = 371.6 }, waitTime = 0, speedLevel = 2 },
|
||||
{ pos = { x = 178.5, y = 56.9, z = 391.6 }, waitTime = 0, speedLevel = 2 },
|
||||
{ pos = { x = 185.1, y = 57.0, z = 390.5 }, waitTime = 0, speedLevel = 2 },
|
||||
{ pos = { x = 190.6, y = 57.0, z = 379.7 }, waitTime = 0, speedLevel = 2 }
|
||||
}
|
||||
},
|
||||
["DefaultRouteName"] = {
|
||||
name = "DefaultRouteName",
|
||||
localId = 9,
|
||||
type = 0,
|
||||
points = {
|
||||
{ pos = { x = 205.3, y = 57.0, z = 371.6 }, waitTime = 0, speedLevel = 2 },
|
||||
{ pos = { x = 204.6, y = 57.0, z = 391.8 }, waitTime = 0, speedLevel = 2 },
|
||||
{ pos = { x = 198.3, y = 57.0, z = 389.0 }, waitTime = 0, speedLevel = 2 },
|
||||
{ pos = { x = 193.1, y = 57.0, z = 379.5 }, waitTime = 0, speedLevel = 2 }
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user