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/20007/scene20007.lua
Normal file
22
soggy_resources/lua/Scene/20007/scene20007.lua
Normal file
@@ -0,0 +1,22 @@
|
||||
-- 地图配置
|
||||
scene_config = {
|
||||
begin_pos = { x = -320.0, z = -236.0 },
|
||||
size = { x = 986.0, z = 622.0 },
|
||||
born_pos = { x = -0.1, y = 0.0, z = 0.0 },
|
||||
born_rot = { x = 0.0, y = 0.0, z = 0.0 },
|
||||
die_y = -347.2
|
||||
}
|
||||
|
||||
-- 所有的区块
|
||||
blocks = { 20007 }
|
||||
|
||||
-- 所有的区块范围坐标
|
||||
block_rects = {
|
||||
{ min = { x = -320.0, z = -236.0 }, max = { x = 666.0, z = 386.0 } }
|
||||
}
|
||||
|
||||
-- Dummy Points
|
||||
dummy_points = { "dummy_points" }
|
||||
|
||||
-- Routes
|
||||
routes_config = { }
|
217
soggy_resources/lua/Scene/20007/scene20007_20007_routes.json
Normal file
217
soggy_resources/lua/Scene/20007/scene20007_20007_routes.json
Normal file
@@ -0,0 +1,217 @@
|
||||
{
|
||||
"sceneId": 20007,
|
||||
"routes": [
|
||||
{
|
||||
"localId": 1,
|
||||
"name": "pingtai1",
|
||||
"type": "Reciprocate",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 2.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 12.3941469,
|
||||
"y": -0.0139999986,
|
||||
"z": -11.2909594
|
||||
},
|
||||
"targetVelocity": 3.0
|
||||
},
|
||||
{
|
||||
"waitTime": 1.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 13.6662836,
|
||||
"y": 19.6069984,
|
||||
"z": -8.710076
|
||||
},
|
||||
"targetVelocity": 3.0
|
||||
},
|
||||
{
|
||||
"waitTime": 2.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 6.735185,
|
||||
"y": 22.4594231,
|
||||
"z": -5.63927841
|
||||
},
|
||||
"targetVelocity": 3.0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"localId": 2,
|
||||
"name": "pingtai2",
|
||||
"type": "Loop",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 2.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 20.6474419,
|
||||
"y": 20.967,
|
||||
"z": 26.2894211
|
||||
},
|
||||
"targetVelocity": 3.0
|
||||
},
|
||||
{
|
||||
"waitTime": 1.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 11.3881254,
|
||||
"y": 20.967,
|
||||
"z": 17.3631783
|
||||
},
|
||||
"targetVelocity": 3.0
|
||||
},
|
||||
{
|
||||
"waitTime": 2.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 18.7168713,
|
||||
"y": 20.967,
|
||||
"z": 8.733078
|
||||
},
|
||||
"targetVelocity": 3.0
|
||||
},
|
||||
{
|
||||
"waitTime": 1.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 30.5042286,
|
||||
"y": 20.967,
|
||||
"z": 13.893405
|
||||
},
|
||||
"targetVelocity": 3.0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"localId": 3,
|
||||
"name": "Route_003",
|
||||
"type": "Reciprocate",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": -10.8295422,
|
||||
"y": 20.967,
|
||||
"z": 25.1573734
|
||||
},
|
||||
"targetVelocity": 5.0
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": -10.94438,
|
||||
"y": 20.967,
|
||||
"z": 5.91837168
|
||||
},
|
||||
"targetVelocity": 5.0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"localId": 20007004,
|
||||
"name": "Route_20007004",
|
||||
"type": "Loop",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 2.181909,
|
||||
"y": -0.0139999986,
|
||||
"z": -1.07502937
|
||||
},
|
||||
"targetVelocity": 1.0
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 2.33451,
|
||||
"y": -0.0139999986,
|
||||
"z": 2.28198051
|
||||
},
|
||||
"targetVelocity": 1.0
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 1.994267,
|
||||
"y": -0.0139999986,
|
||||
"z": -7.772188
|
||||
},
|
||||
"targetVelocity": 1.0
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": 1.767753,
|
||||
"y": -0.0139999986,
|
||||
"z": -14.4878578
|
||||
},
|
||||
"targetVelocity": 1.0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"localId": 20007005,
|
||||
"name": "Platform_20007005",
|
||||
"type": "Reciprocate",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 2.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": -8.589084,
|
||||
"y": 25.1178188,
|
||||
"z": -5.87314272
|
||||
},
|
||||
"targetVelocity": 3.0
|
||||
},
|
||||
{
|
||||
"waitTime": 2.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": -8.601045,
|
||||
"y": 18.0727367,
|
||||
"z": -5.87240267
|
||||
},
|
||||
"targetVelocity": 3.0
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"localId": 20007006,
|
||||
"name": "Route_20007006",
|
||||
"type": "Loop",
|
||||
"points": [
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": -11.3268538,
|
||||
"y": -0.0139999986,
|
||||
"z": 14.3120918
|
||||
},
|
||||
"targetVelocity": 1.0
|
||||
},
|
||||
{
|
||||
"waitTime": 0.0,
|
||||
"speedLevel": 1,
|
||||
"pos": {
|
||||
"x": -11.3333387,
|
||||
"y": -0.0139999986,
|
||||
"z": 8.832758
|
||||
},
|
||||
"targetVelocity": 1.0
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
@@ -0,0 +1,7 @@
|
||||
-- 所有的group
|
||||
groups = {
|
||||
{ id = 220007001, refresh_time = 20, pos = { x = -0.7, y = 0.0, z = 14.5 } },
|
||||
{ id = 220007003, refresh_time = 0, pos = { x = 3.4, y = 21.0, z = 13.3 } },
|
||||
{ id = 220007004, refresh_time = 0, pos = { x = -2.1, y = 0.0, z = -11.0 } },
|
||||
{ id = 220007005, refresh_time = 0, pos = { x = -2.2, y = 21.0, z = -5.0 } }
|
||||
}
|
10
soggy_resources/lua/Scene/20007/scene20007_dummy_points.lua
Normal file
10
soggy_resources/lua/Scene/20007/scene20007_dummy_points.lua
Normal file
@@ -0,0 +1,10 @@
|
||||
dummy_points = {
|
||||
["Q413InjurySoldier1"] = { pos = { x = 8.9, y = 0.0, z = 20.7 }, rot = { x = 0.0, y = 195.5, z = 0.0 } },
|
||||
["Q413InjurySoldier2"] = { pos = { x = 55.2, y = -8.1, z = 130.2 }, rot = { x = 0.0, y = 255.2, z = 0.0 } },
|
||||
["Q413InjurySoldier3"] = { pos = { x = 157.7, y = -8.1, z = 176.4 }, rot = { x = 0.0, y = 242.7, z = 0.0 } },
|
||||
["Q413Captain"] = { pos = { x = 154.0, y = 16.3, z = 391.2 }, rot = { x = 0.0, y = 208.2, z = 0.0 } },
|
||||
["Q413WaitSoldier1"] = { pos = { x = 158.0, y = 16.3, z = 392.9 }, rot = { x = 0.0, y = 234.2, z = 0.0 } },
|
||||
["Q413WaitSoldier2"] = { pos = { x = 153.3, y = 16.3, z = 396.2 }, rot = { x = 0.0, y = 200.4, z = 0.0 } },
|
||||
["Q413WaitSoldier3"] = { pos = { x = 160.8, y = 16.3, z = 389.9 }, rot = { x = 0.0, y = 245.2, z = 0.0 } },
|
||||
["Q413BabaraLive"] = { pos = { x = 152.2, y = 16.3, z = 387.4 }, rot = { x = 0.0, y = 35.8, z = 0.0 } }
|
||||
}
|
@@ -0,0 +1 @@
|
||||
[]
|
143
soggy_resources/lua/Scene/20007/scene20007_group220007001.lua
Normal file
143
soggy_resources/lua/Scene/20007/scene20007_group220007001.lua
Normal file
@@ -0,0 +1,143 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
{ config_id = 1, monster_id = 20011201, pos = { x = -12.3, y = 0.0, z = 23.3 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 2, monster_id = 20011201, pos = { x = -0.9, y = 0.0, z = 22.4 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 3, monster_id = 20011201, pos = { x = 10.5, y = 0.0, z = 21.0 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 1, gadget_id = 70210011, pos = { x = 16.0, y = 5.0, z = 28.4 }, rot = { x = 0.0, y = 272.8, z = 0.0 }, level = 1, chest_drop_id = 403143 },
|
||||
{ config_id = 12, gadget_id = 70310004, pos = { x = 2.3, y = 0.1, z = 2.8 }, rot = { x = 0.0, y = 108.4, z = 0.0 }, level = 1 },
|
||||
{ config_id = 13, gadget_id = 70310001, pos = { x = -1.2, y = 0.0, z = 2.6 }, rot = { x = 0.0, y = 137.3, z = 0.0 }, level = 1 },
|
||||
{ config_id = 20, gadget_id = 70500000, pos = { x = 1.5, y = 0.0, z = -15.6 }, rot = { x = 0.0, y = 192.7, z = 0.0 }, level = 1, point_type = 3001 },
|
||||
{ config_id = 21, gadget_id = 70310002, pos = { x = -1.1, y = 0.0, z = 0.8 }, rot = { x = 0.0, y = 145.3, z = 0.0 }, level = 1 },
|
||||
{ config_id = 22, gadget_id = 70520001, pos = { x = 1.6, y = 0.0, z = -13.1 }, rot = { x = 0.0, y = 293.3, z = 0.0 }, level = 1 },
|
||||
{ config_id = 23, gadget_id = 70520002, pos = { x = 4.1, y = 0.0, z = -14.6 }, rot = { x = 0.0, y = 335.3, z = 0.0 }, level = 1 },
|
||||
{ config_id = 26, gadget_id = 70210052, pos = { x = -5.8, y = 21.0, z = 6.1 }, rot = { x = 0.0, y = 221.8, z = 0.0 }, level = 1, chest_drop_id = 403143, state = GadgetState.ChestLocked },
|
||||
{ config_id = 30, gadget_id = 70310001, pos = { x = -6.3, y = 21.0, z = 8.6 }, rot = { x = 0.0, y = 264.1, z = 0.0 }, level = 1 },
|
||||
{ config_id = 33, gadget_id = 70350004, pos = { x = 5.6, y = 0.0, z = -9.8 }, rot = { x = 0.0, y = 272.5, z = 0.0 }, level = 1 },
|
||||
{ config_id = 34, gadget_id = 70900207, pos = { x = 8.2, y = 0.0, z = -8.1 }, rot = { x = 0.0, y = 169.2, z = 0.0 }, level = 1 },
|
||||
{ config_id = 35, gadget_id = 70900208, pos = { x = 4.8, y = 0.0, z = -8.2 }, rot = { x = 0.0, y = 6.6, z = 0.0 }, level = 1 },
|
||||
{ config_id = 38, gadget_id = 70900210, pos = { x = 1.9, y = 0.9, z = -16.8 }, rot = { x = 0.0, y = 123.1, z = 0.0 }, level = 1, route_id = 20007004 },
|
||||
{ config_id = 39, gadget_id = 70900209, pos = { x = 1.7, y = 0.4, z = 6.8 }, rot = { x = 0.0, y = 73.2, z = 0.0 }, level = 1 },
|
||||
{ config_id = 44, gadget_id = 70510009, pos = { x = -3.8, y = 0.0, z = -10.1 }, rot = { x = 0.0, y = 261.7, z = 0.0 }, level = 1 },
|
||||
{ config_id = 45, gadget_id = 70500000, pos = { x = -0.3, y = 0.0, z = -15.9 }, rot = { x = 0.0, y = 261.0, z = 0.0 }, level = 1, point_type = 3008 },
|
||||
{ config_id = 46, gadget_id = 70500000, pos = { x = -2.3, y = 0.0, z = -16.0 }, rot = { x = 0.0, y = 184.8, z = 0.0 }, level = 1, point_type = 3006 },
|
||||
{ config_id = 47, gadget_id = 70300055, pos = { x = -0.7, y = 1.7, z = 14.1 }, rot = { x = 0.0, y = 35.1, z = 0.0 }, level = 1 },
|
||||
{ config_id = 48, gadget_id = 70500000, pos = { x = -1.0, y = 0.0, z = -10.1 }, rot = { x = 0.0, y = 315.9, z = 0.0 }, level = 1, point_type = 6666 },
|
||||
{ config_id = 49, gadget_id = 70900213, pos = { x = 4.3, y = 0.8, z = 13.4 }, rot = { x = 0.0, y = 177.4, z = 0.0 }, level = 1, state = GadgetState.GearStart },
|
||||
{ config_id = 53, gadget_id = 70900217, pos = { x = -4.4, y = 7.3, z = 7.7 }, rot = { x = 0.0, y = 196.3, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 11, shape = RegionShape.SPHERE, radius = 5, pos = { x = 0.4, y = 0.0, z = -10.3 } },
|
||||
{ config_id = 16, shape = RegionShape.SPHERE, radius = 5, pos = { x = -0.7, y = 0.0, z = 14.5 } },
|
||||
{ config_id = 22, shape = RegionShape.SPHERE, radius = 5, pos = { x = -0.7, y = 0.0, z = 14.5 } },
|
||||
{ config_id = 25, shape = RegionShape.SPHERE, radius = 5, pos = { x = 4.4, y = 0.0, z = -7.3 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "CLIENT_EXECUTE_11", event = EventType.EVENT_CLIENT_EXECUTE, source = "FireFlora", condition = "", action = "action_EVENT_CLIENT_EXECUTE_11", trigger_count = 0 },
|
||||
{ name = "CLIENT_EXECUTE_16", event = EventType.EVENT_CLIENT_EXECUTE, source = "ChestStateChange", condition = "", action = "action_EVENT_CLIENT_EXECUTE_16", trigger_count = 0 },
|
||||
{ name = "CLIENT_EXECUTE_22", event = EventType.EVENT_CLIENT_EXECUTE, source = "FireSourceChange", condition = "", action = "action_EVENT_CLIENT_EXECUTE_22", trigger_count = 0 },
|
||||
{ name = "CLIENT_EXECUTE_25", event = EventType.EVENT_CLIENT_EXECUTE, source = "ElectricPile", condition = "", action = "action_EVENT_CLIENT_EXECUTE_25", trigger_count = 0 }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = suite_1,
|
||||
monsters = { 1, 2, 3 },
|
||||
gadgets = { 1, 12, 13, 20, 21, 22, 23, 26, 30, 33, 34, 35, 38, 39, 44, 45, 46, 47 },
|
||||
regions = { 11, 16, 22, 25 },
|
||||
triggers = { "CLIENT_EXECUTE_11", "CLIENT_EXECUTE_16", "CLIENT_EXECUTE_22", "CLIENT_EXECUTE_25" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CLIENT_EXECUTE_11(context, evt)
|
||||
local this_gadget = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 220007001, this_gadget, GadgetState.Action03 )
|
||||
ScriptLib.SetGadgetEnableInteract(context, 220007001, this_gadget, true)
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CLIENT_EXECUTE_16(context, evt)
|
||||
if evt.param1 == 0 then
|
||||
local this_chest = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 0, this_chest, GadgetState.Default)
|
||||
return 0
|
||||
end
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CLIENT_EXECUTE_22(context, evt)
|
||||
local this_gadget = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
|
||||
if evt.param1 == 1 then
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 0, this_gadget, GadgetState.GearStart )
|
||||
return 0
|
||||
end
|
||||
if evt.param1 == 0 then
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 0, this_gadget, GadgetState.Defautl )
|
||||
return 0
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CLIENT_EXECUTE_25(context, evt)
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 220007001, 33, GadgetState.GearStart )
|
||||
return 0
|
||||
end
|
225
soggy_resources/lua/Scene/20007/scene20007_group220007003.lua
Normal file
225
soggy_resources/lua/Scene/20007/scene20007_group220007003.lua
Normal file
@@ -0,0 +1,225 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 4, gadget_id = 70380001, pos = { x = 13.1, y = 1.2, z = -10.1 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 1 },
|
||||
{ config_id = 5, gadget_id = 70380001, pos = { x = 3.7, y = 25.1, z = 20.9 }, rot = { x = 0.0, y = 0.0, z = 0.0 }, level = 1, route_id = 2 },
|
||||
{ config_id = 6, gadget_id = 70360002, pos = { x = 1.9, y = 22.0, z = 11.5 }, rot = { x = 0.0, y = 70.1, z = 0.0 }, level = 1 },
|
||||
{ config_id = 9, gadget_id = 70220013, pos = { x = -3.0, y = 0.0, z = -0.8 }, rot = { x = 0.0, y = 97.0, z = 0.0 }, level = 1 },
|
||||
{ config_id = 10, gadget_id = 70220013, pos = { x = -3.2, y = 0.0, z = -3.7 }, rot = { x = 0.0, y = 189.4, z = 0.0 }, level = 1 },
|
||||
{ config_id = 25, gadget_id = 70520003, pos = { x = 3.3, y = 0.0, z = -11.8 }, rot = { x = 0.0, y = 80.9, z = 0.0 }, level = 1 },
|
||||
{ config_id = 27, gadget_id = 70210053, pos = { x = -3.8, y = 21.0, z = 6.1 }, rot = { x = 0.0, y = 243.5, z = 0.0 }, level = 1, chest_drop_id = 403224, state = GadgetState.ChestBramble },
|
||||
{ config_id = 31, gadget_id = 70310001, pos = { x = -3.3, y = 21.0, z = 9.7 }, rot = { x = 0.0, y = 189.9, z = 0.0 }, level = 1 },
|
||||
{ config_id = 43, gadget_id = 70220005, pos = { x = -0.3, y = 21.0, z = 12.2 }, rot = { x = 0.0, y = 151.0, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 4, shape = RegionShape.SPHERE, radius = 3, pos = { x = -10.1, y = 21.0, z = 15.6 } },
|
||||
{ config_id = 5, shape = RegionShape.SPHERE, radius = 5, pos = { x = 21.2, y = 21.5, z = 17.8 } },
|
||||
{ config_id = 6, shape = RegionShape.SPHERE, radius = 5, pos = { x = -11.3, y = 21.0, z = 6.1 } },
|
||||
{ config_id = 15, shape = RegionShape.SPHERE, radius = 5, pos = { x = 3.4, y = 21.0, z = 13.3 } },
|
||||
{ config_id = 18, shape = RegionShape.SPHERE, radius = 5, pos = { x = 3.4, y = 21.0, z = 13.3 } },
|
||||
{ config_id = 23, shape = RegionShape.SPHERE, radius = 5, pos = { x = 3.4, y = 21.0, z = 13.3 } },
|
||||
{ config_id = 26, shape = RegionShape.SPHERE, radius = 5, pos = { x = -10.2, y = 21.0, z = 7.2 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "GADGET_CREATE_4", event = EventType.EVENT_GADGET_CREATE, source = "", condition = "condition_EVENT_GADGET_CREATE_4", action = "action_EVENT_GADGET_CREATE_4", 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", trigger_count = 0 },
|
||||
{ name = "ENTER_REGION_6", event = EventType.EVENT_ENTER_REGION, source = "4", condition = "condition_EVENT_ENTER_REGION_6", action = "action_EVENT_ENTER_REGION_6", trigger_count = 0 },
|
||||
{ name = "CLIENT_EXECUTE_15", event = EventType.EVENT_CLIENT_EXECUTE, source = "FireSourceChange", condition = "", action = "action_EVENT_CLIENT_EXECUTE_15", trigger_count = 0 },
|
||||
{ name = "CLIENT_EXECUTE_18", event = EventType.EVENT_CLIENT_EXECUTE, source = "ChestStateChange", condition = "", action = "action_EVENT_CLIENT_EXECUTE_18", trigger_count = 0 },
|
||||
{ name = "CLIENT_EXECUTE_23", event = EventType.EVENT_CLIENT_EXECUTE, source = "FireSourceChange", condition = "", action = "action_EVENT_CLIENT_EXECUTE_23", trigger_count = 0 },
|
||||
{ name = "ENTER_REGION_26", event = EventType.EVENT_ENTER_REGION, source = "4", condition = "condition_EVENT_ENTER_REGION_26", action = "action_EVENT_ENTER_REGION_26", trigger_count = 0 }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 4, 5, 6, 9, 10, 25, 27, 31 },
|
||||
regions = { 4, 5, 6, 15, 18, 23, 26 },
|
||||
triggers = { "GADGET_CREATE_4", "SELECT_OPTION_5", "ENTER_REGION_6", "CLIENT_EXECUTE_15", "CLIENT_EXECUTE_18", "CLIENT_EXECUTE_23", "ENTER_REGION_26" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_GADGET_CREATE_4(context, evt)
|
||||
if 6 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_GADGET_CREATE_4(context, evt)
|
||||
-- 设置操作台选项
|
||||
if 0 ~= ScriptLib.SetWorktopOptions(context, {1,4,5,6}) then
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_SELECT_OPTION_5(context, evt)
|
||||
if 6 ~= evt.param1 then
|
||||
return false
|
||||
end
|
||||
local x = evt.param2
|
||||
ScriptLib.PrintLog("id="..x)
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_SELECT_OPTION_5(context, evt)
|
||||
-- 启动移动平台
|
||||
if 1 == evt.param2 then
|
||||
if 0 == ScriptLib.StartPlatform(context, 5) then
|
||||
ScriptLib.PrintLog("##StartPlatform##")
|
||||
end
|
||||
elseif 4 == evt.param2 then
|
||||
if 0 == ScriptLib.StopPlatform(context, 5) then
|
||||
ScriptLib.PrintLog("##StopPlatform##")
|
||||
end
|
||||
elseif 5 == evt.param2 then
|
||||
if 0 == ScriptLib.SetPlatformRouteId(context, 5, 3) then
|
||||
ScriptLib.PrintLog("##ChangeRoute3##")
|
||||
end
|
||||
elseif 6 == evt.param2 then
|
||||
if 0 == ScriptLib.SetPlatformRouteId(context, 5, 2) then
|
||||
ScriptLib.PrintLog("##ChangeRoute2##")
|
||||
end
|
||||
else
|
||||
return -1
|
||||
end
|
||||
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_6(context, evt)
|
||||
if evt.param1 ~= 6 then return false end
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_6(context, evt)
|
||||
ScriptLib.PrintLog("##EnterRegion")
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CLIENT_EXECUTE_15(context, evt)
|
||||
-- 针对groupid为 133005011 中该config对应的物件进行状态改变操作
|
||||
local this_gadget = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
|
||||
--ScriptLib.PrintLog("config_id="..this_gadget)
|
||||
if evt.param1 == 1 then
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 133005011, this_gadget, GadgetState.GearStart )
|
||||
return 0
|
||||
end
|
||||
if evt.param1 == 0 then
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 133005011, this_gadget, GadgetState.Default )
|
||||
return 0
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CLIENT_EXECUTE_18(context, evt)
|
||||
if evt.param1 == 0 then
|
||||
local this_chest = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 0, this_chest, GadgetState.Default)
|
||||
return 0
|
||||
end
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CLIENT_EXECUTE_23(context, evt)
|
||||
local this_gadget = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
|
||||
if evt.param1 == 1 then
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 0, this_gadget, GadgetState.GearStart )
|
||||
return 0
|
||||
end
|
||||
if evt.param1 == 0 then
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 0, this_gadget, GadgetState.Defautl )
|
||||
return 0
|
||||
end
|
||||
return 0
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
function condition_EVENT_ENTER_REGION_26(context, evt)
|
||||
ScriptLib.PrintLog("condition_start")
|
||||
if evt.param1 ~= 26 then return false end
|
||||
|
||||
if 5 ~= evt.param2 then
|
||||
return false
|
||||
end
|
||||
|
||||
ScriptLib.PrintLog("condition_end")
|
||||
return true
|
||||
end
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_ENTER_REGION_26(context, evt)
|
||||
ScriptLib.PrintLog("action_start")
|
||||
if 0 ~= ScriptLib.CreateGadget(context, {config_id = 43}) then
|
||||
return -1
|
||||
end
|
||||
ScriptLib.PrintLog("action_end")
|
||||
return 0
|
||||
end
|
101
soggy_resources/lua/Scene/20007/scene20007_group220007004.lua
Normal file
101
soggy_resources/lua/Scene/20007/scene20007_group220007004.lua
Normal file
@@ -0,0 +1,101 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 14, gadget_id = 70900037, pos = { x = -7.6, y = 0.0, z = -10.1 }, rot = { x = 0.0, y = 42.8, z = 0.0 }, level = 1 },
|
||||
{ config_id = 15, gadget_id = 70900038, pos = { x = -7.6, y = 0.0, z = -10.1 }, rot = { x = 0.0, y = 114.7, z = 0.0 }, level = 1 },
|
||||
{ config_id = 28, gadget_id = 70210054, pos = { x = -1.9, y = 21.0, z = 6.1 }, rot = { x = 0.0, y = 234.4, z = 0.0 }, level = 1, chest_drop_id = 403145, state = GadgetState.ChestFrozen },
|
||||
{ config_id = 32, gadget_id = 70310002, pos = { x = -0.2, y = 21.0, z = 9.1 }, rot = { x = 0.0, y = 62.6, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
{ config_id = 20, shape = RegionShape.SPHERE, radius = 5, pos = { x = -2.1, y = 0.0, z = -11.0 } },
|
||||
{ config_id = 24, shape = RegionShape.SPHERE, radius = 5, pos = { x = -2.1, y = 0.0, z = -11.0 } }
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
{ name = "CLIENT_EXECUTE_20", event = EventType.EVENT_CLIENT_EXECUTE, source = "ChestStateChange", condition = "", action = "action_EVENT_CLIENT_EXECUTE_20", trigger_count = 0 },
|
||||
{ name = "CLIENT_EXECUTE_24", event = EventType.EVENT_CLIENT_EXECUTE, source = "FireSourceChange", condition = "", action = "action_EVENT_CLIENT_EXECUTE_24", trigger_count = 0 }
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 14, 15, 28, 32 },
|
||||
regions = { 20, 24 },
|
||||
triggers = { "CLIENT_EXECUTE_20", "CLIENT_EXECUTE_24" },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 触发条件
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CLIENT_EXECUTE_20(context, evt)
|
||||
if evt.param1 == 0 then
|
||||
local this_chest = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 0, this_chest, GadgetState.Default)
|
||||
return 0
|
||||
end
|
||||
end
|
||||
|
||||
-- 触发条件
|
||||
|
||||
-- 触发操作
|
||||
function action_EVENT_CLIENT_EXECUTE_24(context, evt)
|
||||
local this_gadget = ScriptLib.GetGadgetConfigId(context, { gadget_eid = evt.source_eid })
|
||||
if evt.param1 == 1 then
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 0, this_gadget, GadgetState.GearStart )
|
||||
return 0
|
||||
end
|
||||
if evt.param1 == 0 then
|
||||
ScriptLib.SetGroupGadgetStateByConfigId(context, 0, this_gadget, GadgetState.Defautl )
|
||||
return 0
|
||||
end
|
||||
return 0
|
||||
end
|
@@ -0,0 +1,68 @@
|
||||
--================================================================
|
||||
--
|
||||
-- 配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 怪物
|
||||
monsters = {
|
||||
}
|
||||
|
||||
-- NPC
|
||||
npcs = {
|
||||
}
|
||||
|
||||
-- 装置
|
||||
gadgets = {
|
||||
{ config_id = 51, gadget_id = 70300056, pos = { x = -9.3, y = 16.4, z = -6.1 }, rot = { x = 0.0, y = 206.9, z = 0.0 }, level = 1, route_id = 20007005 },
|
||||
{ config_id = 52, gadget_id = 70300057, pos = { x = -9.4, y = 14.5, z = 1.5 }, rot = { x = 0.0, y = 260.2, z = 0.0 }, level = 1 }
|
||||
}
|
||||
|
||||
-- 区域
|
||||
regions = {
|
||||
}
|
||||
|
||||
-- 触发器
|
||||
triggers = {
|
||||
}
|
||||
|
||||
-- 变量
|
||||
variables = {
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 初始化配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
-- 初始化时创建
|
||||
init_config = {
|
||||
suite = 1,
|
||||
rand_suite = true,
|
||||
npcs = { }
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 小组配置
|
||||
--
|
||||
--================================================================
|
||||
|
||||
suites = {
|
||||
{
|
||||
-- suite_id = 0,
|
||||
-- description = ,
|
||||
monsters = { },
|
||||
gadgets = { 51 },
|
||||
regions = { },
|
||||
triggers = { },
|
||||
rand_weight = 100
|
||||
}
|
||||
}
|
||||
|
||||
--================================================================
|
||||
--
|
||||
-- 触发器
|
||||
--
|
||||
--================================================================
|
161
soggy_resources/lua/Scene/20007/scene20007_point.json
Normal file
161
soggy_resources/lua/Scene/20007/scene20007_point.json
Normal file
@@ -0,0 +1,161 @@
|
||||
{
|
||||
"radius": 100.0,
|
||||
"points": {
|
||||
"1": {
|
||||
"type": "NORMAL",
|
||||
"$type": "DungeonQuitPoint",
|
||||
"gadgetId": 70110002,
|
||||
"pos": {
|
||||
"x": 306.4708,
|
||||
"y": -99.29001,
|
||||
"z": 117.723564
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"areaId": 0,
|
||||
"unlocked": true,
|
||||
"size": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
}
|
||||
},
|
||||
"2": {
|
||||
"type": "NORMAL",
|
||||
"$type": "DungeonWayPoint",
|
||||
"gadgetId": 70120003,
|
||||
"pos": {
|
||||
"x": 21.01986,
|
||||
"y": 20.967,
|
||||
"z": 17.5066528
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"areaId": 0,
|
||||
"unlocked": true,
|
||||
"size": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"isBoss": false,
|
||||
"groupIds": []
|
||||
},
|
||||
"3": {
|
||||
"type": "NORMAL",
|
||||
"$type": "DungeonWayPoint",
|
||||
"gadgetId": 70120003,
|
||||
"pos": {
|
||||
"x": 50.5996475,
|
||||
"y": -31.0,
|
||||
"z": 75.33009
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"areaId": 0,
|
||||
"unlocked": true,
|
||||
"size": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"isBoss": false,
|
||||
"groupIds": []
|
||||
},
|
||||
"4": {
|
||||
"type": "NORMAL",
|
||||
"$type": "DungeonWayPoint",
|
||||
"gadgetId": 70120003,
|
||||
"pos": {
|
||||
"x": 73.26542,
|
||||
"y": 4.99,
|
||||
"z": 117.010864
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 91.35,
|
||||
"z": 0.0
|
||||
},
|
||||
"areaId": 0,
|
||||
"unlocked": true,
|
||||
"size": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"isBoss": false,
|
||||
"groupIds": []
|
||||
},
|
||||
"5": {
|
||||
"type": "NORMAL",
|
||||
"$type": "DungeonWayPoint",
|
||||
"gadgetId": 70120003,
|
||||
"pos": {
|
||||
"x": 161.795792,
|
||||
"y": 12.8,
|
||||
"z": 117.345047
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 90.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"areaId": 0,
|
||||
"unlocked": true,
|
||||
"size": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"isBoss": false,
|
||||
"groupIds": []
|
||||
}
|
||||
},
|
||||
"areas": {},
|
||||
"forces": {},
|
||||
"entities": {
|
||||
"1": {
|
||||
"$type": "ConfigLocalTrigger",
|
||||
"gadgetId": 70010006,
|
||||
"pos": {
|
||||
"x": -0.8989525,
|
||||
"y": -0.0139999986,
|
||||
"z": -37.0
|
||||
},
|
||||
"rot": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"areaId": 0,
|
||||
"unlocked": true,
|
||||
"checkDist": 100.0,
|
||||
"withGO": false,
|
||||
"triggerFlag": "NoReviveRegion",
|
||||
"shape": {
|
||||
"$type": "ConfigShapeRect",
|
||||
"useHeight": true,
|
||||
"height": 150.0,
|
||||
"centerType": "Center",
|
||||
"width": 100.0,
|
||||
"length": 50.0
|
||||
},
|
||||
"checkCount": 0,
|
||||
"vectorParam": {
|
||||
"x": 0.0,
|
||||
"y": 0.0,
|
||||
"z": 0.0
|
||||
},
|
||||
"floatParam": 0.0
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user